/* N&N Autohaus — preview site
   Layout: a full-bleed "look around the lot" hero, then a dark showroom of cars;
   each listing opens as a window-sticker spec sheet. */

/* ---------- Tokens (dark-first; light variant below) ---------- */
:root {
  color-scheme: dark;
  --bg: #0d0e10;            /* signage black */
  --bg-raised: #131518;
  --surface: #181a1e;
  --surface-2: #20232a;
  --line: rgba(232, 226, 214, 0.11);
  --line-strong: rgba(232, 226, 214, 0.22);
  --fg: #ece7dd;            /* sign-lettering ivory */
  --fg-muted: #a7a196;      /* siding greige */
  --fg-faint: #8e897f;
  --accent: #c9a36a;        /* brass sconce light */
  --accent-strong: #ddbb82;
  --accent-text: #c9a36a;
  --on-accent: #17120a;
  --ok: #8cc09a;
  --danger: #ec9a8d;
  --sticker-bg: #f1ede4;    /* window-sticker paper */
  --sticker-fg: #17181b;
  --sticker-muted: #57534b;
  --sticker-line: rgba(23, 24, 27, 0.16);
  --backdrop: rgba(5, 6, 8, 0.62);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;

  /* The hero always sits on the photo, so its colors don't change with the theme */
  --hero-bg: #0b0c0e;
  --hero-fg: #f5f1e9;
  --hero-fg-dim: rgba(245, 241, 233, 0.84);
  --hero-accent: #c9a36a;
  --glass: rgba(14, 15, 18, 0.5);
  --glass-solid: rgba(14, 15, 18, 0.76);
  --glass-line: rgba(245, 241, 233, 0.24);

  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.4rem;
  --fs-xl: clamp(1.95rem, 3.3vw, 2.85rem);
  --fs-hero: clamp(2.45rem, 6vw, 5.3rem);

  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --tap: 44px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #e9e7e2;
    --bg-raised: #f2f1ed;
    --surface: #fbfaf8;
    --surface-2: #f0eee9;
    --line: rgba(22, 23, 26, 0.11);
    --line-strong: rgba(22, 23, 26, 0.22);
    --fg: #16171a;
    --fg-muted: #57544d;
    --fg-faint: #6a665e;
    --accent: #8a6830;
    --accent-strong: #75571f;
    --accent-text: #75571f;
    --on-accent: #fffaf0;
    --ok: #2f7a45;
    --danger: #a8402f;
    --sticker-bg: #ffffff;
    --sticker-fg: #16171a;
    --sticker-muted: #57544d;
    --sticker-line: rgba(22, 23, 26, 0.14);
    --backdrop: rgba(20, 21, 24, 0.45);
    --shadow: 0 30px 70px rgba(30, 28, 22, 0.18);
    --card-shadow: 0 1px 2px rgba(30, 28, 22, 0.05);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e9e7e2;
  --bg-raised: #f2f1ed;
  --surface: #fbfaf8;
  --surface-2: #f0eee9;
  --line: rgba(22, 23, 26, 0.11);
  --line-strong: rgba(22, 23, 26, 0.22);
  --fg: #16171a;
  --fg-muted: #57544d;
  --fg-faint: #6a665e;
  --accent: #8a6830;
  --accent-strong: #75571f;
  --accent-text: #75571f;
  --on-accent: #fffaf0;
  --ok: #2f7a45;
  --danger: #a8402f;
  --sticker-bg: #ffffff;
  --sticker-fg: #16171a;
  --sticker-muted: #57544d;
  --sticker-line: rgba(22, 23, 26, 0.14);
  --backdrop: rgba(20, 21, 24, 0.45);
  --shadow: 0 30px 70px rgba(30, 28, 22, 0.18);
  --card-shadow: 0 1px 2px rgba(30, 28, 22, 0.05);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
body:has(.site-header[data-over-hero="true"])::before { background: var(--hero-bg); }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, label, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--hero-fg); }
.eyebrow-light::before { display: none; }

.lead { font-size: var(--fs-md); color: var(--fg-muted); max-width: 54ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn:active { transform: scale(0.98); }
.btn-sm { --btn-h: var(--tap); padding: 0 18px; }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn-brass { background: var(--accent); color: var(--on-accent); }
.btn-outline { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-glass {
  background: var(--glass); color: var(--hero-fg); border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-glass svg circle { stroke-width: 1.4; }
.btn-glass svg path { fill: currentColor; stroke: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .btn-brass:hover { background: var(--accent-strong); }
  .btn-outline:hover { border-color: var(--fg); }
  .btn-glass:hover { background: rgba(14, 15, 18, 0.68); border-color: rgba(245, 241, 233, 0.42); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--hero-fg);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
/* over the photo the header has no background, so its text carries a soft shadow against bright sky */
.site-header[data-over-hero="true"] .nav a,
.site-header[data-over-hero="true"] .brand { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45), 0 0 2px rgba(0, 0, 0, 0.3); }
.site-header[data-over-hero="false"] {
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: end; column-gap: 10px; text-decoration: none; color: inherit; line-height: 1; }
.brand-roof { grid-column: 1 / -1; width: 86px; height: 13px; fill: none; stroke: var(--hero-accent); stroke-width: 2.2; stroke-linecap: round; margin-bottom: 2px; }
.brand-mark { font-family: var(--font-display); font-size: 1.62rem; letter-spacing: 0.02em; }
.brand-sub { font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; padding-bottom: 4px; opacity: 0.9; }
@media (max-width: 374px) { .site-header .brand-sub { display: none; } }

.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.02em;
  padding: 10px 0; opacity: 0.9;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav a:hover { opacity: 1; }
  .nav a:hover::after { transform: scaleX(1); }
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.saved-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  background: transparent; cursor: pointer;
}
.saved-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.saved-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-text); }
.site-header[data-over-hero="true"] .saved-btn[aria-pressed="true"] { color: var(--hero-accent); }
.saved-btn.has-saved svg { fill: var(--accent); stroke: var(--accent); }
.saved-count { font-family: var(--font-mono); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

.menu-btn { display: none; width: var(--tap); height: var(--tap); border: 0; background: transparent; cursor: pointer; place-items: center; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 22px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -7px; }
.menu-lines::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: 2.1rem; text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu-foot { color: var(--fg-muted); font-size: var(--fs-sm); display: grid; gap: 4px; }
.mm-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: var(--fs-xs); color: var(--accent-text); }
body.menu-open .site-header { color: var(--fg); background: var(--bg); border-bottom-color: var(--line); }
body.menu-open { overflow: hidden; }
@media (max-height: 520px) {
  .mobile-menu nav a { font-size: 1.5rem; padding: 8px 0; }
}

