/* One stylesheet for every page, on Stealpad's design system (the owner's reference site): its
   colors, type weights, radii and components, adapted for cars. Phone first; inputs at 16px+ so iOS
   doesn't zoom; nothing wider than the screen. No external fonts or images of our own. */
:root {
  --bg: #f6f8fa;
  --card: #fff;
  --ink: #0f172a;
  --sub: #64748b;
  --line: #e5e7eb;
  --soft: #f1f5f9;
  --brand: #0b7285;
  --brand2: #0ca678;
  --good: #0a7c3a;
  --goodbg: #e7f6ec;
  --mid: #b45309;
  --midbg: #fdf3e5;
  --bad: #b91c1c;
  --badbg: #fdeaea;
  --lift: 0 12px 34px -14px rgba(2, 8, 23, .32);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --card: #141c2b;
    --ink: #e8edf5;
    --sub: #94a3b8;
    --line: #243049;
    --soft: #1b2436;
    --brand: #3bc0d6;
    --good: #5fd38d;
    --goodbg: #0e2a1a;
    --mid: #f0b34e;
    --midbg: #2a2010;
    --bad: #ff8a7a;
    --badbg: #2a1414;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .drop:focus-within {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
/* anchors and scrollIntoView stop below the sticky header, not under it */
html { scroll-padding-top: 72px; }

/* ---------- Header: brand, search, the same three intents everywhere ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.brand { color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--brand2); }
.hsearch { flex: 1 1 auto; max-width: 400px; position: relative; }
header .hsearch input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 36px; }
.hsearch input:focus { border-color: var(--brand); outline: 0; }
.ico { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--sub); pointer-events: none; }
.top nav { margin-left: auto; display: flex; align-items: center; white-space: nowrap; }
.top nav a { color: var(--sub); font-size: 14px; font-weight: 600; margin-left: 16px; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav a.on { color: var(--ink); }
/* "Cars" beside the Stealpad brand, as the rentals section's "Rentals" tag */
.tag { flex: 0 0 auto; margin-left: -8px; font-size: 12px; font-weight: 700; color: var(--sub); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.tag:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
@media (max-width: 1080px) { .top nav a { margin-left: 12px; } .hsearch { max-width: 300px; } }
.mmenu { display: none; margin: 0 0 0 auto; position: relative; }
.mmenu summary { list-style: none; cursor: pointer; font-size: 24px; line-height: 1; padding: 2px 4px; user-select: none; color: var(--ink); }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); padding: 6px; min-width: 220px; display: flex; flex-direction: column; }
.mmenu-pop a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 600; }
.mmenu-pop a:hover { background: var(--soft); text-decoration: none; }
@media (max-width: 760px) {
  .top nav { display: none; }
  .mmenu { display: block; }
  .hsearch { max-width: none; }
}
@media (max-width: 600px) { .tag { display: none; } }

footer.foot { margin-top: 48px; padding: 18px 0 34px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; }
footer.foot p { margin: 4px 0; }

/* ---------- Type ---------- */
h1 { font-size: clamp(27px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 26px 0 8px; font-weight: 850; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 8px; }
h3 { font-size: 17px; line-height: 1.3; margin: 0; }
.hero-sub, .lede { color: var(--sub); font-size: clamp(15px, 1.8vw, 18px); max-width: 680px; margin: 0 0 18px; }
.section { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); margin: 28px 0 10px; }
.hint { color: var(--sub); font-size: 14px; margin: 6px 0 0; }
.fine { color: var(--sub); font-size: 13px; margin-top: 16px; }
.crumbs { font-size: 14px; color: var(--sub); margin: 22px 0 0; }
.crumbs a { color: var(--sub); }
.crumbs b { color: var(--ink); }

