/* =========================================================
   CARMAX PREMIUM — Dot Auto Style
   resources/css/carmax_premium.css
   Clean / Minimal / Modern / Fully Responsive
   ========================================================= */

/* ---------------------------------------------------------
   COLOR SYSTEM — CarMax Brand
   --------------------------------------------------------- */

:root {
    --cm-accent:        #EE1C25;
    --cm-accent-dark:   #000000;
    --cm-accent-deep:   #000000;
    --cm-accent-tint:   rgba(238, 28, 37, 0.06);
    --cm-accent-soft:   rgba(238, 28, 37, 0.10); 
    --cm-rust:          #000000;

    --cm-blue:          #004C97;
    --cm-blue-dark:     #003971;

    --cm-ink:           #1A1A1A;
    --cm-ink-soft:      #6B7076;
    --cm-soft:          #667085;
    --cm-line:          #E5E7EB;
    --cm-line-soft:     #F0F1F3;
    --cm-steel:         #F7F7F9;
    --cm-white:         #FFFFFF;

    --cm-bg:            #FFFFFF;
    --cm-bg-alt:        #F5F5F5;
    --cm-bg-dark:       #1A1A1A;
}

/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */

body {
    background: #FFFFFF;
    color: var(--cm-ink);
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Responsive guard: page can never be wider than the screen */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html, body {
    max-width: 100%;
    overflow-x: clip;
}
img, video, iframe {
    max-width: 100%;
}

a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.display {
    font-family: 'Poppins', system-ui, sans-serif;
    letter-spacing: -0.015em;
}

.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }

section h2 {
    letter-spacing: -0.015em;
    color: var(--cm-ink);
}

section h2 + p {
    color: var(--cm-ink-soft);
}

.bg-steel {
    background:
        radial-gradient(circle at 80% 35%, rgba(238, 28, 37, 0.04), transparent 35%),
        linear-gradient(180deg, #FAFAFA 0%, #F5F5F5 100%);
}

/* ---------------------------------------------------------
   ACCENT UTILITIES
   --------------------------------------------------------- */

.bg-accent        { background-color: var(--cm-accent); }
.text-accent      { color: var(--cm-accent); }
.text-accent-dark { color: var(--cm-accent-dark); }
.border-l-accent  { border-left-color: var(--cm-accent); }

/* =========================================================
   HEADER — Auto Motor Group Style
   ========================================================= */

/* Top bar (desktop only) */
.header-topbar {
    background: #1A1A1A;
    color: #FFFFFF;
    height: 40px;
    display: flex;
    align-items: center;
}

/* Mobile black bar */
.header-mobile-bar {
    background: #1A1A1A;
    color: #FFFFFF;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header-mobile-bar a {
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

.header-mobile-bar a:hover {
    color: var(--cm-accent);
}

.header-mobile-bar button {
    color: #FFFFFF;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.header-mobile-bar button:hover {
    color: var(--cm-accent);
}

/* Mobile logo bar (white, below black bar) */
.header-mobile-logo {
    background: #FFFFFF;
    padding: 12px 0;
    border-bottom: 1px solid var(--cm-line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-mobile-logo img {
    height: 48px !important;
    width: auto !important;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    border-top: 1px solid var(--cm-line);
}

.mobile-menu.is-open {
    max-height: 500px;
}

.mobile-menu nav a {
    display: block;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--cm-ink);
    border-bottom: 1px solid var(--cm-line-soft);
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu nav a:last-child {
    border-bottom: 0;
}

.mobile-menu nav a:hover {
    color: var(--cm-accent);
    background: #FAFAFA;
}

/* Header scrolled shadow */
.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Desktop logo height */
.site-header img.logo-desktop {
    height: 64px;
    width: auto;
}

/* =========================================================
   HERO SLIDER — Full width
   ========================================================= */

.hero-slider-section {
    position: relative;
    width: 100%;
    background: #000;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 380px;          /* ← Desktop */
    margin: 0;
    overflow: hidden;
    z-index: 1;
    background: #000;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.1s cubic-bezier(0.83, 0, 0.17, 1);
    will-change: transform;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
    transform: scale(1.08) translate3d(0, 0, 0);
    transition: transform 9s ease-out;
    will-change: transform;
    backface-visibility: hidden;
}

/* Ken Burns effect */
.hero-slide.is-active .hero-slide-image {
    transform: scale(1.18) translate3d(-1.5%, -1%, 0);
}

.hero-slide:nth-child(even).is-active .hero-slide-image {
    transform: scale(1.18) translate3d(1.5%, -1%, 0);
}

/* Slider Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.hero-slider-arrow:hover {
    background: var(--cm-accent);
    border-color: var(--cm-accent);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 28px rgba(238, 28, 37, 0.5);
}

.hero-slider-arrow svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.hero-slider-arrow--prev { left: 30px; }
.hero-slider-arrow--next { right: 30px; }

/* Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(26, 26, 26, 0.40);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.35s ease;
}

.hero-slider-dot.is-active {
    background-color: var(--cm-accent);
    width: 26px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(238, 28, 37, 0.7);
}

/* Progress bar */
.hero-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #E31837, #B3122B);
    z-index: 25;
    box-shadow: 0 0 12px rgba(227, 24, 55, 0.6);
}

.hero-slider-progress.is-running {
    animation: heroProgressBar 3s linear forwards;
}

@keyframes heroProgressBar {
    from { width: 0%; }
    to   { width: 100%; }
}

/* =========================================================
   HERO QUICK LINKS
   ========================================================= */

.hero-slider-section + .bg-white {
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.02);
    background: #FFFFFF;
}

.hero-slider-section + .bg-white a {
    position: relative;
    min-height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.2s ease;
}

.hero-slider-section + .bg-white a:hover {
    background: #FAFAFA;
}

.hero-slider-section + .bg-white svg {
    transition: transform 0.2s ease;
    color: var(--cm-accent);
}

.hero-slider-section + .bg-white a:hover svg {
    transform: translateY(-3px);
}

.hero-slider-section + .bg-white .text-accent-dark {
    color: var(--cm-accent-dark);
}

.hero-slider-section + .bg-white .text-ink {
    color: var(--cm-ink);
    font-weight: 700;
}

.hero-slider-section + .bg-white .text-ink-soft {
    color: var(--cm-ink-soft);
}

/* =========================================================
   SEARCH SECTION
   ========================================================= */

section.max-w-7xl form.bg-white {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--cm-line);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

section.max-w-7xl form.bg-white::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cm-accent-tint) 0%, rgba(238, 28, 37, 0) 70%);
    pointer-events: none;
}

section.max-w-7xl form.bg-white:focus-within {
    box-shadow: 0 15px 35px rgba(26, 26, 26, 0.09);
}

section.max-w-7xl form select {
    min-height: 46px;
    color: var(--cm-ink);
    background: #FFFFFF;
    border-color: var(--cm-line);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

section.max-w-7xl form select:hover {
    border-color: #C8CCD2;
}

section.max-w-7xl form select:focus {
    border-color: var(--cm-accent);
    box-shadow: 0 0 0 3px var(--cm-accent-soft);
}

section.max-w-7xl form button {
    position: relative;
    z-index: 1;
    background: var(--cm-accent);
    color: #FFFFFF;
    border: 0;
    box-shadow: 0 7px 18px rgba(238, 28, 37, 0.18);
    transition: all 0.2s ease;
}

section.max-w-7xl form button:hover {
    background: var(--cm-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 23px rgba(238, 28, 37, 0.28);
}

/* =========================================================
   WHY BUY FROM US
   ========================================================= */

.border-y.border-line {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
    border-color: var(--cm-line);
}

.border-y.border-line .w-10.h-10 {
    background: var(--cm-accent-tint);
    color: var(--cm-accent);
    transition: transform 0.25s ease, background 0.25s ease;
}

.border-y.border-line > div > div:hover .w-10.h-10 {
    background: var(--cm-accent-soft);
    transform: translateY(-3px);
}

.border-y.border-line svg {
    stroke-width: 1.8;
    color: var(--cm-accent);
}

.border-y.border-line h3 { color: var(--cm-ink); font-weight: 700; }
.border-y.border-line p  { color: var(--cm-ink-soft); }

/* =========================================================
   SHOWROOMS
   ========================================================= */

section iframe {
    filter: grayscale(0.15) contrast(0.96);
    transition: filter 0.25s ease;
}

section .bg-white:hover iframe {
    filter: grayscale(0) contrast(1);
}

section .bg-white.border-line {
    background: #FFFFFF;
    border-color: var(--cm-line);
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

section .bg-white.border-line:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(26, 26, 26, 0.08);
}

section .text-accent-dark { color: var(--cm-accent-dark); }
section .text-ink        { color: var(--cm-ink); }
section .text-ink-soft   { color: var(--cm-ink-soft); }

/* =========================================================
   DOT AUTO VEHICLE CARD
   ========================================================= */

.cm-vcard {
    background: #fff;
    border: 1px solid var(--cm-line);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.cm-vcard:hover {
    border-color: #1A1A1A;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.cm-vcard-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #eceef1;
    overflow: hidden;
}

.cm-vcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cm-vcard:hover .cm-vcard-media img { transform: scale(1.03); }
.cm-vcard.is-sold .cm-vcard-media img { filter: grayscale(0.85) brightness(0.85); }

.cm-vcard-noimg {
    display: grid;
    place-items: center;
    height: 100%;
    color: #9aa1aa;
    font-size: 0.8rem;
}

.cm-vcard-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    flex: 1;
}

.cm-vcard-title { display: block; text-decoration: none; }

.cm-vcard-title h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--cm-ink);
    margin: 0 0 2px;
}