/* ---------- Hero / look-around ---------- */
.hero {
  --accent: var(--hero-accent);
  --accent-strong: #ddbb82;
  --on-accent: #17120a;
  position: relative;
  height: calc(100vh - env(safe-area-inset-top, 0px));
  height: calc(100svh - env(safe-area-inset-top, 0px));
  min-height: 600px;
  max-height: 1080px;
  background: var(--hero-bg);
  color: var(--hero-fg);
  overflow: hidden;
  isolation: isolate;
}
.hero-stage {
  position: absolute; inset: 0;
  touch-action: pan-y pinch-zoom;
  cursor: crosshair;
  user-select: none; -webkit-user-select: none;
  overflow: hidden;
}
.hero.is-dragging .hero-stage { cursor: grabbing; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero.is-ready.is-gl .hero-canvas { opacity: 1; }
/* Without WebGL each view is a plain picture moved with transforms; app.js sets its opacity */
.hero-fallback {
  position: absolute; left: 0; top: 0;
  width: auto; height: auto; max-width: none;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.hero.is-gl .hero-fallback { display: none; }
.hero-glow { mix-blend-mode: screen; pointer-events: none; } /* the cars' rim light, laid over the photo */
.hero.is-loading, .hero.is-loading .hero-stage { cursor: progress; }
.hero.is-missing .hero-stage {
  background:
    radial-gradient(80% 70% at 70% 30%, rgba(201, 163, 106, 0.18), rgba(201, 163, 106, 0) 70%),
    linear-gradient(180deg, #16181c, #0b0c0e);
}
.hero:not(.is-ready) .hotspots { display: none; }
body.nick-open { overflow: hidden; } /* Nick full-screen on a phone */

/* Shade only where text sits (header strip, bottom-left copy) so the photo keeps its own color */
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.62) 0%, rgba(8, 9, 11, 0) 22%),
    linear-gradient(0deg, rgba(8, 9, 11, 0.6) 0%, rgba(8, 9, 11, 0.18) 22%, rgba(8, 9, 11, 0) 38%),
    radial-gradient(75% 85% at 0% 100%, rgba(8, 9, 11, 0.72) 0%, rgba(8, 9, 11, 0.38) 45%, rgba(8, 9, 11, 0) 75%);
  transition: opacity 0.6s var(--ease);
}
.hero-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 60%) var(--my, 40%), rgba(255, 229, 186, 0.16), rgba(255, 229, 186, 0) 60%);
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.hero.is-pointer .hero-sheen { opacity: 1; }

.hero-content {
  position: absolute; left: 0; right: 0; z-index: 3;
  bottom: clamp(36px, 8vh, 96px);
  pointer-events: none;
  display: grid; gap: 22px; justify-items: start;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s 0s;
}
.hero-ctas { pointer-events: auto; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.005em;
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero-lead { max-width: 46ch; font-size: var(--fs-md); color: var(--hero-fg-dim); }
.hero-lead, .hero .eyebrow-light { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.35); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.park-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 0 4px; margin-left: 4px;
  border: 0; background: none; cursor: pointer;
  color: var(--hero-fg); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em;
  text-decoration: underline; text-decoration-color: rgba(245, 241, 233, 0.45); text-underline-offset: 5px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
@media (hover: hover) { .park-link:hover { text-decoration-color: var(--hero-accent); } }
/* Little parking-sign "P", used in the hero, the side-lot card and the Visit section */
.p-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; line-height: 1; letter-spacing: 0;
  text-shadow: none;
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--hero-accent); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(201, 163, 106, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(201, 163, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 163, 106, 0); } }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.air-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero.is-touring .hero-content,
.hero.is-side .hero-content,
.hero.is-aerial .hero-content,
.hero.is-whooshing .hero-content {
  opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s;
}
.hero.is-whooshing .hero-content { transition-duration: 0.25s, 0.25s, 0s; transition-delay: 0s, 0s, 0.25s; }
.hero.is-touring .hero-shade { opacity: 0.55; }
.hero.is-side .hero-shade, .hero.is-aerial .hero-shade { opacity: 0.8; } /* keeps the header readable over the bright treetops */

.look-hint {
  position: absolute; z-index: 3;
  right: max(32px, env(safe-area-inset-right, 0px));
  bottom: clamp(36px, 8vh, 96px);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.look-hint.is-gone { opacity: 0; transform: translateY(8px); }
.hero.is-side .look-hint, .hero.is-aerial .look-hint, .hero.is-whooshing .look-hint { opacity: 0; }
.look-icon { position: relative; width: 34px; height: 18px; border-radius: 9px; border: 1px solid var(--glass-line); }
.look-icon::after {
  content: ""; position: absolute; top: 50%; left: 4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--hero-accent); animation: look 2.6s var(--ease) infinite;
}
@keyframes look { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(16px); } }

/* Hotspots */
.hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 0.5s var(--ease); }
.hero.is-side .hotspots, .hero.is-aerial .hotspots, .hero.is-whooshing .hotspots { opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s; }
.hotspot {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border: 0; padding: 0; border-radius: 50%; background: transparent;
  cursor: pointer; pointer-events: auto;
  will-change: transform;
  transition: opacity 0.4s var(--ease);
}
.hotspot::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1.5px solid rgba(245, 241, 233, 0.92);
  background: rgba(14, 15, 18, 0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), border-color 0.35s, background-color 0.35s;
}
.hotspot::after {
  content: ""; position: absolute; inset: 20px; border-radius: 50%; background: var(--hero-accent);
  animation: ping 2.8s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(201, 163, 106, 0.55); } 75%, 100% { box-shadow: 0 0 0 18px rgba(201, 163, 106, 0); } }
.hotspot.is-active::before { transform: scale(1.18); border-color: var(--hero-accent); background: rgba(14, 15, 18, 0.6); }
.hotspot-label {
  position: absolute; left: 52px; top: 50%; transform: translate(-6px, -50%);
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--glass-solid); border: 1px solid var(--glass-line); color: var(--hero-fg);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em;
  opacity: 0; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); pointer-events: none;
}
.hotspot:focus-visible .hotspot-label { opacity: 1; transform: translate(0, -50%); }
.hotspot.is-flip .hotspot-label { left: auto; right: 52px; transform: translate(6px, -50%); }
.hotspot.is-flip:focus-visible .hotspot-label { transform: translate(0, -50%); }
@media (hover: hover) {
  .hotspot:hover::before { transform: scale(1.18); border-color: var(--hero-accent); background: rgba(14, 15, 18, 0.6); }
  .hotspot:hover .hotspot-label { opacity: 1; transform: translate(0, -50%); }
  .hotspot.is-flip:hover .hotspot-label { transform: translate(0, -50%); }
}
.hero.is-touring .hotspot:not(.is-active) { opacity: 0.5; }
/* The parking sign at the lot entrance: a P on a post, placed where the post meets the ground,
   with its label always showing. Reuses the side lot's pin pieces (.pin-ring, .pin-stem, .pin-badge). */
