/* ==========================================================================
   Dash360 Motors — public site
   ========================================================================== */
:root {
  --ink: #0c0f14;
  --ink-2: #2a3039;
  --muted: #5f6672;
  --subtle: #8b919b;
  --line: #e4e6e9;
  --line-2: #cdd1d6;
  --bg: #ffffff;
  --tint: #f4f5f6;
  --surface: #ffffff;   /* cards, inputs, panels */
  --night: #0c0f14;     /* sections that stay dark in every theme */
  --on-ink: #ffffff;    /* text on --ink fills */
  --mark: var(--night);
  /* Brand colour: overridden per dealer from Website settings (see theme_style_tag()). */
  --accent: #c8f031;
  --accent-2: #b4d82c;
  --on-accent: #0c0f14;
  --accent-on-dark: #c8f031;
  --accent-on-ink: var(--accent-on-dark);
  --red: #e0352b;
  --amber: #f5a524;
  --wa: #17a957;
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Dark theme: Website settings → Theme. "auto" follows the visitor's device. */
:root[data-theme="dark"] {
  --ink: #eef1f4;
  --ink-2: #c7cdd5;
  --muted: #9aa2ad;
  --subtle: #7d8591;
  --line: #252b34;
  --line-2: #343c48;
  --bg: #0e1116;
  --tint: #171c23;
  --surface: #13171d;
  --night: #07090c;
  --on-ink: #0e1116;
  --mark: #1d222a;
  --accent-on-ink: var(--on-ink);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --ink: #eef1f4;
    --ink-2: #c7cdd5;
    --muted: #9aa2ad;
    --subtle: #7d8591;
    --line: #252b34;
    --line-2: #343c48;
    --bg: #0e1116;
    --tint: #171c23;
    --surface: #13171d;
    --night: #07090c;
    --on-ink: #0e1116;
    --mark: #1d222a;
    --accent-on-ink: var(--on-ink);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-stretch: 112%; }
p { margin: 0; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 300; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.i { width: 18px; height: 18px; flex-shrink: 0; }
.eyebrow { font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.eyebrow-light { color: rgba(255, 255, 255, .72); }
.eyebrow-accent { color: var(--accent-on-dark); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 650; font-size: .92rem; letter-spacing: .005em; cursor: pointer; white-space: nowrap; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 17px; height: 17px; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: #262b33; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-2); }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #12924a; }
.btn-lg { height: 52px; padding: 0 24px; font-size: .98rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 0; background: transparent; cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: var(--tint); }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn-outline { border: 1px solid var(--line-2); background: var(--surface); }
.icon-btn-outline:hover { border-color: var(--ink); background: var(--surface); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .92rem; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Forms ---------- */
input, select, textarea { font: inherit; color: var(--ink); }
.field { display: block; }
.field > span { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .filters select, .contact-form select, .sort-form select {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); padding: 0 14px; height: 46px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .filters select:focus, .sort-form select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12, 15, 20, .08); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230c0f14' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px !important; cursor: pointer; }
select:disabled { color: var(--subtle); background-color: var(--tint); cursor: not-allowed; }
.form { display: grid; gap: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fine { font-size: .78rem; color: var(--muted); text-align: center; }

/* Segmented control (radio pills) */
.seg { display: grid; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 3px; gap: 3px; background: var(--surface); }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg label, .hs-tab, .body-picker label { position: relative; }
.seg input, .hs-tab input, .body-picker input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px 4px; border-radius: 4px; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.seg span:hover { color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + span, .hs-tab input:focus-visible + span, .body-picker input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Test drive day + time picker (shown only when "Test drive" is selected) */
.td-picker { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.form:has(input[name=type][value=test_drive]:checked) .td-picker { display: grid; gap: 10px; }
.td-picker legend { padding: 0; margin-bottom: 10px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.td-days { display: grid; grid-auto-flow: column; grid-auto-columns: 62px; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.td-day { position: relative; scroll-snap-align: start; }
.td-day span { display: grid; justify-items: center; gap: 1px; padding: 8px 2px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.td-day small { font-size: .66rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.td-day strong { font-size: 1.15rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.td-day span:hover { border-color: var(--ink); }
.td-day input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.td-day input:checked + span small { color: inherit; opacity: .75; }
.td-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.td-times[hidden] { display: none; }
.td-times label { position: relative; }
.td-times span { display: block; text-align: center; padding: 8px 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); font-size: .84rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background .15s; }
.td-times span:hover { border-color: var(--ink); }
.td-times input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.td-day input, .td-times input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.td-day input:focus-visible + span, .td-times input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.td-hint, .td-none { margin: 0; font-size: .8rem; color: var(--muted); }
.td-hint.is-set { color: var(--ink); font-weight: 600; }

/* Consent checkboxes */
.consent { display: grid; gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: var(--ink-2); cursor: pointer; line-height: 1.4; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { text-decoration-thickness: 2px; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 14px; border: 1px solid; }
.alert-success { background: #f1fbe0; border-color: #cfe9a0; color: #2f4a06; }
.alert-error { background: #fdf0ef; border-color: #f3c6c2; color: #8a1d16; }
.alert-info { background: var(--tint); border-color: var(--line); color: var(--ink-2); }

/* ---------- Flags ---------- */
.flag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 3px; background: var(--ink); color: var(--on-ink); line-height: 1; }
.flag-inline { position: static; display: inline-block; }
.flag-new { background: var(--accent); color: var(--on-accent); }
.flag-demo { background: var(--ink); color: var(--on-ink); }
.flag-used { background: var(--tint); color: var(--ink-2); }
.flag-sold { background: var(--red); color: #fff; }
.flag-reserved { background: var(--amber); color: var(--ink); }
.flag-lg { top: 20px; left: 20px; font-size: .8rem; padding: 8px 12px 7px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--night); color: #aeb4bd; font-size: .78rem; }
.topbar-inner { display: flex; gap: 28px; height: 36px; align-items: center; }
.topbar-inner > * { display: inline-flex; align-items: center; gap: 7px; }
.topbar-inner a { margin-left: auto; }
.topbar-inner a:hover { color: #fff; }
.topbar .i { width: 14px; height: 14px; opacity: .7; }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; color: var(--mark); }
.logo-word { font-stretch: 125%; font-weight: 850; font-size: 1.22rem; letter-spacing: .01em; line-height: 1; }
.logo-word b { font-weight: 350; }
.logo-sub { font-size: .62rem; font-weight: 650; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 10px; line-height: 1; padding-top: 2px; }
.logo-light { color: #fff; }
.logo-light .logo-mark { color: #fff; }
.logo-light .logo-mark rect { fill: #1d222a; }
.logo-light .logo-sub { color: #8b919b; border-color: #3a404a; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a { position: relative; padding: 10px 12px; font-weight: 550; font-size: .93rem; color: var(--ink-2); border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--ink); background: var(--tint); }
.main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 2px; background: var(--ink); }
.nav-mobile-call { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-call { height: 42px; font-variant-numeric: tabular-nums; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flow-root; color: #fff; background: var(--night); isolation: isolate; } /* flow-root: keeps the search box's negative margin inside, so it straddles the hero edge */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 10, 13, .92) 0%, rgba(8, 10, 13, .72) 42%, rgba(8, 10, 13, .25) 100%), linear-gradient(0deg, rgba(8, 10, 13, .7) 0%, rgba(8, 10, 13, 0) 45%); }
.hero-inner { padding-top: 96px; padding-bottom: 72px; max-width: 1280px; }
.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-stretch: 118%; font-weight: 820; line-height: .98; letter-spacing: -.025em; max-width: 14ch; }
.hero-lede { margin-top: 22px; max-width: 46ch; font-size: 1.08rem; color: rgba(255, 255, 255, .78); }
.hero-search-wrap { position: relative; z-index: 3; margin-bottom: -64px; }

.hero-search { background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: 0 24px 60px -12px rgba(8, 10, 13, .45), 0 0 0 1px rgba(8, 10, 13, .04); overflow: hidden; }
.hs-tabs { display: flex; gap: 28px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.hs-tab span { display: block; padding: 16px 0 14px; font-weight: 650; font-size: .9rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.hs-tab span:hover { color: var(--ink); }
.hs-tab input:checked + span { color: var(--ink); border-color: var(--ink); }
.hs-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: stretch; }
.hs-field { position: relative; display: block; padding: 14px 24px 12px; border-right: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.hs-field:hover { background: var(--tint); }
.hs-field > span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hs-field select { width: 100%; border: 0; background-color: transparent; font-weight: 600; font-size: 1rem; padding: 4px 0 2px; background-position: right 0 center; outline: none; }
.hs-submit { height: auto; border-radius: 0; padding: 0 32px; font-size: 1rem; min-width: 220px; }
.hs-submit .i { width: 20px; height: 20px; }

/* ---------- Trust strip ---------- */
.trust-strip { padding: 120px 0 40px; border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-inner > div { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--muted); }
.trust-inner b { color: var(--ink); font-weight: 650; }
.trust-inner .i { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--tint); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-flush { padding: 56px 0 24px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.rail-controls { display: flex; align-items: center; gap: 8px; }
.rail-controls .link-arrow { margin-right: 14px; }

.body-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.body-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s, background .18s, transform .18s var(--ease); }
.body-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.body-tile .body-icon { width: 92px; height: 36px; color: var(--ink); margin-bottom: 14px; }
.body-name { font-weight: 650; }
.body-count { font-size: .8rem; color: var(--muted); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.budget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.budget-tile { display: flex; flex-direction: column; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s; }
.budget-pre { font-size: .82rem; font-weight: 600; color: var(--muted); }
.budget-amount { font-size: clamp(2rem, 3.4vw, 2.8rem); font-stretch: 125%; font-weight: 820; letter-spacing: -.02em; line-height: 1.05; margin: 2px 0 26px; }
.budget-count { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: 14px; }
.budget-tile:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.budget-tile:hover .budget-pre { color: #aeb4bd; }
.budget-tile:hover .budget-count { border-color: #2c323b; }
.budget-tile:hover .i { color: var(--accent-on-ink); }

.feature-band { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--night); color: #fff; }
.feature-media { position: relative; min-height: 520px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: 80px clamp(24px, 6vw, 88px); align-self: center; max-width: 640px; }
.feature-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-stretch: 118%; font-weight: 800; letter-spacing: -.02em; line-height: 1.02; }
.feature-copy > p { margin-top: 18px; color: #aeb4bd; font-size: 1.02rem; }
.ticks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--on-accent); stroke-width: 3; }
.feature-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.make-index { list-style: none; padding: 0; margin: 0; columns: 4; column-gap: 32px; }
.make-index li { break-inside: avoid; }
.make-index a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 550; transition: padding .2s var(--ease); }
.make-index a:hover { padding-left: 6px; }
.make-index b { font-weight: 500; color: var(--subtle); font-variant-numeric: tabular-nums; }
.disclaimer { font-size: .76rem; color: var(--subtle); padding: 40px 0 40px; text-align: center; }

/* ---------- Vehicle card ---------- */
.vcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .25s var(--ease); }
.vcard:hover { border-color: var(--line-2); box-shadow: 0 16px 40px -18px rgba(12, 15, 20, .28); }
.vcard-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--tint); overflow: hidden; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard:hover .vcard-media img { transform: scale(1.04); }
.is-sold .vcard-media img { filter: grayscale(1); opacity: .7; }
.photo-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; background: rgba(12, 15, 20, .72); color: #fff; font-size: .72rem; font-weight: 600; backdrop-filter: blur(6px); }
.photo-count .i { width: 13px; height: 13px; }
.vcard-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 16px; }
.vcard-title { font-size: 1.04rem; font-weight: 700; font-stretch: 105%; line-height: 1.25; }
.vcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.vcard-year { font-weight: 450; color: var(--muted); }
.vcard-variant { margin-top: 2px; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-specs { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--ink-2); }
.vcard-specs li { display: inline-flex; align-items: center; gap: 6px; }
.vcard-specs .i { width: 15px; height: 15px; color: var(--subtle); }
.vcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 14px; }
.vcard-price strong { display: block; font-size: 1.4rem; font-weight: 780; font-stretch: 112%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.vcard-price span { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vcard-loc { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.vcard-loc .i { width: 14px; height: 14px; }
.vcard-cta { position: relative; z-index: 2; }

/* List variant */
.vcard-list { flex-direction: row; }
.vcard-list .vcard-media { flex: 0 0 340px; aspect-ratio: auto; min-height: 220px; }
.vcard-list .vcard-body { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head price" "specs specs" "loc cta"; column-gap: 24px; padding: 22px 24px; }
.vcard-list .vcard-head { grid-area: head; }
.vcard-list .vcard-title { font-size: 1.22rem; }
.vcard-list .vcard-specs { grid-area: specs; margin-top: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .85rem; gap: 8px 22px; }
.vcard-list .vcard-foot { display: contents; }
.vcard-list .vcard-price { grid-area: price; text-align: right; }
.vcard-list .vcard-price strong { font-size: 1.65rem; }
.vcard-list .vcard-loc { grid-area: loc; align-self: center; margin-top: 16px; }
.vcard-list .vcard-cta { grid-area: cta; margin-top: 16px; }
.vcard-list .vcard-cta .i { transition: transform .2s var(--ease); }
.vcard-list:hover .vcard-cta .i { transform: translateX(3px); }

/* ---------- Results page ---------- */
.results-hero { background: var(--tint); border-bottom: 1px solid var(--line); padding: 20px 0 32px; }
.results-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-stretch: 116%; font-weight: 800; letter-spacing: -.02em; margin-top: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs .i { width: 13px; height: 13px; color: var(--subtle); }
.breadcrumbs span { color: var(--ink); }

.results-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 32px; padding-bottom: 32px; }
.filters-panel { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.filters-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.filters-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-stretch: 100%; font-weight: 700; flex: 1; }
.filters-reset { font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.filters-reset:hover { color: var(--ink); }
.filters-close { display: none; }
.fgroup { display: grid; gap: 8px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.fgroup h3 { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.filters select { height: 42px; font-size: .9rem; }
.search-input { position: relative; display: block; }
.search-input .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--subtle); }
.search-input input { width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 12px 0 38px; font-size: .9rem; }
.search-input input:focus { outline: none; border-color: var(--ink); }
.body-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.body-picker span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .76rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.body-picker .body-icon { width: 52px; height: 20px; color: var(--muted); }
.body-picker span:hover { border-color: var(--line-2); }
.body-picker input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.body-picker input:checked + span .body-icon { color: var(--accent-on-ink); }
.filters-foot { position: sticky; bottom: 0; padding: 16px 20px; background: var(--surface); border-top: 1px solid var(--line); margin-top: -1px; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { font-size: .95rem; color: var(--muted); }
.results-count b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.results-tools { display: flex; align-items: center; gap: 10px; }
.sort-form label { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.sort-form select { height: 40px; width: auto; font-size: .88rem; font-weight: 600; }
.view-toggle { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 3px; }
.view-toggle a { display: grid; place-items: center; width: 34px; height: 32px; border-radius: 4px; color: var(--subtle); }
.view-toggle a.on { background: var(--ink); color: var(--on-ink); }
.filters-open { display: none; height: 40px; }
.filters-open em { font-style: normal; background: var(--accent); color: var(--on-accent); border-radius: 10px; padding: 0 7px; font-size: .75rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 4px; background: var(--ink); color: var(--on-ink); font-size: .82rem; font-weight: 600; }
.chip .i { width: 14px; height: 14px; opacity: .7; }
.chip:hover .i { opacity: 1; }
.chip-clear { font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.card-list { display: grid; gap: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .body-icon { width: 120px; height: 48px; color: var(--line-2); margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 8px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--ink); }
.pagination a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.results .disclaimer { padding-top: 24px; }

/* ---------- Vehicle details page ---------- */
.vdp { padding-top: 22px; }
.vdp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin: 22px 0 24px; }
.vdp-flags { display: flex; align-items: center; gap: 10px; font-size: .8rem; margin-bottom: 12px; }
.vdp-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-stretch: 116%; font-weight: 820; letter-spacing: -.02em; }
.vdp-year { font-weight: 400; color: var(--muted); }
.vdp-variant { margin-top: 6px; font-size: 1.05rem; color: var(--muted); }
.vdp-meta { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--ink-2); }
.vdp-meta li { display: inline-flex; align-items: center; gap: 7px; }
.vdp-meta .i { width: 17px; height: 17px; color: var(--subtle); }
.vdp-head-price { text-align: right; flex-shrink: 0; }
.vdp-head-price strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-stretch: 112%; font-weight: 820; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.vdp-head-price a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; font-weight: 600; border-bottom: 1.5px solid var(--accent-2); }
.vdp-head-price .i { width: 16px; height: 16px; }

.mosaic { position: relative; display: grid; gap: 6px; height: clamp(320px, 46vw, 560px); border-radius: 14px; overflow: hidden; background: var(--tint); }
.mosaic-1 { grid-template-columns: 1fr; }
.mosaic-2 { grid-template-columns: 1fr 1fr; }
.mosaic-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic-4 .mosaic-item:nth-child(4) { grid-column: 2 / 4; }
.mosaic-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic-3 .mosaic-item:first-child, .mosaic-4 .mosaic-item:first-child, .mosaic-5 .mosaic-item:first-child { grid-row: 1 / 3; }
.mosaic-item { position: relative; padding: 0; border: 0; background: var(--tint); cursor: zoom-in; overflow: hidden; min-height: 0; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.mosaic-item:hover img { transform: scale(1.03); filter: brightness(.92); }
.mosaic-all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); background: var(--surface); font-weight: 650; font-size: .86rem; cursor: pointer; box-shadow: 0 4px 16px rgba(12, 15, 20, .18); }
.mosaic-all:hover { background: var(--accent); color: var(--on-accent); }

.vdp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; margin-top: 8px; }
.vdp-tabs { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 28px; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.vdp-tabs a { padding: 18px 0 16px; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.vdp-tabs a:hover, .vdp-tabs a.on { color: var(--ink); border-color: var(--ink); }
.vdp-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.vdp-section:last-child { border-bottom: 0; }
.vdp-section > h2 { font-size: 1.4rem; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.vdp-section .count { font-size: .78rem; font-stretch: 100%; font-weight: 700; background: var(--tint); border-radius: 4px; padding: 3px 8px; color: var(--muted); }
.spec-tiles { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec-tiles li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.spec-tiles .i { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--ink); stroke-width: 1.5; }
.spec-tiles span { font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec-tiles strong { font-weight: 650; font-size: .98rem; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin: 0; }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.feature-list { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 28px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; break-inside: avoid; font-size: .92rem; }
.feature-list .i { width: 18px; height: 18px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--accent); color: var(--on-accent); stroke-width: 3.2; }
.prose { max-width: 68ch; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 28px; align-items: start; }
.calc-inputs { display: grid; gap: 22px; }
.calc-row { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; align-items: baseline; }
.calc-row label { font-weight: 600; font-size: .92rem; }
.calc-row output { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-row input[type=range] { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); cursor: pointer; margin: 6px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(12, 15, 20, .2); transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.calc-result { display: grid; gap: 6px; padding: 26px; border-radius: 14px; background: var(--night); color: #fff; }
.calc-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #aeb4bd; }
.calc-result > strong { font-size: 2.5rem; font-stretch: 116%; font-weight: 820; letter-spacing: -.02em; color: var(--accent-on-dark); font-variant-numeric: tabular-nums; line-height: 1.1; }
.calc-result dl { margin: 14px 0 18px; display: grid; gap: 0; border-top: 1px solid #262c35; }
.calc-result dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #262c35; font-size: .86rem; }
.calc-result dt { color: #aeb4bd; }
.calc-result dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-result small { color: #7f8792; font-size: .74rem; margin-top: 8px; }

.vdp-side { position: sticky; top: calc(var(--header-h) + 20px); min-width: 0; }
.side-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--surface); box-shadow: 0 20px 50px -30px rgba(12, 15, 20, .3); }
.side-price { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.side-price span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side-price strong { display: block; font-size: 2.1rem; font-stretch: 112%; font-weight: 820; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.side-price a { font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.side-actions { display: grid; gap: 8px; margin-bottom: 22px; }
.side-title { font-size: 1.05rem; font-stretch: 100%; font-weight: 700; }
.dealer { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }
.dealer .logo-mark { width: 40px; height: 40px; }
.dealer strong { display: block; font-size: .9rem; }
.dealer span { color: var(--muted); }
.mobile-bar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8, 10, 13, .97); color: #fff; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 20px; padding: 14px 20px; }
.lb-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.lb-title { flex: 1; color: #aeb4bd; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-close, .lb-nav { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background .15s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .18); }
.lb-close .i, .lb-nav .i { width: 22px; height: 22px; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 80px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 16px 20px 20px; overflow-x: auto; }
.lb-thumbs button { flex: 0 0 88px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #1a1e25; cursor: pointer; opacity: .5; transition: opacity .15s, border-color .15s; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button.on { opacity: 1; border-color: var(--accent); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.lb-open { overflow: hidden; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.contact-info { background: var(--night); color: #fff; border-radius: 14px; padding: 40px; }
.contact-info h2 { font-size: 1.7rem; font-stretch: 114%; line-height: 1.1; }
.contact-info > p:not(.eyebrow) { margin-top: 14px; color: #aeb4bd; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid #262c35; }
.contact-list .i { width: 20px; height: 20px; color: var(--accent-on-dark); margin-top: 2px; }
.contact-list span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8b919b; margin-bottom: 2px; }
.contact-list a:hover { color: var(--accent-on-dark); }
.contact-form .form { gap: 16px; }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #aeb4bd; margin-top: 40px; }
.page-home .site-footer { margin-top: 0; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 64px 0; border-bottom: 1px solid #222831; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-stretch: 120%; font-weight: 820; letter-spacing: -.02em; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 0 48px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: .9rem; }
.site-footer h3 { color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { width: 16px; height: 16px; margin-top: 3px; color: #6b727d; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid #222831; font-size: .8rem; color: #747b86; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .card-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vdp-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .feature-list { columns: 2; }
  .hs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-field:nth-child(2) { border-right: 0; }
  .hs-field:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hs-submit { grid-column: 1 / -1; height: 56px; }
  .main-nav { gap: 0; }
  .header-inner { gap: 24px; }
}
@media (max-width: 1024px) {
  .header-call span { display: none; }
  .header-call { width: 42px; padding: 0; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vcard-list .vcard-media { flex-basis: 280px; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-media { min-height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .make-index { columns: 3; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .nav-toggle { display: inline-grid; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; background: var(--surface); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; overflow-y: auto; }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav a { padding: 16px 0; font-size: 1.15rem; font-weight: 650; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a:hover { background: transparent; }
  .main-nav a[aria-current]::after { display: none; }
  .nav-mobile-call { display: flex !important; align-items: center; gap: 10px; border-bottom: 0 !important; margin-top: 12px; }
  .header-call { display: none; }
  .trust-inner { grid-template-columns: 1fr; gap: 14px; }
  .budget-grid { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: calc((100% - 20px) / 2); }

  .results-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .filters { position: fixed; inset: 0; z-index: 150; background: rgba(8, 10, 13, .5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .filters.open { opacity: 1; visibility: visible; }
  .filters-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 92vw); max-height: none; border-radius: 0; border: 0; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .filters.open .filters-panel { transform: none; }
  .filters-close { display: inline-grid; }
  .filters-open { display: inline-flex; }
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .vdp-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .vdp-head-price { text-align: left; }
  .vdp-layout { grid-template-columns: minmax(0, 1fr); }
  .vdp-side { position: static; }
  .mosaic { height: auto; aspect-ratio: 4 / 3; grid-template-columns: 1fr; grid-template-rows: 1fr; margin: 0 -24px; border-radius: 0; }
  .mosaic .mosaic-item:not(:first-child) { display: none; }
  .mosaic .mosaic-item:first-child { grid-row: auto; }
  .page-vdp { padding-bottom: 76px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(12, 15, 20, .2); }
  .mobile-bar .btn { padding: 0 10px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .mosaic { margin: 0 -16px; }
  .section { padding: 52px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .rail-controls .icon-btn { display: none; }
  .rail { grid-auto-columns: 82%; gap: 14px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .hero-inner { padding-top: 56px; padding-bottom: 36px; }
  .hero-search-wrap { margin-bottom: -40px; }
  .hs-tabs { gap: 20px; padding: 0 16px; overflow-x: auto; }
  .hs-fields { grid-template-columns: 1fr; }
  .hs-field { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 12px 16px 10px; }
  .hs-submit { min-width: 0; }
  .trust-strip { padding-top: 76px; }
  .logo-sub { display: none; }
  .card-grid, .card-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .vcard-list { flex-direction: column; }
  .vcard-list .vcard-media { flex-basis: auto; aspect-ratio: 3 / 2; min-height: 0; }
  .vcard-list .vcard-body { grid-template-columns: 1fr; grid-template-areas: "head" "specs" "price" "loc" "cta"; padding: 16px 18px; }
  .vcard-list .vcard-price { text-align: left; margin-top: 14px; }
  .vcard-list .vcard-loc { margin-top: 4px; }
  .vcard-list .vcard-cta { display: none; }
  .vcard-list .vcard-specs { border-bottom: 0; padding-bottom: 0; }
  .results-tools { width: 100%; }
  .sort-form { flex: 1; }
  .sort-form label span { display: none; }
  .sort-form select { width: 100%; }
  .budget-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .budget-tile { padding: 18px 16px 16px; }
  .budget-amount { font-size: 1.7rem; margin-bottom: 18px; }
  .make-index { columns: 2; column-gap: 20px; }
  .spec-tiles { grid-template-columns: 1fr 1fr; }
  .spec-table { grid-template-columns: 1fr; }
  .feature-list { columns: 1; }
  .pair { grid-template-columns: 1fr; }
  .filters .pair { grid-template-columns: 1fr 1fr; }
  .side-card { padding: 20px; border-radius: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-copy { padding: 48px 16px; }
  .contact-info { padding: 28px 22px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { width: 40px; height: 40px; background: rgba(8, 10, 13, .6); }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Uploaded dealer logo and managed details */
.logo-img { display: block; height: auto; max-height: 44px; max-width: 220px; width: auto; object-fit: contain; }
.logo-word-name { font-size: 1.05rem; font-weight: 800; letter-spacing: 0; max-width: 18ch; line-height: 1.1; }
.logo-light .logo-img { max-height: 48px; }
.logo-img-tile { background: #fff; padding: 8px 12px; border-radius: 8px; box-sizing: content-box; }
.dealer-logo { display: flex; flex-shrink: 0; }
.dealer-logo .logo-img { max-width: 72px; max-height: 40px; }
.dealer-logo .logo-img-tile { padding: 4px 6px; }
.footer-contact small { color: #8b919b; }
.hours-list { margin: 6px 0 0; display: grid; gap: 2px; min-width: 240px; }
.hours-list div { display: flex; justify-content: space-between; gap: 24px; padding: 3px 0; }
.hours-list dt, .hours-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours-list dt { color: #aeb4bd; }
.hours-list .is-today dt, .hours-list .is-today dd { color: #fff; font-weight: 650; }
.hours-list em { font-style: normal; font-size: .66rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }
.hours-note { display: block; margin-top: 6px; color: #8b919b; }
@media (max-width: 640px) {
  .logo-img { max-height: 36px; max-width: 160px; }
}

/* Terms and Privacy pages */
.legal-updated { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 720px) 260px; justify-content: space-between; gap: 48px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.legal-body { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.legal-body > :first-child { margin-top: 0; font-size: 1.08rem; color: var(--ink); }
.legal-body h2 { margin: 40px 0 10px; font-size: 1.3rem; color: var(--ink); scroll-margin-top: 96px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--muted); }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-side { position: sticky; top: 96px; display: grid; gap: 20px; }
.legal-toc h2, .legal-also p { margin: 0 0 10px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); display: grid; gap: 8px; }
.legal-toc a { font-size: .88rem; color: var(--ink-2); }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-also { display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-also a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .92rem; }
.legal-also svg { width: 14px; height: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .legal-side { position: static; }
  .legal-toc { display: none; }
}