.cm-vcard-title p {
    font-size: 0.78rem;
    color: var(--cm-ink-soft);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-vcard-title:hover h3 { color: var(--cm-accent); }

.cm-vcard-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid var(--cm-line-soft);
    border-bottom: 1px solid var(--cm-line-soft);
}

.cm-vcard-specs > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cm-vcard-specs dt {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9aa1aa;
    margin: 0;
}

.cm-vcard-specs dt svg {
    color: #9aa1aa;
    flex-shrink: 0;
}

.cm-vcard-specs dd {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cm-ink);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-vcard-price-block { margin-top: 0; }

.cm-vcard-price-block .cm-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
    color: var(--cm-ink);
    margin: 0;
}

.cm-vcard-price-block .cm-price-note {
    font-size: 0.75rem;
    color: var(--cm-ink-soft);
    margin: 3px 0 0;
}

.cm-vcard-finance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cm-vcard-finance .cm-finance-main {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--cm-ink);
    margin: 0;
    line-height: 1.2;
}

.cm-vcard-finance .cm-finance-main small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--cm-ink-soft);
}

.cm-vcard-finance .cm-finance-note {
    font-size: 0.7rem;
    color: #9aa1aa;
    margin: 2px 0 0;
}

.cm-vcard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

/* ---------- Card Action Buttons (BLACK — Dot Auto style) ---------- */
.cm-btn-view,
.cm-btn-enquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cm-btn-view {
    color: #1A1A1A;
    background: #FFFFFF;
    border: 1px solid #1A1A1A;
}

.cm-btn-view:hover {
    color: #FFFFFF;
    background: #1A1A1A;
}

.cm-btn-enquire {
    color: #FFFFFF;
    background: #1A1A1A;
    border: 1px solid #1A1A1A;
}

.cm-btn-enquire:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Chips & ribbons */
.cm-chip {
    position: absolute;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    color: var(--cm-ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cm-chip-fuel { left: 10px; top: 10px; }

.cm-ribbon {
    position: absolute;
    left: 0;
    bottom: 12px;
    z-index: 2;
    padding: 4px 12px 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    border-radius: 0 6px 6px 0;
}

.cm-ribbon-sold  { background: #111827; }
.cm-ribbon-offer { background: #d97706; }

.cm-photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
}

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.96);
    color: #4b5563;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.fav-btn svg {
    fill: transparent;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.fav-btn:hover { transform: scale(1.08); color: var(--cm-accent); }
.fav-btn.is-fav { color: var(--cm-accent); }
.fav-btn.is-fav svg { fill: var(--cm-accent); }

.fav-btn.fav-pop { animation: favPop 0.35s ease; }

@keyframes favPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.fav-btn-lg {
    width: 42px;
    height: 42px;
    top: 14px;
    right: 14px;
}

/* =========================================================
   CARD GRID ANIMATION
   ========================================================= */

.grid > * { animation: none; }
.cm-vcard { animation: cardIn 0.4s ease backwards; }

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   CARS INDEX — Dot Auto Style (Black buttons + borders)
   ========================================================= */

/* ---------- Filter Panel ---------- */
.cmf-panel {
    background: #FFFFFF;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.cmf-panel-head {
    display: none;
}

.cmf-form {
    padding: 0 0 24px;
}

.cmf-group {
    padding: 0;
    border-bottom: 0;
    margin-bottom: 0;
}

.cmf-group:last-of-type {
    border-bottom: 0;
}

/* ---------- Filter Labels (Dot Auto style — small caps) ---------- */
.filter-label,
.cmf-label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6B7076;
}

/* ---------- Filter Select (clean thin black border) ---------- */
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 46px;
    padding: 0 34px 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cm-ink);
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #D5D8DD;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:hover {
    border-color: #1A1A1A;
}

.filter-select:focus {
    border-color: #1A1A1A;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.filter-select:disabled {
    background-color: #F6F7F8;
    color: #9CA3AF;
    cursor: not-allowed;
    border-color: #E5E7EB;
}

/* ---------- Mobile Filter Button (BLACK — Dot Auto style) ---------- */
.cmf-btn-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #1A1A1A;
    border: 1px solid #1A1A1A;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmf-btn-open:hover {
    background: #000000;
    border-color: #000000;
}

.cmf-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    color: #1A1A1A;
    background: #FFFFFF;
    border-radius: 999px;
    margin-left: 4px;
}

/* ---------- Apply Button (BLACK) ---------- */
.cmf-apply {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: #1A1A1A;
    border: 1px solid #1A1A1A;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmf-apply:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ---------- Reset Link ---------- */
.cmf-reset {
    font-size: 12px;
    font-weight: 600;
    color: #6B7076;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cmf-reset:hover {
    color: #1A1A1A;
}

/* ---------- Results Count (Dot Auto style) ---------- */
.cars-results-count {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B7076;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 24px;
}

/* ---------- Empty State ---------- */
.cmf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 20px;
    background: #FFFFFF;
    border: 1px dashed #D5D8DD;
    border-radius: 8px;
    color: #9AA1AA;
}

.cmf-empty h3 {
    color: #1A1A1A;
    font-weight: 700;
}

.cmf-empty .cmf-apply {
    width: auto;
    flex: 0 0 auto;
    min-width: 200px;
}

/* ---------- Section Kicker (INVENTORY label) ---------- */
.cm-section-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #EE1C25;
}

/* Filter Pills */
.filter-pill {
    cursor: pointer;
    display: inline-block;
}

.filter-pill > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--cm-line);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--cm-ink-soft);
    background: #FFFFFF;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pill:hover > span {
    border-color: var(--cm-accent);
    color: var(--cm-accent);
    background: var(--cm-accent-tint);
    transform: translateY(-1px);
}

.filter-pill input:checked + span {
    background: var(--cm-accent);
    border-color: var(--cm-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(238, 28, 37, 0.22);
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Filter chips */
.cmf-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.cmf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #FFFFFF;
    color: var(--cm-ink);
    border: 1px solid var(--cm-line);
    border-radius: 999px;
}
.cmf-chip:hover {
    border-color: var(--cm-accent);
    color: var(--cm-accent);
}

.cmf-clear {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cm-accent-dark);
    margin-left: 4px;
}

.cmf-backdrop { display: none; }

/* Sidebar filters */
.filter-group { padding: 4px 0; }

.filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cm-ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}
.filter-toggle:hover { color: var(--cm-accent); }

.filter-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--cm-ink-soft);
}
.filter-toggle[aria-expanded="false"] .filter-chevron {
    transform: rotate(-90deg);
}

.filter-content {
    max-height: 500px;
    overflow: hidden;
    padding-bottom: 14px;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   VEHICLE DETAIL PAGE
   ========================================================= */

.dp-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--cm-ink-soft);
}
.dp-crumb a:hover { color: var(--cm-accent); }

.dp-card {
    background: #FFFFFF;
    border: 1px solid var(--cm-line);
    border-radius: 16px;
    padding: 20px;
}

.dp-h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--cm-ink);
    margin-bottom: 16px;
}

.dp-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cm-ink-soft);
    margin-bottom: 8px;
}

.dp-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #E9EBEE;
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
    touch-action: pan-y;
}

.dp-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dp-photo.is-active { opacity: 1; }

.dp-nophoto {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #9AA1AA;
}

.dp-stage .cm-chip-fuel {
    left: 14px;
    top: 14px;
    font-size: 12px;
    padding: 5px 12px;
}

.dp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 28px;
    line-height: 1;
    color: var(--cm-ink);
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.dp-prev { left: 14px; }
.dp-next { right: 14px; }

.dp-stage:hover .dp-nav { opacity: 1; }

.dp-nav:hover {
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.06);
}

.dp-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    background: rgba(26, 26, 26, 0.75);
    border-radius: 999px;
}