.hotspot.is-park { width: 48px; height: 84px; margin: -84px 0 0 -24px; border-radius: 12px; }
.hotspot.is-park::before, .hotspot.is-park::after { display: none; }
.hotspot.is-park .pin-ring { left: 9px; top: auto; bottom: -6px; }
.hotspot.is-park .pin-stem { left: 23px; height: 42px; }
.hotspot.is-park .pin-badge { left: 4px; bottom: 40px; animation: park-bob 2.6s ease-in-out infinite; transition: scale 0.3s var(--ease); }
@keyframes park-bob { 50% { translate: 0 -4px; } }
.hotspot.is-park .hotspot-label { left: 52px; top: 9px; transform: none; opacity: 1; pointer-events: inherit; }
.hotspot.is-park.is-flip .hotspot-label { left: auto; right: 52px; transform: none; }
.hotspot.is-park .pin-ring, .hotspot.is-park .pin-stem { transition: opacity 0.3s var(--ease); }
/* Lot off to the right: the sign rides the right edge, pointing the way */
.hotspot.is-park.is-docked .pin-ring, .hotspot.is-park.is-docked .pin-stem { opacity: 0; }
.hotspot.is-park.is-docked .hotspot-label::after { content: "\2192"; margin-left: 6px; }
.hotspot.is-park.is-active .pin-badge { scale: 1.1; }
@media (hover: hover) { .hotspot.is-park:hover .pin-badge { scale: 1.1; } }

.hotspot-card, .park-card {
  position: absolute; z-index: 4;
  bottom: clamp(36px, 8vh, 96px);
  width: min(380px, calc(100% - 32px));
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: rgba(12, 13, 16, 0.74);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--hero-fg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: grid; gap: 12px;
  animation: card-in 0.5s var(--ease);
}
.hotspot-card { right: max(32px, env(safe-area-inset-right, 0px)); }
.park-card { left: max(32px, env(safe-area-inset-left, 0px), calc((100% - 1320px) / 2 + 32px)); width: min(400px, calc(100% - 32px)); }
.pk-step { display: flex; align-items: center; gap: 10px; }
.park-card .hs-title:focus { outline: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hs-live { display: grid; gap: 10px; }
.hs-step { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hero-accent); }
.hs-title { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.hs-body { color: var(--hero-fg-dim); font-size: var(--fs-sm); }
.hs-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.hotspot-card > *, .park-card > * { min-width: 0; }
.hs-close { margin-left: auto; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--glass-line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.hs-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* Side lot: the drive-in route and the parking sign, placed from app.js on top of the photo */
.side-marks {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}
.hero.is-side:not(.is-whooshing) .side-marks { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease) 0.1s, visibility 0s; }
.park-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-casing { fill: none; stroke: rgba(10, 11, 13, 0.5); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.route-line { fill: none; stroke: #e6c38a; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14 11; animation: route-march 0.9s linear infinite; }
.route-head { fill: #e6c38a; stroke: rgba(10, 11, 13, 0.5); stroke-width: 3; stroke-linejoin: round; paint-order: stroke; }
@keyframes route-march { to { stroke-dashoffset: -25; } }
.spot-pin { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity 0.3s var(--ease); }
.spot-pin.is-out { opacity: 0; }
.pin-ring {
  position: absolute; left: -15px; top: -6px; width: 30px; height: 12px; border-radius: 50%;
  background: rgba(230, 195, 138, 0.55); box-shadow: 0 0 0 2px rgba(10, 11, 13, 0.35);
}
.pin-ring::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #e6c38a; animation: pin-pulse 2.2s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(0.7); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.pin-stem { position: absolute; left: -1px; bottom: 0; width: 2px; height: 36px; border-radius: 2px; background: linear-gradient(#f5f1e9, rgba(245, 241, 233, 0.5)); }
.pin-badge {
  position: absolute; left: -20px; bottom: 34px; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--hero-accent); color: #17120a;
  font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px rgba(245, 241, 233, 0.95), 0 10px 26px rgba(0, 0, 0, 0.4);
}
.pin-label {
  position: absolute; left: 30px; bottom: 42px;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--glass-solid); border: 1px solid var(--glass-line); color: var(--hero-fg);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em;
}
.spot-pin.is-flip .pin-label { left: auto; right: 30px; }
.spot-pin.is-small .pin-ring { left: -9px; top: -4px; width: 18px; height: 8px; }
.spot-pin.is-small .pin-stem { height: 22px; }
.spot-pin.is-small .pin-badge { left: -7px; bottom: 21px; width: 14px; height: 14px; border-radius: 50%; }
.spot-pin.is-small .pin-label { left: 16px; bottom: 15px; }
.spot-pin.is-small.is-flip .pin-label { left: auto; right: 16px; }
.hero.is-side:not(.is-whooshing) .side-marks .pin-badge,
.hero.is-side:not(.is-whooshing) .side-marks .pin-label { animation: pin-drop 0.7s var(--ease) 0.35s both; }
.hero.is-side:not(.is-whooshing) #pin-door .pin-badge,
.hero.is-side:not(.is-whooshing) #pin-door .pin-label { animation-delay: 0.6s; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

/* Side lot: the way back. A sign planted where the drive leads round to the front of the building,
   anchored like the parking sign (app.js puts the post's foot on the ground point); it rides the
   left edge, still pointing left, when that spot is out of view. */
.scene-back {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 48px; height: 84px; margin: -84px 0 0 -24px; padding: 0;
  border: 0; border-radius: 12px; background: none; color: var(--hero-fg);
  font: inherit; text-align: left; cursor: pointer;
  will-change: transform;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}
.hero.is-side:not(.is-whooshing) #pk-back,
.hero.is-aerial:not(.is-whooshing) #air-back { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease) 0.45s, visibility 0s; }
.scene-back .pin-ring { left: 9px; top: auto; bottom: -6px; }
.scene-back .pin-stem { left: 23px; height: 42px; }
.scene-back .pin-badge { left: 4px; bottom: 40px; border-radius: 50%; transition: scale 0.3s var(--ease); }
.scene-back .pin-ring, .scene-back .pin-stem { transition: opacity 0.3s var(--ease); }
.scene-back.is-docked .pin-ring, .scene-back.is-docked .pin-stem { opacity: 0; }
.hero.is-side:not(.is-whooshing) #pk-back .pin-badge,
.hero.is-aerial:not(.is-whooshing) #air-back .pin-badge { animation: pin-drop 0.7s var(--ease) 0.5s both; }
.sb-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge-left 1.8s var(--ease) infinite; }
@keyframes nudge-left { 50% { transform: translateX(-4px); } }
.sb-label {
  position: absolute; left: 52px; top: 6px;
  display: grid; padding: 6px 14px; border-radius: 14px; white-space: nowrap; line-height: 1.2;
  background: var(--glass-solid); border: 1px solid var(--glass-line);
}
.sb-kicker { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hero-fg-dim); }
.sb-title { font-size: var(--fs-sm); font-weight: 600; }
.scene-back:focus-visible { outline-offset: 6px; }
@media (hover: hover) {
  .scene-back:hover .pin-badge { scale: 1.1; background: #ddbb82; }
}

/* ---------- From above: the aerial view's markers ---------- */
.air-marks {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}
.hero.is-aerial:not(.is-whooshing) .air-marks { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease) 0.15s, visibility 0s; }
.hero.is-aerial:not(.is-whooshing) .air-marks .pin-badge,
.hero.is-aerial:not(.is-whooshing) .air-marks .pin-label { animation: pin-drop 0.7s var(--ease) 0.55s both; }
.hero.is-aerial:not(.is-whooshing) #air-enter .pin-badge,
.hero.is-aerial:not(.is-whooshing) #air-enter .pin-label { animation-delay: 0.7s; }
.hero.is-aerial:not(.is-whooshing) #air-display .pin-badge,
.hero.is-aerial:not(.is-whooshing) #air-display .pin-label { animation-delay: 0.85s; }
/* the road's name, laid along it like a map label (app.js turns it to the road's angle) */
.road-label { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; transition: opacity 0.3s var(--ease); }
.road-label span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  white-space: nowrap; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 0 7px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9);
}
.road-label.is-out { opacity: 0; }
/* the customer-parking sign, a button down to the side lot: the front view's parking sign, from above */
.air-pin {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 48px; height: 84px; margin: -84px 0 0 -24px; padding: 0;
  border: 0; border-radius: 12px; background: none; color: var(--hero-fg);
  font: inherit; cursor: pointer; will-change: transform;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}
