/* ==========================================================================
   AC-130 — Directory SEO Concessionari (/concessionari) & Vetrina Showroom
   Brand Identity AstaCerta: Navy (#07152b / #153050), Gold (#d4b24e), Blue (#0d6efd)
   ========================================================================== */

.ac-dealers-page {
    background-color: #f8fafc;
    min-height: calc(100vh - 200px);
    padding-top: 0;
}

/* Hero Directory /concessionari */
.ac-dealers-hero {
    background: linear-gradient(135deg, #07152b 0%, #102a4c 60%, #173a66 100%);
    color: #ffffff;
    padding: 3.2rem 0 2.8rem;
    position: relative;
    border-bottom: 3px solid #d4b24e;
}

.ac-dealers-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 178, 78, 0.16);
    color: #f3d478;
    border: 1px solid rgba(212, 178, 78, 0.4);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.ac-dealers-hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
    color: #ffffff;
}

.ac-dealers-hero-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.12rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
    margin: 0 auto 1.75rem;
    line-height: 1.55;
}

/* Search & Filter Bar */
.ac-dealers-search-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 14px 34px rgba(7, 21, 43, 0.28);
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ac-dealers-search-card .form-control,
.ac-dealers-search-card .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 48px;
    font-size: 0.95rem;
    color: #0f172a;
    box-shadow: none;
}

.ac-dealers-search-card .form-control:focus,
.ac-dealers-search-card .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.ac-dealers-search-btn {
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    padding: 0 24px;
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.ac-dealers-search-btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    color: #ffffff;
}

/* Card Concessionario nella Directory */
.ac-dealer-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 1.35rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.ac-dealer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.ac-dealer-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1rem;
}

.ac-dealer-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #07152b 0%, #1e3a5f 100%);
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: #d4b24e;
    font-weight: 800;
    font-size: 1.35rem;
}

.ac-dealer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-dealer-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.3;
    word-break: break-word;
}

.ac-dealer-card-title a {
    color: inherit;
    text-decoration: none;
}

.ac-dealer-card-title a:hover {
    color: #0d6efd;
}

.ac-dealer-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f5132;
    background: #d1e7dd;
    padding: 3px 9px;
    border-radius: 50px;
}

.ac-dealer-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.1rem;
}

.ac-dealer-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 5px 11px;
    border-radius: 10px;
}

.ac-dealer-meta-chip--active {
    background: #eff6ff;
    color: #1d4ed8;
}

.ac-dealer-card-footer {
    padding-top: 0.9rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ac-dealer-btn-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ac-dealer-card:hover .ac-dealer-btn-visit {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* ==========================================================================
   VETRINA SINGOLO CONCESSIONARIO (/concessionari/{slug}-{id})
   ========================================================================== */
.ac-showroom-banner {
    background: linear-gradient(135deg, #07152b 0%, #132d52 65%, #1d4375 100%);
    color: #ffffff;
    padding: 2rem 0 2.2rem;
    border-bottom: 3px solid #d4b24e;
}

.ac-showroom-breadcrumb {
    font-size: 0.83rem;
    margin-bottom: 1.25rem;
}

.ac-showroom-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.ac-showroom-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.ac-showroom-header-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 1.5rem;
}

.ac-showroom-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: #ffffff;
    border: 3px solid #d4b24e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: #07152b;
    font-weight: 900;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.ac-showroom-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-showroom-title {
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

.ac-showroom-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.5rem;
}

.ac-showroom-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.ac-showroom-pill--gold {
    background: rgba(212, 178, 78, 0.22);
    color: #fde68a;
    border: 1px solid rgba(212, 178, 78, 0.45);
}

.ac-showroom-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ac-btn-showroom-phone {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 11px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ac-btn-showroom-phone:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-1px);
}

.ac-btn-showroom-contact {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 11px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ac-btn-showroom-contact:hover {
    background: #ffffff;
    color: #07152b;
}

/* Card Veicolo in Vetrina */
.ac-showroom-vehicle-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ac-showroom-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
}

.ac-showroom-vehicle-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0f172a;
    overflow: hidden;
    display: block;
}

.ac-showroom-vehicle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ac-showroom-vehicle-card:hover .ac-showroom-vehicle-img-wrap img {
    transform: scale(1.03);
}

.ac-showroom-vehicle-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.ac-showroom-vehicle-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.55rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ac-showroom-vehicle-title a {
    color: inherit;
    text-decoration: none;
}

.ac-showroom-vehicle-title a:hover {
    color: #0d6efd;
}

.ac-showroom-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.9rem;
}

.ac-showroom-spec-pill {
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 9px;
    border-radius: 8px;
}

.ac-showroom-vehicle-footer {
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-showroom-vehicle-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #0d6efd;
}

/* Box Anti-Thin Content quando 0 annunci attivi */
.ac-showroom-empty-notice {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #d4b24e;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Banner B2B Acquisizione Concessionari */
.ac-dealers-b2b-cta {
    background: linear-gradient(135deg, #07152b 0%, #153050 100%);
    color: #ffffff;
    border-radius: 22px;
    padding: 2.2rem;
    border: 1px solid rgba(212, 178, 78, 0.35);
}

/* Responsive Mobile (<= 600px) */
@media (max-width: 600px) {
    .ac-dealers-hero {
        padding: 2.2rem 0 2rem;
    }
    .ac-showroom-header-card {
        padding: 1.15rem;
    }
    .ac-showroom-logo {
        width: 68px;
        height: 68px;
        font-size: 1.5rem;
        border-radius: 16px;
    }
    .ac-showroom-cta-group {
        width: 100%;
    }
    .ac-btn-showroom-phone,
    .ac-btn-showroom-contact {
        width: 100%;
        justify-content: center;
    }
    .ac-dealers-b2b-cta {
        padding: 1.4rem;
    }
}