.dp-sold {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 5vw, 3rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: rgba(26, 26, 26, 0.55);
    pointer-events: none;
}

.dp-sold-offer { background: rgba(238, 28, 37, 0.5); }

.dp-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.dp-thumb {
    flex: 0 0 auto;
    width: 92px;
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: #E9EBEE;
    opacity: 0.7;
    scroll-snap-align: start;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.dp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.dp-thumb.is-active {
    opacity: 1;
    border-color: var(--cm-accent);
}

.dp-side {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: none;
}
.dp-side::-webkit-scrollbar { display: none; }

.dp-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #4B5563;
    background: #F3F4F6;
    border-radius: 999px;
}

.dp-tag-red {
    color: var(--cm-accent);
    background: var(--cm-accent-tint);
}

.dp-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--cm-ink);
    letter-spacing: -0.01em;
}

.dp-subtitle {
    font-size: 0.9rem;
    color: var(--cm-ink-soft);
    margin-top: 4px;
}

.dp-pricebox { margin: 18px 0 4px; }

.dp-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--cm-ink);
}

.dp-price-note {
    font-size: 0.78rem;
    color: var(--cm-ink-soft);
    margin-top: 6px;
}

.dp-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 18px 0;
    background: #EEF0F2;
    border: 1px solid #EEF0F2;
    border-radius: 12px;
    overflow: hidden;
}

.dp-quick > div {
    padding: 12px 14px;
    background: #FFFFFF;
}

.dp-quick dt {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9AA1AA;
    font-weight: 700;
}

.dp-quick dd {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--cm-ink);
    margin-top: 2px;
}

.dp-finance {
    padding: 16px;
    background: #FAFAFA;
    border: 1px solid #EEF0F2;
    border-radius: 12px;
}

.dp-weekly {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1;
    margin: 10px 0 6px;
    color: var(--cm-accent);
}

.dp-weekly small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cm-ink-soft);
    margin-left: 3px;
}

.dp-terms {
    display: inline-flex;
    padding: 3px;
    background: #E9EBEE;
    border-radius: 999px;
}

.dp-terms button {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #4B5563;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.dp-terms button.is-active {
    background: #FFFFFF;
    color: var(--cm-ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.dp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.dp-btn:hover { transform: translateY(-1px); }

.dp-btn-red {
    color: #FFFFFF;
    background: var(--cm-accent);
    box-shadow: 0 6px 16px rgba(238, 28, 37, 0.22);
}
.dp-btn-red:hover {
    background: var(--cm-accent-dark);
    box-shadow: 0 10px 22px rgba(238, 28, 37, 0.30);
}

.dp-btn-dark {
    color: #FFFFFF;
    background: var(--cm-ink);
}
.dp-btn-dark:hover { background: #000000; }

.dp-btn-line {
    color: var(--cm-ink);
    background: #FFFFFF;
    border-color: #D5D8DD;
}
.dp-btn-line:hover {
    border-color: var(--cm-accent);
    color: var(--cm-accent);
}

.dp-soldnote {
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: #6B7280;
    background: #F3F4F6;
    border-radius: 10px;
}

.dp-where {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--cm-line-soft);
}

.dp-share {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cm-ink-soft);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.dp-share:hover { color: var(--cm-accent); }

.dp-specs {
    display: grid;
    grid-template-columns: 1fr;
}

.dp-specs > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--cm-line-soft);
    font-size: 0.88rem;
}
.dp-specs dt { color: var(--cm-ink-soft); }
.dp-specs dd {
    font-weight: 600;
    color: var(--cm-ink);
    text-align: right;
    word-break: break-word;
}

.dp-about p {
    font-size: 0.93rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 12px;
}
.dp-about p:first-child {
    font-weight: 600;
    color: var(--cm-ink);
}

.dp-bullets {
    display: grid;
    gap: 10px;
    margin: 18px 0 4px;
}
.dp-bullets li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #374151;
}
.dp-bullets svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--cm-accent);
}

.dp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
}
.dp-lightbox[hidden] { display: none; }
.dp-lightbox img {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
}
.dp-lb-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 36px;
    line-height: 1;
    color: #FFFFFF;
    background: none;
    border: 0;
    cursor: pointer;
}
.dp-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 30px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.dp-lb-nav:hover { background: rgba(255, 255, 255, 0.26); }

.dp-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--cm-line);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
.dp-mobilebar .dp-btn { height: 42px; }

/* =========================================================
   FORM FIELDS
   ========================================================= */

.cm-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cm-ink);
    letter-spacing: 0.02em;
}

.cm-field input,
.cm-field textarea {
    width: 100%;
    padding: 11px 13px;
    font-size: 0.85rem;
    color: var(--cm-ink);
    background: #FAFAFA;
    border: 1px solid var(--cm-line);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cm-field input:focus,
.cm-field textarea:focus {
    background: #FFFFFF;
    border-color: var(--cm-accent);
    box-shadow: 0 0 0 3px var(--cm-accent-soft);
}

.cm-field input::placeholder,
.cm-field textarea::placeholder { color: #9AA1AA; }

.cm-field textarea {
    resize: vertical;
    min-height: 84px;
}

/* =========================================================
   FINANCE PAGE
   ========================================================= */

.cm-finance-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(26, 26, 26, 0.98) 0%, rgba(26, 26, 26, 0.88) 42%, rgba(26, 26, 26, 0.35) 75%, rgba(26, 26, 26, 0.10) 100%),
        url("/images/finance-banner.jpg") center / cover no-repeat;
    background-color: #1A1A1A;
}

.cm-finance-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 45%, rgba(238, 28, 37, 0.20), transparent 32%);
}

.cm-finance-hero h1 {
    color: #FFFFFF;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1;
    margin: 16px 0 22px;
    letter-spacing: -0.045em;
}
.cm-finance-hero h1 span { color: var(--cm-accent); }

.cm-finance-hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.7;
}

.cm-finance-label,
.cm-small-label {
    display: inline-block;
    color: var(--cm-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.cm-finance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 23px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.cm-btn--red {
    color: #FFFFFF;
    background: var(--cm-accent);
    box-shadow: 0 10px 25px rgba(238, 28, 37, 0.25);
}
.cm-btn--red:hover {
    color: #FFFFFF;
    background: var(--cm-accent-dark);
    transform: translateY(-2px);
}

.cm-btn--light {
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}
.cm-btn--light:hover {
    color: var(--cm-ink);
    background: #FFFFFF;
}

.cm-finance-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    min-height: 430px;
    border: 1px solid var(--cm-line);
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.05);
    transition: all 0.25s ease;
}

.cm-finance-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(238, 28, 37, 0.05);
    pointer-events: none;
}

.cm-finance-card:hover {
    transform: translateY(-5px);
    border-color: rgba(238, 28, 37, 0.25);
    box-shadow: 0 18px 40px rgba(26, 26, 26, 0.10);
}

.cm-finance-card--dark {
    color: #FFFFFF;
    border-color: #24272D;
    background:
        radial-gradient(circle at 90% 10%, rgba(238, 28, 37, 0.20), transparent 35%),
        #1A1A1A;
}

.cm-finance-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.cm-finance-badge {
    display: inline-block;
    color: var(--cm-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.cm-finance-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--cm-accent);
    background: var(--cm-accent-tint);
}
.cm-finance-icon svg { width: 23px; height: 23px; }

.cm-finance-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--cm-ink);
}
.cm-finance-card--dark h3 { color: #FFFFFF; }

.cm-finance-card > p {
    position: relative;
    z-index: 1;
    max-width: 500px;
    color: var(--cm-ink-soft);
    font-size: 0.94rem;
    line-height: 1.7;
}
.cm-finance-card--dark > p { color: rgba(255, 255, 255, 0.65); }

.cm-finance-card ul {
    position: relative;
    z-index: 1;
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.cm-finance-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 11px 0;
    color: #454B55;
    font-size: 0.88rem;
}
.cm-finance-card--dark li { color: rgba(255, 255, 255, 0.75); }

.cm-finance-card li span {
    color: var(--cm-accent);
    font-weight: 800;
}

.cm-finance-card__button {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding: 14px 17px;
    color: #FFFFFF;
    border-radius: 7px;
    background: var(--cm-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cm-finance-card__button:hover {
    color: #FFFFFF;
    background: var(--cm-accent-dark);
    transform: translateX(2px);
}
.cm-finance-card__button span { font-size: 1.2rem; }

.cm-finance-steps {
    background: linear-gradient(180deg, #F5F5F5, #FAFAFA);
    border-top: 1px solid var(--cm-line);
    border-bottom: 1px solid var(--cm-line);
}

.cm-step {
    position: relative;
    padding: 10px 10px 10px 72px;
}

.cm-step-number {
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--cm-accent);
    letter-spacing: 0.08em;
}

.cm-step h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: var(--cm-ink);
}

.cm-step p {
    color: var(--cm-ink-soft);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 330px;
}

.cm-comparison {
    overflow: hidden;
    border: 1px solid var(--cm-line);
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.04);
}

.cm-comparison__head,
.cm-comparison__row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
}

