/* Apex Luxe Concierge — v3 design system (homepage + showroom).
   Night harbor base, lamplight text, tungsten accent, seafoam signal.
   Display: Bodoni Moda. Text: Hanken Grotesk. */

:root {
  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
  --font-text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg: #0b1416;
  --raised: #12211f;
  --text: #efe6d6;
  --muted: #a5b0aa;
  --line: rgba(239, 230, 214, 0.16);
  --accent: #e2a857;
  --accent-ink: #1a1206;
  --signal: #8ed0bf;
  --danger: #f0907c;

  --gutter: clamp(20px, 4.4vw, 60px);
  --max: 1240px;
  --section: clamp(72px, 10vw, 136px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme='light'] {
  --bg: #e9efea;
  --raised: #f6f9f6;
  --text: #0e1f21;
  --muted: #4a5d5c;
  --line: rgba(14, 31, 33, 0.18);
  --accent: #8a5510;
  --accent-ink: #fff8ea;
  --signal: #1f6f63;
  --danger: #a3311b;
}

[data-theme='rose'] {
  --bg: #f7e3df;
  --raised: #fcf0ed;
  --text: #3a1a22;
  --muted: #7a525a;
  --line: rgba(58, 26, 34, 0.18);
  --accent: #9b3f55;
  --accent-ink: #fff3f1;
  --signal: #7a4a2a;
  --danger: #a3311b;
}

/* Anything sitting on a photograph keeps night colours in every theme. */
.on-photo {
  --text: #f3ebdd;
  --muted: rgba(243, 235, 221, 0.78);
  --line: rgba(243, 235, 221, 0.24);
  --accent: #e8b565;
  --accent-ink: #1a1206;
  --signal: #9adbca;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.apx {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:where(.apx) img { display: block; max-width: 100%; }
:where(.apx) a { color: inherit; }
:where(.apx) :is(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.apx) :is(ul, ol) { list-style: none; }
.apx :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.apx ::selection { background: var(--accent); color: var(--accent-ink); }
.apx [hidden] { display: none !important; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border-radius: 999px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--line); }

/* ------------------------------- type ------------------------------- */
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.7rem, 6.3vw, 5.75rem); line-height: 0.98; letter-spacing: -0.026em; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.body { color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.small { font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.nums { font-variant-numeric: tabular-nums lining-nums; }

.head { display: grid; gap: 20px 72px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
.head > .lede { justify-self: end; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } .head > .lede { justify-self: start; } }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 0.98rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--text); color: var(--bg); }
.on-photo .btn--primary:hover { background: #fff8ea; color: #1a1206; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { color: var(--accent); }

/* ------------------------------- header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand b { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: 0.01em; }
.brand span { font-size: 0.82rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--muted); padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text); }
.nav-links a.btn { color: var(--accent-ink); padding: 10px 22px; min-height: 42px; }
.nav-links a.btn:hover { color: var(--bg); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon { display: none; }
[data-theme='dark'] .theme-icon--dark, [data-theme='light'] .theme-icon--light, [data-theme='rose'] .theme-icon--rose { display: block; }
.menu-btn { display: none; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.2s var(--ease); }
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; flex-direction: column; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav-links a.btn { margin-top: 18px; border-bottom: 0; }
  .brand span { display: none; }
}

/* -------------------------- hero: the evening ------------------------- */
.evening { position: relative; isolation: isolate; background: #070d0f; overflow: hidden; }
.evening-photos { position: absolute; inset: 0; z-index: -2; }
.evening-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  opacity: 0; transition: opacity 0.7s var(--ease);
}
.evening-photos img.is-on { opacity: 1; }
.evening::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 13, 15, 0.92) 0%, rgba(7, 13, 15, 0.72) 38%, rgba(7, 13, 15, 0.12) 72%, rgba(7, 13, 15, 0) 100%),
    linear-gradient(0deg, rgba(7, 13, 15, 0.85) 0%, rgba(7, 13, 15, 0) 34%);
}
.evening-inner {
  min-height: min(calc(100svh - var(--header-h)), 940px);
  display: grid; grid-template-rows: 1fr auto; gap: clamp(36px, 6vw, 72px);
  padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 48px);
}
.evening-copy { align-self: center; max-width: 900px; }
.evening-copy .lede { margin-top: 28px; }
.evening-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }

