/* NYC AUTO GRAND — Car.com-inspired dealership prototype. */
:root {
  --color-canvas: #ffffff;
  --color-surface: #ffffff;
  --color-ink: #242424;
  --color-muted: #626262;
  --color-line: #dedde1;
  --color-action: #c1ee00;
  --color-accent: #173d35;
  --color-tint: #f3f6e9;
  --color-night: #0d0c1c;
  --color-soft: #e9e6ee;
  --color-success: #26704b;
  --color-success-bg: #e7f3eb;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --shadow-card: 0 8px 24px rgba(23, 31, 15, 0.06);
  --pad-x: 48px;
  --pad-y: 48px;
  --content: 1248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-ink);
  background: var(--color-canvas);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }

/* Type scale */
.display { font-size: 64px; }
.h1 { font-size: 36px; }
.h2 { font-size: 28px; }
.h2-lg { font-size: 36px; }
.h2-sm { font-size: 28px; }
.h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.004em; font-weight: 600; }
.body { font-size: 16px; color: var(--color-muted); }
.small { font-size: 14px; color: var(--color-muted); }
.caption { font-size: 12px; font-weight: 500; }
.label { font-size: 14px; font-weight: 600; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--color-accent); letter-spacing: 0; }
.eyebrow-sm { font-size: 12px; font-weight: 500; color: var(--color-accent); }
.measure { max-width: 760px; }

/* Layout */
.section { padding: var(--pad-y) var(--pad-x); }
.section > .inner { max-width: var(--content); margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.section.gap-16 > .inner { gap: 16px; }
.section.gap-32 > .inner { gap: 32px; }
.section.gap-48 > .inner { gap: 48px; }
.surface { background: var(--color-surface); }
.tint { background: var(--color-tint); }
.night { background: var(--color-night); color: var(--color-surface); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 16px; border-radius: var(--radius-24);
  font: 600 14px/1.4 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap; color: var(--color-ink);
}
.btn-primary { background: var(--color-action); }
.btn-dark { background: var(--color-ink); color: var(--color-surface); }
.btn-secondary { background: var(--color-surface); border-color: var(--color-line); }
.btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 2px;
}
.btn-w180 { width: 180px; }
.btn-w220 { width: 220px; }
.btn-w240 { width: 240px; }
.text-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Navigation */
.nav { background: var(--color-surface); }
.nav .inner {
  max-width: var(--content); margin: 0 auto; padding: 20px var(--pad-x);
  display: flex; align-items: center; gap: 40px;
}
@media (min-width: 1440px) { .nav .inner { padding-left: 0; padding-right: 0; } }
.brand { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; text-decoration: none; flex: 1; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--color-accent); }
.menu-toggle { display: none; background: none; border: 0; font: 600 14px/1.4 inherit; font-family: inherit; color: var(--color-ink); cursor: pointer; padding: 0; }

/* Mobile menu panel (matches the Menu frame) */
.menu-panel { display: none; position: fixed; inset: 0; z-index: 20; background: var(--color-surface); padding: 24px; flex-direction: column; gap: 32px; overflow: auto; }
.menu-panel[data-open="true"] { display: flex; }
.menu-panel .btn { width: 100%; }