.cm-comparison__head {
    color: #FFFFFF;
    background: #1A1A1A;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cm-comparison__head div,
.cm-comparison__row div { padding: 17px 20px; }

.cm-comparison__row {
    border-top: 1px solid var(--cm-line);
    font-size: 0.9rem;
}
.cm-comparison__row div:first-child {
    font-weight: 700;
    color: var(--cm-ink);
}
.cm-comparison__row div:not(:first-child) { color: var(--cm-ink-soft); }
.cm-comparison__row:hover { background: #FAFAFA; }

.cm-finance-cta { padding: 0 0 70px; }

.cm-finance-cta__inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px;
    border-radius: 14px;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 85% 50%, rgba(238, 28, 37, 0.35), transparent 30%),
        #1A1A1A;
}

.cm-finance-cta__inner::after {
    content: "";
    position: absolute;
    right: -100px;
    top: -100px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.cm-finance-cta__inner h2 {
    position: relative;
    z-index: 1;
    margin: 10px 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
    color: #FFFFFF;
}

.cm-finance-cta__inner p {
    position: relative;
    z-index: 1;
    max-width: 550px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.cm-small-label--light { color: var(--cm-accent); }

.cm-btn--white {
    color: var(--cm-ink);
    background: #FFFFFF;
}
.cm-btn--white:hover {
    color: var(--cm-ink);
    background: #F1F1F1;
    transform: translateY(-2px);
}

.cm-btn--outline-white {
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.cm-btn--outline-white:hover {
    color: var(--cm-ink);
    background: #FFFFFF;
}

/* =========================================================
   SELL PAGE
   ========================================================= */

.cm-sell-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(26, 26, 26, 0.98) 0%, rgba(26, 26, 26, 0.88) 40%, rgba(26, 26, 26, 0.40) 72%, rgba(26, 26, 26, 0.12) 100%),
        url("/images/sell-car-banner.jpg") center / cover no-repeat;
    background-color: #1A1A1A;
}

.cm-sell-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 50%, rgba(238, 28, 37, 0.20), transparent 32%);
}

.cm-sell-hero h1 {
    color: #FFFFFF;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1;
    margin: 16px 0 22px;
    letter-spacing: -0.045em;
}
.cm-sell-hero h1 span { color: var(--cm-accent); }

.cm-sell-hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.7;
}

.cm-sell-highlight {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border-radius: 12px;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 90% 10%, rgba(238, 28, 37, 0.28), transparent 35%),
        #1A1A1A;
    box-shadow: 0 15px 35px rgba(26, 26, 26, 0.10);
}

.cm-sell-highlight::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.cm-sell-highlight__icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 50%;
    color: #FFFFFF;
    background: var(--cm-accent);
}
.cm-sell-highlight__icon svg { width: 25px; height: 25px; }

.cm-sell-highlight h3 {
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.cm-sell-highlight p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.cm-sell-steps {
    background: linear-gradient(180deg, #F5F5F5, #FAFAFA);
    border-top: 1px solid var(--cm-line);
    border-bottom: 1px solid var(--cm-line);
}

.cm-sell-form {
    padding: 32px;
    border: 1px solid var(--cm-line);
    border-left: 4px solid var(--cm-accent);
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 12px 35px rgba(26, 26, 26, 0.06);
}

.cm-form-heading { margin-bottom: 25px; }

.cm-form-heading h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--cm-ink);
}

.cm-form-heading p {
    color: var(--cm-ink-soft);
    font-size: 0.82rem;
}

.cm-sell-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding: 14px 18px;
    color: #FFFFFF;
    background: var(--cm-accent);
    border: 0;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(238, 28, 37, 0.18);
    transition: all 0.2s ease;
}

.cm-sell-submit:hover {
    background: var(--cm-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(238, 28, 37, 0.28);
}

.cm-sell-submit span { font-size: 1.2rem; }

.cm-form-note {
    margin-top: 12px;
    color: var(--cm-ink-soft);
    text-align: center;
    font-size: 0.72rem;
}

.cm-sell-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cm-sell-info__number {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--cm-accent);
    background: var(--cm-accent-tint);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
}

.cm-sell-info h3 {
    margin: 0 0 3px;
    color: var(--cm-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.cm-sell-info p {
    margin: 0;
    color: var(--cm-ink-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* =========================================================
   LOCATIONS PAGE
   ========================================================= */

.cm-location-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(26, 26, 26, 0.96), rgba(26, 26, 26, 0.82)),
        url('/images/locations-banner.jpg') center/cover no-repeat;
}

.cm-location-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 45%, rgba(238, 28, 37, 0.22), transparent 38%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent);
}

.cm-location-kicker,
.cm-section-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.cm-location-kicker { color: #FF6B6B; }
.cm-section-kicker  { color: var(--cm-accent); }

.cm-location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.cm-location-btn--primary {
    background: var(--cm-accent);
    color: #FFFFFF;
}
.cm-location-btn--primary:hover {
    background: var(--cm-accent-dark);
    transform: translateY(-1px);
}

.cm-location-btn--outline {
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}
.cm-location-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

.cm-location-card {
    background: #FFFFFF;
    border: 1px solid var(--cm-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cm-location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

.cm-location-map {
    height: 235px;
    background: #EEF0F2;
    overflow: hidden;
}
.cm-location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.cm-location-map--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8A8F98;
    font-size: 13px;
}

.cm-location-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cm-accent);
    background: var(--cm-accent-tint);
    border-radius: 50%;
}

.cm-location-detail {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 22px;
}

.cm-location-detail__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cm-accent);
    background: #FAFAFA;
    border: 1px solid #EEEEEE;
    border-radius: 7px;
}

.cm-location-detail__title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8B9098;
    margin-bottom: 3px;
}

.cm-location-detail__text {
    color: #444B55;
    font-size: 14px;
    line-height: 1.6;
}

.cm-location-detail__link {
    color: var(--cm-accent);
    font-size: 14px;
    font-weight: 700;
}
.cm-location-detail__link:hover { color: var(--cm-accent-dark); }

.cm-location-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--cm-accent);
}

.cm-location-license {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #EEEEEE;
    font-size: 11px;
    color: #9297A0;
}
.cm-location-license strong { color: #555555; }

.cm-location-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    color: #333333;
    background: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: 0.2s ease;
}
.cm-location-action:hover {
    border-color: var(--cm-accent);
    color: var(--cm-accent);
    background: var(--cm-accent-tint);
}

.cm-location-action--dark {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: #FFFFFF;
}
.cm-location-action--dark:hover {
    background: var(--cm-accent);
    border-color: var(--cm-accent);
    color: #FFFFFF;
}

.cm-visit-box {
    padding: 30px;
    background: #1A1A1A;
    min-height: 230px;
}

.cm-visit-number {
    color: var(--cm-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.cm-location-faq { border-top: 1px solid var(--cm-line); }
.cm-location-faq details { border-bottom: 1px solid var(--cm-line); }

.cm-location-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--cm-ink);
    font-size: 15px;
    font-weight: 700;
}
.cm-location-faq summary::-webkit-details-marker { display: none; }

.cm-location-faq summary span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F5F5F5;
    color: var(--cm-accent);
    font-size: 18px;
    transition: transform 0.2s ease;
}
.cm-location-faq details[open] summary span { transform: rotate(45deg); }

.cm-location-faq details p {
    color: #737983;
    font-size: 14px;
    line-height: 1.8;
    padding: 0 45px 22px 4px;
}

.cm-location-cta {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(238, 28, 37, 0.22), transparent 45%),
        #1A1A1A;
}

.cm-location-cta::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -120px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(238, 28, 37, 0.12);
}

/* =========================================================
   RESPONSIVE — TABLET (768px – 1023px)
   ========================================================= */