.hero.is-aerial:not(.is-whooshing) .air-pin { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease) 0.4s, visibility 0s; }
.air-pin .pin-ring { left: 9px; top: auto; bottom: -6px; }
.air-pin .pin-stem { left: 23px; height: 42px; }
.air-pin .pin-badge { left: 4px; bottom: 40px; transition: scale 0.3s var(--ease); }
.hero.is-aerial:not(.is-whooshing) .air-pin .pin-badge { animation: pin-drop 0.7s var(--ease) 0.4s both, park-bob 2.6s ease-in-out 1.1s infinite; }
.air-pin .pin-label { left: 52px; bottom: auto; top: 9px; }
.air-pin.is-flip .pin-label, .scene-back.is-flip .sb-label { left: auto; right: 52px; }
.air-pin:focus-visible { outline-offset: 6px; }
.hero.is-aerial:not(.is-whooshing) .air-pin.is-out,
.hero.is-aerial:not(.is-whooshing) .air-back.is-out { opacity: 0; visibility: hidden; }
.air-back .sb-badge svg { animation: none; }
.air-back.is-compact .sb-label { display: none; }
@media (hover: hover) { .air-pin:hover .pin-badge { scale: 1.1; } }

/* ---------- The way up: the sky marker and the cursor's cue over open sky ---------- */
.sky-btn {
  position: absolute; left: 0; top: 0; z-index: 3; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 18px 6px 6px; border-radius: 999px; white-space: nowrap; text-align: left;
  background: var(--glass-solid); border: 1px solid var(--glass-line); color: var(--hero-fg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  font: inherit; line-height: 1.2; cursor: pointer; will-change: transform;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}
.hero.is-ready:not(.is-aerial):not(.is-whooshing):not(.is-touring):not(.is-missing) .sky-btn {
  opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease) 0.7s, visibility 0s;
}
.sky-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--hero-accent); color: #17120a;
  box-shadow: 0 0 0 2px rgba(245, 241, 233, 0.9);
  transition: scale 0.3s var(--ease);
}
.sky-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge-up 1.8s var(--ease) infinite; }
@keyframes nudge-up { 50% { transform: translateY(-3px); } }
.sky-text { display: grid; }
@media (hover: hover) { .sky-btn:hover .sky-icon { scale: 1.1; } }
.hero.is-sky .hero-stage { cursor: pointer; }
.sky-cue {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 0 16px;
  padding: 6px 12px 6px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--glass-solid); border: 1px solid var(--glass-line); color: var(--hero-fg);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.sky-cue svg { width: 14px; height: 14px; fill: none; stroke: var(--hero-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero.is-sky:not(.is-whooshing) .sky-cue { opacity: 1; }
@media (hover: none) { .sky-cue { display: none; } }

/* ---------- Pylon band ---------- */
.pylon { background: var(--bg-raised); border-block: 1px solid var(--line); }
.pylon-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pylon a {
  display: grid; place-items: center; min-height: 76px; text-decoration: none;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-muted); position: relative; transition: color 0.3s var(--ease);
}
.pylon a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--accent); }
.pylon span { padding-left: 0.2em; }
@media (hover: hover) { .pylon a:hover { color: var(--fg); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section h2 { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.08; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head > div { display: grid; gap: 14px; }

/* ---------- Inventory ---------- */
.inv-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--fg-muted); font-size: var(--fs-sm); }
#inv-count { font-variant-numeric: tabular-nums; }
.sample-pill { padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--line-strong); font-size: var(--fs-xs); letter-spacing: 0.04em; }

.toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; align-items: center;
  padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.search-field { position: relative; min-width: 0; grid-column: 1; grid-row: 1; }
.selects { display: flex; gap: 10px; grid-column: 2; grid-row: 1; }
.selects .select { width: 172px; }
.chips {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: -4px; padding: 2px 4px;
}
.chips::-webkit-scrollbar { display: none; }
.search-field svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--fg-faint); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
input[type="search"], input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; height: 48px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.search-field input { padding-left: 46px; }
input::placeholder { color: var(--fg-faint); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.select { position: relative; display: block; min-width: 0; }
.select select { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.6px solid var(--fg-muted); border-bottom: 1.6px solid var(--fg-muted); transform: rotate(45deg); pointer-events: none;
}
.chip {
  flex: none; min-height: var(--tap); padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg-muted);
  font-size: var(--fs-sm); font-weight: 500; cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (hover: hover) { .chip:not(.is-on):hover { color: var(--fg); border-color: var(--fg-muted); } }

.saved-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }

.car-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px;
}
.car {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--card-shadow);
  transition: transform 0.45s var(--ease), border-color 0.3s;
}
.car-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--bg-raised)); }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
@media (hover: hover) {
  .car:hover { transform: translateY(-4px); border-color: var(--line-strong); }
  .car:hover .car-media img { transform: scale(1.045); }
}
.car:has(.car-open:active) { transform: scale(0.99); }
.car-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(12, 13, 16, 0.72); color: #f5f1e9; border: 1px solid rgba(245, 241, 233, 0.18);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.save {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(12, 13, 16, 0.62); border: 1px solid rgba(245, 241, 233, 0.22); color: #f5f1e9;
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.save svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: fill 0.25s; }
.save[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.save:active { transform: scale(0.9); }
.car-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; }
.car-title { font-family: var(--font-display); font-size: 1.38rem; line-height: 1.15; }
.car-title .yr { color: var(--fg-muted); }
.car-trim { color: var(--fg-muted); font-size: var(--fs-sm); margin-top: -8px; }
.car-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-sm); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.car-facts span { display: inline-flex; align-items: center; gap: 6px; }
.car-facts svg { width: 15px; height: 15px; fill: none; stroke: var(--fg-faint); stroke-width: 1.6; }
.car-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); }
.car-price { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.car-monthly { font-size: var(--fs-sm); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.car-open { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius); }
.car-open:focus-visible { outline-offset: -3px; }
.inv-fine { margin-top: 28px; max-width: 90ch; }

.empty { text-align: center; padding: 56px 16px; display: grid; gap: 10px; justify-items: center; color: var(--fg-muted); }
.empty-title { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--fg); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .field-label { font-size: var(--fs-sm); font-weight: 600; color: var(--fg); padding: 0; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-row output { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--fg); font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: var(--tap); background: transparent; cursor: pointer; margin: 0;
  --fill: 30%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill), var(--line-strong) var(--fill) 100%);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px; border-radius: 50%;
  background: var(--fg); border: 6px solid var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--fg); border: 6px solid var(--accent); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg-raised), 0 0 0 5px var(--accent); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg-raised), 0 0 0 5px var(--accent); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; text-align: center; min-height: var(--tap); padding: 6px 8px; border-radius: 10px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--fg-muted); line-height: 1.2;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.seg small { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; margin-top: 2px; opacity: 0.9; }
