@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #20262D;
  --ink-2: #475569;
  --muted: #94A3B8;
  --line: #E2E7EC;
  --line-2: #CBD3DC;
  --bg: #F4F6F8;
  --white: #FFFFFF;
  --blue: #1459B8;
  --blue-dark: #104894;
  --blue-soft: #8FB0DD;
  --radius: 8px;
  --mono: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Public Sans', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
input, select, button, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid rgba(20, 89, 184, 0.45); outline-offset: 2px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-weight: 700; cursor: pointer; border: 0;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue); border: 1px solid var(--blue); }
.btn-outline:hover { background: var(--bg); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost.is-saved { color: var(--blue); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.select, .input, .textarea {
  border: 1px solid var(--line-2); border-radius: 6px; font-size: 15px;
  color: var(--ink); background: var(--white); width: 100%;
}
.select { height: 48px; padding: 0 12px; }
.input { height: 44px; padding: 0 12px; }
.textarea { padding: 10px 12px; resize: vertical; }
.input.invalid { border-color: #B42318; }
.range { width: 100%; accent-color: var(--blue); }

.chip {
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--white); color: var(--ink);
}
.chip.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

.badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  color: var(--blue); border: 1px solid var(--blue); align-self: flex-start;
}
.badge.fair { color: var(--ink-2); border-color: var(--ink-2); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--ink-2); }