@media (min-width: 768px) and (max-width: 1023px) {

    .hero-slider { height: 300px; }
    .hero-slide-content-wrap { padding: 0 40px; }

    .cm-vcard-body { padding: 14px; gap: 12px; }
    .cm-vcard-title h3 { font-size: 0.92rem; }
    .cm-vcard-title p  { font-size: 0.74rem; }

    .cm-vcard-specs { gap: 10px 12px; padding: 10px 0; }
    .cm-vcard-specs dt { font-size: 0.66rem; }
    .cm-vcard-specs dd { font-size: 0.78rem; }

    .cm-vcard-price-block .cm-price { font-size: 1.15rem; }
    .cm-vcard-price-block .cm-price-note { font-size: 0.7rem; }

    .cm-vcard-finance { padding: 8px 10px; gap: 8px; }
    .cm-vcard-finance .cm-finance-main { font-size: 0.85rem; }
    .cm-vcard-finance .cm-finance-note { font-size: 0.66rem; }

    .cm-btn-view,
    .cm-btn-enquire { height: 38px; font-size: 11px; padding: 0 12px; }

    .dp-nav { opacity: 1; width: 38px; height: 38px; font-size: 24px; }
    .dp-specs { grid-template-columns: 1fr 1fr; column-gap: 40px; }
    .dp-bullets { grid-template-columns: 1fr 1fr; column-gap: 28px; }
    .dp-card { padding: 24px; }
}

/* =========================================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ========================================================= */

@media (max-width: 767px) {

    /* Hero slider — mobile */
    .hero-slider { height: 200px; }

    .hero-slider-arrow { display: none; }
    .hero-slider-dots {
        bottom: 8px;
        padding: 4px 8px;
        gap: 5px;
    }
    .hero-slider-dot {
        width: 5px;
        height: 5px;
    }
    .hero-slider-dot.is-active {
        width: 16px;
    }

    /* Quick links */
    .hero-slider-section + .bg-white a {
        min-height: 110px;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .hero-slider-section + .bg-white a:nth-child(2),
    .hero-slider-section + .bg-white a:nth-child(4) {
        border-right: 0;
    }

    /* Search form */
    section.max-w-7xl form.bg-white { padding: 1rem; }
    section.max-w-7xl form select,
    section.max-w-7xl form button { width: 100%; }

    /* Card */
    .cm-vcard { border-radius: 8px; }
    .cm-vcard-media { aspect-ratio: 16 / 10; }
    .cm-vcard-body { padding: 14px; gap: 12px; }
    .cm-vcard-title h3 { font-size: 0.94rem; line-height: 1.25; }
    .cm-vcard-title p  { font-size: 0.76rem; }

    .cm-vcard-specs { gap: 10px 14px; padding: 10px 0; }
    .cm-vcard-specs dt { font-size: 0.68rem; }
    .cm-vcard-specs dd { font-size: 0.8rem; }

    .cm-vcard-price-block .cm-price { font-size: 1.2rem; }
    .cm-vcard-price-block .cm-price-note { font-size: 0.72rem; }

    .cm-vcard-finance { padding: 10px; gap: 10px; }
    .cm-vcard-finance .cm-finance-main { font-size: 0.88rem; }
    .cm-vcard-finance .cm-finance-main small { font-size: 0.68rem; }
    .cm-vcard-finance .cm-finance-note { font-size: 0.68rem; }

    .cm-btn-view,
    .cm-btn-enquire { height: 40px; font-size: 11px; padding: 0 12px; }

    .cm-chip { font-size: 10px; padding: 3px 8px; }
    .cm-ribbon { font-size: 10px; padding: 3px 10px 3px 8px; }
    .cm-photo-count { font-size: 10px; padding: 2px 6px; }

    .fav-btn {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }

    /* Finance */
    .cm-finance-hero {
        min-height: 520px;
        background:
            linear-gradient(90deg, rgba(26, 26, 26, 0.96), rgba(26, 26, 26, 0.72)),
            url("/images/finance-banner.jpg") center / cover no-repeat;
    }
    .cm-finance-hero h1 { font-size: 1.9rem !important; line-height: 1.1 !important; }

    .cm-finance-card { min-height: auto; padding: 25px; }
    .cm-finance-card h3 { font-size: 1.25rem !important; }

    .cm-comparison { overflow-x: auto; }
    .cm-comparison__head,
    .cm-comparison__row { min-width: 620px; }

    .cm-finance-cta__inner {
        display: block;
        padding: 35px 25px;
    }
    .cm-finance-cta__inner h2 { font-size: 1.5rem !important; }

    /* Sell */
    .cm-sell-hero {
        min-height: 520px;
        background:
            linear-gradient(90deg, rgba(26, 26, 26, 0.96), rgba(26, 26, 26, 0.72)),
            url("/images/sell-car-banner.jpg") center / cover no-repeat;
    }
    .cm-sell-hero h1 { font-size: 1.9rem !important; line-height: 1.1 !important; }
    .cm-sell-highlight { padding: 28px; }
    .cm-sell-highlight h3 { font-size: 1.2rem !important; }
    .cm-sell-form { padding: 22px; }
    .cm-form-heading h3 { font-size: 1.15rem !important; }

    .cm-finance-actions { width: 100%; }
    .cm-finance-actions .cm-btn { width: 100%; }

    /* Locations */
    .cm-location-hero { min-height: 440px; }
    .cm-location-map { height: 200px; }
    .cm-location-card { border-radius: 9px; }
    .cm-visit-box { min-height: auto; padding: 25px; }
    .cm-location-detail { margin-top: 18px; }
    .cm-location-action { flex: 1; }
    .cm-location-btn { width: 100%; }

    /* Detail page */
    .dp-card { padding: 20px; }
    .dp-nav { opacity: 1; width: 38px; height: 38px; font-size: 24px; }
    .dp-thumb { width: 72px; }

    /* Filters */
    .filter-select { font-size: 13px; padding: 9px 34px 9px 14px; height: 42px; }
    #moreFiltersPanel .grid { gap: 20px; }

    .filter-content {
        max-height: none !important;
        overflow: visible;
    }
    #mobileFilterDrawer .filter-content { max-height: 500px; }

    /* Mobile header */
    .header-mobile-bar { padding: 0 12px; }
    .header-mobile-bar a { font-size: 14px; gap: 6px; }
    .header-mobile-logo img { height: 44px !important; }
}

/* =========================================================
   RESPONSIVE — EXTRA SMALL (max-width: 480px)
   ========================================================= */

@media (max-width: 480px) {

    .cm-vcard-body { padding: 12px; gap: 10px; }
    .cm-vcard-specs { gap: 8px 12px; padding: 8px 0; }
    .cm-vcard-specs dt { font-size: 0.64rem; }
    .cm-vcard-specs dd { font-size: 0.76rem; }

    .cm-vcard-price-block .cm-price { font-size: 1.15rem; }

    .cm-vcard-finance { padding: 8px; gap: 8px; }
    .cm-vcard-finance .cm-finance-main { font-size: 0.82rem; }
    .cm-vcard-finance .cm-finance-note { font-size: 0.64rem; }

    .cm-btn-view,
    .cm-btn-enquire { height: 38px; font-size: 10px; padding: 0 10px; gap: 4px; }
    .cm-btn-view span,
    .cm-btn-enquire span { display: none; }

    .cm-finance-hero h1,
    .cm-sell-hero h1 { font-size: 1.7rem !important; }

    /* Mobile header extra small */
    .header-mobile-bar a { font-size: 13px; }
    .header-mobile-bar a span { display: none; }
    .header-mobile-logo img { height: 40px !important; }
    .hero-slider { height: 180px; }
}

/* =========================================================
   CARS INDEX — Desktop sidebar (1024px+)
   ========================================================= */

@media (min-width: 1024px) {

    .cmf-panel {
        position: sticky;
        top: 88px;
        max-height: calc(100vh - 108px);
        overflow-y: auto;
        scrollbar-width: thin;
    }

    aside .sticky {
        max-height: calc(100vh - 7rem);
        overflow-y: auto;
        scrollbar-width: thin;
    }

    aside .sticky::-webkit-scrollbar { width: 4px; }
    aside .sticky::-webkit-scrollbar-thumb {
        background: var(--cm-line);
        border-radius: 2px;
    }
}

/* Mobile filter bottom sheet */
@media (max-width: 1023px) {

    .cmf-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 60;
        background: rgba(26, 26, 26, 0.5);
        opacity: 0;
        transition: opacity 0.25s ease;
    }
    .cmf-backdrop[hidden] { display: none; }
    .cmf-backdrop.is-open { opacity: 1; }

    .cmf-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        max-height: 86vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 20px 20px 0 0;
        border: 0;
        background: #FFFFFF;
        transform: translateY(105%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.32s;
    }
    .cmf-panel.is-open {
        transform: none;
        visibility: visible;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
    }
    .cmf-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 16px 18px;
        background: #FFFFFF;
        border-bottom: 1px solid var(--cm-line-soft);
    }
    .cmf-x {
        width: 34px;
        height: 34px;
        font-size: 24px;
        line-height: 1;
        border: 0;
        background: #F3F4F6;
        border-radius: 50%;
        cursor: pointer;
    }
    .cmf-actions {
        position: sticky;
        bottom: 0;
        background: #FFFFFF;
        padding: 12px 0 4px;
        margin-top: 4px;
        border-top: 1px solid var(--cm-line-soft);
    }
}

