@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f7fbff;
  --ink: #08152f;
  --muted: #465575;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --brand-a: #ff5a3d;
  --brand-b: #0c6772;
  --brand-c: #ffd447;
  --brand-d: #2e5bff;
  --line: rgba(8, 21, 47, 0.1);
  --radius-xs: 0.65rem;
  --radius-sm: 0.9rem;
  --radius-md: 1.2rem;
  --radius-lg: 1.6rem;
  --shadow-sm: 0 16px 34px rgba(10, 24, 52, 0.12);
  --shadow-lg: 0 28px 68px rgba(10, 24, 52, 0.22);
  --content-desktop-wide: min(1600px, 96%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 720px at -15% -15%, rgba(255, 90, 61, 0.22), transparent 58%),
    radial-gradient(1000px 640px at 115% -10%, rgba(46, 91, 255, 0.22), transparent 57%),
    radial-gradient(1100px 680px at 50% 120%, rgba(3, 166, 161, 0.2), transparent 60%),
    linear-gradient(165deg, #f8fbff 0%, #eef5ff 55%, #f8f6ff 100%);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
  padding-bottom: 5.6rem;
}


/* Safety: Hide quick-specs (removed from HTML) */
.quick-specs { display: none !important; }
[hidden] {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: conic-gradient(from 120deg at 50% 50%, rgba(255, 212, 71, 0.08), rgba(46, 91, 255, 0.08), rgba(3, 166, 161, 0.08), rgba(255, 90, 61, 0.08), rgba(255, 212, 71, 0.08));
  animation: hueShift 18s linear infinite;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 0.8px, transparent 0.8px);
  background-size: 6px 6px;
  opacity: 0.4;
}

.app-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  width: 220px;
  height: 220px;
  left: -80px;
  top: 25%;
  background: rgba(255, 111, 61, 0.28);
}

.orb-b {
  width: 260px;
  height: 260px;
  right: -90px;
  top: 40%;
  background: rgba(20, 92, 255, 0.24);
}

.orb-c {
  width: 210px;
  height: 210px;
  left: 35%;
  bottom: 10%;
  background: rgba(15, 139, 141, 0.22);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-family: "Sora", sans-serif;
}

p {
  margin: 0;
}

.section {
  width: var(--content-desktop-wide);
  margin: 0 auto;
  padding: 2.2rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.topbar {
  position: sticky;
  top: 0.65rem;
  z-index: 100;
  width: var(--content-desktop-wide);
  margin: 0.7rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 700;
}

.brand-mark {
  flex-shrink: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #ff4605, #e63f04);
  box-shadow: 0 8px 20px rgba(255, 70, 5, 0.35);
}

.brand-logo {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.65rem;
  object-fit: contain;
  background: #ffffff;
  padding: 0.12rem;
  border: 1px solid rgba(14, 30, 58, 0.12);
}

.brand-text {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-actions .pill {
  white-space: nowrap;
}

/* Modernization pass: mobile-first refinements */
.section {
  width: min(1600px, calc(100% - 0.9rem));
}

.topbar,
.card,
.panel,
.hero-card,
.listing-card {
  border: 1px solid rgba(14, 30, 58, 0.12);
  box-shadow: 0 16px 34px rgba(10, 24, 52, 0.14);
  backdrop-filter: blur(10px);
}

.btn,
button,
input,
select,
textarea {
  min-height: 2.6rem;
}

@media (max-width: 767px) {
  .section,
  .topbar,
  .hero,
  .footer,
  .card,
  .panel {
    width: calc(100% - 0.6rem);
    border-radius: 0.9rem;
  }

  .topbar {
    top: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.45rem;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .app-orb {
    display: none;
  }
}

#menuButton {
  display: none;
}

.pill {
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.83rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pill-soft {
  color: var(--ink);
  background: #eef2fb;
}

.pill-solid {
  color: #fff;
  background: linear-gradient(125deg, var(--brand-b), var(--brand-d));
  box-shadow: 0 8px 18px rgba(20, 92, 255, 0.26);
}

.pill:hover,
.btn:hover,
.quick-card:hover,
.kpi-card:hover,
.car-card:hover,
.service-grid article:hover,
.faq-card:hover,
.review-card:hover {
  transform: translateY(-3px);
}

.mobile-drawer {
  position: fixed;
  inset: 4.5rem 1rem auto;
  z-index: 98;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  transform: translateY(-14px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: 220ms ease;
}

.mobile-drawer.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.drawer-nav {
  display: grid;
  gap: 0.42rem;
}

.drawer-nav a {
  color: var(--ink);
  text-decoration: none;
  background: #f0f5ff;
  border-radius: 0.78rem;
  padding: 0.72rem 0.86rem;
  font-weight: 600;
}

.drawer-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 0.25rem 0;
}

/* Mobile-first topbar nav defaults (mobile: 0.7rem, desktop: 0.85rem) */
@media (max-width: 1199px) {
  .topbar-actions .action-lang {
    display: none;
  }

  #menuButton {
    display: inline-flex;
  }
}

@media (max-width: 1039px) {
  .topbar-actions .action-account {
    display: none;
  }
}

@media (max-width: 899px) {
  .topbar-actions .action-add {
    display: none;
  }
}

@media (max-width: 767px) {
  .topbar-actions {
    display: flex;
  }

  .topbar-actions .action-call,
  .topbar-actions .action-account,
  .topbar-actions .action-add,
  .topbar-actions .action-lang {
    display: none;
  }
}

.drawer-admin-link {
  font-size: 0.8rem;
  opacity: 0.5;
  font-weight: 500;
}

.drawer-admin-link:hover,
.drawer-admin-link:focus {
  opacity: 1;
}

.hero {
  display: grid;
  gap: 1rem;
  padding-top: 1.4rem;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.62rem;
  margin-top: 0.4rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.88));
  box-shadow: var(--shadow-sm);
  padding: 0.72rem 0.82rem;
}

.trust-icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--brand-b);
}

.trust-item > div {
  display: grid;
  gap: 0.12rem;
}

.trust-item strong {
  font-size: 0.88rem;
  color: var(--ink);
}

.trust-item span {
  font-size: 0.76rem;
  color: var(--muted);
}

.hero-content,
.hero-card,
.kpi-card,
.quick-card,
.slider-card,
.car-card,
.service-grid article,
.faq-card,
.review-card,
.contact-form,
.vehicle-not-found,
.vehicle-spec-card,
.detail-gallery {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-sm);
}

.hero-content {
  padding: 1.2rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.88));
}

.eyebrow {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #0c6772;
}

.hero h1 {
  margin-top: 0.68rem;
  font-size: clamp(1.9rem, 10vw, 3.6rem);
  background: linear-gradient(130deg, #05214a, #0c4c97 45%, #0ca7a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 0.82rem;
  color: var(--muted);
  line-height: 1.68;
  max-width: 62ch;
}

.hero-proof {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.hero-proof span {
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.28rem 0.56rem;
  color: #1c3f76;
  background: linear-gradient(130deg, rgba(255, 202, 58, 0.34), rgba(31, 103, 255, 0.18));
}

.hero-cta {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  border-radius: 0.85rem;
  padding: 0.74rem 1.02rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(125deg, var(--brand-a), var(--brand-d));
  box-shadow: 0 10px 22px rgba(20, 92, 255, 0.3);
}

.btn-outline {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.hero-card {
  padding: 1.15rem;
  color: #fff;
  background: linear-gradient(150deg, #081a48, #073f8d 50%, #037f89);
  border: 0;
  box-shadow: var(--shadow-lg);
}

.pulse-strip {
  display: grid;
  gap: 0.72rem;
}

.pulse-strip article {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.88));
  box-shadow: var(--shadow-sm);
  padding: 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.pulse-strip p {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #2f4e8e;
  font-weight: 700;
}

.pulse-strip strong {
  font-size: 0.94rem;
  line-height: 1.45;
}

.card-kicker {
  opacity: 0.82;
  font-size: 0.82rem;
}

.hero-card h2 {
  margin-top: 0.5rem;
  font-size: 1.45rem;
}

.price-row {
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.price-tag {
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.27rem 0.66rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.app-kpis {
  display: grid;
  gap: 0.76rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-card {
  padding: 0.95rem;
  display: grid;
  gap: 0.28rem;
  box-shadow: var(--shadow-sm), inset 3px 0 0 var(--brand-b);
}

.kpi-card p {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.kpi-card h3 {
  font-size: 1.56rem;
}

.kpi-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.quick-actions {
  display: grid;
  gap: 0.72rem;
}

.quick-card {
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  display: grid;
  gap: 0.24rem;
  position: relative;
  overflow: hidden;
}

.quick-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.34rem;
  background: linear-gradient(180deg, var(--brand-c), var(--brand-a));
}

.quick-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.quick-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 90, 61, 0.12), rgba(255, 212, 71, 0.12));
  color: var(--brand-a);
  margin-bottom: 0.42rem;
}

.quick-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.section-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.35rem, 7.2vw, 2.4rem);
}

.coverage-copy {
  margin-top: 0.88rem;
  color: #333f5a;
  line-height: 1.7;
}

.inventory-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 360ms ease;
}

.slider-card {
  overflow: hidden;
  background: var(--surface-strong);
}

.slider-image {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.slider-body {
  padding: 0.95rem;
  display: grid;
  gap: 0.42rem;
}

.slider-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.slider-price {
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

.slider-row {
  margin-top: 0.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.slider-nav {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 18, 36, 0.84);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 2;
}

.slider-nav.prev {
  left: 0.5rem;
}

.slider-nav.next {
  right: 0.5rem;
}

.slider-nav svg {
  width: 1rem;
  height: 1rem;
}

.slider-dots {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.34rem;
}

.slider-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.26);
}

.slider-dot.active {
  width: 1.7rem;
  background: linear-gradient(130deg, var(--brand-a), var(--brand-d));
}

.car-grid {
  display: grid;
  gap: 0.85rem;
}

.inventory-intro {
  margin: -0.25rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.inventory-controls {
  display: grid;
  gap: 0.62rem;
  margin: 0 0 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 249, 255, 0.9));
  box-shadow: var(--shadow-sm);
  padding: 0.8rem;
}

.inventory-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.inventory-chip {
  border: 1px solid #d3dff6;
  border-radius: 999px;
  background: #edf3ff;
  color: #1f3d78;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
}

.inventory-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, var(--brand-a), var(--brand-d));
}

.inventory-result-meta {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.car-card {
  overflow: hidden;
  background: var(--surface-strong);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.car-media {
  position: relative;
}

.car-image {
  min-height: 190px;
  border-radius: 0;
  margin: 0;
  cursor: pointer;
  box-shadow: inset 0 -70px 100px rgba(7, 15, 31, 0.24);
}

.car-chip {
  position: absolute;
  left: 1.25rem;
  top: 1.2rem;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 18, 33, 0.82);
}

.car-content {
  padding: 0.78rem;
  display: grid;
  gap: 0.46rem;
}

.car-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
}

.car-title-row h3 {
  font-size: 1.06rem;
}

.car-price {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: #0a356f;
}

.car-meta,
.car-spec,
.car-copy {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.car-actions {
  margin-top: 0.2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-grid {
  display: grid;
  gap: 0.75rem;
}

.service-grid article {
  padding: 1rem;
}

.service-grid p {
  margin-top: 0.55rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-icon-wrap {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.82rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, rgba(3, 166, 161, 0.14), rgba(46, 91, 255, 0.14));
  color: var(--brand-b);
}

.service-icon-wrap svg {
  width: 1.4rem;
  height: 1.4rem;
}

.finance {
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(138deg, #2a0a4d, #004b88);
  box-shadow: var(--shadow-lg);
}

.finance .eyebrow {
  color: #ffca3a;
}

.finance h2 {
  margin: 0.6rem 0;
  font-size: clamp(1.45rem, 7.5vw, 2.3rem);
}

.finance p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.62;
  margin-bottom: 0.9rem;
}

.review-row {
  display: flex;
  gap: 0.72rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scroll-snap-type: x mandatory;
}

.review-card {
  min-width: 88%;
  padding: 1rem;
  scroll-snap-align: start;
}

.review-card p {
  color: #28334d;
  line-height: 1.6;
}

.review-stars {
  display: flex;
  gap: 0.14rem;
  margin-bottom: 0.6rem;
  color: var(--brand-c);
}

.review-stars svg {
  width: 0.92rem;
  height: 0.92rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.78rem;
  padding-top: 0.68rem;
  border-top: 1px solid var(--line);
}

.reviewer-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.84rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-b), var(--brand-d));
  flex-shrink: 0;
}

.reviewer h3 {
  font-size: 0.92rem;
  margin: 0;
}

.reviewer span {
  font-size: 0.72rem;
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 0.75rem;
}

.faq-card {
  padding: 1rem;
}

.faq-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.62;
}

details.faq-card {
  cursor: pointer;
}

details.faq-card > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

details.faq-card > summary::-webkit-details-marker {
  display: none;
}

details.faq-card > summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%231f3d78' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 180ms ease;
}

details.faq-card[open] > summary::after {
  transform: rotate(45deg);
}

details.faq-card > summary h3 {
  font-size: 1rem;
  pointer-events: none;
}

details.faq-card > p {
  margin-top: 0.68rem;
  padding-top: 0.68rem;
  border-top: 1px solid var(--line);
}

.contact {
  display: grid;
  gap: 0.95rem;
}

.contact-meta {
  margin-top: 0.45rem;
  color: #2e3a56;
}

.contact-meta a {
  color: var(--brand-d);
  text-decoration: none;
}

.hours-list {
  margin: 0.76rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.22rem;
  color: #2e3a56;
  font-size: 0.9rem;
}

.social-links {
  margin-top: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.social-links a {
  text-decoration: none;
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.68rem;
  font-weight: 700;
  font-size: 0.8rem;
  background: linear-gradient(130deg, var(--brand-b), var(--brand-d));
}

.contact-form {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
  background: var(--surface-strong);
}

label {
  display: grid;
  gap: 0.36rem;
  font-weight: 600;
  color: #13203b;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d2dae8;
  border-radius: 0.7rem;
  padding: 0.73rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(20, 92, 255, 0.16);
  border-color: #4f7dff;
}

.form-status {
  min-height: 1.2rem;
  font-weight: 700;
  color: #0e7a4d;
}

.form-status.error {
  color: #b42318;
}

button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 21, 0.72);
  backdrop-filter: blur(8px);
}

.gallery-shell {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 1.8rem);
  overflow: auto;
  border-radius: 1.3rem;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 0.9rem;
}

.gallery-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.gallery-stage {
  position: relative;
  margin-top: 0.5rem;
  min-height: 260px;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(140deg, #e8eefb, #f7faff);
}

.gallery-image {
  width: 100%;
  height: min(60vh, 420px);
  object-fit: cover;
  display: block;
}

.gallery-video {
  width: 100%;
  height: min(60vh, 420px);
  object-fit: contain;
  display: block;
  background: #000;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.86);
  display: grid;
  place-items: center;
}

.gallery-nav svg,
.gallery-close svg {
  width: 1.05rem;
  height: 1.05rem;
}

.gallery-nav.prev {
  left: 0.6rem;
}

.gallery-nav.next {
  right: 0.6rem;
}

.gallery-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gallery-info {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.74rem;
}

.gallery-meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-b);
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-price {
  margin-top: 0.4rem;
  font-weight: 800;
  font-size: 1.08rem;
}