.seg input:checked + span { background: var(--fg); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-wrap { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; font-size: var(--fs-sm); color: var(--fg-muted); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }

.form-error { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); font-size: var(--fs-sm); font-weight: 600; }
.form-done { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.form-done:focus { outline: none; }
.done-title { font-weight: 600; color: var(--fg); }
.form-done p:not(.done-title) { color: var(--fg-muted); font-size: var(--fs-sm); }
form.is-sent > :not(.form-done):not(h3) { display: none; }
.form-note { text-align: center; margin-top: -4px; }

.fine { font-size: var(--fs-xs); color: var(--fg-faint); line-height: 1.55; }

/* ---------- Financing ---------- */
.financing { background: var(--bg-raised); border-block: 1px solid var(--line); }
.fin-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.fin-intro { display: grid; gap: 18px; }
.fin-form { display: grid; gap: 18px; margin-top: 18px; }
.fin-mini { display: none; }
.fin-result {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
  display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--card-shadow);
}
.fin-result-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); }
.fin-payment { font-family: var(--font-display); font-size: clamp(3.2rem, 7vw, 4.6rem); line-height: 1; display: flex; align-items: flex-start; gap: 4px; font-variant-numeric: tabular-nums; }
.fin-payment .cur { font-size: 0.45em; margin-top: 0.22em; color: var(--accent-text); }
.fin-payment .per { font-family: var(--font-body); font-size: 1rem; align-self: flex-end; margin-bottom: 0.5em; color: var(--fg-muted); }
.fin-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--line); }
.fin-bar span { display: block; height: 100%; transition: width 0.45s var(--ease); }
.fin-bar-principal { background: var(--accent); }
.fin-bar-interest { background: var(--fg-faint); }
.fin-breakdown { display: grid; gap: 0; margin: 0; }
.fin-breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.fin-breakdown dt { color: var(--fg-muted); display: inline-flex; align-items: center; gap: 8px; }
.fin-breakdown dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.fin-breakdown .total { border-bottom: 0; }
.fin-breakdown .total dt { color: var(--fg); font-weight: 600; }
.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.key-principal { background: var(--accent); }
.key-interest { background: var(--fg-faint); }
.preapprove { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.preapprove h3 { font-family: var(--font-display); font-size: var(--fs-lg); }

/* ---------- Trade-in ---------- */
.trade-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.trade-intro { display: grid; gap: 18px; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent-text); font-family: var(--font-display); font-size: 1.05rem; }
.steps h3 { font-size: var(--fs-md); font-weight: 600; font-family: var(--font-body); margin-bottom: 2px; }
.steps p { color: var(--fg-muted); font-size: var(--fs-sm); }
.card-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 34px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop {
  display: flex !important; align-items: center; justify-content: center; gap: 12px; min-height: 88px; padding: 16px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--fg-muted) !important; font-weight: 500 !important;
  cursor: pointer; text-align: center; transition: border-color 0.2s, color 0.2s;
}
.drop svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (hover: hover) { .drop:hover { border-color: var(--accent); color: var(--fg) !important; } }
.file-input:focus-visible + .drop { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Service ---------- */
.service { border-top: 1px solid var(--line); }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.svc-figure { margin: 0; display: grid; gap: 12px; }
.svc-crop {
  aspect-ratio: 5 / 4; max-width: 100%; border-radius: 20px; overflow: hidden;
  background-color: var(--surface-2);
  background-image: url("assets/front-hd.webp");
  background-size: 360% auto;
  background-position: 62% 59%;
  box-shadow: var(--shadow);
}
.svc-figure figcaption { font-size: var(--fs-xs); color: var(--fg-faint); font-family: var(--font-mono); letter-spacing: 0.06em; }
.svc-copy { display: grid; gap: 18px; }
.svc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.svc-list li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.svc-list strong { font-weight: 600; }
.svc-list span { color: var(--fg-muted); font-size: var(--fs-sm); }

/* ---------- Visit ---------- */
.visit { background: var(--bg-raised); border-top: 1px solid var(--line); }
.visit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.visit-copy { display: grid; gap: 18px; }
.contact-rows { display: grid; margin-top: 8px; }
.contact-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.cr-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.cr-value { font-size: var(--fs-md); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy-btn { min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; }
@media (hover: hover) { .copy-btn:hover { border-color: var(--accent); color: var(--accent-text); } }
.visit-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.park-block {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 12px; margin-top: 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.pb-thumb { aspect-ratio: 1; border-radius: 10px; background: var(--surface-2) url("assets/side.webp") no-repeat 100% 50% / 330% auto; }
.pb-copy { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.pb-title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pb-text { color: var(--fg-muted); font-size: var(--fs-sm); }
.pb-copy .link-btn { min-height: var(--tap); }
.pb-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.visit-side { display: grid; gap: 20px; }
.hours-card { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.hours-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.hours-head h3 { font-family: var(--font-display); font-size: var(--fs-lg); }
.status-pill { padding: 5px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--fg-muted); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent-text); font-weight: 600; }
.route-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.route-svg { display: block; width: 100%; height: auto; }
.map-bg { fill: var(--surface); }
.map-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.map-road-casing { fill: none; stroke: var(--line-strong); stroke-width: 18; stroke-linecap: round; }
.map-road { fill: none; stroke: var(--surface-2); stroke-width: 12; stroke-linecap: round; }
.map-road-minor { fill: none; stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; }
.map-pin { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.map-pulse { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.map-label { fill: var(--fg-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; }
.map-label-strong { fill: var(--fg); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.02em; }
.shield-bg { fill: var(--fg); }
.shield-face { fill: var(--bg); }
.shield-num { fill: var(--fg); font-family: var(--font-body); font-weight: 700; font-size: 15px; text-anchor: middle; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand { display: grid; gap: 16px; }
.footer-brand p { color: var(--fg-muted); font-size: var(--fs-sm); }
.brand-footer { color: var(--fg); }
.brand-footer .brand-roof { stroke: var(--accent); }
.footer-nav { display: flex; gap: 0 28px; flex-wrap: wrap; align-content: start; }
.footer-nav a { text-decoration: none; color: var(--fg-muted); font-size: var(--fs-sm); padding-block: 10px; }
@media (hover: hover) { .footer-nav a:hover { color: var(--fg); } }
.footer-fine { display: grid; gap: 8px; padding-top: 24px; font-size: var(--fs-xs); color: var(--fg-faint); line-height: 1.55; }
.footer-fine strong { color: var(--fg-muted); }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

.seg-mini { grid-auto-flow: column; grid-auto-columns: auto; gap: 4px; padding: 4px; border-radius: 12px; }
.seg-mini span { min-width: 48px; min-height: 40px; }

/* ---------- Car page (replaces the home page while a car is open) ---------- */
.vdp { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); animation: vdp-in 0.45s var(--ease); }
@keyframes vdp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.vdp-bar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 30;
  background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.vdp-bar-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.vdp-back {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  min-height: var(--tap); padding: 0 14px 0 6px; margin-left: -6px;
  border: 0; border-radius: 999px; background: none; color: var(--fg); font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.vdp-back svg, .vdp-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vdp-bar-name { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: baseline; gap: 10px; white-space: nowrap; font-size: var(--fs-sm); color: var(--fg-muted); }
.vdp-bar-name span { overflow: hidden; text-overflow: ellipsis; }
.vdp-bar-name strong { color: var(--fg); font-variant-numeric: tabular-nums; }
.vdp-bar-cta { flex: none; }

.vdp-layout {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  grid-template-areas: "gallery side" "main side";
  gap: 32px clamp(28px, 4vw, 56px); padding-top: 28px;
}
.vdp-gallery { grid-area: gallery; display: grid; gap: 12px; min-width: 0; }
.vdp-side { grid-area: side; min-width: 0; }
.vdp-main { grid-area: main; display: grid; gap: clamp(40px, 5vw, 60px); min-width: 0; align-content: start; }

.vdp-shot { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.vdp-shot img { width: 100%; height: 100%; object-fit: cover; }
.vdp-sample, .vdp-count {
  position: absolute; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(12, 13, 16, 0.66); color: #f5f1e9;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.vdp-sample { left: 14px; }
.vdp-count { right: 14px; letter-spacing: 0.06em; }
.vdp-badge { left: 14px; top: 14px; }
.vdp-nav {
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(12, 13, 16, 0.55); color: #f5f1e9; border: 1px solid rgba(245, 241, 233, 0.28);
}
.vdp-prev { left: 14px; }
.vdp-next { right: 14px; }
.vdp-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.vdp-thumbs::-webkit-scrollbar { display: none; }
.vdp-thumb {
  flex: none; width: 96px; aspect-ratio: 4 / 3; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--surface-2); opacity: 0.7; transition: opacity 0.2s, border-color 0.2s;
}
.vdp-thumb[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.vdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.vdp-card {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 84px);
  /* on a short screen the card scrolls inside itself rather than hiding its bottom */
  max-height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px) - 100px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 28px);
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.vdp-stock { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.vdp-title { font-family: var(--font-display); font-size: clamp(2rem, 3.1vw, 2.6rem); line-height: 1.04; margin-top: -6px; }
.vdp-title .yr { color: var(--fg-muted); }
.vdp-title:focus, #inv-title:focus { outline: none; }
.vdp-trim { color: var(--fg-muted); margin-top: -10px; }
.vdp-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 14px; border-block: 1px solid var(--line); }
.vdp-price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1; font-variant-numeric: tabular-nums; }
.vdp-pay { display: grid; gap: 14px; }
.vdp-pay-out { font-size: var(--fs-sm); color: var(--fg-muted); }
.vdp-pay-out strong { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--fg); font-variant-numeric: tabular-nums; }
.vdp-pay-note { font-size: var(--fs-xs); color: var(--fg-faint); margin-top: -10px; font-variant-numeric: tabular-nums; }
.vdp-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.vdp-custom { border-top: 1px solid var(--line); padding-top: 4px; }
.vdp-custom summary {
  display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); cursor: pointer; list-style: none;
  font-size: var(--fs-sm); font-weight: 600;
}
.vdp-custom summary::-webkit-details-marker { display: none; }
.vdp-custom summary::after {
  content: ""; width: 8px; height: 8px; margin-right: 6px; transform: rotate(45deg); transition: transform 0.25s var(--ease);
  border-right: 1.6px solid var(--fg-muted); border-bottom: 1.6px solid var(--fg-muted);
}
.vdp-custom[open] summary::after { transform: rotate(-135deg); }
.vdp-custom-body { display: grid; gap: 16px; padding: 6px 0 4px; }
.vdp-actions { display: grid; gap: 10px; }
.vdp-ask { gap: 10px; }
.vdp-mini-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.save.vdp-save {
  position: static; width: auto; height: var(--tap); padding: 0 16px 0 12px; border-radius: 999px;
  display: inline-flex; gap: 8px; font-size: var(--fs-sm); font-weight: 600;
  background: transparent; color: var(--fg); border: 1px solid var(--line-strong);
}

.vdp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vdp-facts li { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.vdp-facts svg { width: 22px; height: 22px; margin-bottom: 8px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vdp-facts strong { font-size: var(--fs-md); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vdp-facts span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.vdp-sec { display: grid; gap: 16px; align-content: start; }
.vdp-sec h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.12; }
.vdp-lead { font-size: var(--fs-md); color: var(--fg-muted); max-width: 64ch; }
.vdp-features, .vdp-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.vdp-features li, .vdp-checks li { position: relative; padding-left: 30px; min-height: 20px; }
.vdp-features li::before, .vdp-checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
}
.vdp-features li::after, .vdp-checks li::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg);
}
.vdp-history { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.vdp-history li { position: relative; padding-left: 22px; }
.vdp-history li::before {
  content: ""; position: absolute; left: 3px; top: 0.5em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--fg-faint);
}
.vdp-history li.is-warn { font-weight: 600; }
.vdp-history li.is-warn::before { background: var(--danger); }
.vdp-sample-note { font-size: var(--fs-xs); color: var(--fg-muted); margin-top: -4px; }
.vdp-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vdp-specs div { padding: 14px 16px; background: var(--bg); min-width: 0; }
.vdp-specs dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.vdp-specs dd { margin: 4px 0 0; font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.vdp-inspect { padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--bg-raised); border: 1px solid var(--line); }
.vdp-inspect > p { color: var(--fg-muted); }
.vdp-nick {
  padding: clamp(20px, 3vw, 28px); border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
}
.vdp-nick-head { display: flex; align-items: center; gap: 16px; }
.vdp-nick-head h2 { font-size: 1.5rem; }
.vdp-nick-head p { color: var(--fg-muted); font-size: var(--fs-sm); }
.vdp-nick-qs { display: flex; flex-wrap: wrap; gap: 8px; }
.vdp-nick-qs .chip { flex: 0 1 auto; max-width: 100%; padding-block: 10px; line-height: 1.35; text-align: left; }
.vdp-form { max-width: 720px; }
.vdp-form button[type="submit"] { white-space: normal; padding-block: 8px; }
.vdp-main, .vdp-sec { grid-template-columns: minmax(0, 1fr); }
/* section jumps clear the car page's sticky bar as well as the header */
html:has(body.is-vdp) { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 73px); }
.vdp-visit p { color: var(--fg-muted); }
.vdp-more { margin-top: clamp(56px, 8vw, 96px); padding-block: clamp(48px, 7vw, 88px); background: var(--bg-raised); border-top: 1px solid var(--line); }
.vdp-more h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 24px; }
@media (hover: hover) {
  .vdp-back:hover { background: var(--surface); }
  .vdp-nav:hover { background: rgba(12, 13, 16, 0.75); }
  .vdp-thumb:hover { opacity: 1; }
  .save.vdp-save:hover { border-color: var(--accent); }
}

/* ---------- Nick, the AI assistant ---------- */
/* Nick's photo, laid over a gold N that shows if the photo hasn't loaded */
.nick-face {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #ecca8f, #b68a48); color: #17120a;
  font-family: var(--font-display); font-size: 0.95rem; line-height: 1;
  box-shadow: 0 0 0 2px rgba(245, 241, 233, 0.22);
}
.nick-face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("assets/nick.webp") center 30% / cover no-repeat; }
.nick-ai {
  display: inline-block; margin-left: 2px; padding: 1px 6px; border-radius: 6px; vertical-align: 2px;
  background: rgba(230, 195, 138, 0.16); color: var(--nick-gold, #e6c38a);
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em;
}
.nick-face-sm { width: 24px; height: 24px; font-size: 0.8rem; }
.nick-face-lg { width: 52px; height: 52px; font-size: 1.55rem; }
.nick-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px 0 8px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  background: transparent; color: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
@media (hover: hover) { .nick-btn:hover { border-color: var(--accent); } }
.nick-panel {
  --fg: #f5f1e9; --fg-muted: rgba(245, 241, 233, 0.72); --line: rgba(245, 241, 233, 0.12); --nick-gold: #e6c38a;
  position: fixed; z-index: 90; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 24px;
  width: min(410px, calc(100vw - 48px)); height: min(660px, calc(100vh - 110px)); height: min(660px, calc(100dvh - 110px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: #111215; color: var(--fg); border: 1px solid rgba(245, 241, 233, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); color-scheme: dark;
  animation: nick-in 0.35s var(--ease);
}
@keyframes nick-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.nick-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.nick-head .nick-face { width: 40px; height: 40px; font-size: 1.25rem; }
.nick-head-text { flex: 1; min-width: 0; display: grid; }
.nick-name { font-weight: 700; }
.nick-sub { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--fg-muted); }
.nick-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8cc09a; }
.nick-icon {
  width: var(--tap); height: var(--tap); flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
}
.nick-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nick-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.nick-msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.55; overflow-wrap: anywhere; }
.nick-msg p + p, .nick-msg p + ul, .nick-msg ul + p { margin-top: 8px; }
.nick-msg ul, .nick-msg ol { margin: 6px 0 0; padding-left: 20px; }
.nick-msg p + ol, .nick-msg ol + p { margin-top: 8px; }
.from-nick p { white-space: pre-line; }
.nick-msg li + li { margin-top: 4px; }
.from-nick { align-self: flex-start; background: #1c1e23; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.from-you { align-self: flex-end; background: var(--nick-gold); color: #17120a; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.nick-msg.is-error { color: #ec9a8d; border-color: rgba(236, 154, 141, 0.4); }
.nick-msg .nick-note { margin-top: 8px; font-size: var(--fs-xs); color: var(--fg-muted); }
.nick-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.nick-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-muted); animation: nick-dot 1.2s infinite ease-in-out; }
.nick-typing i:nth-child(2) { animation-delay: 0.15s; }
.nick-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes nick-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.nick-context { align-self: center; max-width: 100%; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--fg-muted); font-size: var(--fs-xs); text-align: center; }
.nick-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.nick-suggest button {
  min-height: 36px; padding: 6px 12px; border-radius: 999px; cursor: pointer; text-align: left;
  border: 1px solid rgba(230, 195, 138, 0.45); background: transparent; color: var(--nick-gold);
  font: inherit; font-size: var(--fs-xs); font-weight: 600;
}
.nick-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 8px; border-top: 1px solid var(--line); }
.nick-input {
  flex: 1; min-width: 0; min-height: var(--tap); max-height: 140px; padding: 11px 14px; resize: none;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--fg);
  background: #1a1c20; border: 1px solid rgba(245, 241, 233, 0.2); border-radius: 14px;
}
.nick-input:focus { outline: none; border-color: var(--nick-gold); box-shadow: 0 0 0 3px rgba(230, 195, 138, 0.25); }
.nick-input::placeholder { color: rgba(245, 241, 233, 0.6); }
.nick-send {
  width: var(--tap); height: var(--tap); flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 0; background: var(--nick-gold); color: #17120a;
}
.nick-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nick-send.is-stop svg { fill: currentColor; stroke: none; }
.nick-send:disabled { opacity: 0.4; cursor: default; }
.nick-fine { padding: 0 16px 12px; font-size: 0.7rem; line-height: 1.45; color: var(--fg-muted); text-align: center; }
@media (hover: hover) {
  .nick-icon:hover { border-color: rgba(245, 241, 233, 0.4); }
  .nick-suggest button:hover { background: rgba(230, 195, 138, 0.1); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; z-index: 95; /* above Nick's chat */
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px);
  padding: 12px 18px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow);
  max-width: calc(100vw - 32px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast:empty { padding: 0; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav ul { gap: 22px; }
  .header-cta { display: none; }
}

/* Up to here the hero's links reach the bottom-right corner, so the look-around hint goes to the top
   center instead (app.js keeps the sky marker below it while it shows) */
@media (max-width: 1180px) {
  .look-hint { left: 50%; right: auto; bottom: auto; top: calc(var(--header-h) + 14px); transform: translateX(-50%); }
  .look-hint.is-gone { transform: translate(-50%, -8px); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .fin-layout, .trade-layout, .svc-layout, .visit-layout { grid-template-columns: minmax(0, 1fr); }
  .fin-result { position: static; }
  .svc-figure { order: 2; }
  .selects .select { width: 150px; }

  .fin-mini {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    position: sticky; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 5;
    padding: 12px 18px; border-radius: 14px;
    background: var(--fg); color: var(--bg); box-shadow: var(--shadow);
    font-size: var(--fs-sm);
  }
  .fin-mini strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; font-variant-numeric: tabular-nums; }

  /* Car page: one column: photos, then the price card, then the details */
  .vdp-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "side" "main"; gap: 24px; }
  .vdp-card { position: static; max-height: none; overflow: visible; box-shadow: var(--card-shadow); }
  .vdp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vdp-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vdp-specs div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .nick-btn-text { display: none; }
  .nick-btn { width: var(--tap); padding: 0; justify-content: center; }
}