/* =========================================================
   RESPONSIVE LOGO + HEADINGS
   ========================================================= */

/* ---------- LOGO ---------- */
header img[alt*="Carmax" i],
header img[alt*="logo" i],
header img[src*="logo" i],
.site-header img,
.navbar img,
nav img[src*="logo" i] {
    height: 46px !important;
    width: auto !important;
    max-height: none !important;
}

.site-header .logo-desktop,
.site-header .hidden.lg\:block img {
    height: 64px !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
    header img[alt*="Carmax" i],
    header img[alt*="logo" i],
    header img[src*="logo" i],
    .site-header img,
    .navbar img,
    nav img[src*="logo" i] {
        height: 52px !important;
    }
}

@media (max-width: 767px) {
    header img[alt*="Carmax" i],
    header img[alt*="logo" i],
    header img[src*="logo" i],
    .site-header img,
    .navbar img,
    nav img[src*="logo" i] {
        height: 46px !important;
    }
}

@media (max-width: 480px) {
    header img[alt*="Carmax" i],
    header img[alt*="logo" i],
    header img[src*="logo" i],
    .site-header img,
    .navbar img,
    nav img[src*="logo" i] {
        height: 42px !important;
    }
}

/* ---------- HEADINGS — Desktop ---------- */
.display.text-2xl,
h2.text-2xl,
.text-2xl { font-size: 1.35rem !important; }

.display.text-xl,
h3.text-xl,
.text-xl { font-size: 1.05rem !important; }

.text-lg { font-size: 0.98rem !important; }

@media (min-width: 768px) {
    [class*="md:text-[1.75rem]"] {
        font-size: 1.45rem !important;
    }
}

.dp-title { font-size: 1.2rem !important; }
.dp-price { font-size: 1.6rem !important; }

section h2 {
    line-height: 1.25 !important;
}

/* ---------- HEADINGS — Tablet ---------- */
@media (min-width: 768px) and (max-width: 1023px) {

    .display.text-2xl,
    h2.text-2xl,
    .text-2xl { font-size: 1.25rem !important; }

    .display.text-xl,
    h3.text-xl,
    .text-xl { font-size: 1rem !important; }

    .text-lg { font-size: 0.94rem !important; }

    [class*="md:text-[1.75rem]"] { font-size: 1.35rem !important; }
}

/* ---------- HEADINGS — Mobile ---------- */
@media (max-width: 767px) {

    .display.text-2xl,
    h2.text-2xl,
    .text-2xl { font-size: 1.15rem !important; }

    .display.text-xl,
    h3.text-xl,
    .text-xl { font-size: 0.98rem !important; }

    .text-lg { font-size: 0.92rem !important; }

    .cm-finance-cta__inner h2 { font-size: 1.5rem !important; }
    .cm-finance-card h3    { font-size: 1.25rem !important; }
    .cm-step h3            { font-size: 1rem !important; }
    .cm-sell-highlight h3  { font-size: 1.2rem !important; }
    .cm-form-heading h3    { font-size: 1.15rem !important; }

    section h2 { line-height: 1.3 !important; }
}

/* ---------- HEADINGS — Extra small ---------- */
@media (max-width: 480px) {

    .display.text-2xl,
    h2.text-2xl,
    .text-2xl { font-size: 1.1rem !important; }
}

/* =========================================================
   MOBILE STICKY ACTION BAR (vehicle detail)
   ========================================================= */

@media (max-width: 1023px) {
    body:has(.dp-mobilebar) footer {
        padding-bottom: 70px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .hero-slider-track,
    .hero-slide,
    .hero-slide-image,
    .hero-slider-arrow,
    .hero-slider-dot,
    .cm-vcard,
    .cm-vcard-media img,
    .fav-btn {
        transition: none !important;
        transform: none !important;
    }

    .hero-slide-image,  
    .hero-slide.is-active .hero-slide-image,
    .hero-slide:nth-child(even).is-active .hero-slide-image {
        transform: scale(1) !important;
    }

    .hero-slider-progress {
        animation: none !important;
    }
}

/* =========================================================
   DOT AUTO VEHICLE CARD — Clean Professional Style
   ========================================================= */

.cm-vcard {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cm-vcard:hover {
    border-color: #1A1A1A;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ---------- Media (Image) ---------- */
.cm-vcard-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #F3F4F6;
    overflow: hidden;
}

.cm-vcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cm-vcard:hover .cm-vcard-media img {
    transform: scale(1.04);
}

.cm-vcard.is-sold .cm-vcard-media img {
    filter: grayscale(0.85) brightness(0.85);
}

.cm-vcard-noimg {
    display: grid;
    place-items: center;
    height: 100%;
    color: #9AA1AA;
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* ---------- Body ---------- */
.cm-vcard-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 16px 18px;
    flex: 1;
}

/* ---------- Title ---------- */
.cm-vcard-title {
    display: block;
    text-decoration: none;
}

.cm-vcard-title h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    color: #1A1A1A;
    margin: 0 0 3px;
    letter-spacing: -0.01em;
}

.cm-vcard-title p {
    font-size: 12.5px;
    font-weight: 400;
    color: #6B7076;
    margin: 0;
    letter-spacing: 0.01em;
}

.cm-vcard-title:hover h3 {
    color: #EE1C25;
}

/* ---------- Specs Grid (Dot Auto style — label top, value bottom) ---------- */
.cm-vcard-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid #F0F1F3;
    border-bottom: 1px solid #F0F1F3;
}

.cm-vcard-specs > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cm-vcard-specs dt {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9AA1AA;
    margin: 0;
}

.cm-vcard-specs dd {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.005em;
}

/* ---------- Price Row (Price left + Weekly right) ---------- */
.cm-vcard-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.cm-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cm-price {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
    color: #1A1A1A;
    margin: 0;
    letter-spacing: -0.02em;
}

.cm-price-note {
    font-size: 11.5px;
    font-weight: 400;
    color: #6B7076;
    margin: 0;
    letter-spacing: 0.01em;
}

.cm-finance-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.cm-finance-amount {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #1A1A1A;
    margin: 0;
    letter-spacing: -0.01em;
}

.cm-finance-note {
    font-size: 11.5px;
    font-weight: 400;
    color: #6B7076;
    margin: 0;
    letter-spacing: 0.01em;
}

/* ---------- Comparison Rate Line ---------- */
.cm-comparison-rate {
    font-size: 11.5px;
    font-weight: 400;
    color: #9AA1AA;
    margin: 0;
    letter-spacing: 0.01em;
}

/* ---------- Action Buttons (View = white, Enquire = BLACK) ---------- */
.cm-vcard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.cm-btn-view,
.cm-btn-enquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

/* View — White outline, black text */
.cm-btn-view {
    background: #FFFFFF;
    color: #1A1A1A;
    border-color: #D5D8DD;
}

.cm-btn-view:hover {
    background: #F7F7F9;
    border-color: #1A1A1A;
    color: #1A1A1A;
}

/* Enquire — BLACK solid, white text */
.cm-btn-enquire {
    background: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
}

.cm-btn-enquire:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* ---------- Chips & Ribbons ---------- */
.cm-chip {
    position: absolute;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.96);
    color: #1A1A1A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cm-chip-fuel {
    left: 10px;
    top: 10px;
}

.cm-ribbon {
    position: absolute;
    left: 0;
    bottom: 12px;
    z-index: 2;
    padding: 4px 12px 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    border-radius: 0 6px 6px 0;
}

.cm-ribbon-sold  { background: #1A1A1A; }
.cm-ribbon-offer { background: #D97706; }

.cm-photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(26, 26, 26, 0.72);
    color: #FFFFFF;
}

/* ---------- Favourite Button ---------- */
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.96);
    color: #4B5563;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.fav-btn svg {
    fill: transparent;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.fav-btn:hover {
    transform: scale(1.08);
    color: #EE1C25;
}

.fav-btn.is-fav {
    color: #EE1C25;
}

.fav-btn.is-fav svg {
    fill: #EE1C25;
}

.fav-btn.fav-pop {
    animation: favPop 0.35s ease;
}

@keyframes favPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* =========================================================
   HOME — AVAILABLE NOW SECTION (Dot Auto Style)
   ========================================================= */

.available-section {
    background: #FFFFFF;
    padding: 72px 0 80px;
    margin: 0;
}

.available-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header Row (Title + View All) ---------- */
.available-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 0;
}

.available-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    margin: 0;
}

.available-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #1A1A1A;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, gap 0.2s ease;
}