.gallery-description {
  margin-top: 0.38rem;
  color: var(--muted);
  line-height: 1.6;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gallery-view-details {
  min-width: 12rem;
}

.gallery-thumbs {
  margin-top: 0.88rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.gallery-thumb {
  border: 2px solid transparent;
  border-radius: 0.72rem;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.gallery-thumb.active {
  border-color: var(--brand-a);
}

.gallery-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 5.8rem;
  z-index: 90;
  text-decoration: none;
  color: #fff;
  font-size: 0.87rem;
  font-weight: 700;
  padding: 0.74rem 1rem;
  border-radius: 999px;
  background: linear-gradient(130deg, #12a05a, #11b26a);
  box-shadow: 0 16px 26px rgba(17, 170, 96, 0.36);
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.whatsapp-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.bottom-nav {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.72rem;
  z-index: 95;
  border-radius: 999px;
  padding: 0.38rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  background: rgba(7, 15, 31, 0.92);
}

.bottom-nav a {
  text-decoration: none;
  color: #cad3e5;
  text-align: center;
  border-radius: 999px;
  padding: 0.44rem 0.2rem;
  font-size: 0.67rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.bottom-nav a svg {
  width: 1.04rem;
  height: 1.04rem;
}

.bottom-nav a.active {
  color: #fff;
  background: linear-gradient(130deg, var(--brand-a), var(--brand-d));
}

.bottom-nav a[hidden] {
  display: none;
}

.bottom-nav-more {
  text-decoration: none;
  color: #cad3e5;
  text-align: center;
  border-radius: 999px;
  padding: 0.44rem 0.2rem;
  font-size: 0.67rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 180ms ease, background 180ms ease;
  width: 100%;
}

.bottom-nav-more svg {
  width: 1.04rem;
  height: 1.04rem;
}

.bottom-nav-more.active,
.bottom-nav-more[aria-expanded="true"] {
  color: #fff;
  background: linear-gradient(130deg, var(--brand-a), var(--brand-d));
}

/* ---- More tray ---- */
.more-tray {
  position: fixed;
  inset: 0;
  z-index: 96;
  pointer-events: none;
}

.more-tray[aria-hidden="false"] {
  pointer-events: auto;
}

.more-tray-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 240ms ease;
}

.more-tray[aria-hidden="false"] .more-tray-backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.more-tray-sheet {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 18, 38, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 0.5rem;
  display: grid;
  gap: 0.2rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease;
}

.more-tray[aria-hidden="false"] .more-tray-sheet {
  transform: translateY(0);
  opacity: 1;
}

.more-tray-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.78rem 1rem;
  color: #d0d8ee;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 0.9rem;
  transition: background 160ms ease, color 160ms ease;
}

.more-tray-item svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.more-tray-item:hover,
.more-tray-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.more-tray-item:hover svg,
.more-tray-item:focus svg {
  opacity: 1;
}

.more-tray-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.2rem 0.5rem;
}

.more-tray-admin {
  opacity: 0.6;
}

.more-tray-admin:hover,
.more-tray-admin:focus {
  opacity: 1;
}

.more-tray-lang {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: #d0d8ee;
  text-align: left;
  justify-content: flex-start;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.vehicle-page {
  padding-bottom: 8rem;
}

.vehicle-main {
  padding-top: 0.8rem;
}

.vehicle-back-row {
  margin: 0 0 0.55rem;
}

.vehicle-back-btn {
  min-height: 2rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.vehicle-banner {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.vehicle-banner h2 {
  font-size: clamp(1.15rem, 5.3vw, 1.75rem);
}

.vehicle-not-found {
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

/* Gallery Section - Mobile First */
.vehicle-gallery-section {
  margin-bottom: 0.5rem;
}

.vehicle-hero {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}

.vehicle-copy {
  padding: 0.5rem 0;
  display: grid;
  gap: 0.4rem;
  order: 2;
}

.vehicle-copy h1 {
  font-size: clamp(1.3rem, 6vw, 2rem);
  margin-bottom: 0.3rem;
}

.vehicle-copy .lead {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.vehicle-specs-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.34rem;
  row-gap: 0.18rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.vehicle-inline-item {
  color: var(--ink);
  font-weight: 500;
}

.vehicle-inline-separator {
  color: rgba(10, 30, 58, 0.36);
  user-select: none;
}

/* Quick specs inline display */
.quick-specs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.4rem 0;
}

.vehicle-price {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 7vw, 2.1rem);
  color: var(--brand-a);
  flex-shrink: 0;
}

.vehicle-year {
  border-radius: 999px;
  background: #e5eeff;
  color: #19438f;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.vehicle-badge {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(3, 166, 161, 0.15);
  color: #0a6b68;
}

.vehicle-badge[data-type="condition"]::before {
  content: attr(data-value);
}

/* Gallery styling */
.detail-gallery {
  padding: 0;
  background: transparent;
  margin-bottom: 0.5rem;
}

.detail-stage {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(140deg, #ebf1fb, #f8fbfe);
  aspect-ratio: 1 / 0.85;
  touch-action: pan-y;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.detail-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 10;
  transition: all 0.2s ease;
}

.gallery-nav span[aria-hidden="true"] {
  line-height: 1;
  font-size: 1rem;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 1);
}

.gallery-nav.prev {
  left: 0.4rem;
}

.gallery-nav.next {
  right: 0.4rem;
}

.detail-counter {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 9;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(7, 21, 44, 0.76);
  backdrop-filter: blur(8px);
  color: #f7fbff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-icon-only {
  width: 2.2rem !important;
  height: 2.2rem !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-icon-only svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-icon-only.is-playing {
  background: linear-gradient(130deg, var(--brand-a), var(--brand-d));
  color: #fff;
}

/* Gallery thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 0.34rem;
  margin-top: 0.38rem;
  overflow-x: auto;
  padding-bottom: 0.18rem;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.52rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active {
  border-color: var(--brand-a);
}

@media (max-width: 699px) {
  .gallery-thumbs {
    gap: 0.28rem;
    margin-top: 0.28rem;
    padding-bottom: 0.1rem;
  }

  .gallery-thumb {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.45rem;
  }

  .detail-counter {
    right: 0.38rem;
    bottom: 0.38rem;
    padding: 0.24rem 0.44rem;
    font-size: 0.64rem;
  }
}

/* Specs sidebar - hidden on mobile */
.vehicle-specs-sidebar {
  display: none;
  order: 1;
}

.vehicle-specs-compact {
  display: none;
}

/* Accordion specs */
.vehicle-specs-accordion {
  display: grid;
  gap: 0.5rem;
}

.vehicle-specs .section-head h2 {
  font-size: 0.96rem;
}

.accordion-item {
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem;
  cursor: pointer;
  background: var(--surface-strong);
  border: none;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.5);
}

.accordion-header[aria-expanded="true"] {
  background: rgba(3, 166, 161, 0.1);
  color: #0a6b68;
}

.accordion-chevron {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-header[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-header[aria-expanded="true"] ~ .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 0.9rem 0.9rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, 1fr);
}

.accordion-body-flat {
  padding: 0;
}

.spec-item {
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.6rem;
  font-size: 0.85rem;
}

.spec-item strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.spec-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.vehicle-spec-grid {
  display: grid;
  gap: 0.5rem;
}

.vehicle-spec-card {
  padding: 0.7rem;
  background: var(--surface-strong);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.vehicle-spec-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.vehicle-spec-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Sticky action footer (mobile) */
.vehicle-actions-footer {
  position: fixed;
  bottom: 5.6rem;
  left: 0;
  right: 0;
  z-index: 95;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.96));
  border-top: 1px solid rgba(12, 38, 78, 0.08);
  box-shadow: 0 -10px 24px rgba(8, 27, 60, 0.08);
  display: grid;
  gap: 0.32rem;
  grid-template-columns: 1fr;
}

.btn-block {
  width: 100%;
  justify-content: center;
  display: flex;
  gap: 0.5rem;
}

.vehicle-actions-footer .btn svg {
  width: 1.02rem;
  height: 1.02rem;
  flex-shrink: 0;
}

.link-secondary {
  padding: 0.3rem;
  text-align: center;
  color: var(--brand-b);
  font-size: 0.76rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

@media (max-width: 699px) {
  .vehicle-actions-footer .link-secondary {
    display: none;
  }
}

.link-secondary:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Tablet breakpoint */
@media (min-width: 700px) {
  .vehicle-page {
    padding-bottom: 1.2rem;
  }

  .vehicle-main {
    padding-top: 1.1rem;
  }

  .vehicle-hero {
    grid-template-columns: 0.55fr 0.45fr;
    align-items: start;
    gap: 1rem;
  }

  .vehicle-copy {
    order: 1;
  }

  .vehicle-gallery-section {
    order: 1;
    margin-bottom: 0;
    grid-column: 1 / 2;
  }

  .vehicle-specs-sidebar {
    display: grid;
    gap: 0.6rem;
    order: 2;
  }

  .vehicle-specs-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .vehicle-specs-inline { font-size: 0.86rem; }

  .detail-gallery {
    padding: 0;
  }

  .detail-stage {
    aspect-ratio: 1 / 1.1;
  }

  .vehicle-actions-footer {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
    padding: 0.25rem 0 0;
    background: transparent;
    border-top: none;
    box-shadow: none;
    margin-top: 0.32rem;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .btn-block {
    grid-column: auto;
    width: auto;
    min-width: 15rem;
  }

  .link-secondary {
    padding: 0;
    align-self: center;
    white-space: nowrap;
  }

  .vehicle-specs-accordion {
    display: none;
  }

  .vehicle-specs.section {
    display: none;
  }
}

/* Desktop breakpoint */
@media (min-width: 1040px) {
  .vehicle-hero {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .vehicle-specs-compact {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-stage {
    aspect-ratio: 1 / 1;
  }

  .vehicle-specs-sidebar {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }

  .accordion-body {
    grid-template-columns: repeat(3, 1fr);
  }

  .vehicle-specs-inline { font-size: 0.88rem; }
}

@media (min-width: 700px) {
  .brand-text {
    display: block;
  }

  body {
    padding-bottom: 1.2rem;
  }

  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .pulse-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .hero-content {
    padding: 1.45rem;
  }

  .hero-card {
    padding: 1.35rem;
  }

  .app-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-controls {
    grid-template-columns: 1.15fr 0.75fr;
    align-items: end;
  }

  .inventory-chip-row,
  .inventory-result-meta {
    grid-column: 1 / -1;
  }

  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .review-card {
    min-width: 44%;
  }

  .vehicle-hero {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }

  .vehicle-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .section {
    padding: 2.9rem 0;
  }

  .pill {
    font-size: 0.88rem;
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inventory-controls {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    align-items: center;
  }

  .inventory-chip-row {
    grid-column: auto;
    justify-self: end;
  }

  .inventory-result-meta {
    grid-column: 1 / -1;
  }

  .car-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-card {
    min-width: 31%;
  }

  .vehicle-spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@keyframes hueShift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* ===== 2026 UI Refresh Layer ===== */

:root {
  --bg: #f7f8ff;
  --ink: #0a1330;
  --muted: #526089;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --brand-a: #ff6a3d;
  --brand-b: #0c6772;
  --brand-c: #ffd33f;
  --brand-d: #2e54ff;
  --line: rgba(27, 45, 98, 0.13);
}

body {
  background:
    radial-gradient(72rem 32rem at -15% -10%, rgba(255, 106, 61, 0.24), transparent 70%),
    radial-gradient(60rem 30rem at 114% -8%, rgba(46, 84, 255, 0.2), transparent 70%),
    radial-gradient(58rem 26rem at 52% 115%, rgba(0, 167, 162, 0.18), transparent 72%),
    linear-gradient(165deg, #f7f8ff 0%, #eef2ff 56%, #fff7f2 100%);
}

.skip-link {
  position: fixed;
  left: 0.75rem;
  top: -4rem;
  z-index: 300;
  border-radius: 0.8rem;
  background: #0d1c42;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 0.85rem;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 0.75rem;
}

.section {
  width: min(1220px, 92%);
}

.topbar {
  top: 0.7rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.88), rgba(242, 247, 255, 0.82));
  box-shadow:
    0 18px 44px rgba(22, 37, 84, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.brand-mark {
  border-radius: 0.5rem;
  background: linear-gradient(140deg, #ff4605, #e63f04);
  box-shadow: 0 8px 20px rgba(255, 70, 5, 0.35);
}

.pill {
  letter-spacing: 0.01em;
}

.pill-soft {
  background: linear-gradient(125deg, #eef2ff, #f3f7ff);
  border: 1px solid #dce6ff;
}

.pill-solid {
  background: linear-gradient(130deg, #00a7a2, #2e54ff);
}

.trust-bar {
  gap: 0.76rem;
}

.trust-item {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.9));
  box-shadow: 0 14px 32px rgba(20, 35, 76, 0.12);
}

.standards-strip {
  display: grid;
  gap: 0.8rem;
  margin-top: -0.5rem;
}

.standard-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.9));
  box-shadow: 0 18px 36px rgba(16, 31, 70, 0.11);
  padding: 1rem;
  display: grid;
  gap: 0.38rem;
}

.standard-label {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2757c8;
}

.standard-card h3 {
  font-size: 1.1rem;
}

.standard-card p {
  color: var(--muted);
  line-height: 1.6;
}

.hero {
  gap: 1.05rem;
  align-items: stretch;
}

.hero-content {
  border-radius: 1.35rem;
  padding: 1.35rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 22px 48px rgba(17, 30, 69, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero h1 {
  margin-top: 0.72rem;
  font-size: clamp(2rem, 11vw, 4.2rem);
  line-height: 1.04;
  background: linear-gradient(128deg, #081a46 0%, #1451a2 45%, #029b95 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-proof span {
  background: linear-gradient(135deg, rgba(255, 211, 63, 0.42), rgba(46, 84, 255, 0.2));
  color: #16397b;
}

.btn {
  border-radius: 0.95rem;
  padding: 0.8rem 1.08rem;
}

.btn-primary {
  background: linear-gradient(130deg, #ff6a3d, #2e54ff);
}

.btn-outline {
  border: 1px solid #cedbff;
  background: linear-gradient(120deg, #f9fbff, #eef3ff);
}

.hero-card {
  border-radius: 1.35rem;
  padding: 1.35rem;
  background:
    radial-gradient(15rem 10rem at 80% 8%, rgba(255, 211, 63, 0.26), transparent 62%),
    linear-gradient(145deg, #0a1a47, #1246a1 55%, #069891);
  box-shadow: 0 28px 60px rgba(9, 25, 58, 0.34);
}

.pulse-strip article,
.kpi-card,
.quick-card,
.slider-card,
.car-card,
.service-grid article,
.faq-card,
.review-card,
.contact-form {
  border-radius: 1.08rem;
}

.kpi-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(246, 251, 255, 0.9));
  box-shadow: 0 14px 30px rgba(19, 34, 74, 0.1);
}

.quick-card {
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 32px rgba(18, 35, 74, 0.11);
}

.quick-card::before {
  width: 0.44rem;
}

.inventory-controls {
  border-radius: 1.15rem;
}

.car-card {
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 36px rgba(20, 34, 71, 0.11);
}

.car-image {
  min-height: 208px;
}

.service-grid article {
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.finance {
  border-radius: 1.25rem;
  background:
    radial-gradient(16rem 12rem at 85% 18%, rgba(255, 211, 63, 0.22), transparent 64%),
    linear-gradient(140deg, #2d0e55, #004f95);
}

.review-card {
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 36px rgba(16, 30, 68, 0.1);
}

.faq-card {
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.contact {
  gap: 1.1rem;
}

.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(18, 33, 72, 0.13);
}

.floating-whatsapp {
  background: linear-gradient(130deg, #0ea65c, #10be77);
}

.install-app-btn {
  background: linear-gradient(135deg, #ff4605, #e63f04);
  box-shadow: 0 16px 26px rgba(255, 70, 5, 0.34);
}

.install-prompt {
  position: fixed;
  right: 1rem;
  bottom: 6.3rem;
  z-index: 96;
  width: min(25rem, calc(100vw - 2rem));
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(12rem 7rem at 88% 8%, rgba(255, 160, 80, 0.24), transparent 68%),
    linear-gradient(160deg, rgba(10, 27, 59, 0.97), rgba(16, 42, 83, 0.97));
  color: #f6f8fd;
  box-shadow: 0 24px 44px rgba(8, 18, 42, 0.38);
  backdrop-filter: blur(8px);
  padding: 0.95rem;
}

.install-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.install-prompt-head strong {
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.install-prompt-close {
  border: 0;
  background: transparent;
  color: rgba(246, 248, 253, 0.84);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.install-prompt-copy {
  margin: 0.48rem 0 0.44rem;
  font-size: 0.84rem;
  color: rgba(246, 248, 253, 0.9);
}

.install-prompt-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.28rem;
  font-size: 0.8rem;
  color: rgba(236, 241, 252, 0.92);
}

.install-prompt-hint {
  margin: 0.56rem 0 0;
  font-size: 0.74rem;
  color: rgba(212, 223, 244, 0.9);
}

.install-prompt-actions {
  margin-top: 0.66rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.install-prompt-install,
.install-prompt-secondary {
  border: 0;
  border-radius: 0.72rem;
  padding: 0.48rem 0.74rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.install-prompt-install {
  background: linear-gradient(135deg, #ff6d3d, #ff8f2f);
  color: #fff;
}

.install-prompt-secondary {
  background: rgba(226, 234, 248, 0.2);
  color: #f7fbff;
}

.install-recommend-section {
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background:
    radial-gradient(20rem 10rem at 90% -4%, rgba(255, 176, 96, 0.28), transparent 65%),
    linear-gradient(148deg, #0a204b, #123d78);
  color: #edf3ff;
  box-shadow: 0 28px 48px rgba(8, 21, 46, 0.28);
}

.install-recommend-section .eyebrow,
.install-recommend-section .lead,
.install-recommend-section .install-recommend-list li,
.install-recommend-section .install-recommend-aside span {
  color: rgba(237, 243, 255, 0.9);
}

.install-recommend-section h2 {
  margin: 0.4rem 0 0.68rem;
  font-size: clamp(1.3rem, 2.8vw, 1.95rem);
}

.install-recommend-grid {
  display: grid;
  gap: 1rem;
}

.install-recommend-list {
  margin: 0.72rem 0 0;
  padding-left: 1.08rem;
  display: grid;
  gap: 0.38rem;
}

.install-recommend-actions {
  margin-top: 0.95rem;
}

.install-recommend-aside {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  padding: 0.88rem;
  background: rgba(3, 13, 30, 0.26);
}

.install-recommend-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 249, 255, 0.78);
}

.install-recommend-points {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.56rem;
}

.install-recommend-points article {
  display: grid;
  gap: 0.2rem;
}

.install-recommend-points strong {
  font-size: 0.9rem;
}

.install-recommend-points span {
  font-size: 0.79rem;
}

@media (min-width: 900px) {
  .install-recommend-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
  }
}

.mobile-cta-ribbon {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 4.62rem;
  z-index: 94;
  border-radius: 1rem;
  background: linear-gradient(125deg, #0d1f4a, #12356d);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.38rem;
  box-shadow: 0 18px 36px rgba(8, 18, 42, 0.36);
}

.mobile-cta-ribbon a {
  text-decoration: none;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  border-radius: 0.74rem;
  padding: 0.6rem 0.4rem;
}

.mobile-cta-ribbon a:first-child {
  background: linear-gradient(130deg, #ff6a3d, #ff8f38);
}

.mobile-cta-ribbon a:last-child {
  background: linear-gradient(130deg, #10ab61, #1cc67f);
}

.bottom-nav {
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 34px rgba(8, 17, 40, 0.44);
}

.reveal {
  transition: opacity 420ms ease, transform 420ms ease;
}

@media (min-width: 700px) {
  .standards-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-cta-ribbon {
    left: auto;
    right: 1rem;
    width: 340px;
  }
}

@media (min-width: 1040px) {
  .section {
    padding: 3.2rem 0;
  }

  .hero-content,
  .hero-card {
    padding: 1.6rem;
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(820px, calc(100vw - 2rem));
  }

  .mobile-cta-ribbon {
    right: calc(50% - 370px);
    width: 320px;
  }
}

@media (max-width: 380px) {
  .mobile-cta-ribbon {
    grid-template-columns: 1fr;
  }
}

.finance-calc {
  margin: 1rem 0 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.finance-calc label {
  display: grid;
  gap: 0.36rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
}

.finance-calc input {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.62rem 0.74rem;
}

.finance-result {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 0.95rem;
}

.finance-result p,
.finance-result span {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.finance-result strong {
  font-size: clamp(1.5rem, 4.6vw, 2.3rem);
  color: #fff;
}

.delivery-ticker {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 255, 0.9));
}

.delivery-ticker p {
  margin: 0;
  color: #274173;
  animation: tickerFade 420ms ease;
}

.compare-btn.active {
  border-color: rgba(46, 84, 255, 0.58);
  box-shadow: 0 0 0 2px rgba(46, 84, 255, 0.15) inset;
}

.compare-tray {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 9rem;
  z-index: 92;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(138deg, rgba(7, 20, 56, 0.95), rgba(18, 44, 102, 0.95));
  box-shadow: 0 22px 46px rgba(8, 15, 36, 0.42);
  padding: 0.78rem;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.compare-tray.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.compare-head-actions {
  display: inline-flex;
  gap: 0.38rem;
}

.compare-head-actions .btn {
  padding: 0.42rem 0.62rem;
  font-size: 0.72rem;
}

.compare-head h3 {
  margin: 0;
  font-size: 0.96rem;
}

.compare-meta {
  margin: 0.3rem 0 0.6rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.84);
}

.compare-list {
  display: grid;
  gap: 0.44rem;
}

.compare-pill {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.12);
}

.compare-pill strong {
  font-size: 0.83rem;
}

.compare-pill span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.84);
}

.compare-remove {
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.compare-table {
  display: grid;
  gap: 0.34rem;
  margin-top: 0.65rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 6.2rem repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
  align-items: center;
}

.compare-row strong,
.compare-row span {
  font-size: 0.74rem;
  border-radius: 0.58rem;
  background: rgba(255, 255, 255, 0.11);
  padding: 0.36rem 0.42rem;
}

.compare-row strong {
  background: rgba(255, 211, 63, 0.2);
}

.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
}

.compare-modal.open {
  display: block;
}

.compare-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 26, 0.7);
  backdrop-filter: blur(4px);
}

.compare-modal-shell {
  position: relative;
  width: min(1080px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  margin: 0.75rem auto;
  overflow: auto;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #091734, #14356b);
  color: #fff;
  box-shadow: 0 26px 54px rgba(3, 8, 22, 0.54);
  padding: 1rem;
}

.compare-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.compare-modal-head h3 {
  margin: 0;
}

.compare-modal-sub {
  margin: 0.48rem 0 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.compare-modal-body {
  display: grid;
  gap: 0.62rem;
}

.compare-rich-row {
  display: grid;
  grid-template-columns: 8.5rem repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.compare-rich-row strong,
.compare-rich-row span {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  padding: 0.52rem 0.56rem;
  font-size: 0.8rem;
}

.compare-rich-row strong {
  background: rgba(255, 211, 63, 0.2);
}

@keyframes tickerFade {
  from {
    opacity: 0.3;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  .finance-calc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-tray {
    left: auto;
    right: 1rem;
    width: min(560px, calc(100vw - 2rem));
    bottom: 8.8rem;
  }
}

@media (min-width: 1040px) {
  .compare-tray {
    right: calc(50% - 370px);
    width: min(680px, calc(100vw - 2rem));
  }
}

@media (max-width: 700px) {
  .compare-rich-row {
    grid-template-columns: 1fr;
  }
}

.topbar-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(238, 243, 255, 0.88);
}

.topbar-nav a {
  color: #26426f;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.58rem 0.78rem;
  border-radius: 999px;
}

.topbar-nav a[aria-current="page"],
.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: #fff;
  background: linear-gradient(130deg, var(--brand-a), var(--brand-d));
}

.dealer-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  align-items: stretch;
}

.dealer-hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 1.4rem;
}

.dealer-hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 166, 161, 0.24), rgba(3, 166, 161, 0));
  pointer-events: none;
}

.hero-search-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  box-shadow: var(--shadow-lg);
  padding: 1.15rem;
  display: grid;
  gap: 0.95rem;
}

.hero-search-head {
  display: grid;
  gap: 0.3rem;
}

.hero-search-head h2 {
  font-size: 1.4rem;
}

.hero-search-form {
  display: grid;
  gap: 0.85rem;
}

.hero-search-grid,
.dealer-filter-grid.two-up {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-search-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-search-stats span {
  display: grid;
  gap: 0.18rem;
  border-radius: 0.95rem;
  background: rgba(237, 243, 255, 0.9);
  padding: 0.72rem 0.8rem;
  color: #3c4c6d;
  font-size: 0.8rem;
}

.hero-search-stats strong {
  color: #0b224d;
  font-size: 1rem;
  font-family: "Sora", sans-serif;
}

.inventory-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inventory-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex-shrink: 0;
}

.dealer-listing-card {
  border-radius: 1.35rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 48px rgba(10, 24, 52, 0.12);
}

.dealer-listing-media {
  position: relative;
  display: block;
}

.dealer-listing-image,
.dealer-listing-media img {
  width: 100%;
  min-height: 220px;
  height: 220px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  background: transparent;
}

.dealer-listing-badge,
.dealer-listing-gallery-count,
.dealer-listing-media-meta {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
}

.dealer-listing-badge {
  left: 1.35rem;
  right: auto;
  top: 1.3rem;
  background: rgba(8, 21, 47, 0.82);
  color: #fff;
}

.dealer-listing-gallery-count {
  left: auto;
  right: 1.35rem;
  top: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #16315f;
  font-size: 0.74rem;
  font-weight: 700;
}

.dealer-listing-media-meta {
  bottom: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dealer-listing-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 19, 44, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.dealer-listing-content,
.dealer-listing-body {
  padding: 0.2rem 0.95rem 1rem;
  display: grid;
  gap: 0.62rem;
}

.dealer-listing-overline,
.dealer-listing-kicker {
  color: var(--brand-b);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dealer-listing-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.dealer-listing-title-row h3,
.dealer-listing-title-row h3 a {
  color: #091b41;
  text-decoration: none;
  font-size: 1.08rem;
}

.dealer-listing-price {
  color: #0a356f;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  white-space: nowrap;
}

.dealer-listing-meta {
  color: #54637f;
  font-size: 0.88rem;
}

.dealer-listing-specs {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dealer-listing-specs span,
.dealer-listing-spec {
  display: grid;
  gap: 0.16rem;
  padding: 0.6rem 0.68rem;
  border-radius: 0.95rem;
  background: #f1f5fd;
  color: #576887;
  font-size: 0.8rem;
}

.dealer-listing-spec strong {
  color: #0a224c;
  font-size: 0.87rem;
}

.dealer-listing-copy {
  color: #5a6882;
  line-height: 1.6;
  font-size: 0.9rem;
}

.dealer-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dealer-listing-actions .btn {
  flex: 1 1 150px;
}

.dealer-listing-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.dealer-preview-btn {
  flex: 0 0 auto !important;
  min-width: 6.2rem;
  height: 2.1rem;
  padding: 0.34rem 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.dealer-empty-state {
  padding: 1.3rem;
  text-align: center;
}

.dealer-empty-state h3 {
  margin-bottom: 0.45rem;
}

.search-page {
  padding-bottom: 1.4rem;
}

.search-main {
  display: grid;
  gap: 0;
}

.search-hero-section {
  display: grid;
  gap: 0.9rem;
  padding-bottom: 1.2rem;
}

.search-hero-copy {
  max-width: 62rem;
}

.search-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-hero-pills span {
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(255, 255, 255, 0.82);
  color: #24406e;
  font-size: 0.8rem;
  font-weight: 700;
}

.dealer-search-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  align-items: start;
}

.dealer-filter-panel,
.dealer-results-panel {
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.94));
  box-shadow: var(--shadow-sm);
}

.dealer-filter-panel {
  position: sticky;
  top: 5.9rem;
  padding: 1rem;
}

.dealer-filter-head,
.dealer-results-toolbar,
.dealer-results-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.dealer-filter-head {
  margin-bottom: 0.95rem;
}

.dealer-filter-form {
  display: grid;
  gap: 0.78rem;
}

.dealer-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 0.85rem;
  border-radius: 0.9rem;
  background: #f1f5fd;
}

.dealer-checkbox-row input {
  width: auto;
}

.dealer-results-panel {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.dealer-results-toolbar-side {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dealer-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: #eef3ff;
}

.dealer-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #34507a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.52rem 0.8rem;
  cursor: pointer;
}

.dealer-tab.active {
  color: #fff;
  background: linear-gradient(130deg, var(--brand-a), var(--brand-d));
}

.dealer-sort-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.dealer-sort-label span {
  font-weight: 700;
  color: #385173;
}

.dealer-sort-label select {
  min-width: 190px;
}

.dealer-results-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dealer-footer {
  width: min(1180px, 92%);
  margin: 1.3rem auto 0;
  padding: 0 0 1rem;
}

.dealer-footer-inner {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(150deg, rgba(9, 26, 58, 0.97), rgba(7, 52, 113, 0.96));
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
}

.dealer-footer-brand {
  margin-bottom: 0.8rem;
  color: #fff;
}

.dealer-footer .dealer-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.dealer-footer .dealer-footer-brand .brand-text {
  display: inline-block;
  white-space: nowrap;
}

.dealer-footer-copy {
  max-width: 34ch;
  line-height: 1.7;
}

.dealer-footer h3 {
  font-size: 0.96rem;
  margin-bottom: 0.7rem;
  color: #fff;
}

.dealer-footer a,
.dealer-footer p {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin: 0 0 0.45rem;
}

.dealer-footer a:hover,
.dealer-footer a:focus-visible {
  color: #fff;
}

@media (min-width: 900px) {
  .topbar-nav {
    display: inline-flex;
  }
}

@media (max-width: 1039px) {
  .dealer-hero,
  .dealer-search-shell,
  .dealer-footer-inner {
    grid-template-columns: 1fr;
  }

  .dealer-filter-panel {
    position: static;
  }

  .dealer-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .inventory-intro,
  .dealer-filter-head,
  .dealer-results-toolbar,
  .dealer-results-toolbar-side,
  .dealer-results-meta-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search-grid,
  .dealer-filter-grid.two-up,
  .hero-search-stats,
  .dealer-listing-specs {
    grid-template-columns: 1fr;
  }

  .dealer-listing-image,
  .dealer-listing-media img {
    min-height: 200px;
    height: 200px;
  }

  .dealer-listing-title-row {
    flex-direction: column;
  }

  .dealer-sort-label {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .dealer-sort-label select {
    min-width: 0;
  }
}

/* Vehica-like refinement pass (clean white surfaces + green accent + search-v2 list rhythm) */
.vehica-home {
  background: #f5f7fb;
  color: #1f2937;
}

.vehica-home .noise-layer,
.vehica-home .app-orb {
  display: none;
}

.vehica-home .topbar,
.vehica-search .topbar {
  top: 0;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #e7ebf2;
  background: rgba(255, 255, 255, 0.97);
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  box-shadow: 0 10px 28px rgba(21, 31, 53, 0.07);
  backdrop-filter: blur(8px);
}

.vehica-home .brand-mark,
.vehica-search .brand-mark {
  background: linear-gradient(140deg, #ff4605, #e63f04);
  box-shadow: 0 8px 20px rgba(255, 70, 5, 0.35);
}

.vehica-home .topbar-nav,
.vehica-search .topbar-nav {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.vehica-home .topbar-nav a,
.vehica-search .topbar-nav a {
  color: #4b5563;
  font-size: 0.84rem;
  padding: 0.65rem 0.8rem;
}

.vehica-home .topbar-nav a[aria-current="page"],
.vehica-home .topbar-nav a:hover,
.vehica-search .topbar-nav a[aria-current="page"],
.vehica-search .topbar-nav a:hover {
  color: #222732;
  background: #fff0eb;
}

.vehica-home .pill-solid,
.vehica-search .pill-solid,
.vehica-home .btn-primary,
.vehica-search .btn-primary {
  background: linear-gradient(135deg, #ff4605, #e63f04);
  box-shadow: 0 12px 22px rgba(255, 70, 5, 0.28);
}

.vehica-home .pill-soft,
.vehica-search .pill-soft,
.vehica-home .btn-outline,
.vehica-search .btn-outline {
  background: #ffffff;
  border: 1px solid #dde4ee;
  color: #374151;
}

.vehica-home .trust-bar,
.vehica-home .standards-strip {
  display: none;
}

.vehica-home .hero.section {
  width: 100%;
  max-width: none;
  margin-top: 2.2rem;
}

.vehica-home .dealer-hero {
  grid-template-columns: 1.05fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.vehica-home .dealer-hero-copy {
  padding: clamp(1.4rem, 2.2vw, 2.1rem);
  border: 1px solid #e4eaf2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
    linear-gradient(130deg, #f4f8ff, #f9fff8);
  box-shadow: 0 22px 45px rgba(21, 31, 53, 0.09);
}

.vehica-home .dealer-hero-copy::after {
  width: 320px;
  height: 320px;
  inset: auto -9% -20% auto;
  background: radial-gradient(circle, rgba(24, 176, 104, 0.16), rgba(24, 176, 104, 0));
}

.vehica-home .hero h1 {
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  color: #0f172a;
  background: none;
  line-height: 1.08;
}

.vehica-home .hero .lead {
  color: #4b5563;
  font-size: 1rem;
  max-width: 60ch;
}

.vehica-home .hero-proof span {
  background: #f2f7ff;
  color: #475569;
  border: 1px solid #dde6f2;
}

.vehica-home .hero-search-card {
  border: 1px solid #e4eaf2;
  background: #fff;
  box-shadow: 0 22px 45px rgba(21, 31, 53, 0.09);
  padding: clamp(1rem, 2vw, 1.25rem);
}

.vehica-home .hero-search-head h2 {
  color: #0f172a;
  font-size: 1.6rem;
}

.vehica-home .hero-search-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.vehica-home .hero-search-stats span {
  background: #f7fafc;
  border: 1px solid #e5ebf3;
}

.vehica-home .hero-search-stats strong {
  color: #111827;
}

.vehica-home .pulse-strip,
.vehica-home .app-kpis,
.vehica-home .quick-actions {
  width: 100%;
  max-width: none;
}

.vehica-home .pulse-strip article,
.vehica-home .kpi-card,
.vehica-home .quick-card {
  border: 1px solid #e5ebf3;
  background: #fff;
  box-shadow: 0 16px 30px rgba(21, 31, 53, 0.07);
}

.vehica-home #inventory.section,
.vehica-home #services.section,
.vehica-home #finance.section,
.vehica-home #reviews.section,
.vehica-home #faq.section,
.vehica-home #contact.section {
  width: 100%;
  max-width: none;
}

.vehica-home .inventory-controls,
.vehica-home .dealer-footer-inner {
  border: 1px solid #e4eaf2;
}

.vehica-home .dealer-footer-inner {
  background: linear-gradient(160deg, #121a2a, #273047);
}

.vehica-home .bottom-nav,
.vehica-search .bottom-nav {
  display: grid;
}

@media (min-width: 1040px) {
  .bottom-nav {
    display: none;
  }

  .vehica-home .bottom-nav,
  .vehica-search .bottom-nav {
    display: none;
  }
}

.vehica-search {
  background: #f4f6fb;
  color: #1f2937;
  padding-top: 0;
}

.vehica-search .noise-layer,
.vehica-search .app-orb {
  display: none;
}

.vehica-search .search-main {
  gap: 0.2rem;
}

.vehica-search .search-hero-section {
  width: min(1260px, 94%);
  padding-top: 1.4rem;
  padding-bottom: 0.8rem;
}

.vehica-search .search-hero-copy h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.65rem);
  color: #0f172a;
}

.vehica-search .search-hero-pills span {
  border: 1px solid #e1e8f2;
  background: #fff;
  color: #334155;
}

.vehica-search .dealer-search-shell {
  width: min(1260px, 94%);
  grid-template-columns: minmax(270px, 300px) minmax(0, 1fr);
  gap: 1.2rem;
}

.vehica-search .dealer-filter-panel,
.vehica-search .dealer-results-panel {
  border: 1px solid #e3e9f2;
  background: #fff;
  box-shadow: 0 16px 30px rgba(21, 31, 53, 0.07);
}

.vehica-search .dealer-filter-panel {
  top: 5.2rem;
}

.vehica-search .dealer-tabs {
  background: #f2f5fb;
}

.vehica-search .dealer-tab.active {
  background: linear-gradient(135deg, #ff4605, #e63f04);
}

.vehica-search .dealer-results-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.vehica-search .dealer-listing-card {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  border-radius: 1.05rem;
  border: 1px solid #e3e9f2;
  box-shadow: 0 14px 28px rgba(21, 31, 53, 0.07);
}

.vehica-search .dealer-listing-media {
  padding: 0.75rem;
}

.vehica-search .dealer-listing-media img {
  width: 100%;
  margin: 0;
  height: 100%;
  min-height: 210px;
  max-height: 220px;
}

.vehica-search .dealer-listing-badge {
  left: 1.35rem;
  top: 1.3rem;
}

.vehica-search .dealer-listing-gallery-count {
  right: 1.35rem;
  top: 1.3rem;
}

.vehica-search .dealer-listing-body {
  padding: 1rem 1rem 1rem 0.35rem;
}

.vehica-search .dealer-listing-title-row {
  align-items: center;
}

.vehica-search .dealer-listing-specs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.vehica-search .dealer-listing-specs span {
  text-align: center;
  border: 1px solid #e6edf6;
  background: #fafcff;
}

.vehica-search .dealer-listing-actions .btn {
  flex: 0 0 auto;
  min-width: 132px;
}

@media (max-width: 1100px) {
  .vehica-home .dealer-hero,
  .vehica-search .dealer-search-shell,
  .vehica-search .dealer-listing-card {
    grid-template-columns: 1fr;
  }

  .vehica-home .hero-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehica-search .dealer-listing-body {
    padding: 0.3rem 0.95rem 0.95rem;
  }

  .vehica-search .dealer-listing-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vehica-home .topbar,
  .vehica-search .topbar {
    padding-inline: 0.7rem;
  }

  .vehica-home .hero-search-grid,
  .vehica-search .dealer-listing-specs {
    grid-template-columns: 1fr;
  }
}

/* Precision pass: closer spacing/scale to vehica-style references */
.vehica-home {
  --vehica-content-width: min(1560px, 97%);
}

.vehica-home .section,
.vehica-home .hero.section,
.vehica-home .pulse-strip,
.vehica-home .app-kpis,
.vehica-home #inventory.section,
.vehica-home #services.section,
.vehica-home #finance.section,
.vehica-home #reviews.section,
.vehica-home #faq.section,
.vehica-home #contact.section,
.vehica-home .dealer-footer {
  width: var(--vehica-content-width);
}

.vehica-home .section {
  padding: 2.7rem 0;
}

.vehica-home .eyebrow,
.vehica-search .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #b13b10;
}

.vehica-home .section-head h2,
.vehica-search .dealer-results-toolbar h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  color: #111827;
}

.vehica-home .hero-cta .btn,
.vehica-search .dealer-listing-actions .btn {
  min-height: 44px;
  border-radius: 0.72rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.vehica-home .hero-search-grid input,
.vehica-home .hero-search-grid select,
.vehica-search .dealer-filter-form input,
.vehica-search .dealer-filter-form select,
.vehica-search .dealer-sort-label select {
  height: 46px;
  border-radius: 0.66rem;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #1f2937;
  font-size: 0.9rem;
}

.vehica-home .hero-search-grid input:focus,
.vehica-home .hero-search-grid select:focus,
.vehica-search .dealer-filter-form input:focus,
.vehica-search .dealer-filter-form select:focus,
.vehica-search .dealer-sort-label select:focus {
  outline: 3px solid rgba(24, 176, 104, 0.14);
  border-color: #18b068;
}

.vehica-home .hero-search-actions {
  margin-top: 0.15rem;
}

.vehica-home .hero-search-actions .btn {
  min-height: 48px;
  min-width: 150px;
}

.vehica-home .inventory-controls {
  grid-template-columns: 1.25fr 0.95fr;
  gap: 0.78rem;
}

.vehica-home .inventory-chip-row,
.vehica-home .inventory-result-meta {
  grid-column: 1 / -1;
}

.vehica-search .dealer-results-toolbar {
  gap: 0.8rem;
  border-bottom: 1px solid #e7edf5;
  padding-bottom: 0.82rem;
}

.vehica-search .dealer-results-meta-bar {
  border-bottom: 1px solid #eef2f8;
  padding-bottom: 0.72rem;
}

.vehica-search .dealer-listing-card {
  gap: 0;
}

.vehica-search .dealer-listing-body {
  gap: 0.58rem;
}

.vehica-search .dealer-listing-kicker {
  letter-spacing: 0.12em;
  font-size: 0.69rem;
  color: #17995a;
}

.vehica-search .dealer-listing-title-row h3,
.vehica-search .dealer-listing-title-row h3 a {
  font-size: 1.12rem;
  line-height: 1.28;
}

.vehica-search .dealer-listing-price {
  font-size: 1.18rem;
  color: #0f172a;
}

.vehica-search .dealer-listing-specs {
  gap: 0.4rem;
}

.vehica-search .dealer-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #e4ebf4;
  border-radius: 0.6rem;
  background: #f9fbff;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.45rem;
}

.vehica-search .dealer-spec-chip svg {
  width: 0.92rem;
  height: 0.92rem;
  stroke: #4b5563;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.vehica-search .dealer-listing-copy {
  margin-top: 0.08rem;
  color: #5b6578;
  font-size: 0.86rem;
}

.vehica-search .dealer-listing-actions {
  margin-top: 0.18rem;
}

.vehica-search .dealer-listing-badge,
.vehica-search .dealer-listing-gallery-count {
  font-size: 0.7rem;
}

@media (max-width: 980px) {
  .vehica-home .inventory-controls {
    grid-template-columns: 1fr;
  }

  .vehica-search .dealer-listing-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Third pass: closer header rhythm + tighter control geometry + denser search card ratios */
.vehica-home,
.vehica-search {
  --vehica-header-h: 76px;
  --vehica-radius-control: 0.58rem;
  --vehica-radius-card: 0.92rem;
  --vehica-shadow-soft: 0 14px 26px rgba(16, 24, 40, 0.065);
}

.vehica-home .topbar,
.vehica-search .topbar {
  min-height: var(--vehica-header-h);
  align-items: center;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.vehica-home .topbar-nav a,
.vehica-search .topbar-nav a {
  position: relative;
  border-radius: 0.52rem;
}

.vehica-home .topbar-nav a::after,
.vehica-search .topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.32rem;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.vehica-home .topbar-nav a[aria-current="page"]::after,
.vehica-home .topbar-nav a:hover::after,
.vehica-search .topbar-nav a[aria-current="page"]::after,
.vehica-search .topbar-nav a:hover::after {
  background: #17a45f;
}

.vehica-home .hero.section {
  margin-top: 2.45rem;
}

.vehica-home .dealer-hero-copy,
.vehica-home .hero-search-card,
.vehica-search .dealer-filter-panel,
.vehica-search .dealer-results-panel,
.vehica-search .dealer-listing-card {
  border-radius: var(--vehica-radius-card);
  box-shadow: var(--vehica-shadow-soft);
}

.vehica-home .hero-search-grid,
.vehica-search .dealer-filter-form,
.vehica-search .dealer-filter-grid.two-up {
  gap: 0.56rem;
}

.vehica-home .hero-search-grid input,
.vehica-home .hero-search-grid select,
.vehica-search .dealer-filter-form input,
.vehica-search .dealer-filter-form select,
.vehica-search .dealer-sort-label select {
  height: 44px;
  border-radius: var(--vehica-radius-control);
  font-size: 0.88rem;
  padding-inline: 0.72rem;
}

.vehica-home .hero-search-actions .btn,
.vehica-search .dealer-listing-actions .btn,
.vehica-search .dealer-filter-form .btn {
  min-height: 42px;
  border-radius: 0.58rem;
  font-size: 0.82rem;
}

.vehica-search .dealer-filter-panel {
  top: calc(var(--vehica-header-h) + 0.9rem);
}

.vehica-search .dealer-results-toolbar,
.vehica-search .dealer-results-meta-bar {
  padding-inline: 0.1rem;
}

.vehica-search .dealer-results-toolbar {
  padding-bottom: 0.66rem;
}

.vehica-search .dealer-tab {
  padding: 0.47rem 0.75rem;
  font-size: 0.76rem;
}

.vehica-search .dealer-results-grid {
  gap: 0.72rem;
}

.vehica-search .dealer-listing-card {
  grid-template-columns: minmax(286px, 320px) minmax(0, 1fr);
  border: 1px solid #e4ebf4;
}

.vehica-search .dealer-listing-media {
  padding: 0.62rem;
}

.vehica-search .dealer-listing-media img {
  min-height: 224px;
  max-height: 224px;
  border-radius: 0.72rem;
}

.vehica-search .dealer-listing-badge,
.vehica-search .dealer-listing-gallery-count {
  font-size: 0.66rem;
  padding: 0.25rem 0.52rem;
}

.vehica-search .dealer-listing-gallery-count {
  min-width: 4.7rem;
}

.vehica-search .dealer-listing-body {
  padding: 0.9rem 0.9rem 0.86rem 0.3rem;
  gap: 0.5rem;
}

.vehica-search .dealer-listing-title-row h3,
.vehica-search .dealer-listing-title-row h3 a {
  font-size: 1.04rem;
}

.vehica-search .dealer-listing-price {
  font-size: 1.06rem;
}

.vehica-search .dealer-listing-specs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.34rem;
}

.vehica-search .dealer-spec-chip {
  min-height: 34px;
  border-radius: 0.5rem;
  font-size: 0.68rem;
  padding: 0.26rem 0.36rem;
}

.vehica-search .dealer-spec-chip svg {
  width: 0.82rem;
  height: 0.82rem;
}

.vehica-search .dealer-listing-copy {
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .vehica-search .dealer-listing-card {
    grid-template-columns: 1fr;
  }

  .vehica-search .dealer-listing-media img {
    min-height: 208px;
    max-height: 208px;
  }

  .vehica-search .dealer-listing-body {
    padding: 0.25rem 0.8rem 0.85rem;
  }
}

/* Fourth pass: fine-tuned Vehica-like rhythm for header, filters, and listing cards */
.vehica-home,
.vehica-search {
  --vehica-header-h: 72px;
  --vehica-radius-control: 0.52rem;
  --vehica-radius-card: 0.86rem;
  --vehica-shadow-soft: 0 12px 24px rgba(17, 24, 39, 0.06);
}

.vehica-home .topbar,
.vehica-search .topbar {
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

.vehica-home .topbar-nav a,
.vehica-search .topbar-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  padding: 0.58rem 0.72rem;
}

.vehica-home .hero.section {
  margin-top: 2.25rem;
}

.vehica-search .search-hero-section {
  padding-top: 1.1rem;
  padding-bottom: 0.65rem;
}

.vehica-search .dealer-search-shell {
  gap: 1rem;
  grid-template-columns: minmax(262px, 292px) minmax(0, 1fr);
}

.vehica-search .dealer-filter-panel {
  top: calc(var(--vehica-header-h) + 0.75rem);
  padding: 0.9rem;
}

.vehica-search .dealer-filter-head {
  margin-bottom: 0.72rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid #e8eef6;
}

.vehica-search .dealer-filter-form {
  gap: 0.52rem;
}

.vehica-search .dealer-filter-form label {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: #52607a;
}

.vehica-search .dealer-filter-form input,
.vehica-search .dealer-filter-form select,
.vehica-search .dealer-sort-label select,
.vehica-home .hero-search-grid input,
.vehica-home .hero-search-grid select {
  height: 42px;
  font-size: 0.86rem;
  border-color: #dfe7f2;
  border-radius: var(--vehica-radius-control);
}

.vehica-search .dealer-results-panel {
  padding: 0.88rem;
}

.vehica-search .dealer-results-toolbar h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.vehica-search .dealer-tab {
  padding: 0.45rem 0.72rem;
  font-size: 0.74rem;
}

.vehica-search .dealer-results-grid {
  gap: 0.64rem;
}

.vehica-search .dealer-listing-card {
  grid-template-columns: minmax(300px, 336px) minmax(0, 1fr);
}

.vehica-search .dealer-listing-media {
  padding: 0.56rem;
}

.vehica-search .dealer-listing-media img {
  min-height: 232px;
  max-height: 232px;
  border-radius: 0.64rem;
}

.vehica-search .dealer-listing-body {
  padding: 0.85rem 0.84rem 0.8rem 0.18rem;
  gap: 0.44rem;
}

.vehica-search .dealer-listing-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
}

.vehica-search .dealer-listing-title-row h3,
.vehica-search .dealer-listing-title-row h3 a {
  font-size: 0.98rem;
  line-height: 1.26;
}

.vehica-search .dealer-listing-price {
  font-size: 1rem;
}

.vehica-search .dealer-listing-specs {
  gap: 0.3rem;
}

.vehica-search .dealer-spec-chip {
  min-height: 32px;
  border-radius: 0.46rem;
  font-size: 0.65rem;
  padding: 0.23rem 0.32rem;
}

.vehica-search .dealer-listing-copy {
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .vehica-search .dealer-search-shell,
  .vehica-search .dealer-listing-card {
    grid-template-columns: 1fr;
  }

  .vehica-search .dealer-listing-media img {
    min-height: 212px;
    max-height: 212px;
  }

  .vehica-search .dealer-listing-body {
    padding: 0.24rem 0.78rem 0.82rem;
  }
}

/* Fifth pass: stronger listing hierarchy and cleaner filter/tool rhythm */
.vehica-home,
.vehica-search {
  --vehica-header-h: 70px;
}

.vehica-home .topbar,
.vehica-search .topbar {
  border-bottom-color: #e4eaf3;
  box-shadow: 0 7px 16px rgba(17, 24, 39, 0.055);
}

.vehica-search .search-hero-copy h1 {
  max-width: 22ch;
  line-height: 1.08;
}

.vehica-search .search-hero-copy .lead {
  max-width: 64ch;
  font-size: 0.95rem;
  color: #5a6579;
}

.vehica-search .dealer-filter-panel,
.vehica-search .dealer-results-panel {
  border-color: #dfe6f1;
}

.vehica-search .dealer-results-toolbar,
.vehica-search .dealer-results-meta-bar {
  padding-inline: 0.2rem;
}

.vehica-search .dealer-results-meta-bar {
  padding-bottom: 0.62rem;
}

.vehica-search .inventory-result-meta {
  font-size: 0.82rem;
  color: #5b6579;
}

.vehica-search .dealer-listing-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.vehica-search .dealer-listing-card:hover {
  transform: translateY(-1px);
  border-color: #d6e0ee;
  box-shadow: 0 15px 28px rgba(17, 24, 39, 0.08);
}

.vehica-search .dealer-listing-title-row {
  align-items: flex-start;
}

.vehica-search .dealer-listing-price {
  font-size: 1.02rem;
  color: #0b152b;
  background: #eef9f2;
  border: 1px solid #d9efdf;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
}

.vehica-search .dealer-listing-meta {
  font-size: 0.8rem;
  color: #5f6b80;
}

.vehica-search .dealer-listing-actions {
  gap: 0.42rem;
}

.vehica-search .dealer-listing-actions .btn {
  min-width: 120px;
  min-height: 40px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.vehica-search .dealer-filter-form .btn {
  margin-top: 0.15rem;
}

@media (max-width: 767px) {
  .vehica-search .search-hero-copy h1 {
    max-width: none;
  }

  .vehica-search .dealer-listing-price {
    align-self: flex-start;
  }
}

/* Sixth pass: explicit header/footer color-code alignment + sticky behavior parity */
.vehica-home,
.vehica-search {
  --vehica-accent: #ff4605;
  --vehica-accent-strong: #e63f04;
  --vehica-header-border: #e7edf3;
  --vehica-footer-bg-start: #1b2634;
  --vehica-footer-bg-end: #222732;
  --vehica-footer-link: #c7cfdb;
  --vehica-footer-link-hover: #ffffff;
  /* brand token overrides for vehica pages */
  --brand-a: #ff4605;
  --brand-b: #0c6772;
  --brand-c: #d97706;
  --brand-d: #ff4605;
  --ink: #222732;
  --muted: #2f3b48;
  --line: #e7edf3;
}

.vehica-home .topbar,
.vehica-search .topbar {
  border-bottom: 1px solid var(--vehica-header-border);
  background: rgba(255, 255, 255, 0.98);
}

.vehica-home .topbar.is-condensed,
.vehica-search .topbar.is-condensed,
.vehica-home.is-scrolled .topbar,
.vehica-search.is-scrolled .topbar {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.vehica-home .topbar.is-condensed .brand-mark,
.vehica-search .topbar.is-condensed .brand-mark {
  width: 2.05rem;
  height: 2.05rem;
}

.vehica-home .topbar.is-condensed .topbar-nav a,
.vehica-search .topbar.is-condensed .topbar-nav a {
  padding-block: 0.52rem;
}

.vehica-home .topbar-nav a[aria-current="page"]::after,
.vehica-home .topbar-nav a:hover::after,
.vehica-search .topbar-nav a[aria-current="page"]::after,
.vehica-search .topbar-nav a:hover::after {
  background: var(--vehica-accent);
}

.vehica-home .pill-solid,
.vehica-search .pill-solid,
.vehica-home .btn-primary,
.vehica-search .btn-primary {
  background: linear-gradient(135deg, var(--vehica-accent), var(--vehica-accent-strong));
  box-shadow: 0 10px 20px rgba(25, 180, 107, 0.24);
}

.vehica-home .dealer-footer-inner,
.vehica-search .dealer-footer-inner {
  background: linear-gradient(160deg, var(--vehica-footer-bg-start), var(--vehica-footer-bg-end));
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.vehica-home .dealer-footer a,
.vehica-home .dealer-footer p,
.vehica-search .dealer-footer a,
.vehica-search .dealer-footer p {
  color: var(--vehica-footer-link);
}

.vehica-home .dealer-footer a:hover,
.vehica-home .dealer-footer a:focus-visible,
.vehica-search .dealer-footer a:hover,
.vehica-search .dealer-footer a:focus-visible {
  color: var(--vehica-footer-link-hover);
}

.vehica-home .dealer-footer h3,
.vehica-search .dealer-footer h3 {
  color: #ffffff;
}

/* Vehica8 parity pass: wider desktop canvas + 4-up search cards + stricter header/footer palette */
.vehica-home,
.vehica-search {
  --vehica-accent: #ff4605;
  --vehica-accent-strong: #e63f04;
  --vehica-header-border: #e7edf3;
  --vehica-nav: #2f3b48;
  --vehica-nav-active: #222732;
  --vehica-footer-bg-start: #1b2634;
  --vehica-footer-bg-end: #222732;
  --vehica-footer-link: #c7cfdb;
}

.vehica-home .topbar,
.vehica-search .topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--vehica-header-border);
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.05);
}

.vehica-home .topbar-nav a,
.vehica-search .topbar-nav a {
  color: var(--vehica-nav);
}

.vehica-home .topbar-nav a[aria-current="page"],
.vehica-home .topbar-nav a:hover,
.vehica-search .topbar-nav a[aria-current="page"],
.vehica-search .topbar-nav a:hover {
  color: var(--vehica-nav-active);
  background: #fff0eb;
}

.vehica-home .topbar.is-condensed,
.vehica-search .topbar.is-condensed,
.vehica-home.is-scrolled .topbar,
.vehica-search.is-scrolled .topbar {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
}

.vehica-home .dealer-footer-inner,
.vehica-search .dealer-footer-inner {
  background: linear-gradient(155deg, var(--vehica-footer-bg-start), var(--vehica-footer-bg-end));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vehica-home .dealer-footer a,
.vehica-home .dealer-footer p,
.vehica-search .dealer-footer a,
.vehica-search .dealer-footer p {
  color: var(--vehica-footer-link);
}

.vehica-search .search-hero-section,
.vehica-search .dealer-search-shell,
.vehica-search .dealer-footer {
  width: min(1560px, 97%);
}

.vehica-home .topbar,
.vehica-search .topbar {
  width: 100%;
  margin: 0;
}

@media (min-width: 1040px) {
  .vehica-home .dealer-footer,
  .vehica-search .dealer-footer {
    width: 100%;
    max-width: none;
    margin: 1.3rem 0 0;
    padding: 0;
    background: linear-gradient(160deg, #1b2634, #222732);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .vehica-home .dealer-footer-inner,
  .vehica-search .dealer-footer-inner {
    width: min(1560px, 97%);
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 1.35rem 0 1.15rem;
  }
}

.vehica-search .dealer-search-shell {
  grid-template-columns: minmax(246px, 272px) minmax(0, 1fr);
  gap: 1.1rem;
}

.vehica-search .dealer-results-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.82rem;
}

.vehica-search .dealer-listing-card {
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr;
  min-height: 100%;
}

.vehica-search .dealer-listing-media {
  padding: 0.5rem;
}

.vehica-search .dealer-listing-media img {
  width: 100%;
  min-height: 0;
  max-height: none;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.vehica-search .dealer-listing-body {
  padding: 0.7rem 0.72rem 0.76rem;
  gap: 0.42rem;
}

.vehica-search .dealer-listing-title-row {
  gap: 0.38rem;
  flex-direction: column;
}

.vehica-search .dealer-listing-price {
  align-self: flex-start;
}

.vehica-search .dealer-listing-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehica-search .dealer-listing-copy {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vehica-search .dealer-listing-actions .btn {
  min-width: 0;
  flex: 1 1 0;
}

@media (max-width: 1480px) {
  .vehica-search .dealer-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .vehica-search .dealer-search-shell {
    grid-template-columns: 1fr;
  }

  .vehica-search .dealer-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vehica-search .dealer-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Vehica9 exact-token pass: direct reference colors + global wide desktop content */
:root {
  --vehica-primary: #ff4605;
  --vehica-primary-light: #fff0eb;
  --vehica-ink: #222732;
  --vehica-muted: #2f3b48;
  --vehica-line: #e7edf3;
  --vehica-surface: #f2f5fb;
  --vehica-footer-a: #1b2634;
  --vehica-footer-b: #222732;
}

body {
  color: var(--vehica-ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--vehica-surface) 100%);
}

.topbar {
  border-color: var(--vehica-line);
  background: rgba(255, 255, 255, 0.97);
}

.topbar-nav a {
  color: var(--vehica-muted);
}

.topbar-nav a[aria-current="page"],
.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: var(--vehica-ink);
  background: var(--vehica-primary-light);
}

.pill-solid,
.btn-primary {
  background: linear-gradient(135deg, var(--vehica-primary), #e63f04);
  box-shadow: 0 10px 20px rgba(255, 70, 5, 0.24);
}

.pill-soft,
.btn-outline {
  border-color: var(--vehica-line);
  color: var(--vehica-muted);
  background: #ffffff;
}

.dealer-footer-inner {
  background: linear-gradient(160deg, var(--vehica-footer-a), var(--vehica-footer-b));
}

.dealer-footer a,
.dealer-footer p {
  color: #c7cfdb;
}

@media (min-width: 1400px) {
  .section,
  .hero.section,
  .pulse-strip,
  .app-kpis,
  .dealer-footer,
  .search-hero-section,
  .dealer-search-shell {
    width: min(1600px, 97%);
  }

  .topbar {
    width: min(1600px, 97%);
  }

  .vehica-search .dealer-search-shell {
    grid-template-columns: minmax(250px, 276px) minmax(0, 1fr);
  }

  .vehica-search .dealer-results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Auth page (login / register)
───────────────────────────────────────────────────────────────────────────── */
.auth-page {
  background: linear-gradient(160deg, #f8f9fb 0%, var(--vehica-surface, #f2f5fb) 100%);
  min-height: 100vh;
  padding-bottom: 0;
}

.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4rem);
  padding: 2rem 1rem 3rem;
}

.auth-card {
  display: grid;
  grid-template-columns: 1fr;
  width: min(900px, 100%);
  background: #fff;
  border-radius: 1.4rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.11);
  overflow: hidden;
}

@media (min-width: 768px) {
  .auth-card {
    grid-template-columns: 1fr 1fr;
  }
}

/* Left showcase */
.auth-showcase {
  background: linear-gradient(155deg, #1b2634, #222732);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767px) {
  .auth-showcase {
    display: none;
  }
}

.auth-showcase-brand {
  color: #fff;
  margin-bottom: 2.2rem;
}

.auth-showcase-brand .brand-mark {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
  border-radius: 0.45rem;
}

.auth-showcase-brand .brand-text {
  font-size: 0.95rem;
}

.auth-showcase-heading {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0.7rem;
}

.auth-showcase-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 1.8rem;
}

.auth-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.auth-feature-list svg {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  color: #ff4605;
}

/* Right forms panel */
.auth-forms {
  padding: 2.2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}

/* Tabs */
.auth-tabs {
  display: inline-flex;
  gap: 0;
  background: var(--vehica-surface, #f2f5fb);
  border-radius: 999px;
  padding: 0.22rem;
  margin-bottom: 1.4rem;
  width: fit-content;
}

.auth-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.48rem 1.1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vehica-muted, #2f3b48);
  cursor: pointer;
  transition: background 160ms, color 160ms;
}

.auth-tab.active {
  background: #fff;
  color: var(--vehica-ink, #222732);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

/* Alert */
.auth-alert {
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.auth-alert-error {
  background: #fff1ee;
  color: #c0320a;
  border: 1px solid #ffd5cc;
}

.auth-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Panel */
.auth-panel-head {
  margin-bottom: 1.2rem;
}

.auth-panel-title {
  font-family: "Sora", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--vehica-ink, #222732);
  margin: 0 0 0.2rem;
}

.auth-panel-sub {
  font-size: 0.84rem;
  color: var(--vehica-muted, #2f3b48);
  margin: 0;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vehica-ink, #222732);
}

.auth-label-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vehica-ink, #222732);
  margin-bottom: 0.45rem;
}

.auth-input {
  border: 1px solid var(--vehica-line, #e7edf3);
  border-radius: 0.55rem;
  padding: 0.62rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--vehica-ink, #222732);
  background: #fff;
  transition: border-color 150ms, box-shadow 150ms;
  width: 100%;
}

.auth-input:focus {
  outline: none;
  border-color: #ff4605;
  box-shadow: 0 0 0 3px rgba(255, 70, 5, 0.14);
}

.auth-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-row .auth-input {
  padding-right: 2.6rem;
}

.auth-eye {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: 0;
  padding: 0.2rem;
  cursor: pointer;
  color: var(--vehica-muted, #2f3b48);
  display: flex;
  align-items: center;
}

.auth-eye svg {
  width: 0.95rem;
  height: 0.95rem;
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--vehica-muted, #2f3b48);
  cursor: pointer;
}

.auth-privacy {
  line-height: 1.5;
}

.auth-link {
  background: none;
  border: 0;
  padding: 0;
  color: #b13b10;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Role tiles */
.auth-role-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.auth-role-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.auth-role-tile {
  cursor: pointer;
}

.auth-role-tile input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth-role-tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 0.8rem 0.5rem;
  border: 1.5px solid var(--vehica-line, #e7edf3);
  border-radius: 0.75rem;
  transition: border-color 160ms, background 160ms, box-shadow 160ms;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--vehica-muted, #2f3b48);
}

.auth-role-tile-inner svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--vehica-muted, #2f3b48);
  transition: color 160ms;
}

.auth-check input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: #ff4605;
}

.auth-role-tile-inner small {
  font-weight: 400;
  font-size: 0.74rem;
  color: #6b7280;
}

.auth-role-tile input:checked + .auth-role-tile-inner {
  border-color: #ff4605;
  background: #fff6f2;
  box-shadow: 0 0 0 3px rgba(255, 70, 5, 0.1);
  color: #b93400;
}

.auth-role-tile input:checked + .auth-role-tile-inner svg {
  color: #b93400;
}

/* Submit */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff4605, #e63f04);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.4rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 70, 5, 0.28);
  transition: opacity 160ms, transform 120ms;
  width: 100%;
  margin-top: 0.3rem;
}

.auth-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-switch {
  text-align: center;
  font-size: 0.82rem;
  color: var(--vehica-muted, #2f3b48);
  margin: 0.2rem 0 0;
}

.auth-staff-note {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
}

/* Finance section tone alignment (remove legacy blue) */
.vehica-home #finance.section {
  border-radius: 1.25rem;
  border: 1px solid #e7edf3;
  background:
    radial-gradient(15rem 10rem at 86% 16%, rgba(255, 70, 5, 0.1), transparent 65%),
    linear-gradient(160deg, #ffffff, #fff6f2);
  box-shadow: 0 16px 32px rgba(21, 31, 53, 0.07);
}

.vehica-home #finance.section h2 {
  color: #111827;
}

.vehica-home #finance.section > p:not(.eyebrow) {
  color: #4b5563;
}

.vehica-home #finance.section .finance-calc label {
  color: #334155;
}

.vehica-home #finance.section .finance-calc input {
  border: 1px solid #dfe7f1;
  background: #ffffff;
  color: #111827;
}

.vehica-home #finance.section .finance-calc input:focus {
  outline: none;
  border-color: #ff4605;
  box-shadow: 0 0 0 3px rgba(255, 70, 5, 0.12);
}

.vehica-home #finance.section .finance-result p,
.vehica-home #finance.section .finance-result span {
  color: #4b5563;
}

.vehica-home #finance.section .finance-result strong {
  color: #b13b10;
}

/* ===== App-wide Mobile-first Modernization Layer ===== */

:root {
  --tm-space-section: clamp(1.25rem, 2.6vw, 2.8rem);
  --tm-tap-target: 2.75rem;
  --tm-icon-sm: 0.95rem;
  --tm-icon-md: 1.05rem;
  --tm-icon-lg: 1.2rem;
  --tm-media-ratio: 16 / 10;
}

.section {
  padding: var(--tm-space-section) 0;
}

.btn,
.pill,
.inventory-chip,
.bottom-nav a,
.bottom-nav-more,
.gallery-nav,
.gallery-close,
.action-link,
.auth-submit {
  min-height: var(--tm-tap-target);
}

.bottom-nav a svg,
.bottom-nav-more svg,
.quick-icon svg,
.service-icon-wrap svg,
.review-stars svg {
  width: var(--tm-icon-md);
  height: var(--tm-icon-md);
}

.car-card,
.dealer-listing-card,
.service-grid article,
.faq-card,
.review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.car-media,
.dealer-listing-media,
.car-image,
.dealer-listing-image {
  aspect-ratio: var(--tm-media-ratio);
}

.car-image,
.dealer-listing-image,
.gallery-image,
.detail-image {
  background-size: cover;
  background-position: center;
  object-fit: cover;
}

.gallery-thumbs {
  scroll-snap-type: x mandatory;
}

.gallery-thumb {
  scroll-snap-align: start;
}

@media (max-width: 767px) {
  .topbar {
    width: min(1180px, 96%);
    padding: 0.5rem;
  }

  .section {
    width: min(1180px, 94%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ===== Final Polish Layer (Micro-interactions + Typography) ===== */

:root {
  --tm-ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tm-ease-emphasis: cubic-bezier(0.18, 0.89, 0.32, 1.15);
  --tm-hover-lift: -2px;
  --tm-hover-lift-subtle: -1px;
}

.pill,
.btn,
.card,
.car-card,
.dealer-listing-card,
.quick-card,
.kpi-card,
.service-grid article,
.faq-card,
.review-card,
.topbar-nav a,
.more-tray-item {
  transition-timing-function: var(--tm-ease-standard);
}

.pill:hover,
.btn:hover,
.quick-card:hover,
.kpi-card:hover,
.car-card:hover,
.service-grid article:hover,
.faq-card:hover,
.review-card:hover {
  transform: translateY(var(--tm-hover-lift));
}

.vehica-search .dealer-listing-card:hover {
  transform: translateY(var(--tm-hover-lift-subtle));
}

.reveal {
  transform: translateY(12px);
  transition: opacity 320ms var(--tm-ease-standard), transform 320ms var(--tm-ease-standard);
}

.hero h1,
.vehicle-copy h1,
.section-head h2,
.vehica-home .section-head h2,
.vehica-search .section-head h2 {
  letter-spacing: -0.024em;
}

.hero h1 {
  font-size: clamp(1.5rem, 5.6vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.15rem, 3.8vw, 2rem);
}

body,
.lead,
.car-copy,
.dealer-listing-copy,
.vehica-home p,
.vehica-search p,
.vehicle-copy .lead {
  line-height: 1.58;
}

@media (max-width: 767px) {
  body {
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: clamp(1.42rem, 7vw, 2.08rem);
  }

  .section-head h2 {
    font-size: clamp(1.08rem, 5.5vw, 1.45rem);
  }
}

@media (min-width: 1040px) {
  body {
    font-size: 1.01rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  }
}

/* ===== Image Audit + Mobile-First Safety Layer ===== */
img {
  max-width: 100%;
  height: auto;
}

.slider-image,
.car-image,
.dealer-listing-media {
  position: relative;
  overflow: hidden;
}

.slider-image {
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: linear-gradient(130deg, #eaf1ff, #dbe7ff);
}

.slider-image-media,
.dealer-listing-image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-image::after,
.car-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 18, 39, 0.06), rgba(9, 18, 39, 0.42));
}

.slider-image.is-fallback::after,
.car-image.is-fallback::after {
  display: none;
}

.car-image {
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: transparent;
}

.dealer-listing-image,
.dealer-listing-media img {
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 10;
}

.gallery-image,
.detail-image {
  object-fit: contain;
  background: #0f172a;
}

.gallery-thumb img,
#detailThumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 767px) {
  .slider-image,
  .car-image,
  .dealer-listing-image,
  .dealer-listing-media img {
    aspect-ratio: 4 / 3;
  }
}

/* ===== Marketplace Premium Visual Layer ===== */
.vehica-home,
.vehica-search,
.vehicle-page {
  --mk-bg-a: #fff5e8;
  --mk-bg-b: #eef7ff;
  --mk-bg-c: #e7fff7;
  --mk-ink: #08122b;
  --mk-muted: #41526f;
  --mk-line: rgba(13, 35, 74, 0.14);
  --mk-surface: rgba(255, 255, 255, 0.82);
  --mk-surface-strong: rgba(255, 255, 255, 0.94);
  --mk-shadow: 0 20px 50px rgba(9, 25, 52, 0.16);
  --mk-shadow-strong: 0 28px 70px rgba(9, 25, 52, 0.22);
  color: var(--mk-ink);
  background:
    radial-gradient(900px 520px at -10% -12%, rgba(255, 121, 66, 0.28), transparent 62%),
    radial-gradient(860px 520px at 108% -12%, rgba(13, 122, 255, 0.24), transparent 60%),
    radial-gradient(860px 560px at 48% 118%, rgba(3, 161, 132, 0.2), transparent 63%),
    linear-gradient(160deg, var(--mk-bg-a) 0%, var(--mk-bg-b) 48%, var(--mk-bg-c) 100%);
}

.vehica-home .topbar,
.vehica-search .topbar,
.vehicle-page .topbar {
  border-color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74));
  box-shadow: var(--mk-shadow);
}

.vehica-home .brand-mark,
.vehica-search .brand-mark,
.vehicle-page .brand-mark {
  background: linear-gradient(140deg, #ff5a22, #ff8a2f);
  box-shadow: 0 8px 18px rgba(255, 90, 34, 0.3);
}

.vehica-home .hero.section,
.vehica-search .search-hero-section,
.vehicle-page .vehicle-gallery-section,
.vehicle-page .vehicle-hero,
.vehicle-page .vehicle-specs.section {
  border: 1px solid var(--mk-line);
  border-radius: 1.45rem;
  background: linear-gradient(165deg, var(--mk-surface-strong), var(--mk-surface));
  box-shadow: var(--mk-shadow);
}

.vehica-home .hero.section,
.vehica-search .search-hero-section {
  position: relative;
  overflow: hidden;
}

.vehica-home .hero.section::before,
.vehica-search .search-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(460px 220px at 90% -20%, rgba(255, 166, 0, 0.2), transparent 60%),
    radial-gradient(420px 220px at 2% 112%, rgba(0, 184, 148, 0.17), transparent 60%);
}

.vehica-home .hero h1,
.vehica-search .search-hero-copy h1,
.vehicle-page .vehicle-copy h1 {
  color: #061027;
  letter-spacing: -0.03em;
}

.vehica-home .hero .lead,
.vehica-search .search-hero-copy .lead,
.vehicle-page .vehicle-copy .lead {
  color: var(--mk-muted);
}

.vehica-home .hero-proof span,
.vehica-search .search-hero-pills span {
  border: 1px solid rgba(11, 38, 86, 0.13);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.vehica-home .hero-search-card,
.vehica-search .dealer-filter-panel,
.vehica-search .dealer-results-panel,
.vehicle-page .vehicle-specs-sidebar,
.vehicle-page .vehicle-actions-footer {
  border: 1px solid var(--mk-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
  box-shadow: var(--mk-shadow);
}

.vehica-home .trust-bar,
.vehica-home .standards-strip,
.vehica-home .pulse-strip,
.vehica-home .app-kpis,
.vehica-home .quick-actions,
.vehica-home #inventory.section,
.vehica-home #services.section,
.vehica-home #finance.section,
.vehica-home #reviews.section,
.vehica-home #faq.section,
.vehica-home #contact.section,
.vehica-search .dealer-search-shell,
.vehica-search .dealer-listing-card,
.vehicle-page .detail-gallery,
.vehicle-page .accordion-item {
  border: 1px solid var(--mk-line);
  border-radius: 1.25rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  box-shadow: var(--mk-shadow);
}

.vehica-home .pulse-strip article,
.vehica-home .quick-card,
.vehica-home .kpi-card,
.vehica-home .service-grid article,
.vehica-home .faq-card,
.vehica-home .review-card,
.vehica-home .inventory-controls,
.vehica-home .inventory-intro,
.vehica-search .dealer-listing-card,
.vehicle-page .vehicle-spec-grid .spec-card,
.vehicle-page .accordion-item {
  transition: transform 230ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 230ms ease;
}

.vehica-home .pulse-strip article:hover,
.vehica-home .quick-card:hover,
.vehica-home .kpi-card:hover,
.vehica-home .service-grid article:hover,
.vehica-home .faq-card:hover,
.vehica-home .review-card:hover,
.vehica-home .inventory-controls:hover,
.vehica-home .inventory-intro:hover,
.vehica-search .dealer-listing-card:hover,
.vehicle-page .accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--mk-shadow-strong);
}

.vehica-home .btn-primary,
.vehica-search .btn-primary,
.vehicle-page .btn-primary {
  background: linear-gradient(135deg, #ff5c1f, #ff8f2d);
  border-color: rgba(181, 78, 16, 0.4);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 92, 31, 0.33);
}

.vehica-home .btn-outline,
.vehica-search .btn-outline,
.vehicle-page .btn-outline {
  border-color: rgba(12, 38, 78, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.vehica-home .btn-primary:hover,
.vehica-search .btn-primary:hover,
.vehicle-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(255, 92, 31, 0.37);
}

.vehica-home .floating-whatsapp,
.vehicle-page .vehicle-actions-footer .btn-primary {
  background: linear-gradient(130deg, #0ba46f, #13c987);
  box-shadow: 0 14px 30px rgba(10, 164, 111, 0.33);
}

.vehica-home .home-main > .section,
.vehica-search .search-main > .section,
.vehicle-page .vehicle-main > section,
.vehicle-page .vehicle-main > div > section {
  animation: marketplaceEntrance 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.vehica-home .home-main > .section:nth-of-type(2),
.vehica-search .search-main > .section:nth-of-type(2),
.vehicle-page .vehicle-main > div > section:nth-of-type(2) {
  animation-delay: 70ms;
}

.vehica-home .home-main > .section:nth-of-type(3),
.vehica-search .search-main > .section:nth-of-type(3),
.vehicle-page .vehicle-main > div > section:nth-of-type(3) {
  animation-delay: 130ms;
}

@keyframes marketplaceEntrance {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.996);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .vehica-home .hero.section,
  .vehica-search .search-hero-section,
  .vehicle-page .vehicle-gallery-section,
  .vehicle-page .vehicle-hero,
  .vehicle-page .vehicle-specs.section {
    border-radius: 1.15rem;
  }

  .vehica-home .pulse-strip article:hover,
  .vehica-home .quick-card:hover,
  .vehica-home .kpi-card:hover,
  .vehica-home .service-grid article:hover,
  .vehica-home .faq-card:hover,
  .vehica-home .review-card:hover,
  .vehica-search .dealer-listing-card:hover,
  .vehicle-page .accordion-item:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vehica-home .home-main > .section,
  .vehica-search .search-main > .section,
  .vehicle-page .vehicle-main > section,
  .vehicle-page .vehicle-main > div > section {
    animation: none;
  }
}

/* ===== Marketplace High-Contrast Conversion Layer ===== */
.vehica-search {
  --mk-contrast-ink: #06142f;
  --mk-contrast-muted: #2f4567;
  --mk-contrast-line: rgba(8, 27, 60, 0.18);
  --mk-contrast-surface: rgba(255, 255, 255, 0.96);
}

.vehica-search .dealer-listing-card {
  border: 1px solid var(--mk-contrast-line);
  background: linear-gradient(160deg, #ffffff, var(--mk-contrast-surface));
  box-shadow: 0 20px 42px rgba(8, 27, 60, 0.16);
}

.vehica-search .dealer-listing-title-row h3,
.vehica-search .dealer-listing-title-row h3 a {
  color: var(--mk-contrast-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.vehica-search .dealer-listing-price {
  color: #0a2f72;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.vehica-search .dealer-listing-specs span {
  border-color: rgba(8, 30, 68, 0.17);
  background: linear-gradient(170deg, #f7fbff, #edf4ff);
  color: var(--mk-contrast-muted);
  font-weight: 600;
}

.vehica-search .dealer-listing-badge {
  background: linear-gradient(130deg, #09367f, #0f4fae);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.vehica-search .dealer-listing-gallery-count {
  background: rgba(6, 22, 48, 0.88);
  color: #f5fbff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.vehicle-page {
  --mk-v-ink: #07162f;
  --mk-v-muted: #344f73;
  --mk-v-line: rgba(7, 24, 52, 0.2);
}

.vehicle-page .vehicle-copy h1,
.vehicle-page .quick-specs,
.vehicle-page .vehicle-specs .section-head h2 {
  color: var(--mk-v-ink);
}

.vehicle-page .vehicle-copy .lead,
.vehicle-page .vehicle-spec-card p,
.vehicle-page .spec-item span {
  color: var(--mk-v-muted);
}

.vehicle-page .vehicle-specs-sidebar,
.vehicle-page .vehicle-specs.section,
.vehicle-page .vehicle-spec-card,
.vehicle-page .accordion-item,
.vehicle-page .spec-item {
  border-color: var(--mk-v-line);
}

.vehicle-page .vehicle-spec-card,
.vehicle-page .spec-item {
  background: linear-gradient(165deg, #ffffff, #f4f9ff);
}

.vehicle-page .accordion-header {
  background: linear-gradient(165deg, #ffffff, #f7fbff);
  color: #0a2248;
  font-weight: 700;
}

.vehicle-page .accordion-header[aria-expanded="true"] {
  background: linear-gradient(165deg, #eaf4ff, #dcf1ff);
  color: #094a70;
}

.vehicle-page .vehicle-price {
  color: #ff4d18;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88);
}

.vehicle-page .vehicle-year {
  background: linear-gradient(145deg, #e6f0ff, #d8e9ff);
  color: #123f8e;
  border: 1px solid rgba(18, 63, 142, 0.2);
}

.vehicle-page .vehicle-badge {
  background: linear-gradient(145deg, #e0fff3, #ccf7e9);
  color: #0a7057;
  border: 1px solid rgba(10, 112, 87, 0.2);
}

@media (max-width: 767px) {
  .vehica-search .dealer-listing-title-row h3,
  .vehica-search .dealer-listing-title-row h3 a {
    font-size: 1.05rem;
  }

  .vehica-search .dealer-listing-price {
    font-size: 1.1rem;
  }

  .vehicle-page .accordion-body {
    grid-template-columns: 1fr;
  }
}

/* ===== Homepage Marketplace Audit Fix Layer ===== */
.vehica-home .marketplace-engine {
  border: 1px solid rgba(8, 30, 68, 0.15);
  border-radius: 1.35rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 255, 0.84));
  box-shadow: 0 22px 56px rgba(8, 30, 68, 0.16);
}

.vehica-home .marketplace-flow-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.vehica-home .marketplace-flow-card {
  border: 1px solid rgba(8, 34, 74, 0.16);
  border-radius: 1rem;
  padding: 0.95rem;
  background: linear-gradient(170deg, #ffffff, #f3f9ff);
  box-shadow: 0 14px 32px rgba(8, 30, 68, 0.12);
}

.vehica-home .marketplace-flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(130deg, #ff5a22, #ff8b2b);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.vehica-home .marketplace-flow-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
  color: #071b3f;
}

.vehica-home .marketplace-flow-card p {
  color: #3b5276;
  line-height: 1.55;
  font-size: 0.92rem;
}

.vehica-home .dealer-footer-copy {
  color: #3a5072;
}

.vehica-home .bottom-nav a {
  min-width: 0;
}

@media (max-width: 1024px) {
  .vehica-home .marketplace-flow-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .vehica-home .marketplace-engine {
    border-radius: 1.1rem;
    padding-top: 1.05rem;
    padding-bottom: 1.05rem;
  }

  .vehica-home .marketplace-flow-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.78rem;
  }

  .vehica-home .marketplace-flow-card {
    padding: 0.88rem;
  }

  .vehica-home .hero .lead,
  .vehica-home .inventory-intro p,
  .vehica-home .coverage-copy,
  .vehica-home .contact #businessProfile {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .vehica-home .hero-search-grid label,
  .vehica-home .inventory-controls label,
  .vehica-home .contact-form label {
    font-size: 0.87rem;
  }
}

/* ===== Final Hero Conversion Layer ===== */
.vehica-home .hero.section {
  gap: clamp(0.9rem, 2vw, 1.35rem);
}

.vehica-home .hero-content.dealer-hero-copy {
  gap: 0.65rem;
}

.vehica-home .hero h1 {
  max-width: 16ch;
}

.vehica-home .hero .lead {
  max-width: 52ch;
}

.vehica-home .hero-search-form {
  gap: 0.65rem;
}

.vehica-home .hero-search-core {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.vehica-home .hero-search-advanced {
  border: 1px solid rgba(9, 33, 71, 0.14);
  border-radius: 0.82rem;
  background: linear-gradient(165deg, #f7fbff, #eff6ff);
  padding: 0.55rem 0.7rem;
}

.vehica-home .hero-search-advanced summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #13408b;
  list-style: none;
}

.vehica-home .hero-search-advanced summary::-webkit-details-marker {
  display: none;
}

.vehica-home .hero-search-advanced[open] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.vehica-home .hero-search-advanced-grid {
  margin-top: 0.62rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.vehica-home .hero-search-actions {
  margin-top: 0.05rem;
}

.vehica-home .hero-search-actions .btn {
  min-height: 50px;
}

.vehica-home .hero-search-stats {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.vehica-home .hero-search-stats span {
  padding: 0.62rem 0.7rem;
}

@media (max-width: 1024px) {
  .vehica-home .hero-search-core,
  .vehica-home .hero-search-advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vehica-home .hero.section {
    padding-top: 1.2rem;
    padding-bottom: 1.1rem;
  }

  .vehica-home .hero-content.dealer-hero-copy {
    gap: 0.55rem;
  }

  .vehica-home .hero h1 {
    max-width: 18ch;
    font-size: clamp(1.48rem, 6.6vw, 2.05rem);
  }

  .vehica-home .hero-search-card {
    padding: 0.82rem;
    border-radius: 0.98rem;
  }

  .vehica-home .hero-search-head h2 {
    font-size: 1.12rem;
    line-height: 1.24;
  }

  .vehica-home .hero-search-core,
  .vehica-home .hero-search-advanced-grid {
    grid-template-columns: 1fr;
  }

  .vehica-home .hero-search-advanced {
    padding: 0.52rem 0.6rem;
  }

  .vehica-home .hero-search-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .vehica-home .hero-search-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .vehica-home .hero-proof {
    gap: 0.38rem;
  }

  .vehica-home .hero-proof span {
    font-size: 0.74rem;
  }
}

/* ===== Marketplace Quick Redesign Layer (Facebook-like Flow) ===== */
.vehica-home .trust-bar,
.vehica-home .standards-strip,
.vehica-home .pulse-strip,
.vehica-home .app-kpis,
.vehica-home .quick-actions,
.vehica-home #featuredSlider,
.vehica-home #marketplace-engine {
  display: none;
}

.vehica-home #reviews,
.vehica-home #faq,
.vehica-home #kenya-coverage {
  display: none;
}

.vehica-home #home.hero.section {
  padding: 0.7rem 0 0.35rem;
  border: none;
  background: transparent;
  box-shadow: none;
}

.vehica-home #home .hero-search-card {
  max-width: 100%;
  border-radius: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(10, 30, 64, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(11, 25, 52, 0.12);
}

.vehica-home #home .hero-search-head {
  margin-bottom: 0.4rem;
}

.vehica-home #home .hero-search-head h2 {
  font-size: 1rem;
}

.vehica-home #inventory.section {
  margin-top: 0.15rem;
}

.vehica-home .inventory-intro {
  border: 1px solid rgba(10, 30, 64, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.marketplace-layout {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.marketplace-sidebar {
  position: sticky;
  top: 6.1rem;
  align-self: start;
  border: 1px solid rgba(12, 38, 78, 0.13);
  border-radius: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 28px rgba(9, 24, 52, 0.12);
}

.marketplace-sidebar-head {
  margin-bottom: 0.55rem;
}

.marketplace-sidebar-head .eyebrow {
  margin-bottom: 0.25rem;
}

.marketplace-sidebar-head h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.marketplace-feed-panel {
  min-width: 0;
}

.marketplace-feed-panel .car-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.vehica-home .dealer-listing-card {
  border: 1px solid rgba(8, 31, 67, 0.12);
  border-radius: 0.95rem;
  background: #fff;
  box-shadow: 0 12px 24px rgba(9, 28, 58, 0.08);
}

.vehica-home .dealer-listing-media {
  border-radius: 0.9rem 0.9rem 0 0;
}

.vehica-home .dealer-listing-content {
  gap: 0.5rem;
  padding: 0.74rem;
}

.vehica-home .dealer-listing-copy {
  font-size: 0.84rem;
  color: #4a5f82;
}

.vehica-home .dealer-listing-actions .btn {
  min-height: 2.3rem;
  padding: 0.45rem 0.62rem;
  font-size: 0.79rem;
}

.vehica-home .dealer-save-chip {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(7, 21, 44, 0.78);
  color: #f6fbff;
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.vehica-home .dealer-save-chip.active {
  background: rgba(255, 76, 76, 0.9);
  color: #fff;
}

.vehica-home .dealer-save-chip span[aria-hidden="true"] {
  line-height: 1;
  font-size: 0.82rem;
}

@media (max-width: 1220px) {
  .marketplace-feed-panel .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
  }

  .marketplace-sidebar {
    position: static;
  }

  .marketplace-feed-panel .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vehica-home #home.hero.section {
    padding-top: 0.58rem;
  }

  .vehica-home #home .hero-search-card {
    padding: 0.65rem;
  }

  .marketplace-feed-panel .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
  }
}

/* ===== Sidebar Alignment Refinement ===== */
.marketplace-sidebar {
  display: grid;
  gap: 0.72rem;
}

.marketplace-sidebar-head {
  margin-bottom: 0.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(12, 38, 78, 0.1);
}

.marketplace-sidebar-head h3 {
  margin: 0;
  font-size: 1rem;
}

.marketplace-sidebar label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.79rem;
  font-weight: 700;
  color: #1f365e;
}

.marketplace-sidebar input,
.marketplace-sidebar select {
  width: 100%;
  min-height: 2.62rem;
  border-radius: 0.72rem;
  border: 1px solid #d3dff6;
  background: #fff;
  padding: 0.52rem 0.68rem;
  font-size: 0.9rem;
  color: #0f274d;
}

.marketplace-sidebar input:focus,
.marketplace-sidebar select:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.marketplace-sidebar .inventory-chip-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.36rem;
}

.marketplace-sidebar .inventory-chip {
  width: 100%;
  min-height: 2.25rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0.4rem 0.72rem;
}

.marketplace-sidebar .inventory-result-meta {
  margin-top: 0.1rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(12, 38, 78, 0.08);
  font-size: 0.77rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .marketplace-sidebar {
    gap: 0.62rem;
  }

  .marketplace-sidebar .inventory-chip-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketplace-sidebar .inventory-chip:last-child {
    grid-column: auto;
  }
}

@media (max-width: 500px) {
  .marketplace-sidebar .inventory-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-sidebar .inventory-chip:last-child {
    grid-column: span 2;
  }
}

/* ===== Footer Redesign Layer ===== */
.contact-quick-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-quick-actions .btn {
  min-width: 9rem;
}

.dealer-footer {
  margin-top: 1.6rem;
}

.dealer-footer-inner {
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  padding: 1.2rem 1.2rem 1rem;
}

.footer-brand-column {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.footer-links-column,
.footer-contact-column {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer-contact-column p {
  margin: 0;
  line-height: 1.5;
}

.footer-hours-title {
  margin-top: 0.5rem;
}

.footer-hours-list {
  margin-top: 0;
  gap: 0.14rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-social-links {
  margin-top: 0.1rem;
}

.dealer-footer .footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  width: auto;
  margin: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dealer-footer .footer-social-links a svg {
  width: 0.92rem;
  height: 0.92rem;
  flex-shrink: 0;
}

.footer-social-label {
  line-height: 1;
}

.footer-hours-disclosure {
  margin-top: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  padding: 0.46rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
}

.footer-hours-disclosure summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.79rem;
}

.footer-hours-disclosure summary::-webkit-details-marker {
  display: none;
}

.footer-hours-disclosure summary strong {
  color: #fff;
  font-size: 0.82rem;
}

.footer-hours-disclosure .footer-hours-list {
  margin-top: 0.46rem;
  padding-top: 0.46rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-trust-strip {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.footer-trust-strip span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  font-size: 0.73rem;
  font-weight: 700;
}

.dealer-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 0.72rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dealer-footer .footer-legal-links a {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
}

.dealer-footer .footer-social-links a:hover,
.dealer-footer .footer-social-links a:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 1039px) {
  .dealer-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .contact-quick-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .dealer-footer-inner {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .footer-hours-list {
    font-size: 0.78rem;
  }

  .dealer-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Wall-to-Wall Marketplace Layout Layer ===== */

.marketplace-feed-toolbar {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0.52rem;
  margin-bottom: 0.58rem;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(11, 36, 73, 0.1);
  border-radius: 0.95rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 255, 0.88));
  box-shadow: 0 10px 24px rgba(10, 30, 64, 0.1);
}

.marketplace-feed-toolbar-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: space-between;
}

.marketplace-filters-toggle {
  display: none;
  min-height: 2.22rem;
  padding: 0.42rem 0.72rem;
  font-size: 0.79rem;
}

.marketplace-inline-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  font-size: 0.77rem;
  font-weight: 700;
  color: #26436d;
}

.marketplace-inline-sort select {
  min-height: 2.22rem;
  border-radius: 0.65rem;
  border: 1px solid #d3dff6;
  background: #fff;
  padding: 0.38rem 0.56rem;
  font-size: 0.82rem;
  color: #10305d;
}

.marketplace-inline-sort select:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
}

.inventory-feed-chips {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.34rem;
}

@media (min-width: 1100px) {
  .vehica-home .home-main {
    width: 100%;
    max-width: none;
  }

  .vehica-home .home-main > .section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }

  .vehica-home #inventory.section,
  .vehica-home #services.section,
  .vehica-home #finance.section,
  .vehica-home #reviews.section,
  .vehica-home #faq.section {
    border-left-width: 0;
    border-right-width: 0;
  }

  .vehica-home #inventory.section {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .vehica-home #services.section,
  .vehica-home #finance.section,
  .vehica-home #reviews.section,
  .vehica-home #faq.section {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .marketplace-feed-toolbar {
    position: sticky;
    top: 5.7rem;
  }
}

@media (min-width: 1400px) {
  .marketplace-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    transition: grid-template-columns 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .marketplace-sidebar {
    transition:
      max-width 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
      width 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
      padding 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 160ms ease;
  }

  .marketplace-feed-panel .car-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.68rem;
  }

  .vehica-home .dealer-listing-content {
    padding: 0.66rem;
    gap: 0.45rem;
  }

  .vehica-home .dealer-listing-title-row h3,
  .vehica-home .dealer-listing-title-row h3 a {
    font-size: 0.96rem;
  }

  .vehica-home .dealer-listing-price {
    font-size: 0.92rem;
  }

  .vehica-home .dealer-listing-specs {
    gap: 0.36rem;
  }

  .vehica-home .dealer-listing-spec {
    padding: 0.44rem 0.5rem;
  }

  .vehica-home .dealer-listing-spec strong {
    font-size: 0.8rem;
  }

  .vehica-home .dealer-listing-copy {
    font-size: 0.82rem;
    line-height: 1.46;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .vehica-home .dealer-listing-actions {
    gap: 0.44rem;
  }

  .vehica-home .dealer-listing-actions .btn {
    flex: 1 1 100%;
    min-height: 2.1rem;
    padding: 0.42rem 0.5rem;
    font-size: 0.76rem;
  }

  .marketplace-layout.filters-collapsed {
    grid-template-columns: 1fr;
  }

  .marketplace-layout.filters-collapsed .marketplace-sidebar {
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 0;
    border: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .marketplace-feed-panel .car-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .marketplace-feed-panel .car-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketplace-feed-toolbar {
    position: sticky;
    top: 5.6rem;
  }
}

@media (max-width: 1039px) {
  .marketplace-filters-toggle {
    display: inline-flex;
  }

  .marketplace-layout.filters-collapsed {
    grid-template-columns: 1fr;
  }

  .marketplace-layout.filters-collapsed .marketplace-sidebar {
    display: none;
  }
}

@media (max-width: 1099px) {
  .vehica-home .home-main > .section {
    width: min(1220px, 94%);
    margin-left: auto;
    margin-right: auto;
    border-radius: 1.15rem;
  }
}

@media (max-width: 899px) {
  .inventory-feed-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketplace-inline-sort {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 540px) {
  .marketplace-feed-toolbar {
    padding: 0.54rem;
  }

  .marketplace-feed-toolbar-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
  }

  .inventory-feed-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Full-Width Desktop Enforcement ===== */

@media (min-width: 1040px) {
  /*
    Layout guardrail:
    Keep primary application surfaces full-bleed on desktop.
    Any future fixed-width caps should not override this policy.
  */
  :root {
    --tm-fullbleed-offset: calc(50% - 50vw);
  }

  .vehica-home .home-main > .section,
  .vehica-search .search-main > .section,
  .vehicle-page .vehicle-main.section,
  .vehicle-page .vehicle-main > .section,
  .vehicle-page .vehicle-main > div > section,
  .vehica-home .dealer-footer,
  .vehica-search .dealer-footer,
  .vehicle-page .dealer-footer,
  .vehica-home #inventory.section,
  .vehica-home #services.section,
  .vehica-home #finance.section,
  .vehica-home #reviews.section,
  .vehica-home #faq.section,
  .vehica-home #home.hero.section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: var(--tm-fullbleed-offset) !important;
    margin-right: var(--tm-fullbleed-offset) !important;
  }

  .vehicle-page .topbar {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: var(--tm-fullbleed-offset) !important;
    margin-right: var(--tm-fullbleed-offset) !important;
  }
}

/* ===== Compact Inventory Card Layer ===== */

.vehica-home .dealer-listing-image,
.vehica-home .dealer-listing-media img {
  width: 100%;
  margin: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.vehica-home .dealer-listing-content {
  padding: 0.14rem 0.62rem 0.62rem;
  gap: 0.34rem;
}

.vehica-home .dealer-listing-overline,
.vehica-home .dealer-listing-copy,
.vehica-home .dealer-listing-specs {
  display: none !important;
}

.vehica-home .dealer-listing-title-row {
  gap: 0.45rem;
  align-items: baseline;
}

.vehica-home .dealer-listing-title-row h3,
.vehica-home .dealer-listing-title-row h3 a {
  font-size: 0.92rem;
  line-height: 1.18;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vehica-home .dealer-listing-price {
  font-size: 0.9rem;
}

.vehica-home .dealer-listing-meta {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #425878;
}

.vehica-home .dealer-listing-actions {
  gap: 0.34rem;
}

.vehica-home .dealer-listing-actions .btn {
  min-height: 1.95rem;
  padding: 0.3rem 0.44rem;
  font-size: 0.7rem;
  flex: 1 1 0;
}

.vehica-home .dealer-listing-top-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.vehica-home .dealer-listing-status-pill,
.vehica-home .dealer-listing-top-meta .dealer-listing-pill {
  padding: 0.26rem 0.5rem;
  font-size: 0.66rem;
}

.vehica-home .dealer-listing-top-meta .dealer-listing-pill:last-child {
  margin-left: auto;
}

.vehica-home .dealer-save-chip-inline {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  padding: 0.26rem 0.45rem;
  font-size: 0.66rem;
  border-radius: 999px;
  background: rgba(7, 21, 44, 0.92);
  border: 0;
}

.vehica-home .dealer-save-chip-inline span[aria-hidden="true"] {
  font-size: 0.72rem;
}

.vehica-home .compare-tray {
  display: none !important;
}

@media (max-width: 767px) {
  .vehica-home .dealer-listing-actions .btn {
    font-size: 0.66rem;
  }

  .vehica-home .dealer-listing-actions .compare-btn {
    display: none;
  }
}

/* ===== Photo Frame Removal Layer ===== */
.car-image,
.dealer-listing-image,
.dealer-listing-media,
.dealer-listing-media img {
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.detail-stage,
.gallery-stage,
.detail-gallery,
.vehicle-page .detail-gallery {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.gallery-image,
.detail-image {
  background: transparent !important;
}

/* ===== Mobile Bottom Nav Refresh Layer ===== */
@media (max-width: 767px) {
  .vehica-home,
  .vehica-search {
    padding-bottom: calc(6.4rem + env(safe-area-inset-bottom, 0px));
  }

  .install-recommend-section {
    border-radius: 1.04rem;
  }

  .install-recommend-list {
    font-size: 0.86rem;
  }

  .install-recommend-actions {
    gap: 0.42rem;
  }

  .install-recommend-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .install-prompt {
    left: 0.62rem;
    right: 0.62rem;
    width: auto;
    bottom: calc(5.9rem + env(safe-area-inset-bottom, 0px));
    padding: 0.82rem;
  }

  .install-prompt-copy,
  .install-prompt-list {
    font-size: 0.76rem;
  }

  .install-prompt-hint {
    font-size: 0.7rem;
  }

  .vehica-home .floating-whatsapp,
  .vehica-search .floating-whatsapp {
    display: none;
  }

  .vehica-home .bottom-nav,
  .vehica-search .bottom-nav {
    position: fixed;
    left: 0.62rem;
    right: 0.62rem;
    bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    z-index: 95;
    border-radius: 1rem;
    padding: 0.32rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.24rem;
    background: rgba(246, 249, 255, 0.98);
    border: 1px solid rgba(151, 172, 209, 0.34);
    box-shadow: 0 10px 24px rgba(15, 37, 74, 0.14);
    backdrop-filter: blur(14px);
  }

  .vehica-home .bottom-nav a,
  .vehica-home .bottom-nav .bottom-nav-more,
  .vehica-search .bottom-nav a,
  .vehica-search .bottom-nav .bottom-nav-more {
    text-decoration: none;
    color: #42597f;
    text-align: center;
    border-radius: 0.82rem;
    padding: 0.38rem 0.12rem 0.34rem;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.11rem;
    min-height: 3.15rem;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .vehica-home .bottom-nav a svg,
  .vehica-home .bottom-nav .bottom-nav-more svg,
  .vehica-search .bottom-nav a svg,
  .vehica-search .bottom-nav .bottom-nav-more svg {
    width: 1.12rem;
    height: 1.12rem;
  }

  .vehica-home .bottom-nav a.active,
  .vehica-home .bottom-nav a[aria-current="page"],
  .vehica-home .bottom-nav .bottom-nav-more.active,
  .vehica-home .bottom-nav .bottom-nav-more[aria-expanded="true"],
  .vehica-search .bottom-nav a.active,
  .vehica-search .bottom-nav a[aria-current="page"],
  .vehica-search .bottom-nav .bottom-nav-more.active,
  .vehica-search .bottom-nav .bottom-nav-more[aria-expanded="true"] {
    color: #5b43f0;
    background: #ece9ff;
  }

  .vehica-home .more-tray-sheet,
  .vehica-search .more-tray-sheet {
    left: 0.62rem;
    right: 0.62rem;
    bottom: calc(4.95rem + env(safe-area-inset-bottom, 0px));
    background: rgba(249, 251, 255, 0.99);
    border: 1px solid rgba(151, 172, 209, 0.32);
    border-radius: 1rem;
    box-shadow: 0 16px 28px rgba(14, 34, 70, 0.18);
  }

  .vehica-home .more-tray-item,
  .vehica-search .more-tray-item {
    color: #22314c;
    font-weight: 600;
    border-radius: 0.72rem;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
  }

  .vehica-home .more-tray-item:hover,
  .vehica-home .more-tray-item:focus-visible,
  .vehica-search .more-tray-item:hover,
  .vehica-search .more-tray-item:focus-visible {
    background: rgba(91, 67, 240, 0.09);
    color: #31238d;
  }
}

@media (min-width: 768px) {
  .vehica-home .bottom-nav,
  .vehica-search .bottom-nav,
  .vehica-home .more-tray,
  .vehica-search .more-tray {
    display: none !important;
  }
}

/* ===== App-wide Responsive Hardening Layer ===== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
picture,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

img,
video,
canvas {
  height: auto;
}

input,
select,
textarea,
button {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}

.section,
.topbar,
.dealer-footer,
.dealer-footer-inner,
.hero,
.dealer-search-shell,
.dealer-results-grid,
.car-grid,
.review-row,
.gallery-shell,
.compare-modal-shell,
.compare-tray,
.hero-search-grid,
.hero-search-stats {
  min-width: 0;
}

.topbar,
.hero,
.dealer-search-shell,
.dealer-results-grid,
.car-grid,
.hero-search-grid,
.hero-search-stats,
.dealer-footer-inner,
.inventory-controls {
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .dealer-search-shell {
    grid-template-columns: 1fr;
  }

  .dealer-filter-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 700px) {
  .hero-search-grid,
  .dealer-filter-grid.two-up,
  .hero-search-stats,
  .dealer-listing-specs {
    grid-template-columns: 1fr;
  }

  .inventory-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-intro-actions,
  .dealer-results-toolbar,
  .dealer-results-meta-bar,
  .dealer-results-toolbar-side,
  .hero-cta,
  .car-actions,
  .gallery-actions {
    width: 100%;
  }

  .dealer-results-toolbar,
  .dealer-results-meta-bar,
  .dealer-results-toolbar-side {
    align-items: stretch;
    flex-direction: column;
  }

  .dealer-sort-label,
  .dealer-sort-label select {
    width: 100%;
  }

  .topbar {
    width: min(1220px, 96%);
    margin-top: 0.5rem;
    padding: 0.5rem;
  }

  .section,
  .dealer-footer {
    width: min(1220px, 96%);
  }
}

@media (max-width: 520px) {
  .btn,
  .pill,
  button,
  .inventory-chip,
  .dealer-tab,
  .social-links a {
    min-height: 2.6rem;
  }

  .hero-content,
  .hero-search-card,
  .dealer-filter-panel,
  .dealer-results-panel,
  .contact-form,
  .faq-card,
  .kpi-card,
  .quick-card,
  .service-grid article,
  .dealer-listing-content,
  .dealer-listing-body,
  .slider-body,
  .car-content {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

/* ===== Modern Platform Layer (2026) ===== */

:root {
  --space-fluid-xs: clamp(0.5rem, 0.3rem + 0.8vw, 0.85rem);
  --space-fluid-sm: clamp(0.75rem, 0.45rem + 1vw, 1.05rem);
  --space-fluid-md: clamp(0.95rem, 0.6rem + 1.35vw, 1.45rem);
  --space-fluid-lg: clamp(1.2rem, 0.8rem + 1.8vw, 2rem);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(46, 84, 255, 0.34);
  outline-offset: 2px;
}

:where(.hero-content, .hero-search-card, .dealer-filter-panel, .dealer-results-panel, .car-card, .dealer-listing-card, .faq-card, .contact-form) {
  padding: var(--space-fluid-md);
}

@supports (container-type: inline-size) {
  .hero-search-card,
  .car-card,
  .dealer-listing-card,
  .dealer-results-panel,
  .dealer-filter-panel,
  .contact-form {
    container-type: inline-size;
  }

  @container (max-width: 420px) {
    .hero-search-stats,
    .dealer-listing-specs {
      grid-template-columns: 1fr;
    }

    .hero-search-actions,
    .dealer-listing-actions,
    .car-actions,
    .gallery-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .hero-search-actions .btn,
    .dealer-listing-actions .btn,
    .car-actions .btn,
    .gallery-actions .btn {
      width: 100%;
    }
  }

  @container (max-width: 360px) {
    .car-title-row,
    .dealer-listing-title-row {
      align-items: flex-start;
      flex-direction: column;
      gap: 0.32rem;
    }
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn,
  .pill,
  .inventory-chip,
  .dealer-tab,
  .social-links a,
  .slider-nav,
  .gallery-nav {
    min-height: 2.75rem;
  }
}

/* Global desktop width and contrast refresh */
.section,
.topbar,
.dealer-footer,
.tm-shell,
.tm-page-shell {
  width: var(--content-desktop-wide);
}

.dealer-footer-inner {
  background: linear-gradient(150deg, rgba(31, 50, 82, 0.94), rgba(39, 62, 98, 0.94));
}

.dealer-footer a,
.dealer-footer p,
.dealer-footer-copy {
  color: rgba(242, 247, 255, 0.92);
}

.skip-link {
  background: #1b3256;
}

/* Final readability refinement layer */
:root {
  --read-ink-strong: #13253f;
  --read-ink: #1d3557;
  --read-muted: #4e6587;
  --read-line: rgba(19, 37, 63, 0.16);
  --read-focus: rgba(46, 91, 255, 0.38);
}

input,
select,
textarea,
.auth-input,
.finance-calc input,
.marketplace-inline-sort select,
.marketplace-sidebar input,
.marketplace-sidebar select,
.dealer-sort-label select {
  color: var(--read-ink-strong);
  border-color: var(--read-line);
  background: #ffffff;
}

input::placeholder,
select::placeholder,
textarea::placeholder,
.auth-input::placeholder,
.finance-calc input::placeholder {
  color: var(--read-muted);
}

input:focus,
select:focus,
textarea:focus,
.auth-input:focus,
.finance-calc input:focus,
.marketplace-inline-sort select:focus,
.marketplace-sidebar input:focus,
.marketplace-sidebar select:focus,
.dealer-sort-label select:focus {
  border-color: rgba(46, 91, 255, 0.58);
  box-shadow: 0 0 0 3px var(--read-focus);
}

.compare-modal-shell {
  background: linear-gradient(145deg, #1f365c, #2a4674);
  color: #f4f8ff;
}

.compare-pill,
.compare-row span {
  background: rgba(255, 255, 255, 0.2);
  color: #edf4ff;
}

.compare-row strong {
  color: #3f2a00;
  background: rgba(255, 196, 78, 0.34);
}

.compare-remove {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.btn,
.tm-button {
  color: #13253f;
}

/* Post-audit authority layer: stabilize nav/search readability after prior override passes */
.vehica-home .topbar-nav a,
.vehica-search .topbar-nav a {
  color: #24364f;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 0.56rem;
  background: transparent;
}

.vehica-home .topbar-nav a[aria-current="page"],
.vehica-home .topbar-nav a:hover,
.vehica-home .topbar-nav a:focus-visible,
.vehica-search .topbar-nav a[aria-current="page"],
.vehica-search .topbar-nav a:hover,
.vehica-search .topbar-nav a:focus-visible {
  color: #1a2a41;
  background: #ffe8df;
}

.vehica-home .topbar-nav a[aria-current="page"]::after,
.vehica-home .topbar-nav a:hover::after,
.vehica-search .topbar-nav a[aria-current="page"]::after,
.vehica-search .topbar-nav a:hover::after {
  background: #159055;
}

.vehica-home .hero-search-card,
.vehica-search .dealer-filter-panel {
  border: 1px solid rgba(15, 23, 42, 0.11);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.vehica-home .hero-search-head h2 {
  color: #0f172a;
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  line-height: 1.28;
}

.vehica-home .hero-search-grid label,
.vehica-search .dealer-filter-form label {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: none;
}

.vehica-home .hero-search-grid input,
.vehica-home .hero-search-grid select,
.vehica-search .dealer-filter-form input,
.vehica-search .dealer-filter-form select {
  min-height: 46px;
  color: #16273f;
  border-color: rgba(22, 39, 63, 0.18);
  background: #ffffff;
}