.stops { max-width: 620px; }
.stops-label { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.stops-list { border-top: 1px solid var(--line); }
.stop {
  position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 0 16px; align-items: baseline;
  width: 100%; padding: 13px 0; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--muted);
  font: inherit; cursor: pointer;
}
.stop-time { font-size: 0.92rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stop-title { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.2; color: inherit; }
.stop-detail {
  grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease);
  font-size: 0.95rem; line-height: 1.5; color: var(--muted);
}
.stop-detail > span { overflow: hidden; }
.stop:hover { color: var(--text); }
.stop[aria-selected='true'] { color: var(--text); }
.stop[aria-selected='true'] .stop-time { color: var(--accent); }
.stop[aria-selected='true'] .stop-detail { grid-template-rows: 1fr; }
.stop[aria-selected='true'] .stop-detail > span { padding-top: 4px; }
.stop::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.stop[aria-selected='true']::after { transform: scaleX(1); }
.stops.is-auto .stop[aria-selected='true']::after { animation: stop-run var(--stop-ms, 6000ms) linear both; }
@keyframes stop-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .evening-photos img, .stop-detail { transition: none; }
  .stops.is-auto .stop[aria-selected='true']::after { animation: none; }
}
/* Wide screens: the evening runs left to right as a timeline. */
@media (min-width: 1000px) {
  .stops { max-width: none; }
  .stops-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 20px; border-top: 0; }
  .stop { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 14px 0 0; border-bottom: 0; border-top: 1px solid var(--line); min-height: 148px; }
  .stop-time { display: block; }
  .stop-title { display: block; margin-top: 6px; font-size: 1.16rem; }
  .stop-detail { display: block; margin-top: 8px; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s var(--ease); }
  .stop[aria-selected='true'] .stop-detail { opacity: 1; }
  .stop[aria-selected='true'] .stop-detail > span { padding-top: 0; }
  .stop::after { bottom: auto; top: -1px; }
}
@media (max-width: 700px) {
  .evening::before {
    background: linear-gradient(0deg, rgba(7, 13, 15, 0.96) 0%, rgba(7, 13, 15, 0.8) 50%, rgba(7, 13, 15, 0.3) 100%);
  }
  .evening-photos img { object-position: 62% 30%; }
  .stop { grid-template-columns: 78px 1fr; }
  .stop-title { font-size: 1.1rem; }
}