.available-view-all:hover {
    color: #EE1C25;
    gap: 12px;
}

.available-view-all svg {
    transition: transform 0.2s ease;
}

.available-view-all:hover svg {
    transform: translateX(3px);
}

/* ---------- Cards Grid ---------- */
.available-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
    .available-section {
        padding: 56px 0 64px;
    }

    .available-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .available-title {
        font-size: 1.75rem;
    }

    .available-view-all {
        font-size: 14px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .available-section {
        padding: 40px 0 48px;
    }

    .available-inner {
        padding: 0 16px;
    }

    .available-header {
        margin-bottom: 22px;
    }

    .available-title {
        font-size: 1.5rem;
    }

    .available-view-all {
        font-size: 13px;
    }

    .available-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* ---------- Extra small mobile ---------- */
@media (max-width: 480px) {
    .available-section {
        padding: 32px 0 40px;
    }

    .available-title {
        font-size: 1.35rem;
    }

    .available-view-all {
        font-size: 12px;
        gap: 5px;
    }

    .available-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}  /* =========================================================
   CARMAX — PROFESSIONAL HEADING SYSTEM
   Consistent / Refined / Professional Look
   ========================================================= */

/* ---------- H1 — Page Title (biggest, e.g. "All vehicles") ---------- */
h1,
.h1 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2rem);   /* 26px → 32px */
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    margin: 0;
}

/* ---------- H2 — Section Title (e.g. "Available now", "Find your dream car") ---------- */
h2,
.h2 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.75rem); /* 22px → 28px */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    margin: 0;
}

/* ---------- H3 — Card Title (e.g. "Mazda CX-3", "Checked, not just cleaned") ---------- */
h3,
.h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1rem;                          /* 16px */
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #1A1A1A;
    margin: 0;
}

/* ---------- H4 — Small Heading ---------- */
h4,
.h4 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 0.875rem;                     /* 14px */
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    color: #1A1A1A;
    margin: 0;
}

/* =========================================================
   OVERRIDE — Purane Bade Headings
   ========================================================= */

/* Tailwind text-2xl / md:text-[1.75rem] — Section headings */
.display.text-2xl,
h2.text-2xl,
.text-2xl {
    font-size: 1.6rem !important;            /* 25.6px */
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

@media (min-width: 768px) {
    .display.text-2xl,
    h2.text-2xl,
    .text-2xl,
    [class*="md:text-[1.75rem]"] {
        font-size: 1.75rem !important;       /* 28px */
    }
}

/* Tailwind text-xl — Sub-headings */
.display.text-xl,
h3.text-xl,
.text-xl {
    font-size: 1.125rem !important;          /* 18px */
    line-height: 1.3 !important;
}

/* Tailwind text-lg — Small headings */
.text-lg {
    font-size: 1rem !important;              /* 16px */
    line-height: 1.4 !important;
}

/* =========================================================
   HOME — SPECIFIC HEADINGS
   ========================================================= */

/* "Find your dream car" — Search widget heading */
.home-search-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2rem) !important;   /* 24px → 32px */
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    color: #FFFFFF;
    margin: 0 0 32px !important;
}

/* "Available now" — Available section heading */
.available-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.4vw, 1.85rem) !important;  /* 24px → 29.6px */
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    color: #1A1A1A;
    margin: 0 !important;
}

/* "View all X →" — Link text */
.available-view-all {
    font-size: 0.9rem !important;            /* 14.4px */
    font-weight: 600 !important;
    letter-spacing: 0.005em !important;
}

/* "Come and take a look" — Showroom section heading */
section h2.display,
section > h2.display {
    font-size: 1.6rem !important;            /* 25.6px */
    line-height: 1.2 !important;
}

@media (min-width: 768px) {
    section h2.display {
        font-size: 1.75rem !important;       /* 28px */
    }
}

/* "On the lot right now" (if still used) */
section h2 {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

@media (min-width: 768px) {
    section h2 {
        font-size: 1.75rem !important;
    }
}

/* =========================================================
   WHY BUY FROM US — Card Headings
   ========================================================= */

.border-y.border-line h3,
section.bg-white h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 1rem !important;              /* 16px */
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    color: #1A1A1A;
    margin: 0 0 8px !important;
}

/* =========================================================
   SHOWROOM — Location Name
   ========================================================= */

section .display.text-2xl,
section .bg-white .display.text-2xl {
    font-size: 1.35rem !important;           /* 21.6px */
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em !important;
}

/* =========================================================
   VEHICLE CARD — Title (Make Model)
   ========================================================= */

.cm-vcard-title h3 {
    font-size: 0.95rem !important;           /* 15.2px */
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

/* =========================================================
   CARS INDEX PAGE — Page Heading
   ========================================================= */

h1.display.font-700,
h1[class*="display"] {
    font-size: clamp(1.5rem, 2.4vw, 1.85rem) !important;  /* 24px → 29.6px */
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
}

/* =========================================================
   VEHICLE DETAIL PAGE — Title
   ========================================================= */

.dp-title {
    font-size: 1.25rem !important;           /* 20px */
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
}

.dp-price {
    font-size: 1.5rem !important;            /* 24px */
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

.dp-h2 {
    font-size: 1.1rem !important;            /* 17.6px */
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* =========================================================
   FINANCE / SELL / LOCATIONS — Hero Headings
   ========================================================= */

.cm-finance-hero h1,
.cm-sell-hero h1,
.cm-location-hero h1 {
    font-size: clamp(1.75rem, 3vw, 2.4rem) !important;  /* 28px → 38.4px */
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
}

.cm-finance-card h3,
.cm-sell-highlight h3 {
    font-size: 1.15rem !important;           /* 18.4px */
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.cm-step h3 {
    font-size: 1rem !important;              /* 16px */
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

/* CTA Inner Heading */
.cm-finance-cta__inner h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
}

/* =========================================================
   FORM HEADINGS
   ========================================================= */

.cm-form-heading h3 {
    font-size: 1.1rem !important;            /* 17.6px */
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* =========================================================
   MOBILE OVERRIDES — Chhota Aur Professional
   ========================================================= */

@media (max-width: 767px) {

    /* H1 */
    h1, .h1 {
        font-size: 1.4rem !important;        /* 22.4px */
    }

    /* H2 */
    h2, .h2 {
        font-size: 1.25rem !important;       /* 20px */
    }

    /* H3 */
    h3, .h3 {
        font-size: 0.95rem !important;       /* 15.2px */
    }

    /* Section headings */
    .display.text-2xl,
    h2.text-2xl,
    .text-2xl,
    [class*="md:text-[1.75rem]"] {
        font-size: 1.3rem !important;        /* 20.8px */
    }

    /* Search widget heading */
    .home-search-title {
        font-size: 1.35rem !important;       /* 21.6px */
        margin-bottom: 24px !important;
    }

    /* Available now heading */
    .available-title {
        font-size: 1.3rem !important;        /* 20.8px */
    }

    /* View all link */
    .available-view-all {
        font-size: 0.82rem !important;       /* 13.1px */
    }

    /* Finance/Sell/Locations heroes */
    .cm-finance-hero h1,
    .cm-sell-hero h1,
    .cm-location-hero h1 {
        font-size: 1.6rem !important;        /* 25.6px */
    }

    /* Detail page */
    .dp-title {
        font-size: 1.1rem !important;        /* 17.6px */
    }

    .dp-price {
        font-size: 1.35rem !important;       /* 21.6px */
    }

    /* Card title */
    .cm-vcard-title h3 {
        font-size: 0.9rem !important;        /* 14.4px */
    }

    /* Why buy h3 */
    .border-y.border-line h3,
    section.bg-white h3 {
        font-size: 0.95rem !important;       /* 15.2px */
    }
}

@media (max-width: 480px) {

    /* H1 */
    h1, .h1 {
        font-size: 1.25rem !important;       /* 20px */
    }

    /* H2 */
    h2, .h2 {
        font-size: 1.15rem !important;       /* 18.4px */
    }

    /* Section headings */
    .display.text-2xl,
    h2.text-2xl,
    .text-2xl {
        font-size: 1.2rem !important;        /* 19.2px */
    }

    /* Search widget */
    .home-search-title {
        font-size: 1.2rem !important;        /* 19.2px */
    }

    /* Available now */
    .available-title {
        font-size: 1.15rem !important;       /* 18.4px */
    }

    /* Finance/Sell/Locations */
    .cm-finance-hero h1,
    .cm-sell-hero h1,
    .cm-location-hero h1 {
        font-size: 1.4rem !important;        /* 22.4px */
    }
}

/* =========================================================
   CARS INDEX PAGE — Dot Auto Style (Clean White Professional)
   ========================================================= */

/* ---------- Page Wrapper ---------- */
.cm-inventory-page {
    background: #FFFFFF;
    min-height: 100vh;
}

.cm-inventory-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

/* ---------- Kicker (INVENTORY label) ---------- */
.cm-inventory-kicker {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #EE1C25;
    margin: 0 0 10px;
}

/* ---------- Header Row ---------- */
.cm-inventory-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

/* ---------- Page Title (H1) ---------- */
.cm-inventory-title {
    font-family: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);        /* 24px → 32px */
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #1A1A1A;
    margin: 0 0 6px;
}

/* ---------- Page Subtitle ---------- */
.cm-inventory-subtitle {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #6B7076;
    line-height: 1.5;
    margin: 0;
}

/* ---------- Results Count ---------- */
.cm-inventory-count {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6B7076;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
    margin: 0 0 24px;
}

/* ---------- Cards Grid ---------- */
.cm-inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* =========================================================
   FILTER BAR — Dot Auto Style (Clean, flat, white)
   ========================================================= */

/* Panel (desktop only reset) */
@media (min-width: 1024px) {
    #filtersPanel.cmf-panel {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    #filtersPanel .cmf-form {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 20px;
        row-gap: 20px;
        padding: 0 0 28px;
        border-bottom: 1px solid #E5E7EB;
        margin-bottom: 28px;
    }

    #filtersPanel .cmf-group {
        padding: 0;
        border-bottom: 0;
        margin-bottom: 0;
    }
}

/* ---------- Filter Labels ---------- */
.filter-label,
.cmf-label {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6B7076;
    margin: 0 0 8px;
}

/* ---------- Filter Select ---------- */
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 46px;
    padding: 0 36px 0 14px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7076' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #D5D8DD;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:hover {
    border-color: #1A1A1A;
}

.filter-select:focus {
    border-color: #1A1A1A;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.filter-select:disabled {
    background-color: #F6F7F8;
    color: #9CA3AF;
    cursor: not-allowed;
    border-color: #E5E7EB;
}

/* ---------- Mobile Filter Button ---------- */
.cmf-btn-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1A1A1A;
    background: #FFFFFF;
    border: 1px solid #1A1A1A;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmf-btn-open:hover {
    background: #1A1A1A;
    color: #FFFFFF;
}