@media (max-width: 760px) {
  .hero { min-height: 560px; max-height: none; }
  .hero-stage { cursor: grab; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); max-width: 12ch; }
  .hero-lead { font-size: var(--fs-base); }
  .hero .eyebrow-light { font-size: 0.7rem; letter-spacing: 0.12em; }
  /* phones: the copy covers the whole lower half, so it needs the fuller shade */
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.62) 0%, rgba(8, 9, 11, 0) 22%),
      linear-gradient(0deg, rgba(8, 9, 11, 0.9) 0%, rgba(8, 9, 11, 0.55) 26%, rgba(8, 9, 11, 0) 52%);
  }
  .hero-content { gap: 16px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .hero-ctas { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { padding: 0 12px; font-size: var(--fs-sm); }
  .hero-ctas .hero-links { grid-column: 1 / -1; justify-self: start; margin: -4px 0 0; gap: 0 16px; }
  .hero-links .park-link { margin-left: 0; }
  /* Phones: the tour card sits over the sky so the lot stays visible; the parking card sits low */
  .hotspot-card, .park-card { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: auto; }
  .hotspot-card { top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 10px); bottom: auto; }
  .park-card { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .hotspot-label { display: none; }

  .pylon-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pylon a { min-height: 60px; font-size: 0.92rem; letter-spacing: 0.16em; }
  .pylon a:nth-child(3)::before { display: none; }
  .pylon a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .search-field { grid-column: 1; grid-row: 1; }
  .chips {
    grid-column: 1; grid-row: 2;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
    scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .selects { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .selects .select { width: auto; }
  .select select { padding: 0 34px 0 14px; }
  .select::after { right: 14px; }
  .car-grid { gap: 18px; }

  .grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-3 .field:first-child { grid-column: 1 / -1; }
  .seg-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg-credit { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cr-label { grid-column: 1 / -1; }

  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .action-bar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg-raised) 96%, transparent);
    border-top: 1px solid var(--line);
    transform: translateY(110%); visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  .action-bar.is-shown { transform: none; visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
  .action-bar.is-kb { transform: translateY(110%); visibility: hidden; transition: transform 0.2s var(--ease), visibility 0s 0.2s; }
  .ab-item { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 7px 4px; border-radius: 12px; text-decoration: none; font-size: 0.74rem; font-weight: 600; color: var(--fg-muted); }
  .ab-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  button.ab-item { border: 0; background: none; font-family: inherit; cursor: pointer; }
  .ab-primary { background: var(--accent); color: var(--on-accent); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .fin-mini { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  /* Car page on phones: full-bleed photos, shorter top bar */
  .vdp-bar-cta { display: none; }
  .vdp-bar-name { justify-content: flex-end; }
  .vdp-layout { padding-top: 0; }
  .vdp-gallery { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); }
  .vdp-shot { aspect-ratio: 4 / 3; border-radius: 0; }
  .vdp-thumbs { padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .vdp-features, .vdp-checks, .vdp-history { grid-template-columns: minmax(0, 1fr); }
  .vdp-nick-head { align-items: flex-start; }

  /* Nick fills the screen on phones */
  .nick-panel {
    inset: 0; width: auto; height: auto; border-radius: 0; border: 0;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }
}

/* Portrait tablets get the phone framing (copy across the lower half), so they get its fuller shade too */
@media (max-aspect-ratio: 6/5) {
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.62) 0%, rgba(8, 9, 11, 0) 22%),
      linear-gradient(0deg, rgba(8, 9, 11, 0.9) 0%, rgba(8, 9, 11, 0.55) 26%, rgba(8, 9, 11, 0) 52%);
  }
}

@media (max-width: 480px) {
  .selects { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .selects .select:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) and (max-height: 760px) {
  .hero-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (max-width: 380px) {
  .hero-ctas .btn { --btn-h: 50px; padding: 0 8px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* Touch devices: solid glass instead of live blur (cheaper to draw over the moving hero) */
@media (hover: none) {
  .btn-glass, .look-hint, .hotspot::before, .hotspot-card, .park-card, .vdp-bar, .site-header[data-over-hero="false"] {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .vdp-bar { background: var(--bg); }
  .btn-glass, .look-hint { background: var(--glass-solid); }
  .hotspot::before { background: rgba(14, 15, 18, 0.6); }
  .hotspot-card, .park-card { background: rgba(12, 13, 16, 0.9); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
