/* ============================================================
   Flacenter v3 — Trustworthy Dealership That Converts
   Brand blue, clean professional, lead-focused
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue:       #0a3d91;
  --blue-dark:  #062a66;
  --blue-soft:  #eaf0fa;
  --blue-line:  #c8d6ee;
  --ink:        #0f1d35;
  --ink-soft:   #3a4865;
  --muted:      #6a7693;
  --line:       #e3e8f0;
  --line-strong: #cdd5e2;
  --paper:      #ffffff;
  --paper-2:    #f6f8fc;
  --paper-3:    #eef2f8;
  --green:      #1ea761;
  --green-dark: #178a51;
  --green-soft: #e7f6ee;
  --orange:     #ff7a3d;
  --star:       #f5b400;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 18px; } }

/* ---------- Type helpers ---------- */
h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 700; line-height: 1.1; }
.tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-sms { background: #0f4c81; color: white; border-color: #0f4c81; }
.btn-sms:hover { background: #0b3b66; border-color: #0b3b66; }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: white; color: var(--blue); }
.btn-white:hover { background: var(--paper-2); }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: white; color: var(--blue); border-color: white; }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Inputs ---------- */
.input, .select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%230f1d35' stroke-width='1.6' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

/* ============================================================
   TOP CTA STRIP (always visible)
   ============================================================ */
.cta-strip {
  background: var(--blue-dark);
  color: white;
  font-size: 13px;
  font-weight: 500;
}
.cta-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 16px;
}
.cta-strip .left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cta-strip .left .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cta-strip .dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: dot-pulse 1.8s infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.cta-strip .right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cta-strip a { display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.15s; }
.cta-strip a:hover { opacity: 0.85; }
@media (max-width: 720px) {
  .cta-strip .left .item:not(.always) { display: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}
.brand-logo-white {
  height: 28px;
  filter: brightness(0) invert(1);
}
.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name .top {
  font-weight: 800;
  font-size: 19px;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.brand-name .bot {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  color: var(--ink-soft);
  padding: 4px 0;
  position: relative;
  transition: color 0.15s;
}
.nav a:hover { color: var(--blue); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav a:hover::after { transform: scaleX(1); }
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  display: inline-flex;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-toggle button.active {
  background: var(--blue);
  color: white;
}
@media (max-width: 920px) { .nav { display: none; } }
@media (max-width: 560px) { .brand-name { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    linear-gradient(180deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 84px 0 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,222,128,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-left .badges {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
}
.badge svg { color: #fdd835; }
.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero-title-lines span {
  display: block;
  white-space: nowrap;
}
.hero-title-lines .accent {
  display: table;
}
.hero h1 .accent {
  color: #fdd835;
  position: relative;
  display: table;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 8px;
  background: rgba(253, 216, 53, 0.25);
  z-index: -1;
  border-radius: 4px;
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 35px;
    letter-spacing: 0;
  }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 31px; }
}
.hero-sub {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
}
.hero-bullets {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.hero-bullets .item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
}
.hero-bullets .check {
  width: 22px; height: 22px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Search card on the right */
.search-card {
  background: white;
  color: var(--ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 60px -20px rgba(6, 22, 60, 0.4);
  border: 1px solid rgba(255,255,255,0.2);
}
.search-card .head {
  text-align: center;
  margin-bottom: 20px;
}
.search-card .head h3 {
  font-size: 22px;
  font-weight: 700;
}
.search-card .head .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.search-card .tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.search-card .tabs button {
  padding: 10px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}
.search-card .tabs button.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.search-card .fields {
  display: grid;
  gap: 12px;
}
.search-card .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.search-card .trust-line {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.search-card .trust-line svg { color: var(--green); }

/* Trust strip at bottom of hero */
.hero-trust-strip {
  margin-top: 64px;
  padding: 32px 0;
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
}
.hero-trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
.tstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tstat .num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
}
.tstat .lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.tstat .stars {
  display: flex;
  gap: 2px;
  color: #fdd835;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .hero-trust-strip .wrap { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ============================================================
   PRE-APPROVAL BANNER (conversion driver)
   ============================================================ */
.lead-banner {
  background: var(--green);
  color: white;
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}
.lead-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 30px, rgba(255,255,255,0.04) 30px 31px);
  pointer-events: none;
}
.lead-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}
.lead-banner .l {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lead-banner .icon-circle {
  width: 56px; height: 56px;
  background: white;
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lead-banner h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.lead-banner p { margin-top: 4px; font-size: 14px; opacity: 0.9; }
.lead-banner .r {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 800px) {
  .lead-banner .wrap { flex-direction: column; align-items: start; }
  .lead-banner .r { width: 100%; flex-direction: column; }
  .lead-banner .r .btn { width: 100%; }
}

/* ============================================================
   SECTION GENERIC
   ============================================================ */
.section { padding: 80px 0; }
@media (max-width: 720px) { .section { padding: 56px 0; } }
.section.alt { background: var(--paper-2); }

/* Tighter section used for the categories teaser */
.section-categories { padding: 56px 0 0; }
.section-categories + .section { padding-top: 48px; }
.inventory-dedicated .section-categories { padding-top: 72px; }
.inventory-dedicated .inventory-page-section { padding-top: 48px; }
@media (max-width: 720px) {
  .section-categories { padding: 40px 0 0; }
  .section-categories + .section { padding-top: 32px; }
  .inventory-dedicated .section-categories { padding-top: 48px; }
  .inventory-dedicated .inventory-page-section { padding-top: 32px; }
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .tag { margin-bottom: 14px; display: block; }
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr 1fr; } }

.cat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}
.cat:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 14px 32px -12px rgba(10, 61, 145, 0.2);
}
.cat-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}
.cat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat:hover .cat-img img { transform: scale(1.05); }
.cat-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 29, 53, 0.35) 0%, transparent 50%);
}
.cat-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-info .name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cat-info .count {
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.cat:hover .count { color: var(--blue); }
.cat-info .count svg { width: 12px; height: 12px; transition: transform 0.2s; }
.cat:hover .count svg { transform: translateX(3px); }

/* ---------- Inventory ---------- */
.inv-filter {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.inv-filter .chip {
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.inv-filter .chip:hover { border-color: var(--blue); color: var(--blue); }
.inv-filter .chip.active { background: var(--blue); color: white; border-color: var(--blue); }
/* removed old price-control inline; now lives in .inv-controls */

/* Filter row: Make + Price + Sort */
.inv-controls {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 14px;
  margin: 14px 0 18px;
  align-items: end;
}
.inv-controls .inv-control { display: flex; flex-direction: column; gap: 6px; }
.inv-controls .inv-control .lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.inv-controls .inv-control .lbl .v-inline {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.inv-controls .inv-control-price input[type=range] {
  width: 100%;
  accent-color: var(--blue);
  padding: 14px 0;
}
.inv-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .inv-controls { grid-template-columns: 1fr; gap: 10px; }
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1180px) { .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .inv-grid { grid-template-columns: 1fr; } }

.inv-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.inv-page-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.inv-page-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.inv-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.inv-page-btn:hover:not(:disabled),
.inv-page-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.inv-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
@media (max-width: 640px) {
  .inv-pagination { align-items: stretch; flex-direction: column; }
  .inv-page-controls { justify-content: flex-start; }
  .inv-page-btn { min-width: 38px; height: 38px; padding: 0 12px; }
}

.car {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  cursor: pointer;
}
.car:hover {
  border-color: var(--blue);
  box-shadow: 0 18px 36px -16px rgba(10, 61, 145, 0.22);
  transform: translateY(-3px);
}
.car-photo {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--paper-3);
  overflow: hidden;
}
.car-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.car:hover .car-photo img { transform: scale(1.04); }
.car-photo .tags {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  gap: 6px;
}
.car-photo .tag-pill {
  padding: 4px 10px;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.car-photo .tag-pill.new { background: var(--orange); color: white; }
.car-photo .tag-pill.featured { background: var(--blue); color: white; }
.car-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-name { font-size: 17px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.car-specs {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.car-specs .s { display: inline-flex; align-items: center; gap: 3px; }
.car-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.car-disclaimer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}
.car-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.car-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.car-disclaimer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}
.car-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.car-cta-row .btn { padding: 9px 8px; font-size: 12px; }
.car-cta-row .btn:first-child { grid-column: 1 / -1; }
.car-prices {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.car-prices .cash .lbl,
.car-prices .finance .lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.car-prices .cash .lbl { color: var(--blue); }
.car-prices .finance .lbl { color: var(--muted); }
.car-prices .cash .v {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.car-prices .finance {
  text-align: right;
  border-left: 1px dashed var(--line);
  padding-left: 12px;
}
.car-prices .finance .v {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.car-prices .finance .mo {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.car-monthly { display: none; }
.car-disclaimer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}
.car-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
}
.car-cta-row .btn { padding: 9px 8px; font-size: 12px; }
.car-cta-stack { display: none; }
.car-price-block { display: none; }

.empty {
  grid-column: 1/-1;
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

.inv-foot {
  margin-top: 36px;
  text-align: center;
}

/* ============================================================
   WHY (trust badges)
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.2s;
}
.why-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(10,61,145,0.16); }
.why-icon {
  width: 56px; height: 56px;
  background: var(--blue-soft);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.why-card h3 { font-size: 22px; font-weight: 700; }
.why-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.why-card .accent-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   FINANCE
   ============================================================ */
.finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .finance-grid { grid-template-columns: 1fr; } }
.finance-copy h2 {
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.1;
}
.finance-copy h2 .accent { color: var(--blue); }
.finance-copy p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 480px;
}
.finance-bullets { margin-top: 28px; display: grid; gap: 14px; }
.finance-bullets .b {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.finance-bullets .b .check {
  width: 28px; height: 28px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.finance-bullets .b strong { display: block; font-weight: 700; font-size: 15px; }
.finance-bullets .b span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.calc {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 18px 36px -20px rgba(10, 29, 53, 0.12);
}
.calc h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.calc-row { margin-bottom: 18px; }
.calc-row .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.calc-row .lbl { font-weight: 600; font-size: 13px; color: var(--ink-soft); text-transform: none; letter-spacing: 0; margin: 0; }
.calc-row .v {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.calc-row input[type=range] {
  width: 100%;
  accent-color: var(--blue);
}
.calc-result {
  margin-top: 24px;
  padding: 28px 24px;
  background: var(--blue);
  color: white;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 130px;
}
.calc-result .lbl { font-size: 13px; opacity: 0.9; margin: 0; color: white; font-weight: 600; }
.calc-result .amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.calc-result .amount small {
  font-size: 16px;
  opacity: 0.7;
  font-weight: 500;
  margin: 0;
}
.calc-disclaimer {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.calc .cta { margin-top: 16px; display: grid; gap: 10px; }
.finance-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.finance-contact-actions .btn {
  width: 100%;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}
@media (max-width: 420px) {
  .finance-contact-actions { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS — Google reviews style
   ============================================================ */
.google-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}
.google-block .g-logo {
  font-size: 24px;
  font-weight: 700;
}
.google-block .g-logo span:nth-child(1) { color: #4285F4; }
.google-block .g-logo span:nth-child(2) { color: #EA4335; }
.google-block .g-logo span:nth-child(3) { color: #FBBC05; }
.google-block .g-logo span:nth-child(4) { color: #4285F4; }
.google-block .g-logo span:nth-child(5) { color: #34A853; }
.google-block .g-logo span:nth-child(6) { color: #EA4335; }
.google-block .rating { font-weight: 700; font-size: 18px; }
.google-block .stars { display: inline-flex; gap: 2px; color: var(--star); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi .stars { display: flex; gap: 2px; color: var(--star); }
.testi-text { font-size: 16px; line-height: 1.55; color: var(--ink); flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.testi-avatar {
  width: 40px; height: 40px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.testi-name { font-weight: 700; font-size: 14px; }
.testi-meta { font-size: 12px; color: var(--muted); }
.testi-g-tag {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-weight: 500;
}

/* ============================================================
   LEAD FORM (inline, the big conversion moment)
   ============================================================ */
.lead-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.lead-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,222,128,0.12), transparent 60%);
  pointer-events: none;
}
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; gap: 32px; } }
.lead-left h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.lead-left h2 .yellow { color: #fdd835; }
.lead-left h2 .approved-glow {
  position: relative;
  display: inline-block;
  color: #ffffff;
  isolation: isolate;
  text-shadow: 0 0 16px rgba(253, 216, 53, 0.42);
}
.lead-left h2 .approved-glow::before {
  content: '';
  position: absolute;
  inset: -0.14em -0.24em;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(253, 216, 53, 0.38), rgba(253, 216, 53, 0) 72%);
  filter: blur(7px);
}
.lead-left p {
  margin-top: 18px;
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}
.lead-left .promises {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.lead-left .promises .item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.lead-left .promises .check {
  width: 24px; height: 24px;
  background: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lead-form {
  background: white;
  color: var(--ink);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4);
}
.lead-form .h {
  text-align: center;
  margin-bottom: 22px;
}
.lead-form h3 { font-size: 22px; font-weight: 700; }
.lead-form .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lead-form .fields { display: grid; gap: 12px; }
.lead-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vehicle-combobox {
  position: relative;
}
.vehicle-combobox-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  padding: 6px;
}
.vehicle-combobox-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}
.vehicle-combobox-option:hover,
.vehicle-combobox-option:focus {
  background: var(--blue-soft);
  color: var(--blue-dark);
  outline: none;
}
@media (max-width: 480px) { .lead-form .row-2 { grid-template-columns: 1fr; } }
.lead-form .submit-row {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.lead-form .lead-contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .lead-form .lead-contact-buttons { grid-template-columns: 1fr; } }
.lead-form .privacy {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.lead-form .or-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.lead-form .or-row::before, .lead-form .or-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.lead-form-sent {
  text-align: center;
  padding: 32px 20px;
}
.lead-form-sent .ok {
  width: 72px; height: 72px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

/* ============================================================
   VISIT
   ============================================================ */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
.visit-info {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.visit-info h3 { font-size: 24px; font-weight: 700; }
.visit-info .item {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.visit-info .item:last-of-type { border-bottom: none; }
.visit-info .item .ico {
  width: 36px; height: 36px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.visit-info .item .l { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.visit-info .item .v { font-size: 15px; font-weight: 600; margin-top: 2px; }
.visit-info .actions { display: grid; gap: 8px; margin-top: 8px; }
.visit-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.visit-contact-actions .btn {
  width: 100%;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}
.visit-hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.visit-hours .d { color: var(--muted); }
.visit-hours .h { font-weight: 600; text-align: right; }
.visit-hours .h.cls { color: var(--orange); }

/* ---------- Refined hours card (richer treatment) ---------- */
.visit-hours-card {
  background: var(--paper-2);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  transition: background 0.15s;
}
.hr-row .d {
  color: var(--ink-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hr-row .h {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.hr-row.closed .h { color: var(--orange); }
.hr-row.today {
  background: var(--blue);
  color: white;
}
.hr-row.today .d { color: white; }
.hr-row.today .h { color: white; }
.hr-row.today.closed .h { color: #ffd1a8; }
.today-mark {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255,255,255,0.22);
  color: white;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Live status pill (Open now / Closed) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-wrap: nowrap;
  flex-shrink: 0;
  max-width: 100%;
}
.status-pill .lbl {
  display: inline-block;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.status-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-pill.open {
  background: var(--green-soft);
  color: var(--green-dark);
}
.status-pill.open .dot {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(30, 167, 97, 0.5);
  animation: status-pulse 1.8s infinite;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 167, 97, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(30, 167, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 167, 97, 0); }
}
.status-pill.closed {
  background: #fff1eb;
  color: #c2410c;
}
.status-pill.closed .dot { background: var(--orange); }
.status-pill .next {
  display: inline-block;
  color: inherit;
  opacity: 0.75;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .status-pill .next { display: none; }
}

.visit-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
  position: relative;
  min-height: 480px;
}
.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
}
@media (max-width: 720px) {
  .visit-map,
  .visit-map iframe { min-height: 360px; }
}
/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 24px;
}
.footer .top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) { .footer .top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h5 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer li a:hover { color: white; }
.footer .brand-mark { background: var(--blue); }
.footer .brand-name .top { color: white; }
.footer .tagline { color: rgba(255,255,255,0.65); font-size: 14px; max-width: 360px; margin-top: 18px; line-height: 1.6; }
.footer .socials { display: flex; gap: 10px; margin-top: 22px; }
.footer .socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.footer .socials a:hover { background: var(--blue); }
.footer .socials a.wa-social { background: var(--green); color: white; }
.footer .socials a.wa-social:hover { background: var(--green-dark); }
.footer .bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 600px) { .footer .bottom { flex-direction: column; gap: 8px; text-align: center; } }

/* ============================================================
   FLOATING + STICKY MOBILE BAR
   ============================================================ */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 70;
  background: var(--green);
  color: white;
  border-radius: 999px;
  padding: 14px 22px 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(30, 167, 97, 0.6);
  transition: transform 0.2s;
}
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab .icn {
  width: 32px; height: 32px;
  background: white;
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

@media (max-width: 720px) {
  .wa-fab { display: none; }
  body { padding-bottom: 64px; }
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  background: white;
  border-top: 1px solid var(--line);
  padding: 8px;
  gap: 6px;
  box-shadow: 0 -8px 20px -10px rgba(0,0,0,0.1);
}
.mobile-cta-bar .b {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta-bar .b.sms { background: #0f4c81; color: white; }
.mobile-cta-bar .b.call { background: var(--blue); color: white; }
.mobile-cta-bar .b.wa { background: var(--green); color: white; }
.mobile-cta-bar .b.apply { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 720px) {
  .mobile-cta-bar { display: flex; }
}

/* ============================================================
   COMPARE BAR + MODALS
   ============================================================ */
.compare-bar {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 65;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.4);
}
.compare-bar .count {
  background: var(--blue);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.compare-bar .go {
  background: var(--green);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}
.compare-bar .go:disabled { opacity: 0.5; cursor: not-allowed; }
.compare-bar .clr {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  padding: 6px;
}
@media (max-width: 720px) {
  .compare-bar { left: 12px; right: 12px; bottom: 76px; justify-content: space-between; padding: 8px 8px 8px 14px; }
}

.car-cmp-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  color: var(--ink);
  transition: all 0.15s;
}
.car-cmp-btn:hover { background: var(--blue); color: white; border-color: var(--blue); }
.car-cmp-btn.on { background: var(--blue); color: white; border-color: var(--blue); }

.modal-bg {
  position: fixed; inset: 0;
  background: rgba(15, 29, 53, 0.65);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadein 0.2s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  animation: slideup 0.25s ease;
}
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 900px) { .modal { grid-template-columns: 1fr; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: var(--paper-2); }
.modal-gallery { background: var(--paper-2); padding: 18px; }
.modal-main-img {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
}
.modal-main-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.modal-thumb {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
}
.modal-thumb.active { border-color: var(--blue); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.modal-info h3 { font-size: 28px; font-weight: 700; }
.modal-info .price { font-size: 36px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; line-height: 1; }
.modal-info .price small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.modal-prices {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: var(--blue-soft);
  border-radius: 12px;
  margin: 4px 0 2px;
}
.modal-prices .m-cash .lbl,
.modal-prices .m-finance .lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.modal-prices .m-cash .lbl { color: var(--blue); }
.modal-prices .m-finance .lbl { color: var(--ink-soft); }
.modal-prices .m-cash .v {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.028em;
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.modal-prices .m-finance {
  text-align: right;
  border-left: 1px dashed var(--blue-line);
  padding-left: 18px;
}
.modal-prices .m-finance .v {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.modal-monthly {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.modal-disclaimer {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}
.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modal-specs .l { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-specs .v { font-size: 15px; font-weight: 600; margin-top: 2px; }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.cmp-modal {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  overflow: auto;
  padding: 32px;
  position: relative;
}
.cmp-modal h3 { font-size: 28px; font-weight: 700; margin-bottom: 24px; }
.cmp-table {
  display: grid;
  grid-template-columns: 180px repeat(var(--cols, 2), 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.cmp-table > div {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 14px;
}
.cmp-table .row-head { background: var(--paper-2); font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.cmp-table .car-head { background: var(--paper-2); }
.cmp-table .car-head img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.cmp-table .car-head .nm { font-weight: 700; font-size: 15px; }

.fallback-img {
  background: repeating-linear-gradient(45deg, var(--paper-3) 0 14px, var(--paper-2) 14px 15px) !important;
  position: relative;
}
.fallback-img::after {
  content: 'PHOTO COMING SOON';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

/* ============================================================
   CARFAX badge + modal link (added v3 refinement)
   ============================================================ */
.car-carfax {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: #fff8e8;
  border: 1px solid #f0d57a;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #92500a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.car-carfax:hover { background: #f0d57a; color: #5a3208; }
.car-carfax svg { color: #c47e00; }

.car-name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.car-name-row .car-name { flex: 1; min-width: 0; }

.modal-carfax {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff8e8;
  border: 1px solid #f0d57a;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 6px;
  text-decoration: none;
}
.modal-carfax:hover { background: #fcefc8; border-color: #c47e00; }
.modal-carfax .carfax-icon {
  width: 36px;
  height: 36px;
  background: #c47e00;
  color: white;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.modal-carfax .carfax-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.modal-carfax .carfax-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.modal-carfax .carfax-text small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.modal-carfax > svg:last-child { color: #c47e00; }

.form-error {
  border: 1px solid rgba(180, 35, 24, 0.2);
  background: #fff3f1;
  color: #b42318;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(5, 150, 105, 0.18);
  background: #effdf7;
  color: #047857;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
}

.form-success svg {
  width: 16px;
  height: 16px;
}


/* ============================================================
   RICH VEHICLE DETAIL MODAL
   ============================================================ */
.vehicle-modal-bg {
  align-items: center;
  overflow: hidden;
}

.vehicle-modal {
  display: block;
  width: min(1440px, 100%);
  max-width: 1440px;
  max-height: 94vh;
  border-radius: 20px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 29, 53, 0.24);
}

.vehicle-modal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 430px;
  min-height: 620px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

.vehicle-visual-panel {
  padding: 22px;
  background: #f1f5fb;
  border-right: 1px solid var(--line);
}

.vehicle-main-media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1d35;
}

.vehicle-main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 999px;
  background: rgba(15, 29, 53, 0.68);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 29, 53, 0.28);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.vehicle-gallery-nav:hover {
  background: rgba(15, 29, 53, 0.9);
  transform: translateY(-50%) scale(1.04);
}

.vehicle-gallery-nav.prev { left: 16px; }
.vehicle-gallery-nav.next { right: 16px; }

.vehicle-gallery-nav.prev svg {
  transform: rotate(180deg);
}

.vehicle-gallery-nav svg {
  width: 19px;
  height: 19px;
}

.vehicle-media-top {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.vehicle-media-top span,
.vehicle-media-top a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  background: rgba(15, 29, 53, 0.72);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.vehicle-media-top a {
  pointer-events: auto;
  background: rgba(255, 248, 232, 0.95);
  color: #7a4308;
  border-color: #f0d57a;
}

.vehicle-thumb-strip {
  display: flex;
  gap: 10px;
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 3px 3px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.vehicle-thumb {
  flex: 0 0 clamp(84px, 14vw, 118px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
}

.vehicle-thumb.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

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

.vehicle-deal-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  background: #fff;
}

.vehicle-title-block h3 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  color: var(--ink);
}

.vehicle-kicker,
.vehicle-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-kicker span {
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vehicle-subline {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vehicle-price-panel {
  border: 1px solid var(--blue-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  padding: 20px;
}

.vehicle-price-main span,
.vehicle-price-side span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vehicle-price-main strong {
  color: var(--blue);
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.vehicle-price-side {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--blue-line);
}

.vehicle-price-side strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 850;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.vehicle-monthly {
  margin-top: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.vehicle-price-panel p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.vehicle-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vehicle-quick-grid div,
.vehicle-highlight,
.market-fact {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.vehicle-quick-grid span,
.vehicle-highlight span,
.market-fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.vehicle-quick-grid strong,
.vehicle-highlight strong,
.market-fact strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.vehicle-action-stack {
  display: grid;
  gap: 9px;
}

.vehicle-trust-row {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.vehicle-trust-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.vehicle-trust-row svg {
  color: var(--green);
  flex-shrink: 0;
}

.vehicle-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.vehicle-main-details,
.vehicle-side-details {
  display: grid;
  gap: 18px;
  align-content: start;
}

.vehicle-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}


.vehicle-curated-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-category-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.feature-category-card.installed,
.feature-category-card.safety {
  background: #fbfcff;
}

.feature-category-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.feature-category-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.feature-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}

.feature-card-icon svg {
  width: 14px;
  height: 14px;
}

.feature-card-list {
  display: grid;
  gap: 8px;
}

.feature-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 730;
  line-height: 1.35;
}

.feature-row svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--green);
}

.vehicle-benefits-card {
  background: #fff;
}

.vehicle-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vehicle-benefit-pill {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.34;
}

.vehicle-benefit-pill svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--green);
  flex-shrink: 0;
}

.vehicle-active-safety-card {
  background: #f8fbff;
  border-color: #d8e6fb;
}

.vehicle-safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vehicle-safety-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  border: 1px solid #d8e6fb;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.vehicle-safety-item svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--blue);
}

.vehicle-ready-card {
  background: #f8fbff;
}

.vehicle-ready-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vehicle-ready-row span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.vehicle-ready-row svg {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--green);
  flex-shrink: 0;
}

.market-data-card {
  background: #fff;
}

.market-fact-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vehicle-extra-features {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.vehicle-extra-features summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.vehicle-extra-features summary::-webkit-details-marker {
  display: none;
}

.vehicle-extra-features summary::after {
  content: '+';
  float: right;
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
}

.vehicle-extra-features[open] summary::after {
  content: '-';
}

.vehicle-extra-features .detail-chip-grid {
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
}


.vehicle-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.vehicle-story-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.vehicle-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.vehicle-section-head.compact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.vehicle-section-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.vehicle-section-head.compact h4 {
  font-size: 17px;
}

.vehicle-section-head.compact > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.vehicle-section p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.vehicle-highlight-row,
.market-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.market-fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.detail-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid #d7dfeb;
  border-radius: 999px;
  background: #f7f9fd;
  color: #263650;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

.detail-chip.more {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue-line);
}

.vehicle-subsection {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.vehicle-subsection h5 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
}

.vehicle-muted {
  color: var(--muted) !important;
}

.vehicle-side-details {
  position: relative;
}

.sticky-detail-card {
  position: sticky;
  top: 18px;
}

.vehicle-spec-list {
  display: grid;
  gap: 0;
}

.vehicle-spec-row {
  display: grid;
  grid-template-columns: minmax(110px, 42%) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.vehicle-spec-row:last-child {
  border-bottom: 0;
}

.vehicle-spec-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vehicle-spec-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.vehicle-history-card .modal-carfax {
  margin-top: 14px;
}

.vehicle-contact-card {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
}

.vehicle-contact-card h4,
.vehicle-contact-card p {
  color: #fff;
}

.vehicle-contact-card p {
  opacity: 0.86;
}

.vehicle-contact-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.vehicle-contact-card .btn-primary {
  background: #fff;
  color: var(--blue-dark);
}

.vehicle-location-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.vehicle-location-line svg {
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 1180px) {
  .vehicle-modal-hero,
  .vehicle-detail-body {
    grid-template-columns: 1fr;
  }

  .vehicle-visual-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vehicle-deal-panel {
    padding: 24px;
  }

  .sticky-detail-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .vehicle-modal-bg {
    padding: 8px;
    place-items: stretch;
  }

  .vehicle-modal {
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .vehicle-visual-panel,
  .vehicle-deal-panel,
  .vehicle-detail-body {
    padding: 14px;
  }

  .vehicle-main-media {
    min-height: 260px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .vehicle-gallery-nav {
    width: 38px;
    height: 38px;
  }

  .vehicle-gallery-nav.prev { left: 10px; }
  .vehicle-gallery-nav.next { right: 10px; }

  .vehicle-gallery-nav svg {
    width: 16px;
    height: 16px;
  }

  .vehicle-title-block h3 {
    font-size: 30px;
  }

  .vehicle-price-main strong {
    font-size: 42px;
  }

  .vehicle-quick-grid,
  .vehicle-section-grid,
  .vehicle-curated-grid,
  .vehicle-benefit-grid,
  .vehicle-safety-grid,
  .vehicle-highlight-row,
  .market-fact-grid,
  .market-fact-grid.compact,
  .vehicle-ready-row {
    grid-template-columns: 1fr;
  }

  .vehicle-section-head.compact {
    display: grid;
  }

  .vehicle-spec-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
