/* ══════════════════════════════════════
   DEALER PAGE
══════════════════════════════════════ */
.dealer-page-section {
    padding: 50px 0 80px;
    background: #f2ede4;
}

.dealer-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ── Header ── */
.dealer-cat-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.dealer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #cba258;
    margin-bottom: 14px;
}
.dealer-eyebrow::before,
.dealer-eyebrow::after {
    content: '';
    width: 18px; height: 1px;
    background: #cba258;
}

.dealer-cat-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 800;
    color: #0a0f1e;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.dealer-cat-sub {
    font-size: 0.94rem;
    color: #5a6478;
    line-height: 1.65;
    font-weight: 400;
}

/* ══════════════════════════════════════
   FILTER BAR
══════════════════════════════════════ */
.dealer-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.dealer-filter-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5a6478;
    background: #fff;
    border: 1.5px solid #e2dbcc;
    padding: 9px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.dealer-filter-btn:hover {
    border-color: #cba258;
    color: #8a6a2e;
}
.dealer-filter-btn.active {
    background: linear-gradient(135deg, #8a6a2e 0%, #cba258 60%, #e6cb98 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(203,162,88,0.4);
}

/* ══════════════════════════════════════
   DEALER GRID & CARDS
══════════════════════════════════════ */
.dealer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 60px;
}

.dealer-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 18px;
    overflow: visible;
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    box-shadow:
        0 1px 2px rgba(20,15,5,0.05),
        0 4px 8px rgba(20,15,5,0.05),
        0 10px 22px rgba(20,15,5,0.06);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.4s cubic-bezier(0.22,1,0.36,1);
}

.dealer-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 10px 22px rgba(20,15,5,0.08),
        0 24px 50px rgba(20,15,5,0.13),
        0 0 0 1.5px var(--theme-color);
}

.dealer-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(160deg, #efe9dd 0%, #e3dccc 100%);
}

.dealer-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.dealer-card:hover .dealer-card-img {
    transform: scale(1.08);
}

.dealer-card-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--theme-color);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 50px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-color) 40%, transparent);
}

.dealer-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dealer-card-province {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--theme-color);
    margin-bottom: 8px;
    width: fit-content;
}

.dealer-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.04rem;
    font-weight: 800;
    color: #0a0f1e;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}
.dealer-card:hover .dealer-card-name {
    color: var(--theme-color);
}

.dealer-card-address,
.dealer-card-phone {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 6px;
}
.dealer-card-address i,
.dealer-card-phone i {
    font-size: 0.85rem;
    color: var(--theme-color);
    margin-top: 1px;
    flex-shrink: 0;
}

.dealer-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--theme-color);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-color) 40%, transparent);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}
.dealer-card:hover .dealer-card-link {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-color) 55%, transparent);
    filter: brightness(1.08);
}

/* ══════════════════════════════════════
   BECOME A DEALER CTA BANNER
══════════════════════════════════════ */
.dealer-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #1b2a4a 0%, #16213a 50%, #0f1626 100%);
    border-radius: 24px;
    padding: 40px 48px;
    box-shadow: 0 24px 50px rgba(10,15,30,0.25);
    position: relative;
    overflow: hidden;
}
.dealer-cta-banner::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(203,162,88,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.dealer-cta-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.dealer-cta-text p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    line-height: 1.6;
}

.dealer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8a6a2e 0%, #cba258 60%, #e6cb98 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.86rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 14px 30px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 10px 26px rgba(203,162,88,0.4);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    position: relative;
    z-index: 1;
}
.dealer-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 36px rgba(203,162,88,0.55);
}
