/* =========================================================================
   Template 19 — DealerGate dealer website
   Cars · Vans · Campervans & Motorhomes
   ========================================================================= */

:root {
  --ink: #02602e;                  /* brand dark green */
  --ink-2: #014d24;                /* panels on ink */
  --ink-3: #003f1d;                /* chips / hover on ink */
  --ink-hover: #014d24;
  --ground: #F3F2EE;
  --surface: #FFFFFF;
  --line: #DCDDD8;
  --line-2: #ECEDE8;
  --field: #C9CBC5;
  --text: #10201B;
  --text-2: #3F4843;
  --muted: #59615C;
  --on-ink: #CFE3D6;
  --on-ink-2: #9DC4AC;
  --ph: #E4E6E0;
  --sil: #8A918C;
  --plate: #F5C518;
  --plate-gb: #1F4FA8;
  --ok: #166534;
  --ok-bg: #DCFCE7;
  --err: #991B1B;
  --err-bg: #FEE2E2;
  --accent: #C2410C;               /* overridden from SITE_ACCENT in base.html */
  --accent-tint: color-mix(in srgb, var(--accent) 10%, #FFFFFF);
  --accent-tint-2: color-mix(in srgb, var(--accent) 22%, #FFFFFF);
  /* names older shared pages (legal, errors) expect */
  --primary: var(--accent);
  --bg-light: var(--ground);
  --font: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(16, 32, 27, 0.35);
}

*, *::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;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: #3A4A44; }
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(--ink); color: #FFFFFF; }
.btn-ink:hover { color: #FFFFFF; background: var(--ink-hover); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-soft { background: var(--ground); color: var(--ink); }
.btn-soft:hover { background: var(--line-2); }
.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: var(--ink);
  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(--surface); 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: var(--surface); 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: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { max-height: 52px; width: auto; max-width: 210px; object-fit: contain; }
.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: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: var(--surface); 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(--ink); border-color: var(--ink); 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: #DFE2DC; 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: #FFFFFF; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none;
}
.hero-tag:hover { color: var(--ink); background: var(--ground); }
.home-search { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Full-screen hero (the dealer's own photos) ---------- */
.hero-full {
  /* the screen below the top bar + header; t19.js measures them into --hero-top */
  position: relative; overflow: hidden; background: var(--ink); min-height: 560px;
  height: calc(100vh - var(--hero-top, 132px)); height: calc(100svh - var(--hero-top, 132px));
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides::after {
  /* shade behind the headline (left) and under the search card (bottom) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 26, 13, 0.72) 0%, rgba(1, 26, 13, 0.42) 32%, rgba(1, 26, 13, 0) 60%),
    linear-gradient(0deg, rgba(1, 26, 13, 0.5) 0%, rgba(1, 26, 13, 0) 30%);
}
.hero-slide {
  /* the vehicles sit in the lower half of the photos, so crop mostly from the sky */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-full-inner { position: relative; z-index: 1; padding-block: clamp(32px, 7vh, 80px); }
.hero-full .hero-copy-text { max-width: 600px; color: #FFFFFF; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
.hero-full .eyebrow { color: #FFFFFF; }
.hero-full h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.hero-full p.lead { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
/* the search card overlaps the bottom of the photos */
.hero-search { position: relative; z-index: 2; margin-top: -96px; padding-bottom: 48px; }
@media (min-width: 992px) {
  /* one wide card: type tabs over make / model / price + search, reg finder at the side */
  .hero-search .search-card { flex-direction: row; align-items: stretch; gap: 26px; padding: 22px 26px; }
  .hero-search .home-search {
    flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 14px;
  }
  .hero-search .type-tabs { grid-column: 1 / -1; }
  .hero-search .field-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-search .search-actions .btn { flex: none; }
  .hero-search .reg-finder {
    flex: none; width: 230px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px;
    padding: 0 0 0 26px; border-top: 0; border-left: 1px solid var(--line-2);
  }
}

/* ---------- 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: #ECEEE9; border-radius: 12px; color: #6E7671; 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 #B9BCB5; border-radius: 999px; background: var(--ground); font-size: 13px; font-weight: 600; text-decoration: none; }
.tile-links a:hover { background: var(--line-2); border-color: var(--ink); }
.tile-dark { background: var(--ink); border-color: var(--ink); 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: var(--ink-3); border-color: rgba(255, 255, 255, 0.35); }
.tile-dark .tile-links a:hover { background: #00321a; color: #FFFFFF; border-color: #FFFFFF; }
/* Podium's fills for the Cars and Vans tiles (Campervans keep tile-dark). The muted
   "in stock" grey is too faint on green, so it takes the body text colour there. */
.tile-car { background: #99D49D; border-color: transparent; }
.tile-van { background: #009E0B96; border-color: transparent; }
.tile-car .tile-title span, .tile-van .tile-title span { color: var(--text); }
/* Same dark picture panel as the Campervans tile */
.tile-car .tile-art, .tile-van .tile-art { background: var(--ink-2); color: var(--on-ink-2); }

/* ---------- 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(--line); background: var(--surface); color: var(--ink); 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(--ink); color: #FFFFFF; border-color: var(--ink); }
.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); }
.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: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 700; }
/* 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: #FFFFFF; color: var(--ink); 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(--accent-tint); color: var(--text); font-size: 12px; font-weight: 700; }
.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(--ink-2); display: flex; align-items: center; justify-content: center; color: #4E8A66;
}
.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: #FFFFFF;
  }
  .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(--surface); }
.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(--ink); 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(--ink);
  border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; text-decoration: none;
}
.active-chips a:hover { background: var(--ink); 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(--ink); border-color: var(--ink); 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(255, 255, 255, 0.94); 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(255, 255, 255, 0.92); color: var(--ink); 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: #FFFFFF; color: var(--ink); }
.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(--ink); }
.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(--ink); border-color: var(--ink); 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(--ground); }
.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(--line-2); 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(--accent-tint); 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(--ink); color: #FFFFFF; }

/* ---------- Content pages ---------- */
.page-hero { background: var(--ink); color: #FFFFFF; }
.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(--ink); color: #FFFFFF; }
/* 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(10, 20, 15, 0.55); }
.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(--ground); color: var(--ink); 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(--ink); color: var(--ink); }
.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(--ink); }
.td-chip[aria-checked="true"] { border-color: var(--ink); background: var(--ink); 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(--ink); }
.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; }
  /* full-screen hero: the photos as a band in their own 4:3 shape, headline and search below */
  .hero-full { height: auto; min-height: 0; overflow: visible; background: none; }
  .hero-slides { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
  .hero-slides::after { display: none; }
  .hero-slide { object-position: 50% 50%; }
  .hero-full-inner { padding-block: 22px 0; }
  .hero-full .hero-copy-text { color: var(--text); text-shadow: none; }
  .hero-full .eyebrow { color: var(--muted); }
  .hero-full p.lead { color: var(--text-2); }
  .hero-search { margin-top: 0; padding-block: 18px 32px; }
  /* 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; }
