:root {
  --bg: #0b0f14;
  --bg-elev: #121821;
  --bg-soft: #18212d;
  --ink: #f4f1ea;
  --muted: #a8b0bc;
  --line: rgba(244, 241, 234, 0.12);
  --accent: #d4a04a;
  --accent-2: #7eb8c9;
  --danger: #e35d5d;
  --ok: #6fbf8a;
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 85% -8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%),
    radial-gradient(900px 480px at -8% 18%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 52%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 86%, #000) 48%, var(--bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }

/* Header — original AusCar structure */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}
.top-bar {
  background: color-mix(in srgb, var(--bg) 92%, #000);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.top-bar-inner {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  padding: 0.45rem 0;
  flex-wrap: wrap;
  align-items: center;
}
.top-bar a:hover { color: var(--accent); }
.main-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: min(280px, 55vw);
  object-fit: contain;
  display: block;
}
.brand.brand-logo-only .brand-logo {
  max-width: min(360px, 70vw);
}
.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-text strong {
  font-family: var(--font-display), sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-text em {
  font-style: normal;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.header-meta {
  display: flex;
  gap: 2rem;
  flex-shrink: 1;
  min-width: 0;
}
.meta-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
}
.meta-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.meta-item small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.meta-item strong {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 16rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.55rem;
  height: 2.55rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  width: 1.15rem;
  transition: transform .2s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  background: color-mix(in srgb, var(--ink) 92%, #fff);
  color: #111;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.nav-inner a {
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  color: #111;
}
.nav-inner a:hover,
.nav-inner a.active {
  background: var(--accent);
  color: #fff;
}
.nav-link-label { display: inline-block; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #14110c;
  font-weight: 700;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 48%, color-mix(in srgb, var(--bg) 22%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 12%, transparent) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 100%);
}
.hero-copy {
  padding: 7rem 0 4.5rem;
  max-width: 40rem;
  animation: rise .9s ease both;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

.section { padding: 4.5rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0.2rem 0 0;
  letter-spacing: -0.02em;
}
.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tab {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.85rem;
}
.tab.active, .tab:hover {
  color: #14110c;
  background: var(--accent);
  border-color: var(--accent);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.car-tile {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .25s ease, transform .35s ease;
  animation: rise .7s ease both;
}
.car-tile:hover {
  border-color: rgba(212,160,74,.45);
  transform: translateY(-3px);
}
.car-tile .media {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #0a0d12;
}
.car-tile .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.car-tile:hover .media img { transform: scale(1.05); }
.car-tile .body { padding: 1rem 1rem 1.15rem; display: grid; gap: 0.45rem; }
.car-tile h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.25;
}
.meta { color: var(--muted); font-size: 0.82rem; }
.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.15rem;
}
.car-tile { position: relative; }
.car-tile .media { position: relative; }
.car-badges {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  z-index: 2;
}
.car-badges.static {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.car-badge {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.48rem;
  background: var(--accent);
  color: #14110c;
}
.car-badge.badge-sale,
.car-badge.badge-hot-deal,
.car-badge.badge-price-drop { background: #dc2626; color: #fff; }
.car-badge.badge-featured { background: var(--accent); color: #14110c; }
.car-badge.badge-brand-new { background: #0f766e; color: #fff; }
.car-badge.badge-new-arrival,
.car-badge.badge-just-listed { background: #2563eb; color: #fff; }
.car-badge.badge-certified,
.car-badge.badge-low-km { background: #059669; color: #fff; }
.car-badge.badge-sold,
.car-badge.sold { background: #7f1d1d; color: #fff; }
.car-badge.badge-reserved,
.car-badge.reserved { background: #92400e; color: #fff; }
.car-badge.badge-available,
.car-badge.available { background: #14532d; color: #fff; }
.sold-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  pointer-events: none;
  z-index: 1;
}
.compare-fab {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  background: rgba(11,15,20,.75);
  color: var(--ink);
  border-radius: 2px;
  cursor: pointer;
}
.compare-fab.on { background: var(--accent); color: #14110c; border-color: var(--accent); }
.compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(11,15,20,.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.compare-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 4rem;
}
.compare-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #14110c;
  font-size: 0.7rem;
  font-weight: 800;
}
.price-row { display: flex; align-items: baseline; gap: 0.6rem; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.badge-picker { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.5rem 0 1rem; }
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  padding: 0.4rem 0.65rem;
  color: var(--muted);
  cursor: pointer;
}
.badge-chip.on, .badge-chip:has(input:checked) {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(212,160,74,.12);
}
.badge-chip input { accent-color: var(--accent); }
.odo-mode-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.odo-mode-chip {
  border: 1px solid var(--line);
  padding: 0.9rem;
  display: grid;
  gap: 0.25rem;
  cursor: pointer;
}
.odo-mode-chip.on, .odo-mode-chip:has(input:checked) {
  border-color: var(--accent);
  background: rgba(212,160,74,.1);
}
.odo-mode-chip strong { font-family: var(--font-display); }
.odo-mode-chip span { color: var(--muted); font-size: 0.82rem; }
.odo-mode-chip input { display: none; }
.compare-empty { border: 1px dashed var(--line); padding: 2rem; display: grid; gap: 1rem; justify-items: start; }

.filters {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.filters input, .filters select, .field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
}
.field { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.field label { color: var(--muted); font-size: 0.85rem; }

.detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
.gallery-main {
  aspect-ratio: 16/11;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: .85;
}
.thumbs img:hover { opacity: 1; border-color: var(--accent); }
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.25rem 0;
}
.spec {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}
.spec span { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  color: var(--muted);
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.flash {
  background: rgba(111,191,138,.12);
  border: 1px solid rgba(111,191,138,.35);
  color: #d8f5e3;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}
.pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pagination a, .pagination span {
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  color: var(--muted);
}
.pagination .active { color: #14110c; background: var(--accent); border-color: var(--accent); }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-nav { background: #0a0e13; border-right: 1px solid var(--line); padding: 1.5rem 1rem; }
.admin-nav a { display: block; padding: 0.65rem 0.75rem; color: var(--muted); border-radius: var(--radius); }
.admin-nav a:hover, .admin-nav a.active { background: var(--bg-soft); color: var(--ink); }
.admin-main { padding: 1.5rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 0.7rem; text-align: left; font-size: 0.92rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat {
  border: 1px solid var(--line);
  padding: 1.1rem;
  background: rgba(255,255,255,0.02);
}
.stat strong { display: block; font-size: 1.8rem; font-family: var(--font-display); }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 1100px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .detail, .footer-grid, .admin-shell,
  .section .container[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .car-grid, .filters, .stats, .specs { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 5.5rem; }
}

/* ---- Top bar / nav ---- */
.top-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  font-size: 0.78rem;
  color: var(--muted);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}
.top-bar a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
}
.site-brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-tagline { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }

/* ---- Body tabs ---- */
.body-tabs-shell { position: relative; margin-bottom: 1.25rem; }
.body-tabs-shell .body-tabs { margin-bottom: 0; }
.body-tabs-shell .body-tabs-subs {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}
.body-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin-bottom: 1.25rem;
}
.body-tabs > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.body-tabs > a:hover,
.body-tabs > a.active {
  color: #14110c;
  background: var(--accent);
  border-color: var(--accent);
}
.tab-body-icon { display: inline-flex; line-height: 0; color: inherit; }
.tab-body-icon svg { width: 26px; height: 16px; display: block; }
.tab-body-label { display: inline-flex; align-items: baseline; gap: 0.25rem; }
.body-tabs em {
  font-style: normal;
  opacity: 0.8;
  font-weight: 700;
}
.body-tabs > a.active em { color: #14110c; }

/* ---- Browse toolbar / views ---- */
.browse-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.browse-view-switch {
  display: inline-flex;
  gap: 0.35rem;
  border: 1px solid var(--line);
  padding: 0.2rem;
}
.browse-view-switch a {
  padding: 0.4rem 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.browse-view-switch a.on,
.browse-view-switch a:hover {
  background: var(--accent);
  color: #14110c;
}
[data-browse-results].is-loading { opacity: 0.55; pointer-events: none; transition: opacity .2s ease; }

/* ---- Car tile layouts ---- */
.car-tile .body { color: inherit; }
.car-tile .media-link { display: block; position: relative; height: 100%; }
.car-price-box {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  display: grid;
  gap: 0.1rem;
  background: rgba(11,15,20,.82);
  border: 1px solid var(--line);
  padding: 0.35rem 0.55rem;
  backdrop-filter: blur(6px);
}
.car-price-box .car-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}
.car-price-box .old-price { font-size: 0.72rem; }
.car-year { margin: 0; }
.car-grid.view-list {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.car-grid.view-list .car-tile {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
}
.car-grid.view-list .car-tile .media { aspect-ratio: 16/10; }
.car-grid.view-compact {
  grid-template-columns: repeat(5, 1fr);
}
.car-grid.view-compact .car-tile h3 { font-size: 0.95rem; }
.reserved-stamp { letter-spacing: 0.12em; font-size: clamp(1.4rem, 3.5vw, 2.2rem); }

/* ---- Specs on cards ---- */
.car-specs {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.65rem;
}
.car-specs-icons li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}
.car-specs-icons .spec-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.9;
}
.car-specs-icons .spec-card-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.car-specs-icons .spec-card-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.car-specs-icons .spec-card-text strong {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.car-specs-icons .spec-odo { grid-column: 1 / -1; }
.colour-swatch-row { display: inline-flex; align-items: center; gap: 0.4rem; }
.colour-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  display: inline-block;
  flex-shrink: 0;
}
.detail-specs { margin: 1.25rem 0; }
.detail-specs .car-specs { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.detail-specs .stock-spec {
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}
.detail-specs .stock-spec span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---- Digital odometer ---- */
.odometer {
  --odo-h: 1.2em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  vertical-align: middle;
  position: relative;
  line-height: 1;
  color: #f8fafc;
}
.odo-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.odo-needle { transform-origin: 24px 24px; }
.odo-needle.play-once {
  animation: needle-tick 2.2s cubic-bezier(0.12, 0.75, 0.18, 1) 1 both;
}
@keyframes needle-tick {
  0% { transform: rotate(-110deg); }
  70% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}
.odo-window {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #0c121c, #171f2e 45%, #0c121c);
  border: 1px solid rgba(212, 160, 74, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 2px 5px rgba(0, 0, 0, 0.55);
  padding: 0.2rem 0.28rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.odometer.is-spinning .odo-window {
  box-shadow:
    0 0 14px color-mix(in srgb, var(--accent) 40%, transparent),
    inset 0 2px 5px rgba(0, 0, 0, 0.55);
}
.odo-reel {
  position: relative;
  display: inline-block;
  width: 0.95em;
  min-width: 0.85rem;
  height: var(--odo-h);
  overflow: hidden;
  margin: 0 1px;
  background: #05080f;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.odo-reel.pop {
  animation: odo-digit-pop 0.28s ease-out 1;
}
@keyframes odo-digit-pop {
  0% { filter: brightness(1); }
  45% { filter: brightness(1.35); }
  100% { filter: brightness(1); }
}
.odo-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.odo-digit {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--odo-h);
  width: 100%;
  flex: 0 0 var(--odo-h);
  font-weight: 800;
  font-size: 1em;
  line-height: 1;
  color: #f8fafc !important;
  font-family: var(--font-display), "Outfit", sans-serif;
  text-shadow: 0 0 8px rgba(212, 160, 74, 0.45);
  letter-spacing: 0;
}
.odo-digit.static {
  height: var(--odo-h);
  width: 100%;
}
.odo-sep {
  display: inline-flex;
  align-items: flex-end;
  padding: 0 0.12rem 0.12rem;
  color: var(--accent) !important;
  font-weight: 800;
  font-size: 0.95em;
  line-height: 1;
}
.odo-unit {
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent) !important;
  white-space: nowrap;
  padding: 0.25em 0.5em;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, #0b0f14);
}
.odo-sm { font-size: 1rem; }
.odo-sm .odo-icon svg { width: 24px; height: 24px; }
.odo-md { font-size: 1.15rem; }
.odo-md .odo-icon svg { width: 30px; height: 30px; }
.odo-lg { font-size: 1.45rem; }
.odo-lg .odo-icon svg { width: 38px; height: 38px; }
.spec-odo { grid-column: 1 / -1; }
.section-inventory .odometer,
.section-inventory .odo-digit,
.section-inventory .odo-unit,
.section-inventory .odo-sep {
  color: #f8fafc !important;
}
.section-inventory .odo-unit { color: var(--accent) !important; }

/* ---- Features / CTA ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card {
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
}
.feature-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(212,160,74,.12), transparent 55%);
  padding: 2.5rem 0;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.cta-band p { margin: 0; color: var(--muted); max-width: 36rem; }

@media (max-width: 1100px) {
  .car-grid.view-compact { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .car-grid.view-list .car-tile { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(11,15,20,.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .header-cta { display: none; }
  .site-header .header-inner { position: relative; }
  .car-grid.view-compact,
  .features-grid { grid-template-columns: 1fr; }
  .body-tabs > a { flex: 0 0 auto; }
}

/* ---- Watermark overlay ---- */
.wm-overlay {
  position: absolute;
  display: block;
  height: auto;
  aspect-ratio: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}
.gallery-main { position: relative; }

/* ---- Admin form helpers ---- */
.admin-form { max-width: 920px; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.admin-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }
.admin-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.check-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0.55rem 0 0.9rem;
  color: var(--muted);
}
.theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
}
.theme-card {
  border: 1px solid var(--line);
  padding: 0.75rem;
  display: grid;
  gap: 0.3rem;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
}
.theme-card input { display: none; }
.theme-card.on, .theme-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(212,160,74,.1);
}
.theme-card strong { font-family: var(--font-display); font-size: 0.92rem; }
.theme-card > span:last-child { color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.theme-swatches { display: flex; gap: 0.25rem; }
.theme-swatches span {
  width: 1rem; height: 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
}
.admin-user-card {
  border: 1px solid var(--line);
  padding: 1rem;
  margin-bottom: 0.85rem;
  background: rgba(255,255,255,0.02);
}
.admin-brand { margin-bottom: 1.25rem; }
.admin-brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-brand span { color: var(--muted); font-size: 0.8rem; }
.admin-nav-group { margin-bottom: 1.1rem; }
.admin-nav-label {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.admin-nav-footer { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.admin-back { color: var(--muted); font-size: 0.85rem; }
.admin-logout { width: 100%; }
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
}
.content-card-edit, .content-row { display: grid; gap: 0.5rem; }
.content-row { grid-template-columns: 1fr 1fr; }
.btn-secondary {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.7rem 1rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .admin-grid-2, .admin-grid-3, .admin-grid-4, .content-row { grid-template-columns: 1fr; }
}

/* ---- Nav polish / mobile ---- */
.top-bar {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, #000);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}
.top-bar a { transition: color .2s ease; }
.top-bar a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.footer-blurb { margin-top: 0.85rem; max-width: 28rem; color: var(--muted); line-height: 1.6; }
.footer-link { transition: color .2s ease; }
.footer-link:hover { color: var(--accent); }
.footer-copy { margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }

/* ---- Product gallery ---- */
.detail-page { padding-top: 2rem; }
.detail-gallery { min-width: 0; }
.gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
}
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease, transform .7s ease;
}
.gallery-main img.fade-in { animation: galleryFade .45s ease; }
.gallery-main:hover img { transform: scale(1.02); }
@keyframes galleryFade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--ink);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.gallery-nav:hover { border-color: var(--accent); color: var(--accent); }
.gallery-nav.prev { left: 0.7rem; }
.gallery-nav.next { right: 0.7rem; }
.gallery-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.gallery-count {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 0.35rem 0.55rem;
  backdrop-filter: blur(6px);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.thumb {
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: .7;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.thumb img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumb:hover, .thumb.active {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.detail-price { margin-bottom: 0.5rem; }
.detail-price .price { font-size: 1.7rem; }
.detail-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.detail-copy { color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.detail-features ul {
  color: var(--muted);
  columns: 2;
  gap: 1rem;
  padding-left: 1.1rem;
  margin: 0.5rem 0 1.5rem;
}
.detail-form {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  margin-bottom: 1.5rem;
}
.reveal {
  animation: rise .7s ease both;
}
.detail-info > .reveal:nth-child(2) { animation-delay: .05s; }
.detail-info > .reveal:nth-child(3) { animation-delay: .1s; }
.detail-info > .reveal:nth-child(4) { animation-delay: .15s; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.9);
  display: grid;
  place-items: center;
  padding: 2rem;
  backdrop-filter: blur(6px);
  animation: lbIn .25s ease;
}
.lightbox[hidden] { display: none !important; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-meta {
  position: absolute;
  bottom: 1.2rem;
  color: rgba(255,255,255,.75);
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

/* ---- Theme picker polish ---- */
.theme-card {
  position: relative;
  overflow: hidden;
}
.theme-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--preview-bg, var(--bg)), var(--preview-accent, var(--accent)));
}
.theme-card.on {
  box-shadow: 0 0 0 1px var(--accent), 0 12px 30px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---- Admin shell themed ---- */
.admin-body { background: var(--bg); color: var(--ink); }
.admin-shell { background: transparent; }
.admin-nav {
  background: color-mix(in srgb, var(--bg) 94%, #000);
  border-right: 1px solid var(--line);
}
.admin-nav a.active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--ink);
  border-left: 2px solid var(--accent);
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: color-mix(in srgb, var(--bg) 96%, #000);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-header .header-inner { position: relative; }
  .brand-tagline { display: none; }
  .detail-features ul { columns: 1; }
  .gallery-nav { width: 2.2rem; height: 2.2rem; }
}

/* ==== Header fix (match original AusCar layout) ==== */
.site-header .top-bar {
  background: color-mix(in srgb, var(--bg) 92%, #000) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.site-header .top-bar-inner {
  display: flex !important;
  gap: 1.5rem !important;
  justify-content: flex-end !important;
  padding: 0.45rem 0 !important;
  flex-wrap: wrap;
  align-items: center;
}
.site-header .main-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.site-header .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-header .brand-text strong {
  font-family: var(--font-display), sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-header .brand-text em {
  font-style: normal;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-header .header-meta {
  display: flex;
  gap: 2rem;
}
.site-header .main-nav {
  display: block;
  background: #e8eaee;
  color: #111;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header .nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.site-header .nav-inner a {
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #111;
  background: transparent;
}
.site-header .nav-inner a:hover,
.site-header .nav-inner a.active {
  background: var(--accent);
  color: #fff;
}
.site-header .nav-toggle {
  display: none !important;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.55rem;
  height: 2.55rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 900px) {
  .site-header .header-meta { display: none !important; }
  .site-header .nav-toggle { display: flex !important; }
  .site-header .main-nav {
    display: none;
    background: var(--bg-elev);
    border-top: 1px solid var(--line);
  }
  .site-header .main-nav.open { display: block; }
  .site-header .nav-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.75rem 0 1rem;
  }
  .site-header .nav-inner a {
    width: 100%;
    color: var(--ink);
    justify-content: flex-start;
  }
  .site-header .nav-inner a:hover,
  .site-header .nav-inner a.active {
    background: var(--accent);
    color: #14110c;
  }
  .site-header .brand-text strong { font-size: 1.2rem; }
  .site-header .top-bar-inner { justify-content: space-between !important; gap: 0.65rem !important; font-size: 0.68rem; }
}

/* CMS / rich text on public pages */
.rich-content h1,
.cms-body h1,
.rich-content h2,
.cms-body h2,
.rich-content h3,
.cms-body h3,
.rich-content h4,
.cms-body h4 {
  margin: 1em 0 0.45em;
  line-height: 1.25;
  font-family: var(--font-display);
  color: var(--ink);
}
.rich-content p,
.cms-body p { margin: 0.55em 0; }
.rich-content ul,
.rich-content ol,
.cms-body ul,
.cms-body ol { margin: 0.55em 0; padding-left: 1.4rem; }
.rich-content hr,
.cms-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}
.rich-content img,
.cms-body img { max-width: 100%; height: auto; }
.rich-content table.rte-table,
.cms-body table.rte-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}
.rich-content table.rte-table th,
.rich-content table.rte-table td,
.cms-body table.rte-table th,
.cms-body table.rte-table td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
}
.about-intro :first-child { margin-top: 0; }

/* ---- Car detail extras ---- */
.page-hero-slim {
  padding: 1.4rem 0 0.6rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent);
}
.page-hero-slim h1 {
  font-family: var(--font-display);
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}
.breadcrumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.breadcrumb-trail a { color: var(--ink); text-decoration: none; }
.breadcrumb-trail a:hover { color: var(--accent); }
.stock-chip {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.gallery-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.gallery-tabs button {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
}
.gallery-tabs button.on {
  border-color: var(--accent);
  color: var(--accent);
}
.gallery-video-pane {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #05080f;
  border: 1px solid var(--line);
  overflow: hidden;
}
.gallery-video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}
.thumb-video {
  position: relative;
}
.thumb-video-label {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 54px;
  background: #0b1220;
  color: var(--accent);
  font-size: 1.1rem;
}
.certificate-link {
  margin: 0.85rem 0 0;
}
.certificate-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.certificate-link a:hover { text-decoration: underline; }
.certificate-icon {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}
.reserved-note {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
  font-size: 0.9rem;
}
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.phone-cta-icon { display: inline-grid; place-items: center; }
.detail-info.is-sold .price { opacity: 0.72; }
a.badge-chip {
  text-decoration: none;
  color: inherit;
}

/* ---- Inventory filters ---- */
.inv-filters-fab {
  display: none;
  position: sticky;
  top: 0.75rem;
  z-index: 30;
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
  background: var(--accent);
  color: #14110c;
  font-weight: 800;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.inv-filters-fab span {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  font-size: 0.75rem;
}
.inv-filters-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,8,14,.55);
  z-index: 40;
}
.inv-filters-head {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}
.inv-filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  grid-column: 1 / -1;
}
.colour-filter { grid-column: 1 / -1; }
.colour-filter-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.colour-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  border-radius: 999px;
}
.colour-filter-chip.on {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 900px) {
  .inv-filters-fab { display: inline-flex; align-items: center; }
  .inv-filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    max-height: min(88vh, 720px);
    overflow: auto;
    margin: 0;
    padding: 1rem 1rem 1.4rem;
    border-radius: 16px 16px 0 0;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .28s ease;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  .inv-filters.is-open { transform: translateY(0); }
  .inv-filters-head { display: flex; grid-column: 1 / -1; }
  body.filters-open { overflow: hidden; }
}

/* ---- Detail spec list ---- */
.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.spec-item > span {
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.spec-item > strong { font-weight: 700; text-align: right; }
.status-dot::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  background: var(--accent);
  vertical-align: middle;
}
.status-dot.status-available::before { background: #34d399; }
.status-dot.status-reserved::before { background: #fbbf24; }
.status-dot.status-sold::before { background: #f87171; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ---- Inventory light band (AusCar-style field background) ---- */
.section-inventory {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 55%, #ffffff 100%);
  color: #0a101d;
  border-block: 1px solid rgba(10, 16, 29, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.section-inventory .section-head h2,
.section-inventory .section-head .kicker,
.section-inventory .meta,
.section-inventory .browse-toolbar .meta {
  color: #0a101d;
}
.section-inventory .kicker { color: var(--accent); }
.section-inventory .meta { color: #64748b; }
.section-inventory .inv-filters {
  background: #fff;
  border: 1px solid rgba(10, 16, 29, 0.08);
  box-shadow: 0 10px 28px rgba(10, 16, 29, 0.06);
  padding: 1rem;
  border-radius: 8px;
}
.section-inventory .inv-filters input,
.section-inventory .inv-filters select {
  background: #f8fafc;
  border: 1px solid rgba(10, 16, 29, 0.12);
  color: #0a101d;
}
.section-inventory .inv-filters input:focus,
.section-inventory .inv-filters select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  background: #fff;
}
.section-inventory .colour-filter-chip {
  background: #f8fafc;
  border-color: rgba(10, 16, 29, 0.12);
  color: #0a101d;
}
.section-inventory .colour-filter-chip.on {
  border-color: var(--accent);
  color: var(--accent);
}
.section-inventory .car-tile {
  background: #fff;
  border: 1px solid rgba(10, 16, 29, 0.08);
  box-shadow: 0 8px 24px rgba(10, 16, 29, 0.06);
  color: #0a101d;
}
.section-inventory .car-tile .body h3 { color: #0a101d; }
.section-inventory .car-tile .car-year,
.section-inventory .car-tile .meta { color: #64748b; }
.section-inventory .car-specs-icons .spec-card-text strong { color: #0a101d; }
.section-inventory .car-specs-icons .spec-card-text em { color: #64748b; }
.section-inventory .browse-view-switch a {
  background: #0a101d;
  color: #e5e7eb;
  border: 1px solid transparent;
}
.section-inventory .browse-view-switch a.on {
  background: #fff;
  color: #0a101d;
  border-color: rgba(10, 16, 29, 0.12);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.section-inventory .body-tabs a,
.section-inventory .body-tabs button {
  background: #0a101d;
  color: #e5e7eb;
}
.section-inventory .body-tabs a.active,
.section-inventory .body-tabs .active {
  background: #fff;
  color: #0a101d;
  box-shadow: inset 0 -3px 0 var(--accent);
}
.section-inventory .pagination a,
.section-inventory .pagination span {
  color: #0a101d;
}
@media (max-width: 900px) {
  .section-inventory .inv-filters {
    background: var(--bg-elev);
    color: var(--ink);
  }
  .section-inventory .inv-filters input,
  .section-inventory .inv-filters select {
    background: var(--bg);
    border-color: var(--line);
    color: var(--ink);
  }
}