.cmf-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    color: #FFFFFF;
    background: #EE1C25;
    border-radius: 999px;
}

/* ---------- Apply Button ---------- */
.cmf-apply {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 20px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    background: #1A1A1A;
    border: 1px solid #1A1A1A;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmf-apply:hover {
    background: #000000;
    border-color: #000000;
}

/* ---------- Reset Link ---------- */
.cmf-reset {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6B7076;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cmf-reset:hover {
    color: #1A1A1A;
}

/* ---------- Empty State ---------- */
.cmf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 20px;
    background: #FFFFFF;
    border: 1px dashed #D5D8DD;
    border-radius: 8px;
    color: #9AA1AA;
}

.cmf-empty h3 {
    color: #1A1A1A;
    font-weight: 700;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1023px) {
    .cm-inventory-inner {
        padding: 40px 20px 64px;
    }

    .cm-inventory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .cm-inventory-inner {
        padding: 32px 16px 56px;
    }

    .cm-inventory-title {
        font-size: 1.5rem;
    }

    .cm-inventory-subtitle {
        font-size: 13px;
    }

    .cm-inventory-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cm-inventory-head {
        margin-bottom: 24px;
    }
} /* =========================================================
   MOBILE MENU — Slider ke Neeche Aaye (Auto Motor Group style)
   ========================================================= */

.mobile-menu {
    position: fixed;
    top: 60px;                    /* Black bar ke bilkul neeche */
    left: 0;
    right: 0;
    z-index: 45;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-menu.is-open {
    max-height: 500px;
}

.mobile-menu nav {
    padding: 0;
}

.mobile-menu nav a {
    display: block;
    padding: 16px 20px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;                       /* Chhota font */
    font-weight: 600;                      /* Kam bold */
    letter-spacing: 0.01em;
    color: #1A1A1A;
    border-bottom: 1px solid #F0F1F3;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu nav a:last-child {
    border-bottom: 0;
}

.mobile-menu nav a:hover {
    color: #EE1C25;
    background: #FAFAFA;
} /* =========================================================
   MOBILE FILTER PANEL — Left/Right Space ke saath
   ========================================================= */

@media (max-width: 1023px) {

    /* Backdrop */
    .cmf-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 60;
        background: rgba(26, 26, 26, 0.5);
        opacity: 0;
        transition: opacity 0.25s ease;
    }
    .cmf-backdrop[hidden] { display: none; }
    .cmf-backdrop.is-open { opacity: 1; }

    /* Filter Panel — Left/Right Space */
    .cmf-panel {
        position: fixed;
        left: 12px;                              /* ← Left space */
        right: 12px;                             /* ← Right space */
        bottom: 12px;                            /* ← Bottom space */
        z-index: 70;
        max-height: 85vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #FFFFFF;
        border: 0;
        border-radius: 16px;                     /* ← Rounded corners */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.32s;
    }

    .cmf-panel.is-open {
        transform: none;
        visibility: visible;
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
    }

    /* Panel Header (Filters + Close X) */
    .cmf-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 18px 20px;
        background: #FFFFFF;
        border-bottom: 1px solid #F0F1F3;
        border-radius: 16px 16px 0 0;
    }

    .cmf-panel-head span {
        font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: #1A1A1A;
    }

    .cmf-x {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        font-size: 20px;
        line-height: 1;
        border: 0;
        background: #F3F4F6;
        color: #1A1A1A;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .cmf-x:hover {
        background: #E5E7EB;
    }

    /* Form inside panel */
    .cmf-form {
        padding: 16px 20px 20px;
    }

    .cmf-group {
        padding: 12px 0;
        border-bottom: 0;
    }

    .cmf-group + .cmf-group {
        margin-top: 4px;
    }

    /* Actions Footer (Clear + Show Results) */
    .cmf-actions {
        position: sticky;
        bottom: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        background: #FFFFFF;
        padding: 14px 0 4px;
        margin-top: 12px;
        border-top: 1px solid #F0F1F3;
    }
}/* =========================================================
   FILTER TYPOGRAPHY — Light & Professional
   ========================================================= */

.filter-label,
.cmf-label {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 600;                    /* ← 800 se 600 kar diya */
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9AA1AA;                       /* ← Halka gray */
    margin: 0 0 8px;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 46px;
    padding: 0 36px 0 14px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;                     /* ← 500 se 400 kar diya */
    color: #1A1A1A;
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #D5D8DD;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:hover {
    border-color: #9AA1AA;
}

.filter-select:focus {
    border-color: #1A1A1A;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.filter-select:disabled {
    background-color: #F6F7F8;
    color: #9CA3AF;
    cursor: not-allowed;
    border-color: #E5E7EB;
}

/* Mobile Filter Button */
.cmf-btn-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;                     /* ← 600 se 500 */
    letter-spacing: 0.01em;
    color: #1A1A1A;
    background: #FFFFFF;
    border: 1px solid #1A1A1A;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Show Results Button */
.cmf-apply {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;                     /* ← 700 se 600 */
    letter-spacing: 0.02em;
    color: #FFFFFF;
    background: #1A1A1A;
    border: 1px solid #1A1A1A;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Clear All Link */
.cmf-reset {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #6B7076;
    text-decoration: underline;
    text-underline-offset: 3px;
}



/* ========================================
   CARMAX LOGO — ALL SCREEN RESPONSIVE
======================================== */

/* Default: Desktop */
.site-header img[alt*="CarMax" i],
.site-header img[alt*="logo" i],
.site-header img[src*="logo" i],
.site-header img[src*="carmax" i] {
    width: auto !important;
    height: 100px !important;
    max-width: 100%;
    object-fit: contain;
}

/* Laptop */
@media (max-width: 1199px) {
    .site-header img[alt*="CarMax" i],
    .site-header img[alt*="logo" i],
    .site-header img[src*="logo" i],
    .site-header img[src*="carmax" i] {
        height: 90px !important;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .site-header img[alt*="CarMax" i],
    .site-header img[alt*="logo" i],
    .site-header img[src*="logo" i],
    .site-header img[src*="carmax" i] {
        height: 95px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .site-header img[alt*="CarMax" i],
    .site-header img[alt*="logo" i],
    .site-header img[src*="logo" i],
    .site-header img[src*="carmax" i] {
        height: 90px !important;
        max-width: 90vw;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .site-header img[alt*="CarMax" i],
    .site-header img[alt*="logo" i],
    .site-header img[src*="logo" i],
    .site-header img[src*="carmax" i] {
        height: 87px !important;
        max-width: 90vw;
    }
}
