/* =========================================================================
   Template 20 (Night Showroom) — DealerGate dealer website, built on Template 19
   Cars · Vans · Campervans & Motorhomes
   ========================================================================= */

:root {
  /* Night Showroom: dark ground, light text, the dealer's accent on actions */
  --ink: #17171B;                  /* raised dark panels, badges, dock */
  --ink-2: #1F1F24;
  --ink-3: #2A2A30;
  --ink-hover: #232329;
  --ground: #0E0E11;               /* page */
  --surface: #17171B;              /* cards, panels */
  --raise: #222228;                /* soft buttons, chips, inputs on panels */
  --raise-2: #2C2C33;
  --input-bg: #0E0E11;
  --line: #2A2A31;
  --line-2: #212127;
  --field: #3A3A42;
  --text: #F4F4F5;
  --text-2: #C9C9CF;
  --muted: #A1A1AA;
  --on-ink: #C9C9CF;
  --on-ink-2: #8A8A93;
  --ph: #1F1F24;                   /* photo placeholder */
  --sil: #55555E;                  /* vehicle drawing on placeholders */
  --plate: #F7D117;
  --plate-gb: #003399;
  --ok: #86EFAC;
  --ok-bg: #0F2A1B;
  --err: #FCA5A5;
  --err-bg: #2A1215;
  --accent: #C8102E;               /* overridden from SITE_ACCENT in base.html */
  --accent-tint: color-mix(in srgb, var(--accent) 16%, #17171B);
  --accent-tint-2: color-mix(in srgb, var(--accent) 32%, #17171B);
  /* names older shared pages (legal, errors) expect */
  --primary: var(--accent);
  --accent-text: color-mix(in srgb, var(--accent) 45%, #FFFFFF); /* accent for text on the dark ground */
  --bg-light: var(--ground);
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Michroma', 'Inter', sans-serif;
  --logo-filter: brightness(0) invert(1);   /* dark theme: show the logo in white; 'none' keeps its colours */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 22px 44px -24px rgba(0, 0, 0, 0.8);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  /* Raleway's default digits are old-style (3, 4, 5, 7, 9 drop below the line); keep prices and mileage level */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: #FFFFFF; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.display { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.1;
  text-align: center;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 16px; font-weight: 800; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { color: #FFFFFF; filter: brightness(0.92); }
.btn-ink { background: var(--raise); color: #FFFFFF; border-color: var(--field); }
.btn-ink:hover { color: #FFFFFF; background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; border-color: var(--field); color: var(--text); }
.btn-outline:hover { background: var(--text); border-color: var(--text); color: var(--ground); }
.btn-soft { background: var(--raise); color: var(--text); }
.btn-soft:hover { background: var(--raise-2); color: var(--text); }
.btn-pill { border-radius: 999px; }
.link-strong { font-weight: 700; }

/* ---------- Plate (UK reg) ---------- */
.plate {
  display: inline-flex; align-items: stretch; height: 48px; border: 2px solid var(--text);
  border-radius: 8px; overflow: hidden; background: var(--plate);
}
.plate-gb {
  display: inline-flex; align-items: center; justify-content: center; width: 30px;
  background: var(--plate-gb); color: #FFFFFF; font-size: 11px; font-weight: 800;
}
.plate input, .plate span.plate-text {
  width: 160px; border: 0; background: var(--plate); padding: 0 12px;
  font-size: 20px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #111111;
  display: inline-flex; align-items: center;
}
.plate input::placeholder { color: rgba(16, 32, 27, 0.55); }
.plate-sm { height: 40px; }
.plate-sm .plate-gb { width: 26px; font-size: 10px; }
.plate-sm span.plate-text { width: auto; font-size: 18px; }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field select, .field input, .field textarea {
  min-height: 48px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--radius-sm);
  font-size: 15px; background: var(--input-bg); color: var(--text); width: 100%;
}
.field textarea { padding: 12px; min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Flash ---------- */
.flashes { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.flash { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--err); }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--ink); color: #E9EDEB; font-size: 13px; }
.utility .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 9px; }
.utility-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.utility a, .utility span { color: #E9EDEB; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.utility a:hover { color: #FFFFFF; text-decoration: underline; }
.utility .icon { width: 16px; height: 16px; }

.site-header { background: rgba(14, 14, 17, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { max-height: 72px; width: auto; max-width: 260px; object-fit: contain; filter: var(--logo-filter); }
@media (max-width: 600px) { .brand img { max-height: 56px; max-width: 200px; } }
.brand-name { font-size: 20px; font-weight: 800; white-space: nowrap; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; font-size: 15px; font-weight: 600; }
.main-nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a { color: var(--text-2); }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.saved-link { position: relative; }
.saved-count {
  display: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 800; align-items: center; justify-content: center;
}
.saved-count.has { display: inline-flex; }
.nav-toggle { display: none; }

@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(16px, 4vw, 32px) 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .header-actions .hide-sm { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; padding-block: 48px 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.hero-copy p.lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.search-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow);
}
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.type-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.type-tabs label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--field); background: transparent; color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer;
}
.type-tabs label small { font-size: 12px; font-weight: 600; opacity: 0.8; }
.type-tabs input:checked + label { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.type-tabs input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.search-actions .btn { flex: 1 1 260px; }
.reg-finder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.reg-finder label { font-size: 14px; font-weight: 600; color: var(--text-2); }

.hero-media {
  /* 4:3 like the photos; beside the search it stretches to the search's height instead */
  flex: 1 1 420px; min-width: 0; aspect-ratio: 4 / 3; margin: 0; position: relative; border-radius: 22px; overflow: hidden;
  background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--sil);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-slide { opacity: 0; transition: opacity 0.8s ease; }
.hero-media .hero-slide.is-active { opacity: 1; }
.hero-media .silhouette { width: 62%; }
.hero-media-caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: rgba(14, 14, 17, 0.82); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid var(--field);
}
.hero-tag:hover { color: #FFFFFF; background: var(--accent); border-color: var(--accent); }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 18px; padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; color: var(--text);
}
.tile-art { height: 120px; display: flex; align-items: center; justify-content: center; background: var(--ph); border-radius: 12px; color: var(--sil); text-decoration: none; }
.tile-art svg { width: 58%; }
.tile-art.tile-photo { height: 160px; padding: 14px 18px; }
.tile-art img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.tile-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tile-title h3 { margin: 0; font-size: 24px; font-weight: 800; }
.tile-title a { text-decoration: none; }
.tile-title span { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tile-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tile-links a { padding: 6px 11px; border: 1px solid var(--field); border-radius: 999px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.tile-links a:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.tile-dark { background: var(--accent-tint); border-color: var(--accent-tint-2); color: #FFFFFF; }
.tile-dark a { color: #FFFFFF; }
.tile-dark .tile-art { background: var(--ink-2); color: var(--on-ink-2); }
.tile-dark .tile-title span { color: var(--on-ink); }
.tile-dark .tile-links a { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }
.tile-dark .tile-links a:hover { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

/* ---------- Vehicle cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
/* home "Just arrived": one sliding row per vehicle type, arrows either side */
.arrivals { display: flex; flex-direction: column; gap: 56px; }
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding-bottom: 28px; margin-bottom: -28px; /* room for the card hover shadow */
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--field); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .2s, background .2s, color .2s;
}
.rail-btn:hover:not(:disabled) { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.rail-prev { left: -24px; }
.rail-next { right: -24px; }
@media (max-width: 1099px) { .rail-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 760px) { .rail-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 991px) {
  .rail-btn { width: 40px; height: 40px; }
  .rail-prev { left: 6px; }
  .rail-next { right: 6px; }
}
@media (max-width: 520px) { .rail-track { grid-auto-columns: 84%; gap: 14px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { box-shadow: var(--shadow); border-color: var(--field); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--sil); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .silhouette { width: 56%; }
.badge-type { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(14, 14, 17, 0.82); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
/* attention grabber from the advert, in place of the type badge; wraps clear of the heart */
.badge-grabber {
  position: absolute; top: 12px; left: 12px; max-width: calc(100% - 72px); padding: 6px 10px; border-radius: 10px;
  background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em;
}
.save-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: rgba(14, 14, 17, 0.72); color: #F4F4F5; cursor: pointer;
}
.save-btn[aria-pressed="true"] { color: var(--accent); }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.photo-count {
  position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
  border-radius: 6px; background: rgba(16, 32, 27, 0.78); color: #FFFFFF; font-size: 12px; font-weight: 600;
}
.photo-count .icon { width: 14px; height: 14px; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.card-sub {
  margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 9px; border-radius: 6px; background: var(--raise); color: var(--text-2); font-size: 12px; font-weight: 600; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { font-size: 24px; font-weight: 800; font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; }
.vat-note { font-size: 13px; font-weight: 700; color: var(--muted); }
.card-cta { position: relative; z-index: 2; }

/* ---------- Spotlight (campers) ---------- */
.spotlight { background: var(--ink); color: #FFFFFF; }
.spotlight .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 72px; }
.spotlight-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.spotlight-copy .eyebrow { color: var(--on-ink); }
.spotlight-copy h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.spotlight-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-ink); max-width: 540px; }
.layout-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.layout-links a {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 12px;
  background: var(--ink-2); color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 700;
}
.layout-links a:hover { background: var(--ink-3); color: #FFFFFF; }
.layout-links small { margin-left: auto; font-weight: 600; color: var(--on-ink); }
.spotlight-media {
  flex: 1 1 380px; min-height: 380px; margin: 0; position: relative; border-radius: 20px; overflow: hidden;
  background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--sil);
}
.spotlight-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-media .silhouette { width: 70%; }

/* ---------- Services / sell / visit ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text);
}
.service:hover { box-shadow: var(--shadow); color: var(--text); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.service strong { font-size: 18px; }
.service span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }

.sell-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px;
  border-radius: 20px; background: var(--accent-tint); border: 1px solid var(--accent-tint-2);
}
.sell-strip-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.sell-strip-copy h2 { font-size: clamp(26px, 3vw, 34px); }
.sell-strip-copy p { margin: 0; font-size: 16px; color: var(--text-2); }
.sell-strip-form { flex: 1 1 520px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sell-strip-form .field input { width: 150px; }
.sell-strip-form .btn { flex: 1 1 180px; }

.visit { display: flex; flex-wrap: wrap; gap: 40px; }
.map { flex: 1 1 480px; min-height: 360px; border-radius: 18px; overflow: hidden; background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.visit-info { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.visit-info h2 { font-size: clamp(28px, 3vw, 38px); }
.address { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); font-style: normal; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th { text-align: left; padding: 10px 0; font-weight: 600; }
.hours td { text-align: right; padding: 10px 0; color: var(--text-2); font-variant-numeric: lining-nums tabular-nums; }
.hours tr { border-bottom: 1px solid var(--line-2); }
.hours tr.today th, .hours tr.today td { color: var(--text); font-weight: 800; }

/* ---------- Floating + cookie ---------- */
.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 50; width: 60px; height: 60px; border-radius: 999px;
  background: #25D366; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
}
.wa-float:hover, .wa-float:focus-visible { color: #FFFFFF; background: #1EBE5A; }
.wa-float-logo { width: 32px; height: 32px; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  background: var(--ink); color: #FFFFFF; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--on-ink); flex: 1 1 320px; }
.cookie-banner a { color: #FFFFFF; }
.cookie-banner .btn-soft { background: var(--ink-2); color: #FFFFFF; }

/* ---------- Phone quick-action dock (Template 15 pattern) ---------- */
.mobile-dock { display: none; }
@media (max-width: 991px) {
  :root { --dock-h: 64px; }
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: stretch;
    height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.35);
  }
  .dock-item {
    position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--on-ink); font-size: 11px; font-weight: 700; text-decoration: none; min-width: 0;
  }
  .dock-item .icon { width: 22px; height: 22px; }
  .dock-item:hover, .dock-item:focus-visible { color: #FFFFFF; }
  .dock-item[aria-current="page"] { color: #FFFFFF; }
  .dock-item[aria-current="page"]::before {
    content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent);
  }
  .dock-item .saved-count { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  .wa-float { display: none; }
  .cookie-banner { bottom: calc(var(--dock-h) + 12px + env(safe-area-inset-bottom, 0px)); }
  /* DealerGate chat launcher sits above the dock */
  #dg-launcher { bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom, 0px)) !important; }
  #dg-prompt { bottom: calc(var(--dock-h) + 28px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---------- DealerGate chat on phones ----------
   The widget's own phone layout is a 550px box pinned near the bottom. When the keyboard opens the
   box ends up behind it and the phone scrolls the page to reach the text box, and its 14.5px text
   box makes iPhones zoom the page in. On phones the chat fills the visible screen instead; t19.js
   keeps it sized to the area above the keyboard (--dg-top/--dg-height) and locks the page behind. */
@media (max-width: 600px) {
  #dg-chat-root #dg-window {
    top: var(--dg-top, 0px); left: 0; right: 0; bottom: auto;
    width: 100%; height: var(--dg-height, 100%); max-height: none;
    transform-origin: bottom center;
    border: 0 !important; border-radius: 0 !important;   /* the minimal/modern skins round it with stronger selectors */
  }
  #dg-chat-root #dg-header { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  #dg-chat-root #dg-input { font-size: 16px; }   /* under 16px, iPhones zoom the page in on focus */
  #dg-chat-root #dg-powered { padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px)); }
  html.dg-chat-open #dg-launcher, html.dg-chat-open #dg-prompt { display: none !important; }
}

/* ---------- Showroom ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .container { padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.page-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.page-title h1 { font-size: clamp(30px, 4vw, 46px); }
.page-title span { font-size: 16px; font-weight: 600; color: var(--muted); }
.cat-tabs { display: flex; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; }
.cat-tabs a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; white-space: nowrap; text-decoration: none;
  border-bottom: 3px solid transparent; color: var(--muted); font-size: 16px; font-weight: 700;
}
.cat-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.cat-tabs a:hover { color: var(--text); }
.cat-tabs small { padding: 2px 8px; border-radius: 999px; background: var(--ground); color: var(--text-2); font-size: 12px; font-weight: 700; }

.stock-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-block: 28px 56px; }
.filters { flex: 1 1 280px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 20px; font-size: 18px; font-weight: 800; cursor: pointer;
}
.filters > summary::-webkit-details-marker { display: none; }
.filters-body { padding: 0 20px 20px; display: flex; flex-direction: column; }
.filters-basic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.filters-basic .wide { grid-column: 1 / -1; }
.filters-basic .field select { min-height: 44px; }
.filters fieldset { margin: 0; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.filters legend { padding: 16px 0 6px; font-size: 15px; font-weight: 800; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.check small { margin-left: auto; color: var(--muted); font-size: 13px; }
.filters-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.filters-actions { display: flex; gap: 10px; padding-top: 16px; }
.results { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.results-bar .count { font-size: 15px; font-weight: 600; color: var(--text-2); }
.results-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sort-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.sort-field select { min-height: 44px; padding: 0 10px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text); }
.vat-switch { display: inline-flex; border: 1px solid var(--field); border-radius: 999px; padding: 3px; background: var(--surface); }
.vat-switch a { min-height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; text-decoration: none; }
.vat-switch a[aria-current="true"] { background: var(--accent); color: #FFFFFF; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.active-chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--field);
  border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; text-decoration: none;
}
.active-chips a:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.empty { padding: 48px 24px; border: 1.5px dashed var(--field); border-radius: var(--radius); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty strong { font-size: 18px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 12px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700;
}
.pagination a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pagination span { border: 0; background: transparent; }

@media (min-width: 981px) {
  .filters { flex: 0 0 300px; position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; }
  .filters > summary .summary-toggle { display: none; }
}

/* ---------- Detail ---------- */
/* Phones: gallery → price & actions → details. Desktop: sticky buy panel beside both. */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 16px 56px; }
.detail-gallery, .detail-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1000px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "gallery buy" "main buy"; column-gap: 28px; }
  .detail-gallery { grid-area: gallery; }
  .detail-main { grid-area: main; }
  .buy-panel { grid-area: buy; position: sticky; top: 96px; }
}
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--ph); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-expand {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 10px; background: rgba(14, 14, 17, 0.82); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer;
}
.fancybox__container { --fancybox-accent-color: var(--accent); }
.gallery-counter { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 700; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: rgba(14, 14, 17, 0.8); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-actions { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-actions .btn { background: rgba(14, 14, 17, 0.82); color: var(--text); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 auto; width: 104px; aspect-ratio: 4 / 3; padding: 0; border-radius: 10px; border: 2.5px solid transparent; overflow: hidden; background: var(--ph); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ink); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000000; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { margin: 0; font-size: 20px; font-weight: 800; }
.panel-dark { background: var(--surface); border-color: var(--line); color: #FFFFFF; padding: 28px; }
.panel-dark h2 { font-size: 22px; }
.panel-title { display: flex; align-items: center; gap: 12px; }
.panel-title-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.panel-dark .panel-title-icon { background: var(--ink-2); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 20px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-size: 17px; font-weight: 700; }
.spec-tiles { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.spec-tiles div { padding: 16px; border-radius: 12px; background: var(--ground); display: flex; flex-direction: column; gap: 6px; }
.spec-tiles dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.spec-tiles dd { margin: 0; font-size: 18px; font-weight: 800; }
.panel-dark .spec-tiles div { background: var(--ink-2); }
.panel-dark .spec-tiles dt { color: var(--on-ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--ground); font-size: 14px; font-weight: 600; }
.panel-dark .pill-list span { background: var(--ink-3); }
.grabber { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }
.description { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.description.clamped { max-height: 13em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.text-btn { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 15px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.feature-groups { border-top: 1px solid var(--line); }
.feature-group { border-bottom: 1px solid var(--line); }
.feature-group summary { display: flex; align-items: center; gap: 10px; padding: 14px 2px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 800; }
.feature-group summary::-webkit-details-marker { display: none; }
.feature-group summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.feature-group-name { flex: 1; min-width: 0; }
.feature-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--raise); border-radius: 999px; padding: 2px 9px; }
.feature-group summary .icon { color: var(--muted); transition: transform .2s; }
.feature-group[open] summary .icon { transform: rotate(180deg); }
.feature-group ul { margin: 0; padding: 0 2px 16px; list-style: none; columns: 2 260px; column-gap: 28px; font-size: 15px; color: var(--text-2); }
.feature-group li { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; break-inside: avoid; overflow-wrap: anywhere; }
.feature-group li svg { margin-top: 3px; }

.buy-panel {
  min-width: 0; display: flex; flex-direction: column; gap: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
}
.buy-panel h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; }
.buy-panel .derivative { margin: 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.buy-price { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-block: 1px solid var(--line-2); }
.buy-price strong { font-size: 38px; font-weight: 800; font-variant-numeric: lining-nums tabular-nums; line-height: 1.05; }
.buy-price span { font-size: 14px; color: var(--muted); }
.buy-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.px-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--raise); border: 1px solid var(--field); text-decoration: none; }
.px-link span { display: flex; flex-direction: column; gap: 2px; }
.px-link small { font-size: 13px; color: var(--text-2); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 10px; border-radius: 999px; background: var(--accent-tint); font-size: 12px; font-weight: 700; }
.tag-ink { background: var(--raise); color: #FFFFFF; }

/* ---------- Content pages ---------- */
.page-hero { background: var(--surface); color: #FFFFFF; border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: 56px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 54px); }
.page-hero p { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--on-ink); }
.page-hero .eyebrow { color: var(--on-ink); }
.two-col { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.two-col > * { flex: 1 1 380px; min-width: 0; }
.prose { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.prose h2 { color: var(--text); font-size: 24px; margin: 1.6em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.info-card h3 { margin: 0; font-size: 18px; }
.info-card p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { margin: 0; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.success-box { background: var(--ok-bg); color: var(--ok); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.success-box h2 { margin: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; text-decoration: none; }

.silhouette { display: block; }

/* ---------- Dealer About page (templates/site/about.html) ---------- */
.about-hero { background: var(--surface); color: #FFFFFF; border-bottom: 1px solid var(--line); }
/* Brick-wall section: the page sets --brick to a tiling brick photo; text sits on a white card over it */
.brick-wall {
  background-color: #2B1D18;
  background-image: linear-gradient(rgba(14, 16, 15, 0.35), rgba(14, 16, 15, 0.35)), var(--brick);
  background-size: auto, 512px;
}
.brick-card { padding: 28px; border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6); }
.brick-card > :last-child { margin-bottom: 0; }
.brick-wall figure figcaption { color: #FFFFFF; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
@media (max-width: 991px) {
  .section.brick-wall { padding-block: 24px; background-size: auto, 384px; }
  .brick-card { padding: 20px; }
}
.about-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding-block: 48px; }
.about-hero-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.about-hero-copy .eyebrow { color: var(--on-ink); }
.about-hero-copy h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; }
.about-hero-copy p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--on-ink); max-width: 520px; }
.about-hero-copy .about-tagline { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; }
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.about-btn-light { background: #FFFFFF; color: var(--ink); }
.about-btn-light:hover { background: var(--ground); color: var(--ink); }
.about-hero-media { flex: 1.4 1 480px; min-width: 0; margin: 0; border-radius: 20px; overflow: hidden; background: var(--ink-2); }
.about-hero-media img { width: 100%; height: auto; aspect-ratio: 1360 / 523; object-fit: cover; }
.about-story { align-items: center; }
.about-photo, .about-wide { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.about-photo img, .about-wide img { width: 100%; height: auto; border-radius: 18px; object-fit: cover; }
.about-photo img { aspect-ratio: 16 / 9; }
.about-wide img { aspect-ratio: 16 / 9; max-height: 620px; object-position: center 60%; }
.about-photo figcaption, .about-wide figcaption { font-size: 14px; color: var(--muted); }
.about-promises .service { text-decoration: none; }

/* ---------- Book a test drive (popup on the vehicle page) ---------- */
.td-dialog {
  width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: none;
  border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}
.td-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.td-dialog form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
body.td-open { overflow: hidden; }
.td-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.td-head h2 { margin: 0; font-size: 24px; }
.td-car { margin: 4px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.td-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  border: none; border-radius: 999px; background: var(--raise); color: var(--text); cursor: pointer; }
.td-close:hover { background: var(--line-2); }
.td-steps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: td; }
.td-steps li { flex: 1; padding-top: 8px; border-top: 4px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.td-steps li.on { border-color: var(--accent); color: var(--text); }
.td-step { display: flex; flex-direction: column; gap: 12px; }
.td-step[hidden] { display: none; }
.td-label { margin: 0; font-size: 14px; font-weight: 800; }
.td-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.td-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; min-height: 44px; }
.td-chip {
  padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center;
}
.td-chip:hover { border-color: var(--accent); }
.td-chip[aria-checked="true"] { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.td-day { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 64px; flex: none; padding: 8px 10px; }
.td-day small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.td-day strong { font-size: 20px; line-height: 1.1; }
.td-error { margin: 0; color: #B91C1C; font-size: 14px; font-weight: 700; }
.td-chosen { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--ground); font-weight: 800; }
.td-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.td-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.td-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.td-foot .muted { font-size: 13px; }
.td-small { margin: 0; font-size: 13px; }
@media (max-width: 600px) {
  /* a sheet from the bottom on phones */
  .td-dialog { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .td-dialog form { padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .td-foot .btn-lg { flex: 1; }
}

/* ---------- Customer reviews (added in the admin) ---------- */
.review-grid { columns: 3 320px; column-gap: 20px; }
.review-card {
  break-inside: avoid; margin: 0 0 20px; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.review-photo { margin: 0; background: var(--ph); }
.review-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.review-body { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.review-stars { font-size: 20px; letter-spacing: 2px; line-height: 1; }
.review-stars .on { color: #E8A317; }
.review-stars .off { color: var(--line); }
.review-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.review-text p { margin: 0 0 0.8em; }
.review-text p:last-child { margin-bottom: 0; }
.review-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.review-meta strong { color: var(--text); font-size: 15px; }
.review-sub { font-size: 13px; }

/* =========================================================================
   Phone & tablet layout tweaks (under 992px — same range as the bottom dock).
   Kept at the end of the file so they override the base rules above.
   ========================================================================= */
@media (max-width: 991px) {
  /* the green top bar's call / WhatsApp / hours live in the dock and footer */
  .utility { display: none; }
  /* home hero: no top/bottom padding */
  .hero { padding-block: 0; }
  /* tighter section spacing */
  .section { padding-block: 12px; }
  .arrivals { gap: 32px; }
  /* stock pages: VAT switch + Sort share one row, a little smaller */
  .results-bar { gap: 8px; }
  .results-tools { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .vat-switch { flex: none; padding: 2px; }
  .vat-switch a { min-height: 36px; padding: 0 10px; font-size: 12px; }
  .sort-field { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 6px; font-size: 13px; }
  .sort-field select { min-width: 0; max-width: 100%; min-height: 40px; padding: 0 6px; font-size: 13px; }
}

/* reCAPTCHA v3: the badge sat on top of the chat button. Google allows hiding it
   when the forms carry its notice instead (templates/_recaptcha_note.html). */
.grecaptcha-badge { visibility: hidden; }

/* =========================================================================
   Night Showroom (Template 20): the parts Template 19 does not have
   ========================================================================= */

/* ---------- Type: wide display face for headings ---------- */
.display, .hero-copy h1, .section-head h2, .page-title h1, .page-hero h1, .about-hero-copy h1,
.spotlight-copy h2, .sell-strip-copy h2, .visit-info h2, .t20-hero h1 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em;
}
.section-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.page-title h1 { font-size: clamp(24px, 3.2vw, 38px); }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 44px); }
.visit-info h2, .sell-strip-copy h2 { font-size: clamp(22px, 2.4vw, 30px); }
.spotlight-copy h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; }
.about-hero-copy h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.12; }
.eyebrow { color: var(--text-2); letter-spacing: 0.18em; }
.section-white { background: #121215; }

/* ---------- Header extras ---------- */
.t20-call { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.t20-call:hover { color: #FFFFFF; text-decoration: underline; }
.header-actions .saved-link { border: 1px solid var(--field); background: transparent; }

/* ---------- Home hero: full-bleed photo, copy and search over it ---------- */
.t20-hero { position: relative; overflow: hidden; background: var(--ph); border-bottom: 1px solid var(--line); }
.t20-hero-media { position: absolute; inset: 0; margin: 0; }
/* cars sit in the lower half of most photos: crop more off the top than the bottom */
.t20-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }
.t20-hero-media .hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.t20-hero-media .hero-slide.is-active { opacity: 1; }
.t20-hero-media .silhouette { position: absolute; right: 5%; bottom: 14%; width: min(560px, 46%); color: #34343C; }
/* a dark scrim so the headline and search stay readable on any photo */
.t20-hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* dark behind the copy on the left, clearing towards the right so the car shows */
  background: linear-gradient(90deg, rgba(14, 14, 17, 0.94) 0%, rgba(14, 14, 17, 0.78) 38%, rgba(14, 14, 17, 0.18) 72%, rgba(14, 14, 17, 0.08) 100%),
              linear-gradient(0deg, rgba(14, 14, 17, 0.9) 0%, rgba(14, 14, 17, 0) 30%);
}
.t20-hero-inner { position: relative; z-index: 1; padding-block: clamp(44px, 8vw, 104px) clamp(36px, 5vw, 64px); display: flex; flex-direction: column; gap: 24px; }
.t20-hero h1 { margin: 0; font-size: clamp(28px, 4.6vw, 58px); line-height: 1.12; max-width: 880px; }
.t20-hero .lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.t20-hero .search-card { max-width: 640px; background: rgba(23, 23, 27, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.t20-hero .hero-tag { align-self: flex-start; }
.t20-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.t20-chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--field); background: rgba(14, 14, 17, 0.55); color: var(--text-2);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.t20-chips a:hover { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
@media (max-width: 991px) {
  /* phones and tablets: the photo is a clear band above the headline, fading into the page */
  .t20-hero-media { position: relative; inset: auto; height: clamp(220px, 52vw, 380px); }
  .t20-hero-media::after { background: linear-gradient(0deg, rgba(14, 14, 17, 1) 0%, rgba(14, 14, 17, 0) 45%); }
  .t20-hero-inner { padding-block: 0 32px; margin-top: -28px; }
}

/* ---------- Sell strip and reasons on the dark page ---------- */
.sell-strip { background: var(--surface); border: 1px solid var(--line); }
/* a number plate inside a form field keeps its yellow face (.field input would paint it dark) */
.field .plate input { min-height: 0; border: 0; border-radius: 0; background: var(--plate); color: #111111; font-size: 20px; }
.service-icon { background: var(--accent-tint); }
.t20-reasons-head { margin-bottom: 20px; }

/* ---------- Reviews strip on the home page ---------- */
.review-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review-row .review-card { margin: 0; }

/* ---------- Footer ---------- */
.t20-footer { background: #0A0A0C; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.t20-footer a { color: var(--text-2); text-decoration: none; }
.t20-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.t20-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; padding-block: 56px 36px; }
.t20-footer h2 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.t20-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.t20-footer-brand img { max-height: 84px; width: auto; max-width: 260px; filter: var(--logo-filter); }
.t20-footer-brand .brand-name { color: #FFFFFF; }
.t20-footer-brand address { margin: 14px 0 0; font-style: normal; line-height: 1.6; color: var(--muted); }
.t20-hours-mini { display: flex; flex-direction: column; gap: 6px; }
.t20-hours-mini div { display: flex; justify-content: space-between; gap: 12px; }
.t20-hours-mini .today { color: #FFFFFF; font-weight: 700; }
.t20-social { display: flex; gap: 10px; margin-top: 16px; }
.t20-social a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--field); display: inline-flex; align-items: center; justify-content: center; }
.t20-social a:hover { border-color: var(--accent); background: var(--accent); color: #FFFFFF; text-decoration: none; }
.t20-partners { border-top: 1px solid var(--line-2); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: center; }
.t20-partners img { max-height: 40px; width: auto; filter: grayscale(1) brightness(1.7); opacity: 0.8; }
.t20-makes { border-top: 1px solid var(--line-2); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.t20-makes strong { color: var(--muted); font-weight: 600; margin-right: 6px; }
.t20-disclosure { border-top: 1px solid var(--line-2); padding-block: 20px; color: var(--on-ink-2); font-size: 12px; line-height: 1.6; }
.t20-disclosure p { margin: 0 0 6px; max-width: 980px; }
.t20-footer-legal { border-top: 1px solid var(--line-2); padding-block: 20px 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 12px; color: var(--on-ink-2); }
.t20-footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Error pages (403 / 404 / 500) ---------- */
.t20-error { padding-block: clamp(64px, 12vw, 140px); }
.t20-error p { max-width: 560px; }
.t20-error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