/* ---------- Pills, chips, badges ---------- */
.pills, .chips, .hero-cities { display: flex; gap: 8px; flex-wrap: wrap; }
.pills { margin: 0 0 6px; }
.pill { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pill b { color: var(--brand2); }
.pill.flag, .pill.bad { background: var(--badbg); color: var(--bad); border-color: transparent; }
.pill.ask, .pill.opt, .pill.neg { background: var(--midbg); color: var(--mid); border-color: transparent; }
.pill.ok, .pill.req, .pill.allowed, .pill.credit { background: var(--goodbg); color: var(--good); border-color: transparent; }
.hero-cities { margin: 12px 0 0; }
@media (max-width: 760px) {
  /* one row you swipe, as on Stealpad; the page itself never scrolls sideways */
  .hero-cities { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hero-cities::-webkit-scrollbar { display: none; }
}
.hero-cities a, .chip { appearance: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.hero-cities a:hover, .chip:hover { border-color: var(--brand); text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 4px 11px 4px 9px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--sub); }
.badge b { font-size: 14px; }
.badge.good { background: var(--goodbg); color: var(--good); }
.badge.mid { background: var(--midbg); color: var(--mid); }
.badge.bad { background: var(--badbg); color: var(--bad); }

/* ---------- Buttons and fields ---------- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: progress; }
.linkbtn { appearance: none; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; padding: 8px 0; cursor: pointer; }
textarea, select, input[type="text"], input[type="date"], input[type="search"], input:not([type]), input[inputmode] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea:focus, select:focus, input:focus { border-color: var(--brand); outline: 0; }
textarea { min-height: 150px; resize: vertical; }
label.f { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 6px 0; }

/* ---------- Cards (Stealpad's) ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card + .card { margin-top: 14px; }

/* ---------- Home: hero, Buy | Check switch, one big search ---------- */
.hero2 { padding: 4px 0 6px; }
.mode { display: inline-flex; gap: 4px; background: var(--line); padding: 4px; border-radius: 14px; margin: 0 0 10px; max-width: 100%; }
.mode button { font: inherit; border: 0; background: transparent; color: var(--ink); font-weight: 800; font-size: 16px; padding: 9px 18px; border-radius: 10px; cursor: pointer; display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.mode button span { font-weight: 600; font-size: 12.5px; color: var(--sub); }
.mode button[aria-selected="true"] { background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.mode button[aria-selected="true"] span { color: var(--brand); }
.rs { position: relative; max-width: 660px; display: flex; gap: 8px; }
.rs .field { position: relative; flex: 1; }
.rs input { font-size: 17px; padding: 14px 16px 14px 44px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
.rs input:focus { border-color: var(--brand); }
.rs .ico { left: 16px; width: 18px; height: 18px; }
.rs .btn { border-radius: 14px; min-height: 0; padding: 0 20px; }
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 6px; }
.door { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; min-width: 0; display: flex; flex-direction: column; }
.door-b { flex: 1 0 auto; margin-bottom: 14px; }
.door-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.door-h h2 { margin: 0; }
.door-h a { font-weight: 700; font-size: 14px; }
.door-s { color: var(--sub); font-size: 14px; margin: 4px 0 2px; }
.door .section { margin: 14px 0 8px; }
.door-all { display: block; text-align: center; padding: 11px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; }
.door-all:hover { filter: brightness(1.08); text-decoration: none; }
/* the sample quote, checked (home, Check door) */
.vtab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.vtab th, .vtab td { padding: 9px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 600; }
.vtab tr:first-child th, .vtab tr:first-child td { border-top: 0; }
.vtab td { text-align: right; padding-left: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vtot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--goodbg); color: var(--good); font-size: 14.5px; font-weight: 700; }
.vtot b { font-size: 17px; }
@media (max-width: 760px) { .dual { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); transition: box-shadow .12s, transform .12s; }
.tile:hover { border-color: var(--brand); box-shadow: var(--lift); transform: translateY(-1px); text-decoration: none; }
.tile b { display: block; font-size: 16px; margin: 0 0 2px; }
.tile span { display: block; font-size: 13.5px; font-weight: 600; color: var(--sub); }
.tile .g { color: var(--good); }

/* ---------- A car as a compact row (home door, today's top deals) ---------- */
.lrows { display: grid; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; color: var(--ink); transition: box-shadow .12s, transform .12s; min-width: 0; }
.lrow:hover { box-shadow: var(--lift); transform: translateY(-1px); text-decoration: none; }
.lrow > div { min-width: 0; }
.thumb { flex: 0 0 auto; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 12px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lrow .rt { margin: 4px 0 0; font-weight: 700; line-height: 1.25; }
.lrow .rt span { color: var(--sub); font-weight: 600; font-size: 14px; }
.lrow .rp { margin: 2px 0 0; line-height: 1.3; }
.lrow .price { font-size: 17px; }
.lrow .below { font-size: 14px; }
@media (max-width: 420px) {
  .thumb { width: 80px; height: 60px; }
  .door { padding: 14px 12px 12px; }
}

/* ---------- A car as a card (results grid) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ccard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .12s, box-shadow .12s; min-width: 0; }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.clink { display: block; color: var(--ink); flex: 1; }
.clink:hover { text-decoration: none; }
.ph { aspect-ratio: 16 / 10; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 14px; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbody { padding: 12px 14px 4px; display: grid; gap: 5px; }
.cbody .badge { justify-self: start; }
.cbody h3 { font-size: 16.5px; }
.price { font-size: 21px; font-weight: 850; letter-spacing: -.02em; }
.below { font-weight: 700; color: var(--sub); }
.below.good { color: var(--good); }
.below.bad { color: var(--bad); }
.specs { color: var(--sub); font-size: 14px; }
.cact { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 14px 12px; color: var(--sub); font-size: 13px; }
.cmp { appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.cmp[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(15, 23, 42, .08); font-weight: 700; }

/* ---------- Results page: search and Stealpad's select row ---------- */
.fbar { margin: 18px 0 0; }
.fbar .rs { max-width: none; }
.fsel { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.fsel select, .fsel input { width: auto; flex: 0 1 auto; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 10px; min-width: 0; }
.fsel input { width: 128px; }
.fdetails { margin-top: 0; }
.fdetails > summary { display: none; }
.resmeta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--sub); font-size: 14px; font-weight: 700; }
@media (max-width: 760px) {
  .fdetails > summary { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 14px; }
  .fsel select, .fsel input { flex: 1 1 calc(50% - 8px); width: auto; }
}

/* ---------- Guides: one searched question each, answered first, then the checker ---------- */
.answer { margin: 6px 0 16px; border-left: 4px solid var(--brand); }
.answer-t { margin: 0; font-size: 17px; line-height: 1.5; }
.src { color: var(--sub); font-size: 13px; margin: 8px 0 0; }
.mini { margin: 0 0 18px; max-width: 760px; }
.mini .grid2 { gap: 0 14px; }
.mini-row { display: flex; align-items: center; gap: 8px; }
/* the currency prefix uses Stealpad's c-money markup, which its page audit knows is not a stray "$" */
.mini-row .c-money { color: var(--sub); font-weight: 700; }
.mini-row input { flex: 1; min-width: 0; }
.mini-row .btn { flex: 0 0 auto; }
.mini-out { margin-top: 12px; }
.mini-out .big { margin: 0 0 4px; }
.verdict { margin: 0 0 8px; font-size: 16px; }
.verdict.bad b { color: var(--bad); }
.verdict.ok b { color: var(--good); }
.sayq { margin: 6px 0 10px; padding: 10px 14px; background: var(--soft); border-radius: 10px; font-size: 15px; line-height: 1.5; }
.say .btn { margin-top: 2px; }
.mini .reply { margin-top: 12px; min-height: 210px; }
.guide-tool { margin: 26px 0 8px; }
.guide-tool > .hint { margin-bottom: 12px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gcard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 2px 10px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); transition: box-shadow .12s, transform .12s; }
.gcard:hover { border-color: var(--brand); box-shadow: var(--lift); transform: translateY(-1px); text-decoration: none; }
.gcard .gic { grid-row: span 2; font-size: 20px; line-height: 1.2; }
.gcard b { font-size: 15.5px; }
.gcard span:last-child { color: var(--sub); font-size: 13.5px; }
.feet { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.feet th, .feet td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.feet th { width: 150px; background: var(--soft); }
@media (max-width: 600px) { .feet th { width: auto; } .mini-row { flex-wrap: wrap; } }

/* ---------- The cars map: map left, the cars in view right (stacked on phones) ---------- */
.maptop { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; }
.maph { margin: 0; }
/* Stealpad's map is Buy | Rent; this one is its Cars side */
.mapseg { display: inline-flex; gap: 3px; background: var(--line); padding: 3px; border-radius: 12px; }
.mapseg a, .mapseg span { padding: 7px 14px; border-radius: 9px; font-weight: 800; font-size: 15px; color: var(--ink); }
.mapseg a:hover { text-decoration: none; background: color-mix(in srgb, var(--card) 60%, transparent); }
.mapseg span { background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.chk { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chk input { width: auto; margin: 0; accent-color: var(--brand); }
.cmap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; margin-top: 14px; align-items: start; }
.cmap-map { position: sticky; top: 74px; }
#cm-map { height: min(72vh, 680px); min-height: 360px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); z-index: 0; }
.cmap-list .resmeta { margin-top: 0; }
.cmap-list .lrows { max-height: none; }
.mlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--sub); font-size: 12.5px; font-weight: 600; }
.mlegend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.lg.good, .cpin.good span { background: var(--good); }
.lg.fair, .cpin.fair span { background: #64748b; }
.lg.mid, .cpin.mid span { background: var(--mid); }
.lg.bad, .cpin.bad span { background: var(--bad); }
.lg.na, .cpin.na span { background: #94a3b8; }
.cpin { background: transparent; border: 0; }
.cpin span { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(15, 23, 42, .35); transform: translate(-50%, -50%); white-space: nowrap; }
.cpin.cl span { min-width: 38px; height: 38px; font-size: 14px; border-width: 3px; }
/* Draw an area (Zillow's "Draw"): the button, the hint while drawing, and a map that only draws */
.cm-draw.leaflet-bar { border: 0; box-shadow: none; }
.cm-draw button { font: inherit; font-size: 14px; font-weight: 800; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--card); color: var(--ink); box-shadow: 0 2px 10px rgba(15, 23, 42, .28); cursor: pointer; }
.cm-draw button:hover { color: var(--brand); }
.cm-draw button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.cm-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
#cm-map.drawing { cursor: crosshair; touch-action: none; }
#cm-map.drawing .leaflet-marker-pane, #cm-map.drawing .leaflet-popup-pane { pointer-events: none; }
#cm-map.drawing .leaflet-marker-pane * { pointer-events: none; }
.cpop { min-width: 230px; }
.cpop > b { display: block; font-size: 15px; }
.cpop .specs { margin: 1px 0 6px; }
.cpop-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 13.5px; }
.cpop-row:hover { text-decoration: none; color: var(--brand); }
.cpop-row .badge { grid-column: 1 / -1; justify-self: start; font-size: 11.5px; padding: 2px 8px 2px 7px; }
.cpop .linkbtn { padding: 8px 0 0; font-size: 14px; }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: 12px 14px; }
@media (max-width: 860px) {
  .cmap { grid-template-columns: minmax(0, 1fr); }
  .cmap-map { position: static; }
  #cm-map { height: 56vh; }
}

/* ---------- One car ---------- */
.carpage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 14px 22px; align-items: start; margin-top: 12px; }
.cp-photo { grid-column: 1; grid-row: 1; }
.cp-main { grid-column: 1; grid-row: 2; }
.carpage .panel { grid-column: 2; grid-row: 1 / span 2; }
.carpage .ph { border-radius: 16px; }
.carpage .card { margin-top: 14px; }
.cp-main > .card:first-child { margin-top: 0; }
.panel { position: sticky; top: 74px; }
.panel .card:first-child { margin-top: 0; }
.panel .price { font-size: 34px; }
.offers { display: grid; gap: 12px; }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.offer:first-child { border-top: 0; padding-top: 0; }
.offer .specs { margin-top: 2px; }
.oright { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 15px; }
.facts dt { color: var(--sub); }
.facts dd { margin: 0; font-weight: 600; }
.big { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 850; line-height: 1.15; letter-spacing: -.02em; margin: 6px 0; }
.panel .big { font-size: 24px; margin: 10px 0 4px; }
@media (max-width: 860px) {
  .carpage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .cp-photo, .cp-main, .carpage .panel { grid-column: auto; grid-row: auto; }
  .panel { position: static; }
}