/* Photo placeholders from the design */
.ph {
  background: repeating-linear-gradient(135deg, #E9EDF1 0 10px, #F4F6F8 10px 20px);
  display: flex; align-items: center; justify-content: center; position: relative;
  font: 400 11px var(--mono); color: var(--ink-2); text-align: center; padding: 8px; overflow: hidden;
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-logo { display: block; height: 42px; width: auto; }
.main-nav { display: flex; gap: 24px; font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.main-nav a, .mobile-menu a:not(.btn) { color: var(--ink); }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; margin-left: auto; }
.header-link { font-size: 14px; font-weight: 600; color: var(--ink); }
#saved-link { color: var(--ink-2); }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-menu {
  display: flex; flex-direction: column; border-top: 1px solid var(--line); background: var(--white);
  padding: 8px 16px 16px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 0; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; height: 46px; font-size: 15px; }

/* Hero */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/img/hero.webp');
  background-size: cover; background-position: 60% 40%;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 25, 31, 0.88) 0%, rgba(20, 25, 31, 0.62) 45%, rgba(20, 25, 31, 0.25) 100%);
}
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 28px; }
.hero-copy { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.hero h1 { font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -1.2px; color: var(--white); text-wrap: balance; }
.hero p { font-size: 18px; line-height: 1.5; color: var(--line); }
.search-box {
  background: var(--white); border-radius: 10px; padding: 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; gap: 16px; max-width: 1000px;
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 14px 12px; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--ink-2);
  border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.search-grid .btn { height: 48px; font-size: 16px; }

/* Sections */
.band { background: var(--white); border-bottom: 1px solid var(--line); }
.band-top { background: var(--white); border-top: 1px solid var(--line); }
.section { padding-top: 44px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 20px; }
.section-tight { padding-top: 36px; padding-bottom: 36px; gap: 18px; }
.h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.h2-sm { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head a { font-size: 15px; font-weight: 700; }

.body-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.body-tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column;
  gap: 10px; cursor: pointer; background: var(--white); text-align: left; color: var(--ink);
}
.body-tile:hover { border-color: var(--blue); text-decoration: none; color: var(--ink); }
.body-tile .ph { height: 96px; padding: 0; border-radius: 4px; font-size: 10px; background: repeating-linear-gradient(135deg, #EEF1F4 0 8px, #F7F8FA 8px 16px); }
.tile-row { display: flex; justify-content: space-between; align-items: baseline; }
.tile-row strong { font-size: 15px; }
.tile-row span { font-size: 13px; color: var(--ink-2); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.vcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer; color: var(--ink);
}
.vcard:hover { box-shadow: 0 6px 20px rgba(32, 38, 45, 0.10); text-decoration: none; color: var(--ink); }
.vcard .ph { aspect-ratio: 4 / 3; }
.vcard-badge {
  position: absolute; top: 10px; left: 10px; background: var(--white); color: var(--blue); font-size: 12px; font-weight: 700;
  padding: 4px 8px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-family: 'Public Sans', sans-serif;
}
.vcard-badge.fair { color: var(--ink-2); }
.save-pill {
  position: absolute; top: 10px; right: 10px; background: var(--white); border: 0; border-radius: 4px; padding: 5px 9px;
  font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.save-pill.is-saved { color: var(--blue); }
.vcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.vcard-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.vcard-sub { font-size: 14px; color: var(--ink-2); }
.vcard-price { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-top: 4px; }

.near { display: flex; gap: 40px; flex-wrap: wrap; flex-direction: row; }
.near-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.near-copy p { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 420px; }
.area-grid {
  flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; align-self: flex-start;
}
.area-tile {
  background: var(--white); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; border: 0; text-align: left; color: var(--ink); font: inherit;
}
.area-tile:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.area-tile strong { display: block; font-size: 15px; }
.area-tile small { font-size: 13px; color: var(--ink-2); }
.area-tile .count { font-size: 14px; font-weight: 700; color: var(--blue); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.6px; text-transform: uppercase; }
.feature strong { font-size: 18px; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Results */
.crumbs { font-size: 14px; color: var(--ink-2); }
.results-page { padding-top: 24px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.results-layout { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.filters { flex: 1 1 240px; max-width: 300px; padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; }
.filters-head strong { font-size: 17px; font-weight: 800; }
.filters-head button, .link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.link-btn:hover, .filters-head button:hover { text-decoration: underline; }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group > .label { font-size: 14px; font-weight: 700; }
.filter-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.filter-row span:last-child { color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .field { font-size: 14px; font-weight: 700; color: var(--ink); gap: 8px; }
.filters .select { height: 42px; padding: 0 10px; font-size: 14px; font-weight: 400; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }

.results-main { flex: 999 1 480px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.sort .select { height: 40px; padding: 0 10px; font-size: 14px; width: auto; }
.empty { padding: 40px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty strong { font-size: 18px; }

.rcard { overflow: hidden; display: flex; flex-wrap: wrap; }
.rcard:hover { box-shadow: 0 6px 20px rgba(32, 38, 45, 0.08); }
.rcard-photo { flex: 1 1 240px; max-width: 320px; min-height: 190px; cursor: pointer; }
.photo-count {
  position: absolute; bottom: 10px; left: 10px; background: rgba(32, 38, 45, 0.85); color: var(--white);
  font: 600 12px 'Public Sans', sans-serif; padding: 3px 7px; border-radius: 4px;
}
.rcard-body { flex: 3 1 300px; padding: 18px 20px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.rcard-info { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.rcard-h { margin: 0; font-size: inherit; font-weight: inherit; }
.rcard-title { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); cursor: pointer; }
.rcard-title:hover { color: var(--blue); text-decoration: none; }
.specs-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.dealer-line { font-size: 14px; color: var(--ink-2); margin-top: auto; padding-top: 8px; }
.dealer-line strong { color: var(--ink); font-weight: 600; }
.rcard-price { flex: 0 1 190px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.rcard-amount { display: flex; flex-direction: column; align-items: inherit; gap: 4px; }
.rcard-price .price { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; }
.rcard-price small { font-size: 13px; color: var(--ink-2); }
.rcard-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.rcard-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }

/* Detail */
.detail-page { padding-top: 24px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px 24px; align-items: start;
  grid-template-areas: "gallery side" "info side";
}
.detail-gallery { grid-area: gallery; overflow: hidden; }
.detail-info { grid-area: info; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.detail-side { grid-area: side; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.gallery-main { aspect-ratio: 4 / 3; font-size: 13px; padding: 0; background-color: #20262D; background: repeating-linear-gradient(135deg, #E9EDF1 0 12px, #F4F6F8 12px 24px); }
.gallery-count {
  position: absolute; bottom: 12px; right: 12px; background: rgba(32, 38, 45, 0.85); color: var(--white);
  font: 600 13px 'Public Sans', sans-serif; padding: 4px 9px; border-radius: 4px;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink);
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.thumb {
  aspect-ratio: 4 / 3; border-radius: 4px; cursor: pointer; border: 0; padding: 0;
  background: repeating-linear-gradient(135deg, #E9EDF1 0 6px, #F4F6F8 6px 12px);
  outline: 2px solid transparent; outline-offset: -2px; font: 400 10px var(--mono); color: var(--ink-2);
}
.thumb { position: relative; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; border-radius: 4px; }
.thumb.active::after { box-shadow: inset 0 0 0 3px var(--blue); }
.thumb:not(.active) img { opacity: 0.8; }
.panel { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.panel h2 { font-size: 20px; font-weight: 800; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 24px; }
.spec { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); padding-top: 10px; }
.spec span { font-size: 13px; color: var(--ink-2); }
.spec strong { font-size: 15px; }
.rating-bar {
  position: relative; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0 33%, var(--blue-soft) 33% 66%, var(--line-2) 66% 100%);
}
.rating-marker {
  position: absolute; top: -6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--ink);
}
.rating-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.panel p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.panel p strong { color: var(--ink); }
.calc { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.calc-controls { flex: 2 1 280px; display: flex; flex-direction: column; gap: 18px; }
.term-btn {
  padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--white); color: var(--ink);
}
.term-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.calc-result { flex: 1 1 200px; background: var(--bg); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.calc-result span { font-size: 13px; color: var(--ink-2); }
.calc-result strong { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; }

.side-box { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.side-box h1 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.4px; }
.side-price { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; margin-top: 4px; }
.side-box .btn { height: 44px; font-size: 15px; margin-top: 6px; }
.contact-box { gap: 14px; }
.dealer-name { font-size: 16px; font-weight: 800; }
.dealer-meta { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.dealer-meta a { font-weight: 700; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form .btn { height: 48px; font-size: 16px; margin: 0; }
.contact-form .btn-outline { height: 44px; font-size: 15px; }
.form-error { font-size: 13px; color: #B42318; min-height: 0; }
.sent { background: var(--bg); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.sent strong { font-size: 15px; }
.sent span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.map-link { padding: 16px 22px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-size: 14px; }
.map-link strong { color: var(--blue); font-size: 15px; }
.map-link span { color: var(--ink-2); }
.map-link:hover { text-decoration: none; border-color: var(--blue); }
.carfax-btn { align-self: flex-start; height: 44px; padding: 0 22px; font-size: 15px; }

/* Tags (CARFAX, Safetied, highlights) */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: #EAF1FB; color: var(--blue-dark); }
.tags-lg .tag { font-size: 13px; padding: 5px 10px; }

/* Contact form extras */
.form-hint { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.form-error a { color: inherit; text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn:disabled { opacity: 0.7; cursor: progress; }

/* Collapsible dealer description */
.desc-panel summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.desc-panel summary::-webkit-details-marker { display: none; }
.desc-toggle::after { content: 'Show'; font-size: 14px; font-weight: 700; color: var(--blue); }
.desc-panel[open] .desc-toggle::after { content: 'Hide'; }
.desc-panel:not([open]) { gap: 0; }

/* Sticky contact bar (phones and tablets only) */
.contact-bar { display: none; }
.description { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.description p { white-space: pre-line; } /* keeps the dealer's one-feature-per-line lists */

.similar { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.similar-grid .ph { aspect-ratio: 16 / 10; }
.similar-grid .vcard-body { padding: 12px 14px 14px; gap: 4px; }
.similar-grid .vcard-title { font-size: 15px; }
.similar-grid .vcard-price { font-size: 20px; margin: 0; }
.similar-grid .vcard-sub { font-size: 13px; }

/* SEO content blocks */
.page-intro { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 820px; }
.results-count { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.results-title { display: flex; flex-direction: column; gap: 4px; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: var(--blue); }
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--white); color: var(--ink);
}
.link-cloud a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.glance { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sold-flag {
  display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; background: #FDECEA; color: #B42318;
}
.sold-note { background: var(--bg); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sold-note strong { color: var(--ink); font-size: 15px; }
.sold-banner { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.sold-banner-title { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; color: var(--ink); }
.sold-banner-cta { align-self: flex-start; height: 44px; padding: 0 18px; font-size: 15px; margin-top: 4px; }
.sold-details-title { margin-top: 24px; color: var(--ink-2); }
@media (max-width: 720px) {
  .sold-banner { padding: 18px; }
  .sold-banner-title { font-size: 20px; }
  .sold-banner-cta { align-self: stretch; }
}
.prose-page { padding-top: 24px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.prose { padding: 32px; max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.15; }
.prose h2 { font-size: 20px; font-weight: 800; margin-top: 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
/* Dealers: shared pieces */
.stars { position: relative; display: inline-block; width: 90px; height: 18px; flex: none; }
.stars svg { display: block; width: 90px; height: 18px; fill: currentColor; }
.stars-base { color: #D5DBE2; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #E8A317; }
.rating { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); align-self: flex-start; }
.rating strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.rating span:last-child { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); }
.rating:hover { text-decoration: none; color: var(--blue); }
.rating:hover span:last-child { text-decoration-color: currentColor; }
.rating-sm { gap: 6px; font-size: 13px; margin-top: 2px; }
.rating-sm strong { font-size: 14px; }
.rating-sm .stars, .rating-sm .stars svg { width: 75px; height: 15px; }
.monogram {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 10px;
  color: var(--white); font-weight: 800; font-size: 17px; letter-spacing: -0.3px;
}
.monogram-lg { width: 76px; height: 76px; border-radius: 14px; font-size: 24px; }
.fine-print { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* Dealers index */
.dealers-hero { background: var(--ink); color: var(--white); }
.dealers-hero-inner { padding-top: 24px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.dealers-hero .crumbs, .dealers-hero .crumbs a { color: var(--line-2); }
.dealers-hero .crumbs a:hover { color: var(--white); }
.dealers-hero-copy { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.dealers-hero .eyebrow { color: var(--blue-soft); }
.dealers-hero h1 { font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -1px; text-wrap: balance; }
.dealers-hero p { font-size: 17px; line-height: 1.55; color: var(--line-2); }
.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: #39424D; border: 1px solid #39424D; border-radius: var(--radius); overflow: hidden; }
.hero-stats li { background: #262D35; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: 28px; font-weight: 800; letter-spacing: -0.6px; display: flex; align-items: center; gap: 8px; }
.hero-stats span { font-size: 14px; color: var(--line-2); line-height: 1.4; }
.star-glyph { display: block; width: 22px; height: 22px; fill: #E8A317; }
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.dcard { display: flex; flex-direction: column; overflow: hidden; }
.dcard-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.dcard-photos .ph { aspect-ratio: 4 / 3; padding: 0; }
.dcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.dcard-head { display: flex; gap: 14px; align-items: center; }
.dcard-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; }
.dcard-head h2 a { color: var(--ink); }
.dcard-head h2 a:hover { color: var(--blue); }
.dcard-head .muted { font-size: 14px; }
.dcard-tagline { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dcard-facts { margin: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.dcard-facts div { background: var(--bg); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.dcard-facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-2); }
.dcard-facts dd { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.dcard-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.dcard-actions .btn { height: 44px; padding: 0 16px; font-size: 15px; }
.dcard-actions .btn-primary { flex: 1; }
.dealer-cta-wrap { padding-top: 32px; padding-bottom: 48px; }
.dealer-cta { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dealer-cta div { display: flex; flex-direction: column; gap: 4px; }
.dealer-cta strong { font-size: 18px; }
.dealer-cta span { font-size: 15px; color: var(--ink-2); }
.dealer-cta .btn { height: 44px; padding: 0 20px; font-size: 15px; }

/* Dealer profile */
.dealer-profile { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.dealer-profile-top { display: flex; gap: 20px; align-items: center; }
.dealer-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dealer-title h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.7px; line-height: 1.1; }
.dealer-title .muted { font-size: 15px; }
.dealer-profile .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dealer-profile .btn { height: 44px; padding: 0 18px; font-size: 15px; }
.trust-row { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before, .checklist li::before {
  content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: #E6F2EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231E7B4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.dealer-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.dealer-main, .dealer-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel-text { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.panel-h3 { margin: 4px 0 0; font-size: 16px; font-weight: 800; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 15px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.panel-links { font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--bg); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.stat span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; row-gap: 2px; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: #EAF1FB; color: var(--blue-dark);
  font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.steps strong { font-size: 16px; }
.steps span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dealer-side h2 { font-size: 18px; font-weight: 800; }
.review-score { display: flex; align-items: center; gap: 14px; }
.review-score > strong { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.review-score div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.review-score .stars, .review-score .stars svg { width: 110px; height: 22px; }
.hours { margin: 0; display: flex; flex-direction: column; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--ink-2); text-align: right; }
.hours .closed dd { color: #B42318; font-weight: 600; }
.map-embed { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.location-box p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.location-box p strong { color: var(--ink); }
.dealer-inv-title { margin-top: 12px; scroll-margin-top: 90px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--line-2); }
.footer-inner { padding-top: 40px; padding-bottom: 28px; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr); gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.footer-logo { display: flex; }
.footer-logo img { display: block; height: 46px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 1.55; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: var(--line-2); }
.footer-cols a:hover { color: var(--white); }
.footer-head { color: var(--white); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid #333B45; padding-top: 18px; padding-bottom: 24px; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--line-2); font-weight: 600; }
.footer-bottom a:hover { color: var(--white); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: opacity 0.2s, transform 0.2s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { gap: 18px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 920px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "side" "info"; }
  .detail-side { position: static; }
  .dealer-layout { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-grid .btn { grid-column: 1 / -1; }
  .detail-page { padding-bottom: 96px; }
  .contact-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(32, 38, 45, 0.08);
    transition: transform 0.2s;
  }
  .contact-bar.is-hidden { transform: translateY(110%); }
  .contact-bar div { display: flex; flex-direction: column; min-width: 0; }
  .contact-bar strong { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
  .contact-bar span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .contact-bar .btn { height: 46px; padding: 0 28px; font-size: 16px; flex: none; }
}
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: 12px; height: 60px; }
  .brand-logo { height: 38px; }
  .hero-inner { padding-top: 40px; padding-bottom: 40px; gap: 22px; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero p { font-size: 16px; }
  .hero-bg { background-image: url('/img/hero-sm.webp'); background-position: 70% 50%; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(20, 25, 31, 0.80) 0%, rgba(20, 25, 31, 0.70) 100%); }
  .search-box { padding: 16px; }
  .tab { padding: 8px 8px 12px; font-size: 14px; flex: 1 0 auto; }
  /* On phones the hero stays short: the tabs act as quick filters and the cars show up sooner. */
  .search-grid .field { display: none; }
  .select, .input, .textarea, .filters .select, .sort .select { font-size: 16px; }
  #saved-link { padding: 12px 4px; }
  .gallery-main { font-size: 11px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .btn { grid-column: 1 / -1; }
  .section { padding-top: 32px; padding-bottom: 32px; }
  .h2 { font-size: 22px; }
  .body-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .body-tiles::-webkit-scrollbar { display: none; }
  .grid-cards { grid-template-columns: 1fr; gap: 16px; }
  .near { gap: 20px; }
  .area-grid { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-tile { padding: 14px; }
  /* Compact result cards: photo beside the key facts, actions in a full-width row. */
  .rcard { display: grid; grid-template-columns: 40% minmax(0, 1fr); grid-template-areas: "photo info" "photo amount" "actions actions"; }
  .rcard-body, .rcard-price { display: contents; }
  .rcard-photo { grid-area: photo; max-width: none; min-height: 0; margin: 12px 0 0 12px; border-radius: 10px; overflow: hidden; }
  .rcard-info { grid-area: info; padding: 12px 12px 0; gap: 4px; }
  .rcard-info > .muted, .rcard-info .dealer-line, .rcard-info .tags { display: none; }
  .rcard-title { font-size: 16px; }
  .specs-inline { font-size: 13px; gap: 2px 10px; }
  .specs-inline span:nth-child(2), .specs-inline span:nth-child(4) { display: none; }
  .rcard-amount { grid-area: amount; align-items: flex-start; padding: 6px 12px 12px; gap: 2px; align-self: end; }
  .rcard-price .price { font-size: 22px; }
  .rcard-price small { font-size: 12px; }
  .rcard-monthly { display: none; }
  .rcard-actions { grid-area: actions; padding: 12px; margin: 0; }
  .rcard-actions .btn { flex: 1; height: 42px; }
  .thumbs { gap: 6px; padding: 8px; grid-auto-columns: 76px; }
  .panel { padding: 18px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .prose { padding: 20px; }
  .dealers-hero-inner { padding-bottom: 28px; gap: 20px; }
  .dealers-hero h1 { font-size: 30px; letter-spacing: -0.7px; }
  .dealers-hero p { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats li { padding: 12px 14px; }
  .hero-stats strong { font-size: 22px; }
  .hero-stats span { font-size: 13px; }
  .dealer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dcard-body { padding: 16px; }
  .dcard-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dcard-facts dd { white-space: normal; font-size: 13px; }
  .dealer-cta { padding: 18px; }
  .dealer-cta .btn { flex: 1; }
  .dealer-profile { padding: 18px; }
  .dealer-profile-top { gap: 14px; align-items: flex-start; }
  .monogram-lg { width: 56px; height: 56px; font-size: 18px; border-radius: 12px; }
  .dealer-title h1 { font-size: 26px; }
  .dealer-profile .actions .btn { flex: 1 1 auto; }
  .trust-row { flex-direction: column; }
  .checklist { grid-template-columns: minmax(0, 1fr); }
  .prose h1 { font-size: 26px; }
}
@media (max-width: 380px) {
  .search-grid { grid-template-columns: 1fr; }
  #saved-link { font-size: 13px; }
  .brand-logo { height: 36px; }
}
