/* Cararri 2026 public experience — visual layer only. */
:root {
    /* Cararri brand palette */
    --black: #202124;
    --blue: #0499fd;
    --white: #ffffff;
    --light-color: #f3f6f9;
 
    /* Backwards-compatible semantic aliases used throughout the site. */
    --charcoal: var(--black);
    --off-white: var(--light-color);
    --light-gray: #dce6ef;
    --gray: #68758b;
    --lime: var(--blue);
    --color-primary: var(--charcoal);
    --color-primary-light: #3a3a3a;
    --color-secondary: var(--white);
    --color-accent: var(--lime);
    --color-accent-hover: #0386de;
    --color-accent-alpha: rgba(4, 153, 253, .16);
    --color-bg: var(--white);
    --color-bg-secondary: var(--off-white);
    --color-bg-alt: var(--off-white);
    --color-surface: var(--white);
    --color-surface-hover: var(--light-color);
    --color-surface-border: var(--light-gray);
    --color-text: var(--charcoal);
    --color-text-secondary: #526079 !important;
    --color-text-muted: var(--gray);
    --color-text-inverse: var(--white);
    --color-hero-bg: var(--off-white);
    --color-hero-text: var(--charcoal);
    --gradient-accent: linear-gradient(135deg, var(--blue), #0386de);
    --shadow-sm: 0 1px 2px rgba(32,33,36,.05);
    --shadow-md: 0 12px 32px rgba(32,33,36,.08);
    --shadow-lg: 0 24px 60px rgba(32,33,36,.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --navbar-height: 72px;
    --container-max: 1440px;
    --font-heading: 'Satoshi', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --color-bg: #ffffff;
    /* --color-bg-alt: #2b2c2f; */
    --color-surface: #f8fafc;
    --color-surface-hover: #eef2f6;
    --color-surface-border: rgba(255,255,255,.16);
    /* --color-text: var(--white); */
    --color-text-secondary: var(--off-white);
    --color-text-muted: var(--gray);
}

html { overflow-x: hidden; scroll-behavior: smooth; }
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .section-title, .page-hero-title, .car-name, .car-price,
.feature-title, .footer-heading, .auth-title, .detail-title, .form-step-title {
    font-family: var(--font-heading);
    font-weight: 700;
}
p, li, label, input, select, textarea, button { font-family: var(--font-body); }
body::before { display: none !important; }
a { color: inherit; }
.container { width: min(100%, 1440px); max-width: 1440px; padding-inline: clamp(16px, 4vw, 56px); }
/*:focus-visible { outline: 3px solid rgba(237,251,141,.55) !important; outline-offset: 3px; }*/
.gradient-text { color: var(--color-accent) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }

/* Navigation */
.navbar {
    height: var(--navbar-height);
    background: rgba(245,245,245,.96) !important;
    border-bottom: 1px solid var(--light-gray);
    backdrop-filter: blur(18px);
    box-shadow: none !important;
}
.nav-container { width: min(100%, 1440px); max-width: 1440px; padding-inline: clamp(16px,4vw,56px); }
.nav-logo { flex: 0 0 auto; }
.cararri-logo-image { display: block; width: clamp(150px, 14vw, 190px); height: 54px; object-fit: contain; object-position: left center; }
.cararri-logo { display: block; width: clamp(150px, 14vw, 190px); height: 42px; overflow: visible; }
.cararri-logo text { fill: var(--charcoal); font-family: var(--font-heading); font-size: 22px; font-weight: 900; letter-spacing: 1.1px; }
.cararri-mark { fill: var(--charcoal); }
.cararri-wheel { fill: var(--lime); stroke: var(--charcoal); stroke-width: 2.5; }
.logo-text { color: #111; font-family: var(--font-heading); font-weight: 800; letter-spacing: -.04em; }
.nav-links { position: static; }
.nav-item { position: static; }
.nav-item-buy { position: relative; }
.nav-item-buy::after { content: ''; position: absolute; top: 100%; left: -10px; width: calc(100% + 20px); height: 20px; display: none; }
.nav-item-buy:hover::after, .nav-item-buy:focus-within::after, .nav-item-buy.menu-open::after { display: block; }
.nav-link { color: #555b60; border-radius: 9px; font-size: .9rem; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--charcoal); background: var(--off-white); }
.nav-link.active::after { background: var(--color-accent); }
.nav-link-icon { display: none; }
.nav-buy-trigger { border: 0; }
.nav-chevron { transition: transform .25s ease; }
.nav-item-buy.menu-open .nav-chevron { transform: rotate(180deg); }
.mega-menu { position: fixed; top: var(--navbar-height); left: 0; right: 0; visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none; background: var(--white); border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); box-shadow: 0 22px 48px rgba(52,53,50,.13); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.nav-item-buy:hover .mega-menu, .nav-item-buy:focus-within .mega-menu, .nav-item-buy.menu-open .mega-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.mega-menu-inner { width: min(100%, 1440px); margin: 0 auto; padding: 42px clamp(24px,6vw,88px) 48px; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(30px,5vw,80px); }
.mega-group + .mega-group { border-left: 1px solid var(--light-gray); padding-left: clamp(30px,5vw,80px); }
.mega-heading { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; text-align: left; cursor: default; }
.mega-heading h2 { color: var(--charcoal); font-size: 1.18rem; line-height: 1.2; }
.mega-heading-chevron { display: none; }
.mega-group ul { display: grid; gap: 2px; }
.mega-group li a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 39px; padding: 8px 10px; margin-left: -10px; border-radius: 8px; color: #5d615d; font-size: .88rem; transition: color .2s ease, background .2s ease, transform .2s ease; }
.mega-group li a svg { flex: 0 0 auto; opacity: 0; transform: translateX(-7px); transition: opacity .2s ease, transform .2s ease; }
.mega-group li a:hover, .mega-group li a:focus-visible { color: var(--charcoal); background: var(--lime); transform: translateX(4px); }
.mega-group li a:hover svg, .mega-group li a:focus-visible svg { opacity: 1; transform: translateX(0); }
.mobile-account-link { display: none; }
.btn-nav { min-height: 42px; border-radius: 11px; }
.btn-nav-outline { color: #222; border-color: #dededb; background: #fff; }
.btn-nav-primary, .btn-primary { background: var(--color-accent) !important; color: var(--charcoal) !important; border: 1px solid var(--color-accent) !important; box-shadow: none !important; }
.btn-nav-primary:hover, .btn-primary:hover { background: var(--color-accent-hover) !important; transform: translateY(-1px); }
.nav-hamburger span { background: #161616; }

/* Hero */
.hero {
    min-height: min(780px, calc(100svh - var(--navbar-height)));
    background:
        radial-gradient(circle at 78% 35%, rgba(237,251,141,.18), transparent 25%),
        linear-gradient(115deg, #f8f8f6 0 58%, #D0D0D0 58% 100%) !important;
    justify-content: flex-start;
}
.hero::after {
    content: '';
    position: absolute;
    right: max(3vw, 22px);
    top: 50%;
    width: min(47vw, 720px);
    aspect-ratio: 1.85;
    border-radius: 50% 42% 35% 45%;
    background: linear-gradient(145deg, #242424, #0e0e0e 60%, #3b3b3b);
    transform: translateY(-48%) skewX(-8deg);
    box-shadow: 0 45px 55px rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.28);
    opacity: .96;
}
.hero::before {
    content: '';
    position: absolute;
    z-index: 1;
    right: min(15vw, 220px);
    top: 50%;
    width: min(31vw, 470px);
    height: min(9vw, 130px);
    border-radius: 80% 80% 20% 20%;
    background: linear-gradient(160deg, #535353, #343532 72%);
    transform: translateY(-115%) skewX(-16deg);
    box-shadow: -105px 115px 0 -45px #0d0d0d, 105px 115px 0 -45px #0d0d0d;
}
.hero-canvas-container, .hero-overlay, .hero-scroll-indicator { display: none !important; }
.hero-content {
    width: min(100%, 1360px);
    max-width: none;
    margin: 0 auto;
    padding: 64px clamp(16px,4vw,48px);
    text-align: left;
}
.hero-content > * { max-width: 540px; position: relative; z-index: 4; }
.hero-badge { background: #fff; border: 1px solid #e3e3df; color: #414448; box-shadow: var(--shadow-sm); }
.badge-dot { background: var(--color-accent); animation: none; }
.hero-title { color: #111; font-size: clamp(2.7rem, 5.2vw, 4.8rem); line-height: .98; letter-spacing: -.055em; margin-bottom: 18px; }
.hero-subtitle { color: #5f6368; font-size: clamp(1rem, 1.5vw, 1.2rem); margin-bottom: 28px; }
.hero-search { width: min(100%, 480px); margin-bottom: 28px; }
.search-bar { flex-direction: column; gap: 10px; padding: 12px; overflow: visible; border: 1px solid #deded9; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(17,17,17,.11); backdrop-filter: none; }
.search-bar:focus-within { border-color: rgba(255,90,31,.6); box-shadow: 0 0 0 4px rgba(237,251,141,.32), 0 18px 50px rgba(17,17,17,.1); }
.search-field { width: 100%; flex: none !important; padding: 10px 14px; background: #f6f6f4; border: 1px solid #ebebe8 !important; border-radius: 11px; }
.search-field label { color: #777b80; }
.search-field select { color: #343532; min-height: 28px; cursor: pointer; }
.search-field select option { background: #fff; color: #111; }
.search-divider { display: none !important; }
.search-btn { width: 100%; min-height: 52px; justify-content: center; border-radius: 12px; background: var(--color-accent); }
.search-btn:hover { background: var(--color-accent-hover); padding-inline: 28px; }
.hero-stats { justify-content: flex-start; gap: clamp(16px,3vw,32px); }
.stat { text-align: left; }
.stat-number, .stat-suffix { color: #111; }
.stat-label { color: #777b80; }
.stat-divider { background: #d9d9d5; }

/* Sections */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section:nth-of-type(odd) { background: #f7f7f5; }
.brands-section { background: var(--white); }
.section-header { max-width: 700px; margin-inline: auto; margin-bottom: clamp(30px,5vw,52px); }
.section-badge { color: var(--color-accent); background: var(--color-accent-alpha); border: 0; letter-spacing: .08em; }
.section-badge { color: var(--lime) !important; background: var(--charcoal) !important; }
.section-title { color: #111; font-size: clamp(2rem,4vw,3rem); letter-spacing: -.04em; }
.section-subtitle { color: var(--color-text-secondary); }
.section-footer { margin-top: 36px; }

/* Vehicle cards */
.car-grid { gap: clamp(16px,2vw,24px); }
.car-card { background: #fff; border: 1px solid #D0D0D0; border-radius: 18px; box-shadow: none; overflow: hidden; color: #111; }
.car-card:hover { transform: translateY(-4px); border-color: #d1d1cc; box-shadow: var(--shadow-md); }
.car-card-image { aspect-ratio: 16 / 10; background: #efefec; border-radius: 0; }
.car-card-image img { border-radius: 0 !important; }
.car-card-placeholder svg { width: 100%; height: 100%; }
.car-badge { top: 14px; left: 14px; background: #343532; color: #fff; border-radius: 999px; }
.car-badge-new, .car-badge-hot { background: var(--color-accent); }
.car-listed-ago { top: 14px; }
.car-favorite { width: 42px; height: 42px; top: 12px; right: 12px; color: #222; background: rgba(255,255,255,.94); border: 1px solid rgba(0,0,0,.07); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.car-favorite.active { color: #e5484d; background: #fff; }
.car-card-body { padding: 18px; }
.car-card-header { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.car-name { font-size: 1.02rem; color: #202124; }
.car-price { font-family: var(--font-heading); font-size: 1.42rem; color: #111; }
.car-specs { color: #65696e; gap: 12px; }
.car-spec svg { color: #8b8e91; }
.car-btn { min-height: 42px; justify-content: center; border-radius: 11px; color: #fff; background: #343532; }
.car-btn:hover { background: var(--color-accent); color: #fff; }

/* Benefit, brand, budget and CTA */
.why-section { background: #F5F5F5 !important; }
.feature-card { background: #fff; border: 1px solid #e3e3df; border-radius: 20px; box-shadow: none; }
.feature-card:hover { transform: translateY(-3px); border-color: #cacac5; box-shadow: var(--shadow-md); }
.feature-icon { filter: saturate(.8); }
.feature-title { color: #343532; }
.feature-desc { color: #686c70; }
.brands-grid { gap: 12px; }
.brand-card { min-height: 144px; background: #fff; border: 1px solid #D0D0D0; border-radius: 16px; color: #202124; }
.brand-card:hover { border-color: var(--color-accent); box-shadow: none; transform: translateY(-2px); }
.brand-logo { color: #252525; }
.budget-subtitle { max-width: 520px; margin: 8px auto 0; }
.budget-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1050px; margin: 0 auto; padding: 18px; background: #fff; border: 1px solid #e1e6eb; border-radius: 16px; box-shadow: 0 8px 24px rgba(32,33,36,.06); }
.budget-card { position: relative; min-height: 86px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px 38px 16px 16px; color: var(--color-text); background: #fff !important; border: 1px solid #cfd7df !important; border-radius: 7px !important; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.budget-card::after { content: '\2192'; position: absolute; right: 15px; color: #0499fd; font-size: 1.15rem; transition: transform .2s ease; }
.budget-price { color: #202124; font-size: 1.08rem; font-weight: 700; transition: color .2s ease; }
.budget-label { margin-top: 3px; color: var(--color-text-muted); font-size: .76rem; }
.budget-card:hover { background: #f3faff !important; border-color: #0499fd !important; box-shadow: 0 7px 18px rgba(4,153,253,.12); transform: translateY(-2px); }
.budget-card:hover .budget-price { color: #0499fd; }
.budget-card:hover::after { transform: translateX(3px); }
@media (max-width: 900px) { .budget-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .budget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.budget-card:last-child { grid-column: 1 / -1; } }
.cta-section { background: #343532 !important; }
.cta-bg { background: radial-gradient(circle at 80% 40%, rgba(237,251,141,.22), transparent 32%) !important; }
.cta-title { color: #fff; }
.cta-subtitle { color: #b9b9b4; }

/* Page headers and listing search */
.page-hero { background: #F5F5F5 !important; color: #111; }
.page-hero::before, .page-hero::after { opacity: .25; }
.page-hero-content { text-align: left; max-width: 1360px; }
.page-hero-title { color: #111; letter-spacing: -.04em; }
.page-hero-subtitle, .breadcrumb { color: #666a6e; }
.breadcrumb a:hover { color: var(--color-accent); }
.listing-section { background: #fff; }
.listing-search-bar { padding: 8px; border: 1px solid #deded9; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); }
.listing-search-bar input { min-height: 48px; color: #343532; }
.quick-filter-chip { min-height: 38px; display: inline-flex; align-items: center; flex: 0 0 auto; color: #50545a; background: #fff; border: 1px solid #deded9; border-radius: 999px; }
.quick-filter-chip:hover, .quick-filter-chip.active { background: #343532; border-color: #343532; color: #fff; }
.listing-layout { gap: 28px; }
.results-topbar { border-bottom-color: #D0D0D0; }
.results-count, .sort-dropdown label { color: #555a60; }
.sort-select, .view-btn, .filter-toggle-btn { min-height: 44px; color: #202124; background: #fff; border-color: #deded9; border-radius: 10px; }
.view-btn { gap: 6px; padding-inline: 12px; }
.view-btn-label { font-size: .78rem; font-weight: 700; line-height: 1; }
.view-btn.active { color: #fff; background: #343532; border-color: #343532; }
.filter-tag { color: #383b3f; background: #F5F5F5; border-color: #e3e3df; }
.filter-tag a { color: var(--color-accent); }
.pagination .page-btn { min-width: 42px; min-height: 42px; border-color: #deded9; background: #fff; color: #383b3f; border-radius: 10px; }
.pagination .page-btn.active { background: #343532; color: #fff; border-color: #343532; }

/* Filters */
.filter-sidebar { background: #fff; border: 1px solid #e2e2de; border-radius: 18px; box-shadow: none; }
.filter-header { border-bottom-color: #D0D0D0; }
.filter-title, .filter-group-header { color: #202124; }
.filter-group { border-bottom-color: #D0D0D0; }
.filter-checkbox, .filter-pill { color: #555a60; }
.filter-checkbox:hover, .filter-pill:hover { color: #111; }
.filter-pill:has(input:checked) { color: #fff; background: #343532; border-color: #343532; }
.filter-text-input, .filter-search-input input, .form-input, .form-textarea, .calc-input {
    min-height: 48px;
    color: #343532 !important;
    background: #fff !important;
    border: 1px solid #dcdcd8 !important;
    border-radius: 11px !important;
}
.filter-text-input:focus, .filter-search-input input:focus, .form-input:focus, .form-textarea:focus, .calc-input:focus { border-color: var(--color-accent) !important; box-shadow: 0 0 0 4px rgba(237,251,141,.32) !important; }
.range-fill { background: var(--color-accent); }
.range-input::-webkit-slider-thumb { background: var(--color-accent); }
.filter-footer { background: #fff; border-top-color: #D0D0D0; }
.filter-reset-btn { color: #44484d; }
.filter-apply-btn { background: var(--color-accent); border-radius: 11px; }

/* Details, compare, sell, auth and dashboard */
.detail-hero, .compare-section, .sell-section, .auth-section { background: #fff; }
.detail-gallery, .seller-card, .finance-calculator, .overview-highlights, .compare-slot, .compare-table-wrapper, .form-step, .dash-panel, .dashboard-sidebar, .auth-form-panel { background: #fff; border: 0px solid #e3e3df; border-radius: 20px; box-shadow: none; }
.detail-title, .detail-price, .seller-name, .spec-group-title, .auth-title { color: #343532; }
.detail-price { color: var(--color-accent); }
.detail-action-btn, .btn-icon { border-radius: 11px; }
.detail-action-btn.primary, .form-nav .btn-primary { background: var(--color-accent); }
.quick-spec { background: #f7f7f5; border-color: #dce6ef; }
.quick-spec-icon { color: #0499fd; background: rgba(4,153,253,.1); border-color: rgba(4,153,253,.2); }
.detail-content-section { border-color: #dce6ef; box-shadow: 0 12px 32px rgba(32,33,36,.05); }
.detail-section-number { color: #fff; background: #0499fd; }
.tabs-nav { background: #fff; border-bottom-color: #D0D0D0; }
.tab-btn.active { color: var(--color-accent); border-color: var(--color-accent); }
.compare-add-btn { border-color: #d8d8d3; background: #f7f7f5; color: #44484d; }
.compare-add-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.step.active .step-num, .step.completed .step-num { background: var(--color-accent); border-color: var(--color-accent); }
.stepper-fill { background: var(--color-accent); }
.upload-zone { background: #fafaf8; border-color: #d6d6d1; border-radius: 16px; }
.upload-zone:hover { border-color: var(--color-accent); background: rgba(237,251,141,.12); }
.auth-layout { background: #F5F5F5; }
.auth-visual { background-repeat: no-repeat !important; background-size: cover; background-position: center; }
.auth-icon-circle { background: var(--color-accent-alpha); color: var(--color-accent); }
.dash-nav-item.active { color: #fff; background: #343532; }

/* Footer */
.footer { position: relative; background: #202124 !important; border-top: 4px solid #0499fd; color: #fff; padding: 58px 0 28px; }
.footer::before { content: ''; position: absolute; inset: 0; display: block; pointer-events: none; background: radial-gradient(circle at 10% 10%, rgba(4,153,253,.18), transparent 30%); }
.footer .container { position: relative; }
.footer-grid { grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); gap: clamp(24px,3vw,48px); }
.footer .logo-text { color: #fff; }
.footer-logo-image { display: block; width: min(230px, 100%); height: auto; padding: 9px 11px; background: #fff; border-radius: 7px; }
.footer-desc, .footer-newsletter-text, .footer-contact, .footer-links a, .footer-bottom { color: rgba(255,255,255,.7); }
.footer-desc { max-width: 360px; }
.footer-heading { color: #fff; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.footer-links li { margin-bottom: 11px; }
.footer-links a:hover { color: #fff; }
.footer-trust { display: grid; gap: 8px; margin: 0 0 20px; }
.footer-trust span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); font-size: .78rem; }
.footer-trust span::before { content: '✓'; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: #0499fd; border-radius: 50%; font-size: .65rem; font-weight: 800; }
.social-link { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); border-radius: 7px; }
.social-link:hover { background: #0499fd; border-color: #0499fd; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a { display: grid; gap: 2px; padding: 10px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-contact a:hover { color: #0499fd; }
.footer-contact span { color: rgba(255,255,255,.55); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.footer-contact strong { overflow-wrap: anywhere; font-size: .82rem; font-weight: 600; }
.newsletter-form { background: #242424; border-color: #383838; }
.newsletter-input { color: #fff; }
.newsletter-btn { background: var(--color-accent); }
.footer-bottom { border-top-color: rgba(255,255,255,.14); }
.footer-bottom-meta { display: flex; align-items: center; gap: 20px; }
.footer-bottom-meta a { color: rgba(255,255,255,.7); }
.footer-bottom-meta a:hover { color: #fff; }
@media (max-width: 640px) { .footer-bottom-meta { align-items: flex-start; flex-direction: column; gap: 5px; } }

/* Mobile app navigation */
.mobile-bottom-nav { display: none; }

@media (max-width: 1024px) {
    .hero::after { right: -16vw; opacity: .38; }
    .hero::before { right: -2vw; opacity: .38; }
    .listing-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --navbar-height: 64px; }
    body { padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
    .navbar { height: var(--navbar-height); }
    .nav-container { padding-inline: 16px; }
    .cararri-logo, .cararri-logo-image { width: 148px; height: 42px; }
    .nav-links { position: fixed; inset: 0 0 0 auto; width: min(92vw, 390px); max-width: 390px; height: 100vh; height: 100dvh; transform: translate3d(105%,0,0); right: 0; visibility: hidden; pointer-events: none; background: var(--white); color: var(--charcoal); padding: 82px 18px calc(30px + env(safe-area-inset-bottom)); box-shadow: -24px 0 60px rgba(52,53,50,.18); gap: 4px; overflow-y: auto; overscroll-behavior: contain; z-index: calc(var(--z-navbar) + 5); transition: transform .34s cubic-bezier(.22,1,.36,1), visibility 0s linear .34s; }
    .nav-links.active { right: 0; transform: translate3d(0,0,0); visibility: visible; pointer-events: auto; transition: transform .34s cubic-bezier(.22,1,.36,1), visibility 0s linear 0s; }
    .nav-links > li { width: 100%; }
    .nav-links .nav-link { min-height: 50px; width: 100%; justify-content: space-between; color: var(--charcoal); padding: 12px 14px; font-size: 1rem; font-weight: 600; }
    .nav-links .nav-link:hover, .nav-links .nav-link.active { color: var(--charcoal); background: var(--off-white); }
    .nav-links .nav-link-icon { display: block; }
    .nav-item-buy { position: static; }
    .nav-item-buy::after { display: none !important; }
    .mega-menu { position: static; display: grid; grid-template-rows: 0fr; visibility: visible; opacity: 1; transform: none; pointer-events: none; border: 0; box-shadow: none; background: transparent; transition: grid-template-rows .3s ease; }
    .nav-item-buy.menu-open .mega-menu { grid-template-rows: 1fr; pointer-events: auto; }
    .mega-menu-inner { min-height: 0; overflow: hidden; width: 100%; padding: 0 10px; display: block; }
    .nav-item-buy.menu-open .mega-menu-inner { padding-block: 8px 15px; }
    .mega-group + .mega-group { border-left: 0; border-top: 1px solid var(--light-gray); padding: 18px 0 0; margin-top: 15px; }
    .mega-heading { min-height: 44px; margin: 0; padding: 8px 9px; border-radius: 8px; cursor: pointer; }
    .mega-heading:hover { background: var(--off-white); }
    .mega-heading h2 { font-size: .92rem; }
    .mega-heading-chevron { display: block; flex: 0 0 auto; transition: transform .25s ease; }
    .mega-group.submenu-open .mega-heading-chevron { transform: rotate(180deg); }
    .mega-submenu { display: grid !important; grid-template-rows: repeat(5, 0fr); opacity: 0; overflow: hidden; transition: opacity .25s ease; }
    .mega-submenu > li { min-height: 0; overflow: hidden; }
    .mega-group.submenu-open .mega-submenu { grid-template-rows: repeat(5, 1fr); opacity: 1; }
    .mega-group li a { min-height: 39px; padding: 8px 9px; margin: 0; font-size: .84rem; }
    .mega-group li a svg { opacity: .45; transform: none; }
    .mega-group li a:hover { transform: none; }
    .mobile-account-link { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
    .mobile-overlay { background: rgba(17,17,17,.42); backdrop-filter: blur(2px); }
    .hero { min-height: auto; padding-block: 18px 28px; background: #F5F5F5 !important; }
    .hero::before, .hero::after { display: none; }
    .hero-content { padding: 30px 16px 24px; }
    .hero-content > * { max-width: none; }
    .hero-title { font-size: clamp(2.45rem, 12vw, 3.35rem); }
    .hero-subtitle { margin-bottom: 22px; }
    .hero-search { width: 100%; }
    .search-bar { border-radius: 16px; padding: 10px; }
    .hero-stats { width: 100%; justify-content: space-between; gap: 8px; }
    .stat-number { font-size: 1.18rem; }
    .stat-label { font-size: .7rem; }
    .section { padding-block: 56px; }
    .section-header { text-align: left; margin-bottom: 28px; }
    .section-title { font-size: 2rem; }
    .car-grid, .car-grid-listing { display: grid; grid-template-columns: 1fr; gap: 18px; }
    .featured-section .car-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 18px 0; margin-right: -16px; scrollbar-width: none; }
    .featured-section .car-grid::-webkit-scrollbar { display: none; }
    .featured-section .car-card { min-width: min(86vw, 340px); scroll-snap-align: start; }
    .brands-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; padding-bottom: 12px; scrollbar-width: none; }
    .brand-card { min-width: 138px; scroll-snap-align: start; }
    .page-hero-sm, .page-hero-xs { padding-block: 28px; }
    .page-hero-title { font-size: 2rem; }
    .listing-search-bar { position: sticky; top: calc(var(--navbar-height) + 8px); z-index: 20; }
    .listing-search-bar input { min-width: 0; }
    .quick-filters-row { flex-wrap: nowrap !important; }
    .results-topbar { align-items: stretch; gap: 10px; }
    .results-info, .results-controls { width: 100%; justify-content: space-between; }
    .sort-dropdown { flex: 1; }
    .sort-select { width: 100%; }
    .filter-sidebar { top: auto !important; bottom: 0; left: 0; width: 100%; max-width: none; height: min(90svh, 760px); border-radius: 24px 24px 0 0; transform: translateY(105%); }
    .filter-sidebar.open { transform: translateY(0); }
    .filter-header { position: sticky; top: 0; background: #fff; z-index: 2; border-radius: 24px 24px 0 0; }
    .filter-body { padding-bottom: 110px; }
    .filter-footer { position: sticky; bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    .footer { padding-bottom: 32px; }
    .footer-grid { gap: 32px; }
    .footer-brand { max-width: none; }
    .mobile-bottom-nav {
        position: fixed;
        z-index: 1000;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-height: calc(66px + env(safe-area-inset-bottom));
        padding: 7px 6px env(safe-area-inset-bottom);
        background: rgba(255,255,255,.96);
        border-top: 1px solid #dfdfdb;
        box-shadow: 0 -10px 30px rgba(17,17,17,.07);
        backdrop-filter: blur(18px);
    }
    .mobile-bottom-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; color: #76797d; font-size: .67rem; font-weight: 600; text-decoration: none; }
    .mobile-bottom-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .mobile-bottom-link.active { color: var(--color-accent); }
    .mobile-bottom-sell svg { width: 34px; height: 34px; padding: 7px; margin-top: -17px; color: #fff; background: var(--color-accent); border-radius: 12px; box-shadow: 0 7px 18px rgba(237,251,141,.35); }
    .mobile-bottom-sell.active svg { color: #fff; }
}

/* Top rated vehicle comparisons */
.top-comparisons-section { background: #fff !important; }
.comparison-heading { max-width: 720px; margin-bottom: 34px; }
.comparison-heading .section-title { margin: 13px 0 10px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.comparison-card { overflow: hidden; background: var(--white); border: 1px solid var(--light-gray); border-radius: 21px; transition: transform .3s ease,box-shadow .3s ease; }
.comparison-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(52,53,50,.1); }
.comparison-vehicles { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(145deg,#F5F5F5,#E0E0E0); }
.comparison-vehicle { position: relative; min-width: 0; padding: 19px 18px 23px; }
.comparison-vehicle + .comparison-vehicle { border-left: 1px solid rgba(143,150,154,.3); }
.comparison-image { height: 150px; display: grid; place-items: center; }
.comparison-image img { width: 112%; max-width: none; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(52,53,50,.2)); }
.comparison-rating { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 8px; color: #6e746d; font-size: .68rem; font-weight: 600; }
.comparison-rating svg { color: #a5ae4f; }
.comparison-vehicle h3 { overflow: hidden; color: var(--charcoal); font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.comparison-vehicle strong { display: block; margin: 4px 0; color: var(--charcoal); font: 700 1.18rem var(--font-heading); }
.comparison-vehicle small { color: var(--gray); font-size: .67rem; }
.comparison-vs { position: absolute; z-index: 3; left: 50%; top: 124px; width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--lime); border: 5px solid var(--white); border-radius: 50%; font: 800 .66rem var(--font-heading); transform: translateX(-50%); }
.comparison-button { min-height: 53px; display: flex; align-items: center; justify-content: space-between; padding: 13px 19px; color: var(--white) !important; background: #0499fd !important; font-size: .82rem; font-weight: 600; }
.comparison-button:hover { color: var(--white) !important; background: #202124 !important; }

@media (max-width: 768px) {
    .category-panel, .category-panel.is-active { display: none; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
    .category-panel.is-active { display: block; }
    .category-panel .swiper-wrapper { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; transform: none !important; }
    .popular-car-card { min-width: 0; width: 100%; flex: none; border-radius: 13px; transform: none !important; box-shadow: none !important; }
    .popular-car-image { padding: 13px 2px 2px; }
    .popular-car-content { padding: 11px; }
    .popular-car-content h3 { margin-block: 4px 7px; font-size: .82rem; }
    .popular-car-content strong { margin-bottom: 9px; font-size: 1rem; }
    .popular-car-content > div { padding-top: 9px; font-size: .7rem; }
    .popular-car-image > span { left: 7px; top: 7px; padding: 5px 7px; font-size: .58rem; }
    .comparison-grid { grid-template-columns: 1fr; gap: 15px; }
    .comparison-image { height: 115px; }
    .comparison-vehicle { padding: 13px 11px 18px; }
    .comparison-vs { top: 92px; }
}

/* Homepage featured vehicle cards */
.featured-cars-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(16px,2vw,24px); }
.featured-section { background: #fff !important; }
.featured-car-card { overflow: hidden; background: #fff !important; border: 1px solid var(--light-gray); border-radius: 18px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.featured-car-card:hover { transform: translateY(-5px); border-color: #b9bcb7; box-shadow: 0 20px 45px rgba(52,53,50,.1); }
.featured-car-image { position: relative; display: grid; place-items: center; aspect-ratio: 1.5; overflow: hidden; background: #fff !important; }
.featured-car-image::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 15%; height: 13px; border-radius: 50%; background: rgba(52,53,50,.17); filter: blur(8px); }
.featured-car-image img { position: relative; z-index: 1; width: 108%; max-width: none; height: 100%; object-fit: cover; border-radius: 0 !important; filter: drop-shadow(0 14px 12px rgba(52,53,50,.2)); transition: transform .45s cubic-bezier(.22,1,.36,1); }
.featured-car-image.has-real-image { padding: 0; background: #edf2f7 !important; }
.featured-car-image.has-real-image::after { display: none; }
.featured-car-image.has-real-image img { width: 100%; max-width: 100%; object-fit: cover; filter: none; }
.featured-car-image:hover img { transform: scale(1.055) translateY(-3px); }
.featured-tag, .featured-listed { position: absolute; border-radius: 7px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; font-size: .67rem; font-weight: 600; }
.featured-tag { left: 12px; top: 12px; padding: 7px 10px; color: #fff; background: var(--lime); border-radius: 7px;}
.featured-wishlist { position: absolute; z-index: 4; right: 12px; top: 12px; width: 39px; height: 39px; display: grid; place-items: center; color: #0499fd; background: rgba(255,255,255,.94); border: 1px solid rgba(4,153,253,.25); border-radius: 7px; box-shadow: 0 5px 16px rgba(4,153,253,.18); backdrop-filter: blur(8px); transition: color .2s ease, background .2s ease, transform .2s ease; }
.featured-wishlist:hover, .featured-wishlist.active { color: var(--white); background: #0499fd; transform: scale(1.08); }
.featured-wishlist.active svg { fill: currentColor; }
.featured-listed { left: 12px; bottom: 11px; padding: 6px 9px; color: var(--charcoal); background: rgba(245,245,245,.9); backdrop-filter: blur(8px); }
.content-car-area { padding: 19px; background: #fff !important; }
.featured-car-title { display: inline-block; max-width: 100%; overflow: hidden; color: var(--charcoal); font: 700 1.04rem/1.35 var(--font-heading); text-overflow: ellipsis; white-space: nowrap; }
.featured-car-title:hover { color: #62685d; }
.featured-price-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.featured-car-price { color: var(--charcoal); font: 700 1.38rem var(--font-heading); }
.featured-estimate-btn { flex: 0 0 auto; padding: 5px 8px; color: #047fcf; background: #eef8ff; border: 1px solid #9ed7fc; border-radius: 5px; font-size: .7rem; font-weight: 700; }
.featured-estimate-btn:hover { color: #fff; background: #0499fd; border-color: #0499fd; }
.featured-meta-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.featured-car-meta { min-width: 0; display: grid; gap: 5px; padding-block: 7px 4px; }
.featured-car-location, .featured-car-mileage { min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--gray); font-size: .78rem; font-weight: 600; }
.featured-car-location { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-car-location svg, .featured-car-mileage svg { flex: 0 0 auto; color: #0499fd; }
.featured-quick-view { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; color: var(--charcoal); background: var(--off-white); border: 1px solid var(--light-gray); border-radius: 9px; transition: background .2s ease, transform .2s ease; }
.featured-quick-view-labeled { width: auto; min-width: 0; height: 34px; grid-auto-flow: column; gap: 6px; padding: 0 10px; font-size: .7rem; font-weight: 700; }
.featured-quick-view:hover { background: var(--lime); transform: scale(1.05); }
.featured-quick-view:hover svg { stroke: #fff; }
.featured-detail-btn { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; padding: 10px 14px; color: var(--white) !important; background: #0499fd !important; border-radius: 9px; font-size: .82rem; font-weight: 600; }
.featured-detail-btn:hover { color: var(--white) !important; background: #202124 !important; }
.featured-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .25s ease,visibility .25s; }
.featured-modal.is-open { visibility: visible; opacity: 1; }
.featured-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(23,24,22,.72); backdrop-filter: blur(7px); }
.featured-modal-panel { position: relative; z-index: 1; width: min(920px,100%); max-height: min(730px,90dvh); overflow-y: auto; background: var(--white); border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.3); transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.featured-modal.is-open .featured-modal-panel { transform: none; }
.featured-modal-close { position: absolute; z-index: 4; top: 15px; right: 15px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--charcoal); background: rgba(245,245,245,.92); border: 1px solid var(--light-gray); border-radius: 7PX; font-size: 1.75rem; line-height: 1; }
.quick-view-layout { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 500px; }
.quick-view-gallery { min-width: 0; padding: 32px; background: linear-gradient(145deg,var(--off-white),var(--white)); }
.quick-view-image { position: relative; height: 390px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; }
.quick-view-image .quick-view-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; visibility: hidden; transition: opacity .25s ease; filter: drop-shadow(0 22px 18px rgba(52,53,50,.22)); }
.quick-view-image .quick-view-slide.is-active { opacity: 1; visibility: visible; }
.quick-view-gallery-btn { position: absolute; z-index: 2; top: 50%; width: 37px; height: 37px; display: grid; place-items: center; color: var(--charcoal); background: rgba(255,255,255,.9); border: 1px solid var(--light-gray); border-radius: 7px; font-size: 1.85rem; line-height: 1; transform: translateY(-50%); box-shadow: 0 5px 18px rgba(0,0,0,.12); }
.quick-view-gallery-prev { left: 10px; }
.quick-view-gallery-next { right: 10px; }
.quick-view-gallery-counter { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 5px 9px; color: var(--white); background: rgba(0,0,0,.62); border-radius: 999px; font-size: .72rem; }
.quick-view-thumbs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.quick-view-thumb { width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: var(--white); border: 2px solid transparent; border-radius: 8px; opacity: .65; }
.quick-view-thumb.is-active { border-color: var(--blue); opacity: 1; }
.quick-view-thumb img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-info { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px,5vw,55px); }
.quick-view-kicker { margin-bottom: 10px; color: #747b72; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.quick-view-info h2 { margin-bottom: 7px; color: var(--charcoal); font-size: clamp(1.7rem,3vw,2.35rem); }
.quick-view-info > strong { margin-bottom: 24px; color: var(--charcoal); font: 700 1.55rem var(--font-heading); }
.quick-view-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.quick-view-specs span { padding: 11px; color: var(--charcoal); background: var(--off-white); border-radius: 9px; font-size: .82rem; font-weight: 600; }
.quick-view-specs small { display: block; margin-bottom: 3px; color: var(--gray); font-size: .64rem; font-weight: 500; text-transform: uppercase; }
.quick-view-info p { color: #666b65; font-size: .86rem; line-height: 1.65; }
.price-estimate-modal { padding: clamp(28px,5vw,52px); color: var(--charcoal); }
.price-estimate-heading { max-width: 650px; margin-bottom: 25px; padding-right: 40px; }
.price-estimate-heading h2 { margin-bottom: 7px; font-size: clamp(1.55rem,3vw,2.15rem); }
.price-estimate-heading p, .price-estimate-note { color: #666b65; font-size: .83rem; line-height: 1.55; }
.price-estimate-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(250px,.9fr); gap: 25px; }
.price-estimate-form { display: grid; gap: 15px; }
.price-estimate-form label { display: grid; gap: 7px; color: #515750; font-size: .75rem; font-weight: 700; }
.price-estimate-form > label:first-child { grid-template-columns: 1fr auto; padding: 13px 14px; color: var(--charcoal); background: var(--off-white); border-radius: 9px; font-size: .84rem; }
.estimate-input { min-height: 44px; display: flex; align-items: center; overflow: hidden; background: #fff; border: 1px solid var(--light-gray); border-radius: 8px; }
.estimate-input:focus-within { border-color: #0499fd; box-shadow: 0 0 0 3px rgba(4,153,253,.12); }
.estimate-input b { padding-left: 13px; color: #727870; }
.estimate-input input { width: 100%; min-width: 0; padding: 10px 12px 10px 6px; color: var(--charcoal); background: transparent; border: 0; outline: 0; font: 600 .88rem var(--font-body); }
.estimate-input-suffix input { padding-left: 12px; }
.estimate-input-suffix b { padding: 0 13px 0 0; }
.price-estimate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-estimate-fields select { min-height: 44px; padding: 9px 11px; color: var(--charcoal); background: #fff; border: 1px solid var(--light-gray); border-radius: 8px; outline: 0; }
.price-estimate-result { padding: 24px; color: #fff; background: linear-gradient(145deg,#202124,#3a3a3a); border-radius: 15px; }
.price-estimate-result small { display: block; color: #b9ddf7; font-size: .72rem; }
.price-estimate-result > strong { display: block; margin: 8px 0 24px; font: 700 clamp(2rem,5vw,2.8rem) var(--font-heading); }
.price-estimate-result div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .76rem; }
.price-estimate-result div span { color: #c8d8e7; }
.price-estimate-note { margin: 20px 0 0; }

@media (max-width: 1100px) { .featured-cars-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
    .featured-cars-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        margin-right: -16px;
        padding: 2px 16px 18px 0;
        scroll-snap-type: x proximity;
        scroll-padding-left: 0;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }
    .featured-cars-grid::-webkit-scrollbar { display: none; }
    .featured-car-card {
        flex: 0 0 calc((100vw - 52px) / 1.5);
        min-width: 0;
        max-width: 285px;
        scroll-snap-align: start;
        background: #fff;
        transform: none !important;
        box-shadow: none;
    }
    .featured-car-card:hover { transform: none; box-shadow: none; }
    .featured-car-image { padding-inline: 5px; background: #fff; }
    .featured-car-image img, .featured-car-image:hover img { width: 105%; transform: none; }
    .content-car-area { background: #fff; padding: 15px; }
    .featured-car-title { font-size: .94rem; }
    .featured-car-price { font-size: 1.18rem; }
    .quick-view-layout { grid-template-columns: 1fr; }
    .quick-view-gallery { padding: 18px; }
    .quick-view-image { height: 280px; }
    .quick-view-info { padding: 28px 22px; }
    .featured-quick-view-labeled { padding-inline: 8px; }
    .price-estimate-modal { padding: 28px 20px; }
    .price-estimate-layout { grid-template-columns: 1fr; }
    .price-estimate-fields { grid-template-columns: 1fr; }
}

/* Popular category tabs */
.popular-categories-section { background: var(--off-white) !important; }
.popular-categories-heading { max-width: 720px; margin-bottom: 30px; }
.popular-categories-heading .section-title { margin: 13px 0 10px; }
.category-tabs { display: flex; gap: 8px; margin-bottom: 27px; padding-bottom: 5px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex: 0 0 auto; min-height: 45px; padding: 10px 19px; color: #656a64; background: var(--white); border: 1px solid var(--light-gray); border-radius: 7px; font-size: .84rem; font-weight: 600; scroll-snap-align: start; transition: color .2s ease,background .2s ease,border-color .2s ease; }
.category-tab:hover, .category-tab.is-active { color: #ffffff; background: #0499fd; border-color: #0499fd; }
.category-panels > .category-panel { position: relative; display: none !important; padding: 3px 2px 38px; }
.category-panels > .category-panel.is-active { display: block !important; }
.category-panel .swiper-wrapper { align-items: stretch; }
.popular-car-card { height: auto; overflow: hidden; color: var(--charcoal); background: #fff; border: 1px solid var(--light-gray); border-radius: 17px; transition: transform .3s ease,box-shadow .3s ease; }
.popular-car-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(52,53,50,.1); }
.popular-car-image { position: relative; aspect-ratio: 1.5; overflow: hidden; display: grid; place-items: center; background: #fff; }
.popular-car-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.popular-car-card:hover .popular-car-image img { transform: scale(1.04); }
.popular-car-image > span { position: absolute; left: 12px; top: 12px; padding: 6px 9px; color: #fff; background: var(--lime); border-radius: 7px; font-size: .65rem; font-weight: 600; line-height: 1.2em; }
.popular-car-content { padding: 16px 17px 18px; border-top: 1px solid #e8e8e5; }
.popular-car-content small { color: var(--gray); font-size: .69rem; }
.popular-car-content h3 { margin: 5px 0 9px; overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.popular-car-content strong { display: block; margin-bottom: 14px; font: 700 1.25rem var(--font-heading); }
.popular-price-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.popular-price-row strong { margin-bottom: 0; }
.popular-estimated-price { flex: 0 0 auto; padding: 5px 8px; color: #047fcf; background: #eef8ff; border: 1px solid #9ed7fc; border-radius: 5px; font-size: .7rem; font-weight: 700; }
.popular-estimated-price:hover { color: #fff; background: #0499fd; border-color: #0499fd; }
.popular-meta-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.popular-meta-row .featured-car-meta { max-width: calc(100% - 49px); }
.popular-view-link { display: flex; justify-content: space-between; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e8e8e5; font-size: .78rem; font-weight: 600; }
.category-empty { width: 100%; padding: 45px 20px; color: var(--gray); background: var(--white); border: 1px dashed var(--light-gray); border-radius: 16px; text-align: center; }
.popular-swiper-arrow { position: absolute; z-index: 5; top: calc(50% - 24px); width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: #0499fd; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 8px 22px rgba(4,153,253,.28); transform: translateY(-50%); }
.popular-swiper-arrow span { font-size: 1.7rem; line-height: 1; transform: translateY(-1px); }
.popular-swiper-prev { left: 8px; }.popular-swiper-next { right: 8px; }
.popular-swiper-arrow.swiper-button-disabled { opacity: .35; cursor: default; }
.popular-swiper-pagination { bottom: 5px !important; }
.popular-swiper-pagination .swiper-pagination-bullet-active { width: 22px; background: #0499fd; border-radius: 999px; }

@media (max-width: 768px) {
    .hero-slider-arrow { width: 38px; height: 38px; opacity: .82; }
    .hero-slider-prev { left: -4px; }.hero-slider-next { right: -4px; }
    .popular-categories-heading { margin-bottom: 22px; }
    .category-tabs { margin-right: -16px; padding-right: 16px; }
    .category-panel { margin: 0; padding: 0; overflow: visible; }
    .category-panel .swiper-wrapper { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; transform: none !important; }
    .category-panel .swiper-slide { width: auto !important; margin: 0 !important; }
    .popular-swiper-arrow, .popular-swiper-pagination { display: none; }
}

@media (max-width: 390px) {
    .hero-badge { font-size: .7rem; padding: 7px 12px; }
    .hero-stats { display: grid; grid-template-columns: repeat(3,1fr); }
    .stat-divider { display: none; }
    .listing-search-bar .btn-primary { padding-inline: 14px !important; }
    .mobile-bottom-link { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .scroll-reveal, .animate-on-load { opacity: 1 !important; transform: none !important; }
}

/* 1440px homepage hero */
.hero {
    min-height: 730px;
    overflow: visible;
    display: block;
    background:
        radial-gradient(circle at 73% 42%, rgba(237,251,141,.13), transparent 22%),
        radial-gradient(circle at 88% 12%, rgba(245,245,245,.08), transparent 20%),
        linear-gradient(125deg, #343532 0%, #292a27 62%, #1f201e 100%) !important;
}
.hero::before, .hero::after, .hero-canvas-container, .hero-overlay, .hero-scroll-indicator { display: none !important; }
.hero-shell { position: relative; height: 100%; padding-top: 0; }
.hero-stage { min-height: 660px; display: grid; grid-template-columns: minmax(0,.86fr) minmax(560px,1.14fr); align-items: center; gap: clamp(28px,4vw,70px); padding: 55px 0 115px; }
.hero-copy { position: relative; z-index: 4; max-width: 610px; }
.hero .hero-badge { display: inline-flex; margin: 0 0 22px; padding: 8px 14px; color: var(--off-white); background: rgba(245,245,245,.07); border: 1px solid rgba(245,245,245,.15); box-shadow: none; }
.hero .badge-dot { background: var(--lime); box-shadow: 0 0 0 5px rgba(237,251,141,.12); }
.hero .hero-title { margin: 0 0 22px; color: var(--white); font-size: clamp(3.2rem,5.2vw,5.5rem); font-weight: 700; line-height: .94; letter-spacing: -.06em; }
.hero .hero-title span { color: var(--lime); }
.hero .hero-subtitle { max-width: 570px; margin: 0 0 31px; color: #c8cbc7; font-size: clamp(1rem,1.35vw,1.16rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btn { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 22px; border: 1px solid rgba(245,245,245,.22); border-radius: 11px; font-size: .9rem; font-weight: 600; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn-primary { color: var(--charcoal); background: var(--lime); border-color: var(--lime); }
.hero-btn-primary:hover { background: #ddec78; }
.hero-btn-secondary { color: var(--white); background: rgba(245,245,245,.05); }
.hero-btn-secondary:hover { border-color: var(--lime); }
.hero-visual { position: relative; min-height: 475px; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before { content: ''; position: absolute; z-index: -2; width: min(39vw,570px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(237,251,141,.16), rgba(237,251,141,.035) 51%, transparent 52%); }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid rgba(245,245,245,.14); border-radius: 50%; transform: rotate(-12deg); }
.hero-orbit-one { width: min(45vw,650px); height: 310px; }
.hero-orbit-two { width: min(37vw,520px); height: 410px; transform: rotate(52deg); border-color: rgba(237,251,141,.16); }
.hero-car-slider { position: relative; width: 100%; height: 465px; }
.hero-car-slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translate3d(45px,0,0) scale(.97); transition: opacity .55s ease, transform .55s ease, visibility .55s; }
.hero-car-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero-car-slide img { width: min(100%,780px); max-height: 455px; object-fit: contain; filter: drop-shadow(0 38px 30px rgba(0,0,0,.38)); }
.hero-slider-dots { position: absolute; z-index: 5; right: 3%; bottom: 11%; display: flex; gap: 7px; }
.hero-slider-dots button { width: 7px; height: 7px; padding: 0; border-radius: 20px; background: rgba(245,245,245,.35); transition: width .25s ease, background .25s ease; }
.hero-slider-dots button.is-active { width: 26px; background: var(--lime); }
.hero-slider-arrow { position: absolute; z-index: 7; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: rgba(52,53,50,.68); border: 1px solid rgba(245,245,245,.18); border-radius: 50%; opacity: 0; transform: translateY(-50%); transition: opacity .2s ease, background .2s ease; }
.hero-visual:hover .hero-slider-arrow, .hero-slider-arrow:focus-visible { opacity: 1; }
.hero-slider-prev { left: 1%; }.hero-slider-next { right: 1%; }
.hero-slider-arrow:hover { color: var(--charcoal); background: var(--lime); }
.hero-car-slider { touch-action: pan-y; cursor: grab; user-select: none; }
.hero-car-slider:active { cursor: grabbing; }
.hero .hero-search { position: absolute; z-index: 8; left: 56px; right: 56px; bottom: -53px; width: auto; min-height: 106px; margin: 0; padding: 13px; display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--light-gray); border-radius: 18px; box-shadow: 0 24px 55px rgba(25,26,24,.2); }
.hero-search-label { padding-left: 15px; display: flex; flex-direction: column; }
.hero-search-label span { color: var(--charcoal); font: 700 1rem var(--font-heading); }
.hero-search-label small { color: var(--gray); font-size: .72rem; }
.hero .search-bar { width: 100%; padding: 7px; display: flex; flex-direction: row; align-items: stretch; gap: 5px; background: var(--off-white); border: 0; border-radius: 12px; box-shadow: none; }
.hero .search-field { flex: 1 1 0 !important; min-width: 0; padding: 8px 13px; background: transparent; border: 0 !important; }
.hero .search-field label { color: var(--gray); }
.hero .search-field select,
.hero .search-field input { color: var(--charcoal); }
.hero .search-field input::placeholder { color: var(--gray); opacity: 1; }
.hero .search-divider { display: block !important; width: 1px; background: #babeba; }
.hero .search-btn { width: auto; min-width: 155px; min-height: 56px; margin: 0; color: var(--charcoal); background: var(--lime); border-radius: 10px; }
.featured-section { padding-top: calc(clamp(64px,8vw,104px) + 45px); }
.features-grid { grid-template-columns: repeat(3,1fr); }
.feature-icon-simple svg { width: 48px; height: 48px; }

@media (max-width: 1100px) {
    .hero-stage { grid-template-columns: .9fr 1.1fr; }
    .hero .hero-search { left: 32px; right: 32px; grid-template-columns: 155px 1fr; }
    .hero-search-label { padding-left: 8px; }
}

@media (max-width: 768px) {
    .navbar { overflow: visible; }
    .nav-links { top: var(--navbar-height); bottom: auto; height: calc(100dvh - var(--navbar-height)); padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--light-gray); }
    .mobile-overlay { top: var(--navbar-height); height: calc(100% - var(--navbar-height)); }
    .hero { min-height: auto; padding: 0 0 28px; overflow: hidden; background: linear-gradient(155deg,#343532 0%,#252623 100%) !important; }
    .hero-shell { display: flex; flex-direction: column; padding-inline: 16px; }
    .hero-stage { min-height: 0; display: flex; flex-direction: column; gap: 0; padding: 14px 0 0; }
    .hero-visual { order: 1; width: 100%; min-height: 285px; }
    .hero-car-slider { height: 280px; }
    .hero-car-slide img { width: 112%; max-width: none; max-height: 285px; }
    .hero-orbit-one { width: 105vw; height: 210px; }.hero-orbit-two { width: 82vw; height: 255px; }
    .hero-slider-dots { right: 50%; bottom: 3px; transform: translateX(50%); }
    .hero-copy { order: 2; width: 100%; padding: 27px 2px 30px; text-align: left; }
    .hero .hero-badge { margin-bottom: 17px; }
    .hero .hero-title { font-size: clamp(2.65rem,12vw,3.65rem); margin-bottom: 17px; }
    .hero .hero-subtitle { margin-bottom: 24px; font-size: .95rem; line-height: 1.62; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .hero-btn { min-width: 0; padding-inline: 14px; gap: 10px; }
    .hero .hero-search { order: 3; position: relative; inset: auto; width: 100%; min-height: 0; padding: 13px; display: block; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
    .hero-search-label { padding: 3px 4px 12px; }
    .hero .search-bar { flex-direction: column; padding: 9px; }
    .hero .search-field { width: 100%; padding: 10px 12px; background: var(--white); border: 1px solid var(--light-gray) !important; }
    .hero .search-divider { display: none !important; }
    .hero .search-btn { width: 100%; min-height: 52px; }
    .featured-section { padding-top: 56px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-slider-dots { right: auto; left: 50%; bottom: 7px; min-height: 25px; padding: 7px 10px; gap: 6px; transform: translateX(-50%); background: rgba(30,31,29,.58); border: 1px solid rgba(245,245,245,.12); border-radius: 999px; backdrop-filter: blur(8px); }
    .hero-slider-dots button { width: 6px; height: 6px; min-width: 6px; min-height: 6px; }
    .hero-slider-dots button.is-active { width: 20px; }
    .category-panel, .category-panel.is-active { display: none; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
    .category-panel.is-active { display: block; }
    .category-panel .swiper-wrapper { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; transform: none !important; }
    .category-panel .popular-car-card { min-width: 0; width: 100%; flex: none; flex-basis: auto; border-radius: 13px; transform: none !important; box-shadow: none !important; }
    .category-panel .popular-car-image { padding: 0px; }
    .category-panel .popular-car-content { padding: 11px; }
    .category-panel .popular-car-content h3 { margin-block: 4px 7px; font-size: .82rem; }
    .category-panel .popular-car-content strong { margin-bottom: 0; font-size: 1rem; }
    .category-panel .popular-car-content > div { padding-top: 0px; font-size: .7rem; }
    .category-panel .featured-quick-view { width: 30px; height: 30px; min-width: 30px; min-height: auto; border-radius: 7px; }
    .category-panel .featured-quick-view svg { width: 15px; height: 15px; }
    .hero-actions a.btn-outline, .hero-actions .hero-btn { min-height: auto; }
    .featured-modal-close{ top: 30px; right: 30px; width: 33px; height: 33px; border-radius: 7PX; font-size: 1.5rem; }
}

/* Modern Why Cararri */
.why-cararri-modern { background: var(--off-white) !important; }
.why-modern-heading { max-width: 760px; margin-bottom: 36px; }
.why-modern-heading .section-title { margin: 13px 0 10px; }
.why-modern-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.why-modern-card { overflow: hidden; background: #fff; border: 1px solid var(--light-gray); border-radius: 22px; transition: transform .3s ease,box-shadow .3s ease; }
.why-modern-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(52,53,50,.1); }
.why-modern-art { position: relative; height: 245px; overflow: hidden; background: var(--charcoal); }
.why-modern-art svg { stroke: #fff; }
.why-modern-copy { padding: 25px; }
.why-modern-copy > span { display: block; margin-bottom: 12px; color: var(--gray); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.why-modern-copy h3 { margin-bottom: 10px; color: var(--charcoal); font-size: 1.25rem; }
.why-modern-copy p { min-height: 70px; color: #686d67; font-size: .84rem; line-height: 1.65; }
.why-modern-copy a { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; color: var(--charcoal); border-top: 1px solid var(--light-gray); font-size: .8rem; font-weight: 600; }
.why-modern-copy a:hover { color: #778132; }
.why-art-score { display: flex; flex-direction: column; justify-content: center; padding: 33px; color: var(--white); }
.why-art-score span { color: var(--off-white); font-size: .74rem; text-transform: uppercase; letter-spacing: .11em; }
.why-art-score strong { color: var(--lime); font: 800 4.8rem/.95 var(--font-heading); }
.why-art-score i { width: 76%; height: 6px; margin-top: 10px; background: #0499fd; border-radius: 9px; }
.why-art-score i:nth-of-type(1) { width: 92%; background: var(--lime); }.why-art-score i:nth-of-type(2) { width: 70%; }.why-art-score i:nth-of-type(3) { width: 48%; }
.why-art-choice { display: grid; place-items: center; background: linear-gradient(145deg,#343532,#242522); }
.why-art-choice img { position: absolute; bottom: 3px; width: 108%; filter: drop-shadow(0 18px 13px rgba(0,0,0,.35)); }
.why-art-choice span { position: absolute; z-index: 2; padding: 6px 10px; color: #fff !important; background: var(--lime); border-radius: 999px; font-size: .65rem; font-weight: 600; }
.why-art-choice span:nth-of-type(1) { left: 16px; top: 18px; }.why-art-choice span:nth-of-type(2) { right: 18px; top: 42px; }.why-art-choice span:nth-of-type(3) { left: 42%; bottom: 13px; }
.why-art-journey { display: flex; align-items: center; justify-content: center; padding: 30px; }
.why-art-journey div { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; color: var(--charcoal); background: var(--lime); border-radius: 16px; }
.why-art-journey div:last-child { color: var(--white); }
.why-art-journey i { width: 38px; height: 1px; background: rgba(245,245,245,.35); }
@media (max-width: 900px) { .why-modern-grid { grid-template-columns: 1fr; }.why-modern-card { display: grid; grid-template-columns: .85fr 1.15fr; }.why-modern-art { height: 100%; min-height: 250px; } }
@media (max-width: 560px) { .why-modern-card { display: block; }.why-modern-art { height: 210px; min-height: 0; }.why-modern-copy p { min-height: 0; } }

/* ================================================================
   Cararri brand palette enforcement
   Keeps every public screen on navy, blue, white and light surfaces.
   ================================================================ */
:root { color-scheme: light; }

body,
.section:nth-of-type(odd),
.why-section,
.page-hero,
.auth-layout,
.why-cararri-modern { background-color: var(--light-color) !important; }

.navbar,
.mega-menu,
.car-card,
.feature-card,
.brand-card,
.budget-card,
.listing-section,
.listing-search-bar,
.quick-filter-chip,
.sort-select,
.view-btn,
.filter-toggle-btn,
.pagination .page-btn,
.filter-sidebar,
.filter-footer,
.detail-hero,
.compare-section,
.sell-section,
.auth-section,
.detail-gallery,
.seller-card,
.finance-calculator,
.overview-highlights,
.compare-slot,
.compare-table-wrapper,
.form-step,
.dash-panel,
.dashboard-sidebar,
.auth-form-panel,
.tabs-nav,
.comparison-card,
.why-modern-card,
.hero .hero-search { background-color: var(--white) !important; }

.hero,
.cta-section,
.footer,
.why-modern-art,
.why-art-choice { background: var(--black) !important; }

.hero-title,
.hero-subtitle,
.hero .hero-title,
.hero .hero-subtitle,
.hero-badge,
.cta-title,
.footer-heading,
.footer .logo-text { color: var(--white) !important; }

.logo-text,
.nav-link:hover,
.nav-link.active,
.mega-heading h2,
.section-title,
.page-hero-title,
.car-name,
.car-price,
.feature-title,
.brand-card,
.brand-logo,
.detail-title,
.seller-name,
.spec-group-title,
.auth-title,
.filter-title,
.filter-group-header,
.why-modern-copy h3,
.why-modern-copy a,
.comparison-vehicle h3 { color: var(--black) !important; }

.btn-nav-primary,
.btn-primary,
.search-btn,
.hero-btn-primary,
.car-btn,
.filter-apply-btn,
.detail-action-btn.primary,
.newsletter-btn,
.mobile-bottom-sell svg,
.step.active .step-num,
.step.completed .step-num,
.quick-filter-chip.active,
.view-btn.active,
.pagination .page-btn.active,
.filter-pill:has(input:checked) {
    color: var(--white) !important;
    background: var(--blue) !important;
    border-color: var(--blue) !important;
}

.btn-nav-primary:hover,
.btn-primary:hover,
.search-btn:hover,
.hero-btn-primary:hover,
.car-btn:hover,
.filter-apply-btn:hover { background: var(--color-accent-hover) !important; }

.section-badge {
    color: var(--white) !important;
    background: #0499fd !important;
    border-radius: 7px;
}

.page-hero-subtitle,
.breadcrumb,
.breadcrumb a,
.section-subtitle,
.feature-desc,
.car-specs,
.results-count,
.sort-dropdown label,
.filter-checkbox,
.filter-pill,
.why-modern-copy p { color: var(--color-text-secondary) !important; }

.car-card,
.feature-card,
.brand-card,
.budget-card,
.listing-search-bar,
.quick-filter-chip,
.sort-select,
.view-btn,
.filter-toggle-btn,
.pagination .page-btn,
.filter-sidebar,
.detail-gallery,
.seller-card,
.finance-calculator,
.overview-highlights,
.compare-slot,
.compare-table-wrapper,
.form-step,
.dash-panel,
.dashboard-sidebar,
.auth-form-panel,
.comparison-card,
.why-modern-card { border-color: var(--light-gray) !important; }

.car-card-image,
.quick-spec,
.compare-add-btn,
.upload-zone,
.comparison-vehicles,
.hero .search-bar,
.hero .search-field { background-color: var(--light-color) !important; }

.car-badge,
.dash-nav-item.active { background: var(--black) !important; color: var(--white) !important; }
.car-badge-new,
.car-badge-hot { background: var(--blue) !important; }

.footer-desc,
.footer-newsletter-text,
.footer-contact,
.footer-links a,
.footer-bottom,
.cta-subtitle { color: rgba(255,255,255,.7) !important; }
.social-link,
.newsletter-form { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.16) !important; }

.cararri-logo text,
.cararri-mark { fill: var(--black); }
.cararri-wheel { fill: var(--blue); stroke: var(--black); }

/*:focus-visible { outline-color: rgba(4,153,253,.55) !important; }*/
.search-bar:focus-within,
.filter-text-input:focus,
.filter-search-input input:focus,
.form-input:focus,
.form-textarea:focus,
.calc-input:focus { box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px !important; }

@media (max-width: 768px) {
    .hero { background: var(--black) !important; }
    .nav-links,
    .filter-header,
    .mobile-bottom-nav { background: rgba(255,255,255,.98) !important; }
    .mobile-bottom-sell svg { box-shadow: 0 7px 18px rgba(4,153,253,.3); }
}

/* Homepage hero: original road artwork on desktop/tablet; slider is mobile-only. */
.hero {
    min-height: 690px;
    overflow: hidden;
    background: url('../images/hero/hero-coastal-drive-original.png') center center / cover no-repeat !important;
}
.hero .hero-visual { display: none; }
.hero .hero-badge {
    color: #fff;
    background: rgba(16,26,36,.42);
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 8px 24px rgba(16,26,36,.12);
}
.hero .hero-title { color: #fff; text-shadow: 0 3px 18px rgba(0,0,0,.28); }
.hero .hero-title span { color: var(--lime); }
.hero-description { color: rgba(255,255,255,.92); text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-btn-primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.hero-btn-primary:hover { color: #fff; background: #202124; border-color: #202124; }
.hero-btn-secondary { color: #202124; background: rgba(255,255,255,.82); border-color: rgba(32,33,36,.18); }
.hero-btn-secondary:hover { color: #202124; background: #fff; border-color: var(--blue); }
.hero-stage {
    min-height: 690px;
    grid-template-columns: minmax(0, 620px) minmax(460px, 1fr);
    gap: clamp(24px, 3vw, 56px);
    padding: 42px 0;
}
.hero-copy { width: 100%; max-width: 620px; }
.hero .hero-title {
    max-width: 560px;
    margin-bottom: 24px;
    font-size: clamp(2.75rem, 4.2vw, 4.35rem);
    line-height: .98;
}
.hero .hero-search {
    position: static;
    inset: auto;
    width: 100%;
    min-height: 0;
    margin: 0 0 18px;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(0,0,40,.26);
}
.hero-search-tabs {
    min-height: 48px;
    display: flex;
    align-items: stretch;
    gap: 22px;
    padding: 0 18px;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}
.hero-search-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}
.hero-search-tab.is-active { color: var(--black); }
.hero-search-tab.is-active::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--blue);
    border-radius: 3px 3px 0 0;
}
.hero .search-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: var(--light-color) !important;
    border-radius: 0;
}
.hero .search-field {
    width: auto;
    min-width: 0;
    padding: 9px 12px;
    background: var(--white) !important;
    border: 1px solid var(--light-gray) !important;
    border-radius: 9px;
}
.hero .search-field label { margin-bottom: 3px; font-size: .64rem; }
.hero .search-field select,
.hero .search-field input { min-height: 24px; font-size: .82rem; }
.hero .search-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    color: var(--white) !important;
    background: var(--blue) !important;
    border-radius: 9px;
}
.hero .search-btn:hover { background: var(--color-accent-hover) !important; }
.hero-description {
    max-width: 560px;
    margin: 0 0 18px;
    color: rgba(255,255,255,.92);
    font-size: .9rem;
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-actions { gap: 10px; }
.hero-btn { min-height: 46px; padding: 10px 18px; }
.featured-section { padding-top: clamp(64px,8vw,104px); }

@media (max-width: 1100px) {
    .hero-stage { grid-template-columns: minmax(0, 540px) minmax(360px, 1fr); }
    .hero .hero-title { font-size: clamp(2.6rem, 4.5vw, 3.75rem); }
}

@media (max-width: 900px) {
    .hero-stage { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); }
}

@media (max-width: 767px) {
    .hero {
        background-image: url('../images/hero/hero-coastal-drive-mobile-v2.png') !important;
        background-repeat: no-repeat !important;
        background-color: #dfeaf1 !important;
    }
    .hero-stage { position: relative; z-index: 1; min-height: 0; display: flex; padding: 14px 0 30px; }
    .hero-copy { order: 1; padding: clamp(235px,24vw,305px) 0 20px; }
    .hero .hero-visual { display: none; }
    .hero .hero-badge {
        color: var(--blue) !important;
        background: rgba(255,255,255,.78);
        border-color: rgba(4,153,253,.28);
        box-shadow: 0 10px 28px rgba(32,33,36,.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .hero .hero-badge > span:not(.badge-dot) { color: var(--blue) !important; }
    .hero .hero-badge .badge-dot { background: var(--blue); box-shadow: 0 0 0 5px rgba(4,153,253,.13); }
    .hero .hero-title { color: #202124; text-shadow: none; }
    .hero .hero-title span { color: var(--blue); }
    .hero-description { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
    .hero .hero-title { margin-bottom: 20px; font-size: clamp(2.35rem, 10.8vw, 3.15rem); }
    .hero .hero-search { order: initial; margin-bottom: 16px; padding: 0; }
    .hero .search-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
    .hero .search-field { width: auto; padding: 9px 10px; }
    .hero-description { margin-bottom: 16px; font-size: .84rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
    .hero .search-bar { grid-template-columns: 1fr; }
    .hero .search-btn { grid-column: auto; }
}

/* Premium marketplace listings and vehicle detail experience */
.page-cars { background: #f6f8fb; }
.page-cars input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]),
.page-cars select,
.page-cars textarea {
    color: #202124 !important;
    background-color: #fff !important;
    caret-color: #202124;
}
.page-cars input::placeholder,
.page-cars textarea::placeholder {
    color: #68758b !important;
    opacity: 1;
}
.page-cars option { color: #202124; background: #fff; }
.page-cars .page-hero { padding-block: 30px 20px; background: #fff !important; border-bottom: 1px solid #e3e8ef; }
.page-cars .page-hero-title { font-size: clamp(2rem, 4vw, 3.25rem); }
.page-cars .listing-seo-section { color: #202124; }
.page-cars .listing-seo-section h2,
.page-cars .listing-seo-section h3 { color: #202124; }
.page-cars .listing-seo-section p { color: #526079; }
.page-cars .listing-seo-section a { color: #047fcf; }
.popular-search-tiles { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; margin-top: 14px; }
.popular-search-tiles a { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; color: #202124 !important; background: #fff; border: 1px solid #dce3ea; border-radius: 10px; font-weight: 650; text-decoration: none; box-shadow: 0 6px 18px rgba(32,33,36,.04); }
.popular-search-tiles a:hover { color: #047fcf !important; border-color: #9ed7fc; background: #f5fbff; }
.listing-faq-section { max-width: 920px; }
.listing-faq-header { margin-bottom: 18px; text-align: center; }
.listing-faq-header span { display: inline-flex; margin-bottom: 9px; padding: 6px 10px; color: #fff; background: #0499fd; border-radius: 7px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.listing-faq-header h2 { margin: 0; font-size: clamp(1.75rem,3vw,2.35rem); }
.listing-faq-list { display: grid; gap: 10px; }
.listing-faq-item { background: #fff; border: 1px solid #dce3ea; border-radius: 10px; box-shadow: 0 8px 22px rgba(32,33,36,.045); }
.listing-faq-item summary { position: relative; padding: 17px 48px 17px 18px; color: #202124; cursor: pointer; font-weight: 750; list-style: none; }
.listing-faq-item summary::-webkit-details-marker { display: none; }
.listing-faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; width: 24px; height: 24px; display: grid; place-items: center; color: #0499fd; background: #eef8ff; border-radius: 50%; transform: translateY(-50%); font-weight: 800; }
.listing-faq-item[open] summary { border-bottom: 1px solid #e6ebf0; }
.listing-faq-item[open] summary::after { content: '-'; }
.listing-faq-item p { margin: 0; padding: 15px 18px 18px; line-height: 1.7; }
.listing-discovery { position: relative; z-index: 3; padding: 18px 0 14px; background: #fff; border-bottom: 1px solid #e3e8ef; }
.listing-search-bar { max-width: none; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 8px; border: 1px solid #d4dce6 !important; border-radius: 12px; box-shadow: 0 8px 24px rgba(32,33,36,.06); }
.listing-search-bar input { min-width: 0; height: 48px; padding-inline: 16px; border: 0; background: transparent; }
.listing-search-bar .btn-primary { min-width: 132px; border-radius: 8px; background: #0499fd !important; }
.quick-filters-row { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 12px; padding: 2px 0 7px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-snap-type: x proximity; }
.quick-filter-chip { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; padding: 8px 13px; color: #333a45; background: #fff; border: 1px solid #d9e0e8; border-radius: 7px; font-size: .78rem; font-weight: 650; scroll-snap-align: start; }
.quick-filter-chip:hover { color: #202124; border-color: #0499fd; background: #f2faff; }
.quick-filter-chip.active { color: #fff !important; border-color: #0499fd !important; background: #0499fd !important; }
.listing-section { padding: 26px 0 70px; background: #f6f8fb; }
.listing-layout { grid-template-columns: 286px minmax(0,1fr); gap: 24px; align-items: start; }
.listing-results { min-width: 0; }
.results-topbar { min-height: 62px; margin-bottom: 16px; padding: 10px 12px 10px 18px; background: #fff; border: 1px solid #e0e6ed; border-radius: 12px; box-shadow: 0 5px 18px rgba(32,33,36,.04); }
.results-count { color: #555f6c !important; font-size: .88rem; }
.results-count strong { color: #202124; font-size: 1.05rem; }
.sort-select, .view-btn, .filter-toggle-btn { border-radius: 7px; }
.view-toggle { flex-shrink: 0; }
.view-btn.active { color: #fff !important; background: #0499fd !important; border-color: #0499fd !important; }

.filter-sidebar { position: sticky; top: calc(var(--navbar-height) + 14px); width: 286px; max-height: calc(100vh - var(--navbar-height) - 28px); overflow: hidden; background: #fff !important; border: 1px solid #dfe5ec !important; border-radius: 14px; box-shadow: 0 10px 30px rgba(32,33,36,.07); }
.filter-header { min-height: 62px; padding: 16px 18px; background: #202124; border-bottom: 0; }
.filter-title { color: #fff !important; font-size: 1rem; }
.filter-title svg { color: #0499fd; }
.filter-reset-btn { color: #7dccff; font-weight: 650; }
.filter-close-btn { color: #fff; }
.filter-body { max-height: calc(100vh - var(--navbar-height) - 154px); padding: 0 16px; overflow-y: auto; scrollbar-width: thin; }
.filter-group { border-bottom-color: #e7ebf0; }
.filter-group-header { min-height: 52px; color: #171b23; font-weight: 700; }
.filter-group-header:hover { color: #0499fd; }
.filter-group-body { padding-bottom: 17px; }
.filter-text-input, .range-display { border-color: #d9e0e8; border-radius: 7px; }
.filter-checkbox { min-height: 36px; border-radius: 7px; }
.filter-checkbox:hover { background: #f2faff; }
.filter-pill span { border-radius: 7px; }
.filter-pill input:checked + span { color: #fff; border-color: #0499fd; background: #0499fd; }
.range-fill { background: #0499fd; }
.filter-footer { position: sticky; bottom: 0; z-index: 3; padding: 13px 16px; background: #fff; border-top: 1px solid #e3e8ef; }
.filter-apply-btn { min-height: 44px; border-radius: 7px; }

.car-grid-listing { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.car-grid-listing .featured-car-card { min-width: 0; }
.page-cars .car-grid-listing .featured-car-card { border-radius: 12px; box-shadow: 0 6px 18px rgba(32,33,36,.05); }
.page-cars .car-grid-listing .featured-car-image { aspect-ratio: 1.5; }
.page-cars .car-grid-listing .featured-car-image img { width: 100%; height: 100%; object-fit: contain; }
.page-cars .car-grid-listing .featured-car-image.has-real-image img { object-fit: cover; }
.page-cars .car-grid-listing .content-car-area { padding: 14px; }
.page-cars .car-grid-listing .featured-price-row { min-height: 36px; }
.page-cars .car-grid-listing .featured-car-price { font-size: 1.15rem; }
.page-cars .car-grid-listing .featured-car-title { font-size: .92rem; }
.page-cars .car-grid-listing .featured-detail-btn { min-height: 38px; }
.car-card { display: grid; grid-template-columns: minmax(260px,34%) minmax(0,1fr); min-height: 272px; cursor: pointer; border: 1px solid #dfe5ec !important; border-radius: 14px !important; box-shadow: 0 7px 22px rgba(32,33,36,.055); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.car-card:hover { border-color: #9bd7ff !important; box-shadow: 0 16px 38px rgba(32,33,36,.12); transform: translateY(-4px); }
.car-card-image { width: 100%; height: 100%; min-height: 272px; aspect-ratio: auto; background: #edf2f7 !important; }
.car-card-image img { transition: transform .45s cubic-bezier(.22,1,.36,1); }
.car-card:hover .car-card-image img { transform: scale(1.035); }
.car-badge, .car-listed-ago { border-radius: 7px; }
.car-badge { color: #fff !important; background: #202124 !important; }
.car-badge-hot, .car-badge-new { background: #0499fd !important; }
.car-favorite { width: 38px; height: 38px; color: #0499fd; border: 1px solid rgba(4,153,253,.25); border-radius: 7px; }
.car-favorite:hover, .car-favorite.active { color: #fff; background: #0499fd; transform: scale(1.05); }
.car-card-body { min-width: 0; padding: 20px 22px; }
.car-card-eyebrow { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #687381; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.car-card-header { gap: 8px; }
.car-name { display: -webkit-box; min-height: 2.7em; overflow: hidden; color: #171b23 !important; font-size: 1rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.car-price { color: #202124 !important; font-size: 1.7rem; letter-spacing: -.025em; }
.car-price-support { min-height: 24px; display: flex; align-items: center; gap: 10px; margin-top: 4px; color: #65707e; font-size: .76rem; }
.car-price-support strong { color: #087f5b; font-size: .73rem; }
.car-specs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0f4; }
.car-spec { min-width: 0; overflow: hidden; color: #5e6875; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.car-spec:last-child { flex-basis: 100%; }
.car-spec svg { color: #0499fd; }
.car-card-actions { display: flex; gap: 8px; padding-top: 13px; }
.car-card-actions .car-btn { min-height: 41px; flex: 1; justify-content: center; color: #fff !important; background: #0499fd !important; border-radius: 7px; }
.car-card-actions .car-btn:hover { background: #202124 !important; }
.car-btn-contact { width: 41px; height: 41px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; color: #0499fd; background: #f2faff; border: 1px solid #bfe5ff; border-radius: 7px; }
.car-btn-contact:hover { color: #fff; background: #202124; border-color: #202124; }
.car-seller-line { display: flex; align-items: center; gap: 8px; margin-top: 11px; color: #3e4753; font-size: .76rem; font-weight: 650; }
.car-seller-line small { padding: 3px 6px; color: #67717e; background: #f0f3f6; border-radius: 4px; font-size: .62rem; }
.car-grid.list-view { gap: 14px; }
.car-grid.list-view .featured-car-card { display: grid;  grid-template-columns: 33.333% 66.666%; }
.car-grid.list-view .featured-car-image { height: 100%; aspect-ratio: 3/2.2; }
.car-grid.list-view .featured-car-image img { object-fit: cover; }
.car-grid.list-view .content-car-area { margin: auto 0; }
.car-grid.list-view .content-car-area { min-width: 0; padding: 14px 16px; }
.car-grid.list-view .car-card { grid-template-columns: 190px minmax(0,1fr); min-height: 178px; }
.car-grid.list-view .car-card-image { height: 100%; min-height: 178px; aspect-ratio: auto; }
.car-grid.list-view .car-card-body { padding: 16px 18px; }

body.filters-open { overflow: hidden; touch-action: none; }
@media (max-width: 1180px) {
    .listing-layout { grid-template-columns: 270px minmax(0,1fr); gap: 18px; }
    .filter-sidebar { width: 270px; }
    .car-grid-listing { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .listing-layout { display: block; }
    .filter-sidebar { position: fixed !important; z-index: 2200; inset: 0 !important; width: 100% !important; max-width: none; height: 100dvh; max-height: none; border: 0 !important; border-radius: 0 !important; box-shadow: none; visibility: hidden; transform: translate3d(-100%,0,0) !important; transition: transform .28s cubic-bezier(.22,1,.36,1), visibility 0s linear .28s; }
    .filter-sidebar.open { visibility: visible; transform: translate3d(0,0,0) !important; transition: transform .28s cubic-bezier(.22,1,.36,1), visibility 0s; }
    .filter-header { position: sticky; top: 0; z-index: 5; border-radius: 0; }
    .filter-sidebar form { height: calc(100dvh - 62px); display: grid; grid-template-rows: minmax(0,1fr) auto; }
    .filter-body { max-height: none; padding-bottom: 20px; }
    .filter-footer { padding-bottom: calc(13px + env(safe-area-inset-bottom)); }
    .filter-close-btn, .filter-toggle-btn { display: inline-flex; }
    .filter-overlay { position: fixed; z-index: 2190; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(32,33,36,.58); backdrop-filter: blur(3px); transition: opacity .25s ease, visibility 0s linear .25s; }
    .filter-overlay.active { visibility: visible; opacity: 1; transition: opacity .25s ease; }
    .results-topbar { position: sticky; top: calc(var(--navbar-height) + 6px); z-index: 20; }
}
@media (max-width: 640px) {
    .page-cars .page-hero { padding-block: 20px 14px; }
    .page-cars .page-hero-subtitle { display: none; }
    .listing-discovery { padding-top: 12px; }
    .listing-search-bar { grid-template-columns: 1fr; }
    .listing-search-bar .btn-primary { width: 100%; min-height: 44px !important; }
    .quick-filter-divider { display: none; }
    .listing-section { padding-top: 14px; }
    .results-topbar { min-height: 0; align-items: stretch; padding: 10px; }
    .results-info, .results-controls { align-items: center; }
    .results-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; }
    .view-btn { min-width: 62px; justify-content: center; padding-inline: 9px; }
    .sort-dropdown label { display: none; }
    .car-grid-listing { grid-template-columns: 1fr; gap: 14px; }
    .car-card, .car-grid.list-view .car-card { display: block; min-height: 0; }
    .car-card-image, .car-grid.list-view .car-card-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
    .car-card-body { min-width: 0; padding: 16px; }
    .car-name { min-height: 0; font-size: 1rem; }
    .car-price { font-size: 1.45rem; }
    .car-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
    .car-spec:last-child { grid-column: 1 / -1; }
    .car-card-actions { padding-top: 10px; }
    .car-card-actions .car-btn { min-height: 38px; font-size: .72rem; }
    .car-btn-contact { width: 38px; height: 38px; }
    .car-listed-ago { display: none; }
    .car-badge { left: 8px; top: 8px; padding: 5px 7px; font-size: .58rem; }
    .car-favorite { right: 8px; top: 8px; width: 34px; height: 34px; }
}
@media (max-width: 420px) {
    .results-topbar { gap: 8px; }
    .sort-select { max-width: 150px; }
}

/* Cars results filter: isolated desktop rail + responsive drawer */
.page-cars .filter-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #d9e0e8 !important;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(32,33,36,.055);
}
.page-cars .filter-sidebar > form {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}
.page-cars .filter-header {
    min-height: 60px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    color: #171b23;
    background: #fff;
    border-bottom: 1px solid #e3e8ef;
}
.page-cars .filter-title { color: #202124 !important; font-size: 1rem; }
.page-cars .filter-title svg { color: #0499fd; }
.page-cars .filter-reset-btn { margin-left: auto; color: #047fcf; font-size: .75rem; }
.page-cars .filter-reset-btn:hover { color: #202124; opacity: 1; }
.page-cars .filter-body {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #b9c3ce transparent;
    scrollbar-width: thin;
}
.page-cars .filter-group { border-bottom: 1px solid #e7ebf0; }
.page-cars .filter-group-header {
    min-height: 54px;
    padding: 14px 18px;
    color: #202630;
    background: #fff;
    font-size: .84rem;
    font-weight: 700;
}
.page-cars .filter-group-header:hover { color: #202124; background: #f5faff; }
.page-cars .filter-chevron { color: #6d7784; }
.page-cars .filter-group-body {
    max-height: 0;
    padding: 0 18px !important;
    overflow: hidden;
}
.page-cars .filter-group.open .filter-group-body {
    max-height: 430px;
    padding: 0 18px 18px !important;
    overflow: visible;
}
.page-cars .filter-checkbox-list { max-height: 190px; padding-right: 3px; overflow-y: auto; }
.page-cars .filter-checkbox { min-height: 35px; padding: 6px 7px; color: #4f5966; }
.page-cars .filter-checkbox .checkmark { border-color: #aeb8c3; }
.page-cars .filter-checkbox input:checked + .checkmark { background: #0499fd; border-color: #0499fd; }
.page-cars .filter-text-input {
    min-height: 40px;
    color: #202630;
    background: #fff;
    border: 1px solid #cfd7e1;
    border-radius: 7px;
}
.page-cars .filter-text-input:focus { border-color: #0499fd; box-shadow: 0 0 0 3px rgba(4,153,253,.12); }
.page-cars .filter-pills { gap: 7px; }
.page-cars .filter-pill span { padding: 7px 11px; color: #4f5966; background: #fff; border-color: #cfd7e1; border-radius: 7px; }
.page-cars .filter-pill:hover span { color: #0499fd; border-color: #0499fd; }
.page-cars .filter-pill input:checked + span { color: #fff !important; background: #0499fd !important; border-color: #0499fd !important; }
.page-cars .range-display { margin-bottom: 12px; padding: 9px 10px; color: #202124; background: #f5f8fb; border: 1px solid #e0e6ed; border-radius: 7px; }
.page-cars .range-input::-webkit-slider-thumb { background: #0499fd; box-shadow: 0 2px 7px rgba(4,153,253,.28); }
.page-cars .range-fill { background: #0499fd; }
.page-cars .filter-footer {
    display: block;
    flex: 0 0 auto;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #dce3ea;
    box-shadow: 0 -6px 18px rgba(32,33,36,.045);
}
.page-cars .filter-apply-btn { width: 100%; min-height: 46px; color: #fff !important; background: #0499fd !important; border-radius: 7px; }
.page-cars .filter-apply-btn:hover { background: #202124 !important; }
.page-cars .filter-close-btn { margin-left: 0; color: #202124; }

@media (max-width: 900px) {
    .page-cars .filter-sidebar {
        inset: 0 auto 0 0 !important;
        width: min(430px,100%) !important;
        height: 100dvh;
        border-radius: 0;
        box-shadow: 20px 0 55px rgba(32,33,36,.2);
    }
    .page-cars .filter-sidebar > form {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .page-cars .filter-header { min-height: 64px; padding-top: calc(15px + env(safe-area-inset-top)); }
    .page-cars .filter-body { flex: 1 1 auto; }
    .page-cars .filter-footer {
        display: block;
        flex: 0 0 auto;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #dce3ea;
        box-shadow: 0 -8px 20px rgba(32,33,36,.06);
    }
    .page-cars .filter-apply-btn { width: 100%; min-height: 48px; color: #fff !important; background: #0499fd !important; border-radius: 7px; }
    .page-cars .filter-apply-btn:hover { background: #202124 !important; }
}
@media (max-width: 520px) {
    .page-cars .filter-sidebar { width: 100% !important; }
    .page-cars .filter-group-header { min-height: 56px; }
    .page-cars .filter-group.open .filter-group-body { max-height: 52vh; }
}

/* Two-up vehicle cards on mobile everywhere except the homepage. */
@media (max-width: 640px) {
    .page-cars .car-grid-listing,
    .page-car-detail .car-grid,
    .page-dealer .car-grid-listing {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .page-cars .featured-car-card,
    .page-car-detail .featured-car-card,
    .page-dealer .featured-car-card {
        width: auto;
        min-width: 0;
        max-width: none;
        flex: initial;
        border-radius: 10px;
    }

    .page-cars .featured-car-image,
    .page-car-detail .featured-car-image,
    .page-dealer .featured-car-image {
        aspect-ratio: 4 / 3;
        padding: 12px 4px 7px;
    }

    .page-cars .featured-car-image.has-real-image,
    .page-car-detail .featured-car-image.has-real-image,
    .page-dealer .featured-car-image.has-real-image { padding: 0; }

    .page-cars .content-car-area,
    .page-car-detail .content-car-area,
    .page-dealer .content-car-area { padding: 10px; }

    .page-cars .featured-car-title,
    .page-car-detail .featured-car-title,
    .page-dealer .featured-car-title {
        display: -webkit-box;
        min-height: 2.55em;
        font-size: .78rem;
        line-height: 1.28;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .page-cars .featured-price-row,
    .page-car-detail .featured-price-row,
    .page-dealer .featured-price-row { gap: 5px; }

    .page-cars .featured-car-price,
    .page-car-detail .featured-car-price,
    .page-dealer .featured-car-price { font-size: .95rem; }

    .page-cars .featured-detail-btn,
    .page-car-detail .featured-detail-btn,
    .page-dealer .featured-detail-btn {
        min-height: 34px;
        padding: 7px 8px;
        border-radius: 7px;
        font-size: .68rem;
    }

    .page-cars .featured-tag,
    .page-car-detail .featured-tag,
    .page-dealer .featured-tag {
        top: 7px;
        left: 7px;
        gap: 3px;
        padding: 4px 6px;
        font-size: .56rem;
        border-radius: 7px;
    }

    .page-cars .featured-tag svg,
    .page-car-detail .featured-tag svg,
    .page-dealer .featured-tag svg { width: 10px; height: 10px; }

    .page-cars .featured-wishlist,
    .page-car-detail .featured-wishlist,
    .page-dealer .featured-wishlist {
        top: 7px;
        right: 7px;
        width: 30px;
        height: 30px;
        border-radius: 7px;
    }

    .page-cars .featured-wishlist svg,
    .page-car-detail .featured-wishlist svg,
    .page-dealer .featured-wishlist svg { width: 16px; height: 16px; }

    .page-cars .featured-listed,
    .page-car-detail .featured-listed,
    .page-dealer .featured-listed { display: none; }

    .page-cars .featured-quick-view,
    .page-car-detail .featured-quick-view,
    .page-dealer .featured-quick-view {
        width: 30px;
        min-width: 30px;
        height: 30px;
        border-radius: 7px;
    }

    /* Cars page only: mobile list view is one horizontal card per row. */
    .page-cars .car-grid-listing.list-view {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .page-cars .car-grid-listing.list-view .featured-car-card {
        display: grid;
        grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
        min-height: 168px;
    }

    .page-cars .car-grid-listing.list-view .featured-car-image {
        width: 100%;
        height: 100%;
        min-height: 168px;
        aspect-ratio: auto;
        padding: 0;
    }

    .page-cars .car-grid-listing.list-view .featured-car-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .page-cars .car-grid-listing.list-view .content-car-area {
        min-width: 0;
        margin: auto 0;
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .page-cars .car-grid-listing,
    .page-car-detail .car-grid,
    .page-dealer .car-grid-listing { gap: 7px !important; }

    .page-cars .content-car-area,
    .page-car-detail .content-car-area,
    .page-dealer .content-car-area { padding: 8px; }

    .page-cars .featured-car-price,
    .page-car-detail .featured-car-price,
    .page-dealer .featured-car-price { font-size: .86rem; }
}

/* Compare page — Carrari home-page visual language. */
.page-compare .page-hero-sm {
    background: linear-gradient(135deg, #f4faff 0%, #fff 58%, #eef7ff 100%);
    border-bottom: 1px solid #dcecf8;
}
.page-compare .page-hero-title { color: #202124; }
.page-compare .gradient-text { color: #0499fd; background: none; -webkit-text-fill-color: currentColor; }
.page-compare .compare-section { padding: 28px 0 70px; background: #f7f9fc; }
.page-compare .compare-header {
    top: var(--navbar-height);
    padding: 14px;
    margin-bottom: 22px;
    background: rgba(255,255,255,.96);
    border: 1px solid #dfe6ee;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(32,33,36,.07);
    backdrop-filter: blur(14px);
}
.page-compare .compare-slots { gap: 14px; }
.page-compare .compare-slot {
    min-width: 0;
    padding: 0 0 15px;
    overflow: hidden;
    text-align: left;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    box-shadow: 0 7px 22px rgba(32,33,36,.055);
}
.page-compare .compare-slot:hover { border-color: rgba(4,153,253,.55); box-shadow: 0 12px 28px rgba(4,153,253,.11); }
.page-compare .compare-slot-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 13px;
    overflow: hidden;
    background: #edf3f8;
}
.page-compare .compare-slot-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-compare .compare-slot-name {
    min-height: 2.5em;
    margin: 0;
    padding: 0 14px;
    display: -webkit-box;
    overflow: hidden;
    color: #171b23;
    font-size: .9rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.page-compare .compare-slot-price { display: block; padding: 7px 14px 0; color: #202124; font-size: 1.15rem; }
.page-compare .compare-remove {
    z-index: 2;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    color: #202124;
    background: rgba(255,255,255,.94);
    border: 1px solid #dce3ea;
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(0,0,0,.09);
}
.page-compare .compare-slot.empty {
    min-height: 238px;
    padding: 16px;
    background: linear-gradient(145deg,#fff,#f2f8fd);
    border: 1.5px dashed #9ecff0;
}
.page-compare .compare-add-btn { width: 100%; height: 100%; justify-content: center; color: #047fcf; font-weight: 700; }
.page-compare .compare-add-btn svg { padding: 9px; box-sizing: content-box; color: #fff; background: #0499fd; border-radius: 9px; }
.page-compare .compare-add-btn:hover { color: #202124; }
.page-compare .compare-table-wrapper {
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(32,33,36,.06);
}
.page-compare .compare-table th,
.page-compare .compare-table td { padding: 15px 18px; color: #3e4752; border-color: #e6ebf0; }
.page-compare .compare-table thead th { color: #202124; background: #f2f8fd; }
.page-compare .compare-table tbody tr:not(.compare-section-row):hover td { background: #f8fcff; }
.page-compare .compare-label-col { color: #606b78 !important; }
.page-compare .compare-section-row td { color: #fff; background: #202124; letter-spacing: .055em; }
.page-compare #compareEmptyState {
    opacity: 1 !important;
    margin-top: 20px;
    color: #697481;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
}
.page-compare #compareEmptyState h3 { color: #202124; }
.page-compare .compare-search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 24px;
    background: rgba(32,33,36,.68);
    backdrop-filter: blur(6px);
}
.gallery-main-image img{
    aspect-ratio: 3/2.1 !important;
    height: auto !important;
    object-fit: cover !important;
}
.page-compare .compare-search-dialog {
    position: relative;
    width: min(600px,100%);
    margin: 10vh auto 0;
    padding: 24px;
    color: #202630;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0,0,40,.3);
}
.page-compare .compare-search-dialog h3 { color: #202124; }
.page-compare .compare-search-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; color: #202124; background: #edf6fd; border: 0; border-radius: 7px; font-size: 1.4rem; cursor: pointer; }
.page-compare #compareSearchInput { width: 100%; min-height: 48px; margin-bottom: 14px; padding: 11px 14px; color: #202630; background: #fff; border: 1px solid #cbd5df; border-radius: 7px; font-size: .9rem; }
.page-compare #compareSearchInput:focus { border-color: #0499fd; outline: 0; box-shadow: 0 0 0 3px rgba(4,153,253,.13); }

/* Blog pages */
.page-blog,
.page-blog-detail,
.page-blog .section,
.page-blog-detail .section { color: #202124; }
.page-blog .page-hero-title,
.page-blog-detail h1,
.page-blog-detail h3,
.page-blog-detail h4,
.page-blog article h3,
.page-blog .blog-featured-card h3,
.page-blog aside h4,
.page-blog-detail article h1,
.page-blog-detail article h2,
.page-blog-detail article h3,
.page-blog-detail article h4 { color: #202124 !important; opacity: 1 !important; }
.page-blog article,
.page-blog .blog-featured-card,
.page-blog aside > div:first-child,
.page-blog-detail article,
.page-blog-detail header,
.page-blog-detail a[style*="border-radius:12px"] { color: #202124 !important; }
.page-blog article p,
.page-blog .blog-featured-card p,
.page-blog article div,
.page-blog .blog-featured-card div,
.page-blog-detail header span,
.page-blog-detail .blog-content,
.page-blog-detail .blog-content p,
.page-blog-detail .blog-content li,
.page-blog-detail .blog-content div,
.page-blog-detail .blog-content span,
.page-blog-detail div[style*="border-left"],
.page-blog-detail a[style*="border-radius:12px"] span { color: #526079 !important; opacity: 1 !important; }
.page-blog input[type="text"] {
    color: #202124 !important;
    background: #fff !important;
}
.page-blog input[type="text"]::placeholder { color: #68758b !important; opacity: 1; }
.page-blog article,
.page-blog .blog-featured-card,
.page-blog aside > div:first-child,
.page-blog-detail a[style*="border-radius:12px"] {
    border-color: #dce3ea !important;
    box-shadow: 0 8px 22px rgba(32,33,36,.045);
}

@media (max-width: 768px) {
    .featured-car-title{ white-space:nowrap !important; min-height: auto !important; margin: 4px 0; }
    .page-compare .compare-section { padding-top: 16px; }
    .page-compare .compare-header { position: static; padding: 10px; overflow-x: auto; }
    .page-compare .compare-slots { width: max-content; min-width: 100%; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 9px; }
    .page-compare .compare-slot { width: min(44vw,190px); }
    .page-compare .compare-slot.empty { min-height: 188px; }
    .page-compare .compare-slot-name { padding-inline: 9px; font-size: .75rem; }
    .page-compare .compare-slot-price { padding: 6px 9px 0; font-size: .94rem; }
    .page-compare .compare-table-wrapper { margin: 0; padding: 0; border-radius: 10px; }
/*    .page-compare .compare-table { min-width: 680px; }*/
    .page-compare .compare-table th{ white-space: nowrap; }
    .page-compare .compare-table th,
    .page-compare .compare-table td { padding: 12px 13px; font-size: .75rem; }
    .page-compare .compare-search-modal { padding: 12px; }
    .page-compare .compare-search-dialog { margin-top: 8vh; padding: 20px 16px; }
}