/* ---------- Compare ---------- */
.cmpwrap { overflow-x: auto; margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; }
.cmpt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmpt th, .cmpt td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--line); }
.cmpt tbody th { color: var(--sub); font-weight: 600; width: 26%; }
.cmpt thead th { border-top: 0; vertical-align: bottom; }
.cmpt thead th:not(:first-child) { min-width: 170px; }
.cmph { display: grid; gap: 8px; color: var(--ink); font-size: 15.5px; font-weight: 750; margin-bottom: 8px; }
.cmph:hover { text-decoration: none; color: var(--brand); }
.cmph .ph { border-radius: 10px; max-width: 280px; }
.cmpt tbody tr:first-child td { font-size: 19px; font-weight: 850; letter-spacing: -.02em; }
@media (max-width: 600px) {
  /* phones: each label on its own line, the cars' values side by side under it */
  .cmpt, .cmpt thead, .cmpt tbody { display: block; }
  .cmpt tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .cmpt.n3 tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmpt thead th:first-child { display: none; }
  .cmpt thead th:not(:first-child) { min-width: 0; }
  .cmpt th, .cmpt td { padding-left: 0; padding-right: 0; }
  .cmpt tbody th { grid-column: 1 / -1; width: auto; padding: 10px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .cmpt tbody td { border-top: 0; padding: 4px 0 10px; }
  .cmph { font-size: 14.5px; }
  .cmpt thead .badge { white-space: normal; }
}

/* ---------- The quote checker ---------- */
.tool { padding: 18px; max-width: 760px; }
.forcar { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--goodbg); color: var(--good); font-size: 15px; font-weight: 600; }
.modes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; margin-bottom: 12px; }
.modes button { appearance: none; border: 0; background: transparent; color: var(--sub); font: inherit; font-size: 15px; font-weight: 700; padding: 9px 4px; border-radius: 9px; cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 156px; padding: 18px; text-align: center; border: 2px dashed var(--line); border-radius: 14px; background: var(--card); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--soft); }
.drop svg { width: 34px; height: 34px; color: var(--brand); }
.drop strong { font-size: 1.05rem; }
.drop span { color: var(--sub); font-size: 14px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--sub); }
.trust { margin: 12px 0 0; font-size: 13px; color: var(--sub); }
.status { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: 15px; }
.status.err { background: var(--badbg); color: var(--bad); }
.rows { display: grid; gap: 8px; margin-top: 8px; }
.row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 104px 34px; gap: 6px; align-items: center; }
.row input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.row .amt { text-align: right; font-variant-numeric: tabular-nums; }
.row.off .lbl, .row.off .amt { color: var(--sub); text-decoration: line-through; }
.del { appearance: none; width: 34px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--sub); font-size: 22px; line-height: 1; cursor: pointer; }
.del:hover { background: var(--soft); color: var(--bad); }
.seg { display: flex; gap: 14px; margin-top: 12px; }
.seg label, .checkline { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.checkline { margin-top: 12px; }
.sum { background: var(--goodbg); border-color: transparent; }
.sum p { margin: 0; }
.counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.banner { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; background: var(--midbg); color: var(--mid); font-size: 15px; }
.checks { display: grid; gap: 12px; }
.chk { border-left: 4px solid var(--line); padding: 2px 0 2px 12px; }
.chk.flag { border-color: var(--bad); }
.chk.ask { border-color: var(--mid); }
.chk.ok { border-color: var(--good); }
.chk h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chk p { margin: 2px 0; }
.src { font-size: 13px; color: var(--sub); }
.lines { display: grid; }
.ln { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ln:first-child { border-top: 0; }
.ln .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.ln .why { grid-column: 1 / -1; color: var(--sub); font-size: 14px; }
.ln .pill { justify-self: start; }
.gap { margin-top: 18px; }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li + li { margin-top: 6px; }
.reply { width: 100%; min-height: 260px; font-size: 15px; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Model search (/models/) ---------- */
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--sub); pointer-events: none; }
.searchbox input { font-size: 17px; padding: 13px 14px 13px 42px; border-radius: 14px; border: 2px solid var(--line); }
#find .chips { margin-top: 10px; }
.resbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 8px; font-size: 14px; color: var(--sub); font-weight: 600; }
.resbar select { width: auto; max-width: 55%; font-size: 14px; padding: 7px 8px; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mcard { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); }
.mhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mline { margin: 4px 0 0; font-size: 15px; }
.mline.safety { color: var(--sub); font-size: 14px; }
.mact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; }
.mdetail { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.mdetail p { margin: 6px 0; }

/* ---------- Long-form content ---------- */
.content { margin-top: 36px; max-width: 760px; }
.content section + section { margin-top: 28px; }
.content ol, .content ul { padding-left: 20px; }
.content li + li { margin-top: 8px; }
.faq h3 { margin-top: 16px; }
.faq p { margin: 4px 0 0; }

@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .card, .door { padding: 14px; }
  .row { grid-template-columns: 20px minmax(0, 1fr) 90px 30px; gap: 5px; }
  .thumb { width: 84px; height: 64px; }
  .mode button { padding: 9px 12px; font-size: 15px; }
  .rs .btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .lrow, .ccard { transition: none; } }