/* Hero */
.hero { display: flex; gap: 48px; align-items: flex-start; }
.hero-copy { width: 480px; flex: none; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-copy .body { max-width: 460px; }
.hero-photo { flex: 1; height: 450px; border-radius: var(--radius-16); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Section headings with side link */
.heading-row { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.heading-row .title { display: flex; flex-direction: column; gap: 8px; max-width: 1000px; }
.heading-row .text-link { padding-top: 4px; }

/* Vehicle cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--color-surface);
  border-radius: var(--radius-16); box-shadow: var(--shadow-card); overflow: hidden; text-decoration: none; color: inherit;
}
.card-photo { height: 234px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card-title { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.004em; }
.card-price { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.004em; }
.badge { display: inline-block; padding: 8px; border-radius: var(--radius-8); font-size: 12px; font-weight: 500; background: var(--color-success-bg); color: var(--color-success); }
.badge-sold { background: var(--color-soft); color: var(--color-muted); }
.card[hidden] { display: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step .body { max-width: 396px; }

/* FAQ */
.faq { max-width: 880px; display: flex; flex-direction: column; }
.faq-item { padding: 24px 0; border-top: 1px solid var(--color-line); display: flex; flex-direction: column; gap: 8px; }
.faq-item:last-child { border-bottom: 1px solid var(--color-line); }

/* Selects */
.field-select { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field-select select, .range select {
  width: 100%; height: 48px; padding: 12px; border: 1px solid var(--color-line); border-radius: var(--radius-8);
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23191c17' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
  font: 400 14px/1.4 inherit; font-family: inherit; color: var(--color-ink); appearance: none; -webkit-appearance: none;
}
.field-select select:disabled { color: var(--color-muted); background-color: var(--color-canvas); }
.budget-links { display: inline-flex; flex-wrap: wrap; gap: 8px 16px; margin-left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Inventory: refine sidebar + results */
.inventory { display: flex; gap: 24px; align-items: flex-start; }
.refine {
  width: 280px; flex: none; background: var(--color-surface); border-radius: var(--radius-16); padding: 24px 16px;
  display: flex; flex-direction: column; gap: 16px; margin: 0;
}
.refine-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.refine-head .small { margin-top: 4px; }
.icon-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-line); background: var(--color-surface); font: 400 20px/1 inherit; font-family: inherit; cursor: pointer; color: var(--color-ink); }
.refine .divider { margin: 0; }
.refine .chips:empty { display: none; }
.fgroup { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fgroup legend { padding: 0; margin-bottom: 8px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range label { display: flex; flex-direction: column; gap: 6px; }
.range input, .range select { height: 40px; }
.range input {
  width: 100%; padding: 0 12px; border: 1px solid var(--color-line); border-radius: var(--radius-8); background: var(--color-surface);
  font: 400 14px/1.4 inherit; font-family: inherit; color: var(--color-ink); -moz-appearance: textfield;
}
.range input::-webkit-outer-spin-button, .range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range input::placeholder { color: var(--color-ink); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { min-width: 72px; }
.seg label { position: relative; flex: 1; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; height: 40px; border: 1px solid var(--color-line); border-radius: var(--radius-8); background: var(--color-surface); font-size: 14px; font-weight: 600; }
.seg input:checked + span { background: var(--color-ink); color: var(--color-surface); border-color: var(--color-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--color-line); border-radius: var(--radius-8); background: var(--color-surface); font-size: 14px; cursor: pointer; }
.tile input { margin: 0; width: 16px; height: 16px; accent-color: var(--color-ink); }
.tile:has(input:checked) { border-color: var(--color-ink); }
.fsec { border-top: 1px solid var(--color-line); padding-top: 16px; }
.fsec summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.fsec summary::-webkit-details-marker { display: none; }
.fsec summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--color-muted); }
.fsec[open] summary::after { content: "−"; }
.fsec > :not(summary) { margin-top: 12px; }
.fsec .field-select .small { display: block; margin-bottom: 0; }
.sheet-bar { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.sheet-bar .btn { width: 100%; }
.filters-open-btn { display: none; }

.results { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.results-tools { display: flex; gap: 12px; align-items: center; }
.sort {
  height: 48px; padding: 0 40px 0 16px; border: 1px solid var(--color-line); border-radius: var(--radius-24);
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23191c17' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
  font: 600 14px/1.4 inherit; font-family: inherit; color: var(--color-ink); appearance: none; -webkit-appearance: none;
}
.applied { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.applied[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--color-line); border-radius: var(--radius-24);
  background: var(--color-surface); font: 600 12px/1.4 inherit; font-family: inherit; color: var(--color-ink); cursor: pointer;
}
.chip:hover { border-color: var(--color-ink); }
.empty { background: var(--color-surface); border-radius: var(--radius-16); padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty .body { max-width: 560px; }
.empty[hidden], .cards[hidden] { display: none; }

/* Vehicle page (cars.com-style detail layout) */
.vdp-top { padding-bottom: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--color-ink); }
.vdp-section { padding-top: 24px; }
.vdp { display: flex; gap: 24px; align-items: flex-start; }
.vdp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.vdp-side { width: 400px; flex: none; }
.vdp-card { background: var(--color-surface); border-radius: var(--radius-16); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.vdp-card.sticky { position: sticky; top: 24px; }
.vdp-side .h1 { font-size: 32px; }
.price { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.price-row { display: flex; flex-direction: column; gap: 4px; }
.price-row a { color: var(--color-accent); }
.lead { display: flex; flex-direction: column; gap: 12px; }
.lead .btn { width: 100%; }
.lead textarea { min-height: 64px; }
.stars { color: var(--color-accent); letter-spacing: 1px; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-photo { height: 500px; border-radius: var(--radius-16); overflow: hidden; background: var(--color-line); }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-8); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 3 / 2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--color-ink); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv dd a { text-decoration: none; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.feature-group { display: flex; flex-direction: column; gap: 8px; }
.feature-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--color-muted); }
.feature-list li::before { content: "✓"; color: var(--color-success); margin-right: 8px; font-weight: 600; }
.calc { display: flex; flex-direction: column; gap: 16px; }
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field input, .calc-field select {
  height: 44px; padding: 0 12px; border: 1px solid var(--color-line); border-radius: var(--radius-8); background: var(--color-surface);
  font: 400 14px/1.4 inherit; font-family: inherit; color: var(--color-ink); width: 100%;
}
.calc-field select { appearance: none; -webkit-appearance: none; background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23191c17' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.calc-field input[readonly] { background: var(--color-canvas); color: var(--color-muted); }
.calc-result { background: var(--color-tint); border-radius: var(--radius-12); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.sticky-bar { display: none; }
.divider { height: 1px; background: var(--color-line); }

/* About / contact */
.contact { display: flex; gap: 64px; align-items: flex-start; }
.visit { width: 528px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.visit .body { max-width: 500px; }
.visit address { font-style: normal; }
.form-col { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.form-col form { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.field { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-12); }
.field label { font-size: 12px; font-weight: 500; }
.field input, .field textarea { border: 0; padding: 0; font: 400 16px/1.4 inherit; font-family: inherit; color: var(--color-ink); background: transparent; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-ink); }
.field textarea { min-height: 108px; resize: vertical; }
.form-col .field-select { width: 100%; }
.form-col .caption { color: var(--color-muted); max-width: 680px; }

/* Footer */
.footer .inner { gap: 24px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 14px; text-decoration: none; }
.footer address { font-style: normal; font-size: 14px; color: var(--color-soft); }
.footer .legal { font-size: 12px; font-weight: 500; color: var(--color-soft); }
.footer .legal a { text-decoration: none; }

/* Car.com-inspired shopping layout */
html { scroll-behavior: smooth; }
.btn { border-radius: 6px; font-size: 14px; font-weight: 600; padding: 12px 20px; transition: background .15s, border-color .15s; }
.btn-primary { color: #10101e; }
.btn-primary:hover { background: #aed500; }
.btn-secondary:hover { border-color: var(--color-accent); background: #faf8fd; }
.text-link { color: var(--color-accent); }
.location-bar { display: flex; justify-content: space-between; gap: 16px; padding: 8px max(var(--pad-x), calc((100% - var(--content)) / 2)); background: #f6f6f7; font-size: 12px; color: #555; }
.location-bar a { text-decoration: none; white-space: nowrap; }
.nav { border-bottom: 1px solid var(--color-line); }
.nav .inner { max-width: calc(var(--content) + 2 * var(--pad-x)); padding: 18px var(--pad-x); }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.7px; }
.nav .brand { color: var(--color-accent); }
.home-hero { background: #31125d; color: white; padding-top: 52px; padding-bottom: 38px; position: relative; }
.home-hero > .inner { gap: 32px; }
.hero-heading { text-align: center; display: flex; flex-direction: column; gap: 16px; }
.hero-heading .eyebrow { color: #d6c2ff; letter-spacing: 1.5px; font-size: 12px; }
.hero-heading .display { font-size: clamp(36px, 4vw, 54px); font-weight: 700; line-height: 1.12; }
.hero-heading > p:last-child { color: #e0d6ed; font-size: 17px; }
.search-panel { padding: 26px 28px 22px; background: #fff; border-radius: 12px; color: var(--color-ink); box-shadow: 0 12px 24px #15032830; }
.search-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 20px; }
.search-heading h2 { font-size: 20px; }
.search-heading a { font-size: 13px; font-weight: 600; color: var(--color-accent); }
.home-search { display: grid; grid-template-columns: 1fr 1fr 1fr .85fr; gap: 12px; }
.search-field { border: 1px solid #99959f; border-radius: 6px; display: flex; flex-direction: column; min-width: 0; padding: 8px 14px; gap: 3px; }
.search-field span { font-size: 12px; color: var(--color-muted); }
.search-field select { width: 100%; border: 0; background: white; color: var(--color-ink); font: 600 15px/1.5 inherit; font-family: inherit; min-height: 25px; }
.popular-searches { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding-top: 20px; font-size: 13px; }
.popular-searches span { color: var(--color-muted); }
.popular-searches a { color: var(--color-accent); text-underline-offset: 3px; }
.category-section { padding-top: 40px; padding-bottom: 36px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.category-card { border: 1px solid var(--color-line); border-radius: 8px; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s; }
.category-card:hover { border-color: var(--color-accent); }
.category-photo { height: 124px; background: #f5f5f5; }
.category-photo img { width: 100%; height: 100%; object-fit: cover; }
.category-card > strong { font-size: 17px; padding: 16px 18px 4px; }
.category-card > span:last-child { padding: 0 18px 16px; color: var(--color-muted); font-size: 12px; display: flex; justify-content: space-between; }
.category-card b { color: var(--color-accent); font-size: 16px; }
.category-symbol { display: flex; align-items: center; justify-content: center; gap: 6px; height: 124px; color: var(--color-accent); background: #f3f6e9; font-size: 40px; font-weight: 600; letter-spacing: -2px; }
.category-symbol small { font-size: 18px; letter-spacing: 0; }
.dealer-strip { background: #f7f7f8; padding-top: 26px; padding-bottom: 26px; }
.dealer-strip > .inner { flex-direction: row; align-items: center; justify-content: space-between; }
.dealer-strip .body { margin-top: 8px; font-size: 14px; }
.dealer-strip .btn { flex-shrink: 0; }
.card { border: 1px solid var(--color-line); border-radius: 8px; box-shadow: none; }
.card:hover { border-color: var(--color-accent); }
.card-body { gap: 8px; padding: 18px; }
.card-condition { color: var(--color-muted); }
.card-title { font-size: 19px; }
.card-photo { height: 224px; }
.card-price { font-size: 27px; margin-top: 6px; }
.card-location { margin-top: 8px; font-size: 12px; color: var(--color-muted); }
.card-action { display: flex; justify-content: space-between; width: 100%; padding-top: 14px; margin-top: 5px; border-top: 1px solid var(--color-line); font-size: 14px; color: var(--color-accent); font-weight: 600; }
.prototype-note { color: var(--color-muted); }
.steps { padding-top: 8px; }
.step { border: 1px solid var(--color-line); padding: 26px; border-radius: 8px; }
.step .eyebrow-sm { font-size: 20px; font-weight: 600; }
.faq { max-width: 100%; }
.faq-item { display: block; }
.faq-item summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--color-accent); font-size: 22px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .body { padding-top: 16px; max-width: 880px; }
.inventory-intro { background: #f7f7f8; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--color-line); }
.inventory-intro .h1 { font-size: 30px; }
.inventory-intro .measure { max-width: 900px; font-size: 14px; }
.inventory-section { padding-top: 32px; }
.refine { border: 1px solid var(--color-line); border-radius: 8px; }
.sort { border-radius: 6px; }
.vdp-card { border: 1px solid var(--color-line); border-radius: 8px; }
.vdp-side { position: sticky; top: 20px; }
.vdp-side .h1 { font-size: 28px; }
.gallery-photo { border-radius: 8px; height: auto; aspect-ratio: 3 / 2; }
.thumb.is-active { border-color: var(--color-accent); }
.vdp-main .vdp-card { border-width: 0 0 1px; border-radius: 0; padding: 24px 0; }
.field { border-radius: 6px; }
.inventory .cards-2 { gap: 20px; }
.footer { background: #f7f7f8; color: var(--color-ink); border-top: 1px solid var(--color-line); }
.footer address, .footer .legal { color: var(--color-muted); }

/* Tablet */
@media (max-width: 1100px) {
  :root { --pad-x: 40px; --pad-y: 48px; }
  .display { font-size: 52px; }
  .h1 { font-size: 44px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { width: 420px; }
  .hero-photo { height: 380px; }
  .vdp { flex-direction: column; }
  .vdp-side { width: 100%; }
  .vdp-side { position: static; }
  .vdp-main { width: 100%; }
  .vdp-card.sticky { position: static; }
  .gallery-photo { height: 420px; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .contact { flex-direction: column; gap: 48px; }
  .visit { width: 100%; }
  .cards-2 { grid-template-columns: 1fr; }
}

/* Filters become a full-screen sheet below tablet width (matches the Mobile filters frame) */
@media (max-width: 900px) {
  .inventory { flex-direction: column; }
  .refine { display: none; position: fixed; inset: 0; z-index: 30; width: auto; border-radius: 0; overflow: auto; padding: 24px 24px 120px; }
  body[data-filters-open] .refine { display: flex; }
  body[data-filters-open] { overflow: hidden; }
  .icon-btn { display: inline-flex; align-items: center; justify-content: center; }
  .refine .chips { display: none; }
  .sheet-bar { position: fixed; left: 0; right: 0; bottom: 0; flex-direction: row; padding: 16px 24px; background: var(--color-surface); border-top: 1px solid var(--color-line); }
  .sheet-bar .btn-secondary { width: auto; flex: none; }
  .filters-open-btn { display: inline-flex; }
  .results { width: 100%; }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (matches the 390px frames) */
@media (max-width: 767px) {
  :root { --pad-x: 24px; --pad-y: 24px; }
  .display { font-size: 44px; }
  .h1 { font-size: 36px; }
  .h2, .h2-lg, .h2-sm { font-size: 32px; }
  .summary .h1 { font-size: 36px; }
  .nav .inner { gap: 24px; }
  .brand { font-size: 20px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero { flex-direction: column; gap: 32px; }
  .hero-copy { width: 100%; }
  .hero-copy .btn { width: 100%; }
  .hero-photo { width: 100%; height: 245px; flex: none; }
  .heading-row { flex-direction: column; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .faq-item { padding: 20px 0; }
  .cards-2 { grid-template-columns: 1fr; }
  .results-head { flex-direction: column; align-items: stretch; }
  .results-tools { justify-content: space-between; }
  .sort { flex: 1; }
  .gallery-photo { height: 220px; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .kv-grid, .features { grid-template-columns: 1fr; }
  .vdp-card { padding: 20px; }
  .vdp-side .h1 { font-size: 28px; }
  .sticky-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 24px; background: var(--color-surface); border-top: 1px solid var(--color-line);
  }
  .sticky-bar[hidden] { display: none; }
  .sticky-bar .btn { flex: none; }
  body.has-sticky-bar { padding-bottom: 80px; }
  .btn-w180, .btn-w220, .btn-w240 { width: 100%; }
  .footer-nav { flex-direction: column; }
  .location-bar { padding: 8px 20px; }
  .location-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .location-bar a { display: none; }
  .nav .inner { padding: 20px; }
  .home-hero { padding: 36px 20px 24px; }
  .hero-heading .display { font-size: 36px; }
  .hero-heading > p:last-child { font-size: 15px; }
  .search-panel { padding: 20px; }
  .search-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .home-search { grid-template-columns: 1fr; }
  .home-search .btn { min-height: 52px; }
  .popular-searches { gap: 12px 16px; }
  .popular-searches > span { width: 100%; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-photo, .category-symbol { height: 100px; }
  .category-symbol { font-size: 29px; letter-spacing: -1px; }
  .category-card > strong { font-size: 14px; padding: 12px 12px 6px; }
  .category-card > span:last-child { padding: 0 12px 12px; line-height: 1.4; }
  .dealer-strip > .inner { flex-direction: column; align-items: flex-start; }
  .h2, .h2-lg, .h2-sm { font-size: 26px; }
  .inventory-intro .h1 { font-size: 28px; }
  .card-photo { height: auto; aspect-ratio: 3 / 2; }
  .gallery-photo { height: auto; }
  
  .vdp-side .sticky { padding: 20px; }
  .vdp { gap: 24px; }
}
@media (min-width: 768px) and (max-width: 1000px) {
  .home-search { grid-template-columns: 1fr 1fr; }
  .category-grid { gap: 12px; }
  .category-card > strong { font-size: 14px; }
  .category-symbol { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .category-card { transition: none; }
}

/* Car.com reference: navy masthead, lime actions, photo-led hero. */
.nav { background: #0d0c1c; color: #fff; border-bottom: 0; }
.location-bar { background: #181727; color: #d1d0d8; }
.nav .brand { color: white; }
.nav .brand::after { content: '.'; color: var(--color-action); }
.nav-links a[aria-current="page"] { color: var(--color-action); }
.nav .menu-toggle { color: #fff; }
.btn { border-radius: 100px; }
.home-hero { background: #191b22; position: relative; overflow: hidden; padding-top: 76px; padding-bottom: 76px; min-height: 510px; display: flex; align-items: center; }
.home-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0d0c1cf2 0%, #0d0c1cc7 30%, #0d0c1c22 70%); }
.hero-background { position: absolute; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; object-position: 50% 57%; mask-image: linear-gradient(90deg, transparent, #000 20%); }
.home-hero > .inner { position: relative; z-index: 1; width: 100%; }
.hero-heading { text-align: left; align-items: flex-start; max-width: 660px; gap: 24px; }
.hero-heading .eyebrow { color: var(--color-action); letter-spacing: 1.7px; }
.hero-heading .display { font-size: clamp(38px, 4.5vw, 62px); font-weight: 800; line-height: 1.13; letter-spacing: -.035em; }
.hero-heading > p:last-of-type { color: #e4e3e8; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.hero-actions .btn { min-width: 210px; min-height: 54px; font-size: 15px; justify-content: space-between; gap: 24px; padding: 16px 24px; }
.hero-actions .btn span { font-size: 22px; line-height: 1; }
.popular-strip { border-bottom: 1px solid var(--color-line); padding-top: 26px; padding-bottom: 26px; }
.popular-strip > .inner { flex-direction: row; align-items: center; gap: 24px; }
.popular-strip h2 { font-size: 17px; white-space: nowrap; letter-spacing: 0; display: flex; align-items: center; gap: 10px; }
.popular-strip h2 > span { background: #0d0c1c; color: var(--color-action); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.popular-strip .chips { gap: 10px; }
.popular-strip a { text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid #8b8b93; border-radius: 7px; padding: 11px 18px; }
.popular-strip a:hover { background: #f3f6e9; border-color: #173d35; }
.featured-section { background: #f2f2f3; padding-top: 48px; padding-bottom: 48px; }
.featured-section .heading-row { align-items: center; }
.featured-section .h2 { font-size: 36px; font-weight: 800; }
.featured-section .eyebrow-sm { text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.card { border-radius: 16px; }
.card-title { font-weight: 800; }
.card-price { font-weight: 800; }
.card-action { background: #c1ee00; color: #10101e; border: 0; border-radius: 100px; padding: 12px 18px; margin-top: 12px; }
.category-card { border-radius: 12px; }
.search-section { background: #f3f4f5; }
.search-panel { box-shadow: none; border: 1px solid var(--color-line); }
.step { border-radius: 12px; }
.footer { background: #0d0c1c; color: #fff; }
.footer address, .footer .legal { color: #c6c5d0; }
@media (max-width: 900px) {
  .popular-strip > .inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 767px) {
  .home-hero { padding: 40px 24px; min-height: 530px; align-items: flex-start; }
  .hero-background { width: 100%; opacity: .65; object-position: 65% center; mask-image: none; }
  .home-hero::after { background: linear-gradient(90deg, #0d0c1cf0, #0d0c1c66); }
  .hero-heading .display { font-size: 40px; }
  .hero-heading > p:last-of-type { font-size: 16px; }
  .hero-actions { width: 100%; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .featured-section .heading-row { align-items: flex-start; }
  .featured-section .h2 { font-size: 28px; }
  .popular-strip .chips { gap: 8px; }
  .popular-strip a { font-size: 12px; padding: 10px 12px; }
}