/* ------------------------------- facts -------------------------------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.fact { padding: 28px 28px 28px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.fact span { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 18px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------ services ------------------------------ */
.services { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 8px 28px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.service p { font-size: 0.98rem; color: var(--muted); }
@media (max-width: 980px) { .services { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .service { grid-template-columns: 1fr; } }

/* ----------------------------- photo band ----------------------------- */
.band { position: relative; isolation: isolate; background: #070d0f; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 13, 15, 0.9) 0%, rgba(7, 13, 15, 0.6) 45%, rgba(7, 13, 15, 0.1) 100%); }
.band-inner { min-height: min(78svh, 720px); display: flex; flex-direction: column; justify-content: center; padding-block: 72px; }
.band-inner > * { max-width: 560px; }
.band-inner .lede { margin-top: 24px; }
.band-inner .btn { margin-top: 32px; align-self: flex-start; }
@media (max-width: 700px) { .band::before { background: rgba(7, 13, 15, 0.74); } }

/* ----------------------------- dispatches ----------------------------- */
.dispatches { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.dispatch-photo { border-radius: 6px; overflow: hidden; background: var(--raised); }
.dispatch-photo img { width: 100%; height: 100%; object-fit: cover; }
.dispatch--lead .dispatch-photo { aspect-ratio: 3 / 2; }
.dispatch--lead .h3 { margin-top: 22px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.dispatch p { margin-top: 10px; color: var(--muted); max-width: 52ch; }
.dispatch-stack { display: grid; gap: clamp(24px, 3vw, 40px); align-content: start; }
.dispatch--row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.dispatch--row .dispatch-photo { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .dispatches { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .dispatch--row { grid-template-columns: 1fr; } .dispatch--row .h3 { margin-top: 4px; } }

/* ------------------------------ standards ----------------------------- */
.standards { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.standards > div { padding: 26px 0; border-bottom: 1px solid var(--line); }
.standards dt { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.standards dd { margin-top: 8px; font-size: 0.98rem; color: var(--muted); }
@media (max-width: 900px) { .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .standards { grid-template-columns: 1fr; } }

/* ------------------------------- steps -------------------------------- */
.steps { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); counter-reset: step; }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; top: -17px; left: 0;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--accent); border-radius: 50%;
  color: var(--accent); font: 600 0.9rem/1 var(--font-text); font-variant-numeric: lining-nums;
}
.step p { margin-top: 10px; font-size: 0.98rem; color: var(--muted); }
.note { margin-top: clamp(32px, 4vw, 48px); padding: 22px 26px; border: 1px solid var(--line); border-left: 3px solid var(--signal); border-radius: 6px; background: var(--raised); max-width: 820px; color: var(--muted); }
.note b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------ showroom band -------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-photo { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--raised); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split .lede { margin-top: 20px; }
.split .btn { margin-top: 28px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* -------------------------------- inquiry ------------------------------ */
.inquiry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.inquiry-copy .h2 { font-size: clamp(1.9rem, 3.3vw, 2.9rem); line-height: 1.06; }
.inquiry-copy .lede { margin-top: 22px; }
.direct { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.direct p + p { margin-top: 6px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: clamp(22px, 3.4vw, 40px); background: var(--raised); border: 1px solid var(--line); border-radius: 10px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  font: 400 1rem/1.4 var(--font-text);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.field option { background: var(--raised); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.75; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field-error { font-size: 0.86rem; color: var(--danger); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-foot .small { flex: 1 1 240px; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-radius: 6px; border: 1px solid var(--line); font-size: 0.98rem; }
.form-status b { display: block; font-weight: 600; }
.form-status.is-success { border-color: var(--signal); }
.form-status.is-success b { color: var(--signal); }
.form-status.is-error { border-color: var(--danger); }
.form-status .status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.form-status .btn { min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }
.vehicle-chip { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 6px; font-size: 0.95rem; }
.vehicle-chip button { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 4px; }
@media (max-width: 900px) { .inquiry { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* -------------------------------- footer ------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; }
.footer-grid p { margin-top: 14px; color: var(--muted); max-width: 54ch; font-size: 0.98rem; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.98rem; }
.footer-links a:hover { color: var(--accent); }
.footer-fine { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* =============================== showroom ============================== */
.sr-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.sr-hero .lede { margin-top: 24px; }
.sr-hero .evening-actions { margin-top: 32px; }
.sr-hero-photo { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--raised); }
.sr-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .sr-hero { grid-template-columns: 1fr; } .sr-hero-photo { order: -1; } }

.toolbar { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 8px 18px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font: 500 0.95rem/1.2 var(--font-text); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.search { display: flex; align-items: center; gap: 12px; }
.search label { font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.search input { min-height: 44px; min-width: 230px; padding: 10px 14px; background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 6px; font: 400 1rem/1.3 var(--font-text); }
.result-line { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

.cars { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 4vw, 48px); }
.car { display: flex; flex-direction: column; min-width: 0; }
.car-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--raised); border: 0; padding: 0; cursor: pointer; display: block; width: 100%; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.car-photo:hover img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .car-photo img { transition: none; } .car-photo:hover img { transform: none; } }
.car-status { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(7, 13, 15, 0.78); color: #f3ebdd; font-size: 0.82rem; font-weight: 500; }
.car-status[data-status='Available']::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9adbca; margin-right: 8px; vertical-align: 1px; }
.car-kicker { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.car .h3 { margin-top: 6px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.car-points { margin-top: 14px; border-top: 1px solid var(--line); }
.car-points li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; color: var(--muted); }
.car-foot { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.car-price { font-family: var(--font-display); font-size: 1.3rem; }
.car-actions { display: flex; gap: 10px; }
.car-actions .btn { min-height: 44px; padding: 9px 20px; font-size: 0.94rem; }
.cars--single { grid-template-columns: 1fr; }
.cars--single .car { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 56px); align-items: center; }
.cars--single .car-photo { aspect-ratio: 16 / 10; }
.cars--single .car-kicker { margin-top: 0; }
.cars--single .car .h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
@media (max-width: 860px) { .cars--single .car { display: flex; } .cars--single .car-kicker { margin-top: 18px; } }

.empty { margin-top: 36px; padding: clamp(32px, 6vw, 64px) 24px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.empty p { margin: 10px auto 0; color: var(--muted); max-width: 46ch; }
.empty .btn { margin-top: 22px; }

.board { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); }
.board-item { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.board-item .small { color: var(--signal); font-weight: 500; }
.board-item .h3 { margin-top: 8px; font-size: 1.35rem; }
.board-item p:last-child { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }

/* ----------------------------- vehicle dialog -------------------------- */
dialog.car-dialog {
  width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--text); overflow: auto;
}
dialog.car-dialog::backdrop { background: rgba(4, 8, 9, 0.72); }
.dialog-close { position: sticky; top: 12px; margin: 12px 12px -54px auto; z-index: 3; display: flex; background: var(--bg); }
.dialog-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.dialog-detail { padding: clamp(24px, 3.4vw, 44px); padding-top: clamp(56px, 5vw, 64px); }
.dialog-detail .h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 6px; }
.dialog-detail .car-price { display: block; margin-top: 10px; }
.dialog-detail .body { margin-top: 16px; }
.dialog-detail .btn { margin-top: 24px; }
.specs { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--line); }
.specs > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.84rem; color: var(--muted); }
.specs dd { margin-top: 2px; font-size: 0.98rem; }
.gallery { position: relative; background: #070d0f; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 12px; transform: translateY(-50%); pointer-events: none; }
.gallery-nav button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(7, 13, 15, 0.7); color: #f3ebdd; font-size: 1.3rem; cursor: pointer; }
.gallery-nav button[disabled] { opacity: 0.3; cursor: default; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.gallery-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(243, 235, 221, 0.4); cursor: pointer; }
.gallery-dots button[aria-current='true'] { background: #e8b565; }
@media (max-width: 820px) { .dialog-body { grid-template-columns: 1fr; } .dialog-detail { padding-top: 24px; } .dialog-close { background: rgba(7, 13, 15, 0.7); color: #f3ebdd; } }
