/* Executive Motor Imports — dealer theme */
:root {
  --bg: #0f1613;
  --bg-2: #151d19;
  --bg-3: #1c2722;
  --line: #27342e;
  --line-2: #36463e;
  --text: #f1eee6;
  --text-2: #b7b8ae;
  --text-3: #7f8a82;
  --brass: #e0742e;
  --brass-2: #f08a45;
  --green: #6cc08b;
  --amber: #e2a43b;
  --blue: #5b9be0;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; font-family: var(--body); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: 0; line-height: 1.02; margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.kicker { font-family: var(--display); font-weight: 500; letter-spacing: .04em; font-size: 17px; color: var(--text-3); margin-bottom: 8px; }
.h1 { font-size: clamp(40px, 6vw, 76px); }
.h2 { font-size: clamp(30px, 3.6vw, 46px); }
.h3 { font-size: 24px; }
.lead { font-size: 17px; color: var(--text-2); max-width: 62ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--r); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; border: 1px solid var(--brass); color: var(--brass); transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { background: var(--brass); color: #fff; }
.btn.solid { background: var(--brass); color: #fff; }
.btn.solid:hover { background: var(--brass-2); border-color: var(--brass-2); color: #fff; }
.btn.ghost { border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); background: transparent; color: var(--text); }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 14px; font-size: 14px; }

/* Top bar */
.topbar { background: #0a100d; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 20px; }
.topbar ul { display: flex; gap: 22px; }
.topbar li { display: flex; align-items: center; gap: 7px; }
.topbar .icon { width: 15px; height: 15px; color: var(--brass); }
.topbar a:hover { color: var(--text); }
.topbar .social { gap: 12px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(15,22,19,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 40px; width: auto; display: block; }
.brand-wordmark { white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: .02em; line-height: 1; color: var(--text-2); }
.brand-wordmark span { display: block; font-family: var(--body); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.navigation { display: flex; align-items: center; gap: 4px; }
.navigation a { white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: .02em; padding: 10px 14px; border-radius: var(--r); color: var(--text-2); transition: color .2s, background .2s; }
.navigation a:hover { color: var(--text); background: var(--bg-3); }
.navigation .phone { color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.navigation .phone .icon { color: var(--brass); }
.navigation .btn { margin-left: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle .icon { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; min-height: 560px; display: grid; align-items: end; background: var(--bg-2); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .55; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,22,19,.88) 0%, rgba(15,22,19,.4) 55%, rgba(15,22,19,.15) 100%), linear-gradient(180deg, rgba(15,22,19,.2) 0%, rgba(15,22,19,.1) 50%, rgba(15,22,19,.96) 100%); }
.hero-content { position: relative; padding: clamp(80px, 12vw, 160px) 0 clamp(36px, 5vw, 64px); }
.hero h1 { max-width: 16ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--text-2); font-weight: 500; }
.hero .lead { margin: 18px 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero-tags span { font-family: var(--display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px; }

/* Search bar */
.searchbar { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.searchbar-inner { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; padding: 22px 0; }
.field label { display: block; font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r); -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field textarea { min-height: 130px; resize: vertical; }
.field.select { position: relative; }
.field.select .icon { position: absolute; right: 12px; bottom: 14px; pointer-events: none; color: var(--text-3); }
.bodytypes { display: flex; gap: 10px; padding: 0 0 22px; flex-wrap: wrap; }
.bodytypes a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r); font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); transition: border-color .2s, color .2s; }
.bodytypes a:hover, .bodytypes a[aria-pressed="true"] { border-color: var(--brass); color: var(--text); }
.bodytypes a .icon { width: 22px; height: 22px; color: var(--brass); }
.bodytypes a b { font-weight: 500; color: var(--text-3); }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--text-2); max-width: 60ch; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; font-size: 14px; color: var(--text-2); }
.results-bar .sort { display: flex; gap: 6px; align-items: center; }
.results-bar .sort a { padding: 6px 10px; border-radius: var(--r); font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--text-3); }
.results-bar .sort a[aria-current="true"], .results-bar .sort a:hover { color: var(--text); background: var(--bg-3); }

/* Stock grid */
.stock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.car-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.car-card:hover { border-color: var(--line-2); }
.card-media { position: relative; }
.card-media .main { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.card-media .main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.car-card:hover .card-media .main img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: var(--r); background: rgba(0,0,0,.72); color: #fff; display: inline-flex; align-items: center; gap: 7px; backdrop-filter: blur(4px); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.green { color: var(--green); }
.badge.amber { color: var(--amber); }
.badge.blue { color: var(--blue); }
.badge.static { position: static; }
.count-pill { position: absolute; right: 12px; bottom: 12px; z-index: 2; font-size: 12px; letter-spacing: .06em; padding: 5px 9px; border-radius: var(--r); background: rgba(0,0,0,.72); color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.count-pill .icon { width: 14px; height: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--bg-3); }
.thumbs a { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-title { font-size: 26px; }
.card-title span { color: var(--text-2); font-weight: 500; }
.card-variant { font-size: 14px; color: var(--text-2); margin: 4px 0 0; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-row li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.spec-row .icon { width: 16px; height: 16px; color: var(--brass); }
.ulez { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--green); }
.ulez .icon { width: 14px; height: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.price { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1; }
.price small { display: block; font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--text-3); margin-top: 4px; letter-spacing: .02em; }

/* Sourcing strip */
.strip { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 26px 28px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r); margin-top: 28px; }
.strip h3 { font-size: 26px; margin-bottom: 4px; }
.strip p { margin: 0; color: var(--text-2); }

/* Welcome */
.welcome { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.welcome p { color: var(--text-2); font-size: 16px; }
.welcome .photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); }
.welcome .photo img { width: 100%; height: 100%; object-fit: cover; }
.usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.usp .icon { display: none; }
.usp h3 { font-size: 22px; margin-bottom: 6px; }
.usp p { margin: 0; font-size: 14.5px; color: var(--text-2); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { position: relative; padding: 22px 24px 22px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step .num { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--text-3); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14px; color: var(--text-2); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.stars { color: var(--brass); letter-spacing: 2px; font-size: 15px; }
.review p { margin: 0; color: var(--text-2); font-size: 14.5px; flex: 1; }
.review .who { font-family: var(--display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.review-sources { display: flex; gap: 20px; margin-top: 22px; align-items: center; flex-wrap: wrap; color: var(--text-2); font-size: 14px; }
.review-sources strong { font-family: var(--display); font-size: 22px; color: var(--text); margin-right: 6px; }

/* FAQ */
.faq { columns: 2; column-gap: 40px; }
.faq details { break-inside: avoid; border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; font-family: var(--display); font-size: 21px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s; color: var(--text-3); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 18px; color: var(--text-2); font-size: 14.5px; }
.faq .answer p { margin: 0; }

/* Newsletter */
.newsletter { background: linear-gradient(90deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--r); padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.newsletter h3 { font-size: 28px; margin-bottom: 4px; }
.newsletter p { margin: 0; color: var(--text-2); }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { min-width: 280px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.contact-list { display: grid; gap: 18px; margin-top: 24px; }
.contact-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; }
.contact-list li > div { min-width: 0; }
.contact-list .icon { width: 20px; height: 20px; color: var(--brass); margin-top: 3px; }
.contact-list span { display: block; font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.contact-list a, .contact-list p { font-size: 16px; color: var(--text); margin: 0; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brass); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-size: 14px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--amber); }
.form-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-3); margin: 0; }

/* Footer */
.footer { background: #0a100d; border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 28px; color: var(--text-2); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 16px; letter-spacing: .16em; color: var(--text); margin-bottom: 14px; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a:hover { color: var(--brass); }
.footer p { margin: 0 0 8px; }
.footer .appt { color: var(--brass); font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; margin-top: 10px; }
.footer-bottom { padding-top: 20px; display: grid; gap: 8px; font-size: 12.5px; color: var(--text-3); }

/* Vehicle page */
.crumbs { font-size: 13px; color: var(--text-3); padding: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.v-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 18px 0 22px; }
.v-head h1 { font-size: clamp(36px, 5vw, 60px); }
.v-head h1 span { color: var(--text-2); font-weight: 500; }
.v-head .variant { font-size: 15px; color: var(--text-2); margin: 8px 0 0; }
.v-head .badge { margin-bottom: 12px; }
.v-price { text-align: right; }
.v-price .price { font-size: 40px; }
.v-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.v-gallery .main { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--bg-3); border: 1px solid var(--line); display: block; }
.v-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.v-gallery .rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.v-gallery .rail a { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; border: 1px solid transparent; }
.v-gallery .rail a[aria-current="true"] { border-color: var(--brass); }
.v-gallery .rail img { width: 100%; height: 100%; object-fit: cover; }
.v-side { display: grid; gap: 16px; position: sticky; top: 92px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel h3 { font-size: 20px; letter-spacing: .08em; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.kv div span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.kv div strong { font-weight: 500; font-size: 15px; }
.panel .actions { display: grid; gap: 10px; margin-top: 8px; }
.panel .note { font-size: 12.5px; color: var(--text-3); margin: 10px 0 0; }
.v-desc { margin-top: 32px; max-width: 76ch; }
.v-desc p { color: var(--text-2); font-size: 16px; }
.v-desc p.first { color: var(--text); font-size: 18px; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gallery a { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--bg-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec-group { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.spec-group h3 { font-size: 19px; letter-spacing: .08em; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.spec-group li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.spec-group li:last-child { border-bottom: 0; }
.spec-note { font-size: 12.5px; color: var(--text-3); margin-top: 18px; max-width: 80ch; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 86vh; object-fit: contain; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; color: #fff; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r); background: rgba(255,255,255,.1); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .icon { width: 24px; height: 24px; }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--text-2); font-family: var(--display); letter-spacing: .14em; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0s !important; } }

/* Responsive */
@media (max-width: 1100px) {
  .stock-grid { grid-template-columns: repeat(2, 1fr); }
  .usps { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3n) { border-right: 0; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .searchbar-inner { grid-template-columns: repeat(2, 1fr); }
  .searchbar-inner .btn { grid-column: 1 / -1; }
  .topbar ul.info li:nth-child(n+3) { display: none; }
  .navigation .phone { display: none; }
}
@media (max-width: 860px) {
  .topbar { display: none; }
  .menu-toggle { display: inline-flex; }
  .navigation { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .navigation.open { transform: none; opacity: 1; pointer-events: auto; }
  .navigation a { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .navigation .phone { display: inline-flex; }
  .navigation .btn { margin: 16px 0 0; border-bottom: 0; }
  .hero { min-height: 480px; }
  .brand-wordmark { display: none; }
  .welcome, .contact-grid, .v-layout, .v-head, .strip, .newsletter { grid-template-columns: 1fr; }
  .v-price { text-align: left; }
  .v-side { position: static; }
  .faq { columns: 1; }
  .reviews { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .newsletter input { min-width: 0; }
  .results-bar { flex-direction: column; align-items: start; }
  .others { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stock-grid { grid-template-columns: 1fr; }
  .usps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .v-gallery .rail { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---- app: logo, accounts, admin ---- */
.brand-mark { height: 46px; width: auto; }
.brand-wordmark span { display: inline; font-family: var(--display); font-size: 12px; letter-spacing: .2em; color: var(--brass); margin-left: 6px; }
.legal-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.staff-link { color: var(--text-3); text-decoration: none; opacity: .35; font-size: 11.5px; letter-spacing: .04em; transition: opacity .2s; }
.staff-link:hover, .staff-link:focus { opacity: 1; color: var(--brass); }
.save-btn { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.save-btn .icon { width: 18px; height: 18px; }
.save-btn.on { color: var(--brass); }
.save-btn.on .icon { fill: currentColor; }
.v-hero { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-3); margin-bottom: 20px; }
.v-hero img { width: 100%; height: 100%; object-fit: cover; }
.v-hero .save-btn { top: 16px; right: 16px; width: 44px; height: 44px; }
.account-page, .admin-page { padding: 28px 0 64px; }
.auth-grid { display: grid; grid-template-columns: 1fr 460px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.auth-panel { padding: 24px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { padding: 10px 14px; font-family: var(--display); font-size: 17px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--text); border-bottom-color: var(--brass); }
.google { gap: 10px; }
.google .icon { stroke: none; width: 18px; height: 18px; }
.or { text-align: center; color: var(--text-3); font-size: 12px; margin: 14px 0; position: relative; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.or span { background: var(--bg-2); padding: 0 10px; position: relative; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.acc-grid .panel:first-child { grid-column: 1 / -1; }
.saved-grid { grid-template-columns: repeat(3, 1fr); }
.req-list { display: grid; gap: 10px; }
.req { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.muted { color: var(--text-3); }
.pill { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--brass); color: #fff; font-size: 12px; text-align: center; margin-left: 6px; }
.pill:empty { display: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.table td.thumb img { width: 72px; height: 48px; object-fit: cover; border-radius: 2px; }
.table td.actions { white-space: nowrap; }
.table td.msg { max-width: 280px; }
.table select { font: inherit; background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px 8px; }
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); display: flex; justify-content: flex-end; }
.drawer-panel { width: min(860px, 100%); height: 100%; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); padding: 24px clamp(16px, 3vw, 32px) 60px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.editor-form h4.group { grid-column: 1 / -1; font-size: 18px; letter-spacing: .06em; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.editor-form h4.group .muted { font-family: var(--body); font-size: 13px; font-weight: 400; margin-left: 8px; }
.field.checks { display: flex; gap: 18px; align-items: end; padding-bottom: 12px; }
.field.checks label { font-family: var(--body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text); display: flex; gap: 8px; align-items: center; margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; }
.pair input, .spec-edit input, .spec-edit textarea { width: 100%; font: inherit; font-size: 14px; padding: 9px 12px; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r); }
.spec-edit { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: var(--bg-2); }
.spec-edit textarea { min-height: 110px; }
.spec-edit .x { justify-self: start; }
.hero-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.hero-row img { width: 160px; aspect-ratio: 16/10; object-fit: cover; border-radius: 2px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; border: 1px solid var(--line); background: var(--bg-3); cursor: grab; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,.7); font-size: 12px; padding: 2px 6px; }
.ph-actions button { color: #fff; padding: 2px 6px; font-size: 16px; }
.editor-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
input[type=file] { color: var(--text-2); font-size: 13px; }
@media (max-width: 860px) {
  .auth-grid, .acc-grid { grid-template-columns: 1fr; }
  .auth-grid > .panel { order: -1; }
  .auth-grid > div:not(.panel) .usps { display: none; }
  .saved-grid { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr 1fr 40px; gap: 6px; }
  .pair .x { padding: 0; min-height: 40px; }
  .brand-wordmark { display: none; }
}
.check{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--text-2);cursor:pointer}.check input{width:18px;height:18px;accent-color:var(--brass)}
/* intl-tel-input on the dark theme */
.field .iti{width:100%}.field .iti__tel-input{padding-left:0}.iti--separate-dial-code .iti__selected-dial-code{color:var(--text-2)}.iti__country-container:hover .iti__selected-country-primary{background:transparent}
.iti__dropdown-content{background:var(--bg-3)!important;border:1px solid var(--line-2)!important;color:var(--text);border-radius:var(--r);box-shadow:0 12px 30px rgba(0,0,0,.45)}
.iti__search-input{background:var(--bg-2)!important;color:var(--text)!important;border-bottom:1px solid var(--line-2)!important;padding:10px 12px}
.iti__country{color:var(--text)}.iti__country.iti__highlight{background:var(--bg-2)!important}.iti__dial-code{color:var(--text-3)!important}.iti__divider{border-color:var(--line-2)!important}
.iti__selected-country-primary:hover,.iti__selected-country:focus .iti__selected-country-primary{background:transparent!important}.iti__arrow{border-top-color:var(--text-3)}
.hint{display:block;margin-top:6px;font-size:12.5px;color:var(--text-3)}.hint.err{color:#e08b8b}.hint a{color:var(--brass)}
.navigation #nav-account.btn{margin-left:4px}

/* ===== mobile pass ===== */
.header-call { display: none; }
.mobile-bar { display: none; }
.spec-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spec-group summary::-webkit-details-marker { display: none; }
.spec-group summary h3 { flex: 1; margin: 0 0 10px; }
.spec-group summary .icon { width: 18px; height: 18px; color: var(--text-3); flex: none; margin-bottom: 10px; transition: transform .2s; }
.spec-group[open] summary .icon { transform: rotate(180deg); }
.spec-group:not([open]) summary h3 { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.spec-group:not([open]) summary .icon { margin-bottom: 0; }
.drawer-head { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 12px 0; margin-top: -24px; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  html { -webkit-text-size-adjust: 100%; }
  .header-inner { height: 64px; gap: 8px; }
  .brand-mark { height: 38px; }
  .header-call { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: auto; color: var(--brass); border: 1px solid var(--line-2); border-radius: var(--r); }
  .header-call .icon { width: 20px; height: 20px; }
  .navigation { inset: 64px 0 auto 0; max-height: calc(100vh - 64px); overflow-y: auto; }
  .navigation .btn, .navigation #nav-account.btn { margin: 12px 0 0; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .navigation .btn.solid { margin-top: 16px; }
  /* hero: show the car, not the wall logo, behind the headline */
  .hero { min-height: 520px; }
  .hero-bg { inset: -55% 0 0 0; }
  .hero-bg img { object-position: 50% 100%; opacity: .5; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(15,22,19,.55) 0%, rgba(15,22,19,.25) 35%, rgba(15,22,19,.97) 78%); }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); line-height: 1.02; }
  .hero .lead { font-size: 16px; margin: 14px 0 20px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { text-align: center; justify-content: center; padding-left: 10px; padding-right: 10px; }
  .btn.sm { min-height: 40px; }
  .results-bar .sort a { padding: 10px 10px; }
  .card-media .main { aspect-ratio: 16 / 10; }
  .car-card .thumbs { display: none; }
  .searchbar { padding-top: 16px; padding-bottom: 16px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .h2 { font-size: clamp(30px, 8vw, 38px); }
  /* vehicle page */
  .v-hero { aspect-ratio: 16 / 10; margin-bottom: 14px; }
  .v-gallery .rail { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(15,22,19,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
  .mobile-bar a .icon { width: 18px; height: 18px; color: var(--brass); }
  .mobile-bar a.solid { background: var(--brass); color: #0f1613; border-color: var(--brass); font-weight: 600; }
  body:has(.mobile-bar) { padding-bottom: 76px; }
  body:has(.mobile-bar) .footer { padding-bottom: 20px; }
  /* photo viewer */
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; width: 56px; height: 44px; }
  .lightbox .lb-prev { left: 14px; } .lightbox .lb-next { right: 14px; }
  .lightbox .lb-count { bottom: 26px; }
  .lightbox img { max-width: 100vw; max-height: 78vh; }
  /* admin */
  .drawer-panel { width: 100%; padding: 24px 16px 100px; }
  .drawer-head { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .table th, .table td { padding: 10px 8px; font-size: 13px; }
  .table td.msg { max-width: 160px; }
  .table td.thumb img { width: 56px; height: 40px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .field input, .field select, .field textarea { font-size: 16px; } /* stops iOS zooming into fields */
}
@media (max-width: 400px) {
  .hero-actions { grid-template-columns: 1fr; }
  .bodytypes { gap: 8px; }
}

.facebook { margin-top: 10px; }
.google .icon { width: 18px; height: 18px; }

/* ===== light theme (white background) ===== */
:root {
  --bg: #ffffff;
  --bg-2: #f7f6f2;
  --bg-3: #efede7;
  --line: #e6e3dc;
  --line-2: #cfcbc1;
  --text: #141412;
  --text-2: #4d4b45;
  --text-3: #7a776e;
  --brass: #d4671f;
  --brass-2: #e0742e;
  --green: #2e8f55;
  --amber: #b4740f;
  --blue: #2f6fc2;
  --ink: #141412;
  --ink-2: #1c1b19;
  --ink-line: #2b2a27;
  --ink-text: #f1eee6;
  --ink-text-2: #b7b8ae;
  --ink-text-3: #85857c;
}
body { background: var(--bg); }
/* top strip and footer stay ink, with the white logo */
.topbar { background: var(--ink); border-bottom-color: var(--ink-line); color: var(--ink-text-2); }
.topbar a:hover { color: var(--ink-text); }
.header { background: rgba(255,255,255,.94); }
.header-call { color: var(--brass); }
.navigation .btn.solid, .btn.solid, .btn:hover, .btn.solid:hover, .skip, .pill { color: #fff; }
.btn.ghost { border-color: var(--line-2); color: var(--text); }
/* hero: photo band, light text */
.hero { color: var(--ink-text); background: var(--ink); }
.hero h1 em { color: #cfd0c8; }
.hero .lead { color: #d6d5cc; }
.hero .btn.ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.hero .btn.ghost:hover { border-color: #fff; color: #fff; }
.hero-bg::after { background: linear-gradient(90deg, rgba(20,20,18,.88) 0%, rgba(20,20,18,.4) 55%, rgba(20,20,18,.15) 100%), linear-gradient(180deg, rgba(20,20,18,.2) 0%, rgba(20,20,18,.1) 50%, rgba(20,20,18,.92) 100%); }
/* cards and panels */
.car-card { background: #fff; box-shadow: 0 1px 2px rgba(20,20,18,.04); }
.car-card:hover { border-color: var(--line-2); box-shadow: 0 10px 30px rgba(20,20,18,.08); }
.thumbs { background: var(--bg-2); }
.count-pill { color: #fff; }
.panel, .review, .spec-group, .usp, .faq details, .strip, .newsletter, .searchbar, .section.alt { border-color: var(--line); }
.strip { background: var(--bg-2); border-color: var(--line-2); }
.results-bar .sort a[aria-current="true"], .results-bar .sort a:hover { color: var(--text); background: var(--bg-3); }
.field input, .field select, .field textarea, .pair input, .spec-edit input, .spec-edit textarea, .table select { background: #fff; border-color: var(--line-2); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(212,103,31,.12); }
.field input::placeholder, .field textarea::placeholder { color: #a09d94; }
.footer { background: var(--ink); border-top-color: var(--ink-line); color: var(--ink-text-2); }
.footer h4 { color: var(--ink-text); }
.footer-top { border-bottom-color: var(--ink-line); }
.footer-bottom { color: var(--ink-text-3); }
.footer-nav a:hover { color: var(--brass-2); }
.footer .appt { color: var(--brass-2); }
.staff-link { color: var(--ink-text-3); }
.staff-link:hover, .staff-link:focus { color: var(--brass-2); }
.legal-row a { color: inherit; }
.footer-bottom a:hover { color: var(--ink-text); }
/* overlays on photos keep dark treatment */
.badge, .save-btn, .ph-actions { color: #fff; }
.badge.green { color: #8fe0ab; } .badge.amber { color: #f0c46a; } .badge.blue { color: #8cbcf5; }
.badge.static { background: var(--bg-3); color: var(--text-2); }
.badge.static.green { color: var(--green); } .badge.static.amber { color: var(--amber); } .badge.static.blue { color: var(--blue); }
.lightbox .lb-count { color: #cfd0c8; }
.drawer-panel { background: #fff; border-left-color: var(--line); }
.drawer-head { background: #fff; }
.table th { color: var(--text-3); }
.iti__dropdown-content { background: #fff !important; color: var(--text); }
.iti__search-input { background: var(--bg-2) !important; color: var(--text) !important; }
.iti__country.iti__highlight { background: var(--bg-2) !important; }
.hint.err { color: #b3261e; }
.form-status.err { color: #b3261e; }
.form-status.ok { color: var(--green); }
@media (max-width: 860px) {
  .navigation { background: #fff; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(20,20,18,.55) 0%, rgba(20,20,18,.25) 35%, rgba(20,20,18,.95) 78%); }
  .mobile-bar { background: rgba(255,255,255,.94); border-top-color: var(--line); }
  .mobile-bar a { color: var(--text); border-color: var(--line-2); }
  .mobile-bar a.solid { color: #fff; }
}

/* ===== stock card v2 ===== */
.card-body { padding: 16px 18px 18px; gap: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-title { font-size: 25px; line-height: 1.05; }
.card-year { font-family: var(--display); font-size: 15px; letter-spacing: .06em; color: var(--text-3); flex: none; }
.card-variant { margin: 0; min-height: 1.5em; }
.spec-row { padding: 12px 0; margin-top: 2px; }
.spec-row li { font-size: 13.5px; color: var(--text-2); }
.spec-row li b { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { align-items: flex-end; margin-top: auto; padding-top: 2px; }
.card-foot .ulez { margin-top: 4px; }
.card-actions { display: flex; gap: 8px; flex: none; }
.card-actions .btn.sm { min-height: 38px; padding: 0 14px; }
.card-media .main { position: relative; }
.status-banner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 9px 14px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: rgba(20,20,18,.78); backdrop-filter: blur(6px); border-top: 2px solid var(--brass); }
.status-banner.sold { background: rgba(120,20,20,.82); border-top-color: #e05252; }
.status-banner.reserved { background: rgba(140,90,10,.85); border-top-color: #f0b34a; }
.status-banner.in_transit { background: rgba(20,60,120,.82); border-top-color: #7db3ff; }
.car-card.is-sold .card-media .main img { filter: saturate(.55); }
.v-hero .status-banner { font-size: 16px; padding: 12px 16px; }
@media (max-width: 860px) { .card-actions { width: 100%; } .card-actions .btn { flex: 1; } .card-foot { flex-wrap: wrap; } }

/* ===== enquiry pop-up ===== */
.enq-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20,20,18,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.enq-modal.open { display: flex; animation: enqFade .18s ease; }
@keyframes enqFade { from { opacity: 0; } to { opacity: 1; } }
.enq-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 6px; padding: 26px 26px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: enqUp .22s ease; }
@keyframes enqUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.enq-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.enq-close:hover { background: var(--bg-3); color: var(--text); }
.enq-close .icon { width: 20px; height: 20px; }
.enq-car { display: flex; gap: 14px; align-items: center; padding-right: 40px; margin-bottom: 18px; }
.enq-car img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--bg-3); flex: none; }
.enq-car .h3 { margin: 2px 0 2px; font-size: 24px; }
.enq-sub { margin: 0; font-size: 13px; }
.enq-form { grid-template-columns: 1fr 1fr; }
.enq-form textarea { min-height: 96px; }
.enq-done { text-align: center; padding: 20px 0 6px; }
.enq-done .h3 { margin-bottom: 8px; }
@media (max-width: 560px) { .enq-box { padding: 22px 18px 16px; border-radius: 6px; } .enq-form { grid-template-columns: 1fr; } .enq-modal { align-items: flex-end; padding: 0; } .enq-box { max-height: 92vh; border-radius: 10px 10px 0 0; } }

/* ===== admin console ===== */
.admin-page { padding: 0; }
body.admin-mode .footer, body.admin-mode .topbar { display: none; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 76px); }
.admin-side { border-right: 1px solid var(--line); background: var(--bg-2); padding: 20px 14px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 76px; height: calc(100vh - 76px); }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 6px; font-family: var(--display); font-size: 17px; letter-spacing: .02em; color: var(--text-2); }
.admin-nav a .icon { width: 18px; height: 18px; color: var(--text-3); }
.admin-nav a:hover { background: #fff; color: var(--text); }
.admin-nav a.on { background: var(--ink); color: #fff; }
.admin-nav a.on .icon { color: var(--brass-2); }
.admin-nav .pill { margin-left: auto; }
.pill.soft { background: var(--bg-3); color: var(--text-2); }
.admin-nav a.on .pill.soft { background: rgba(255,255,255,.14); color: #fff; }
.admin-side-foot { margin-top: auto; display: grid; gap: 4px; font-size: 13.5px; padding: 6px 12px; }
.admin-side-foot a, .admin-side-foot button { color: var(--text-3); text-align: left; padding: 6px 0; }
.admin-side-foot a:hover, .admin-side-foot button:hover { color: var(--text); }
.admin-main { padding: 22px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.admin-top h1 { font-size: 34px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { display: grid; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--text); transition: border-color .2s; }
.kpi:hover { border-color: var(--line-2); }
.kpi.hot { border-color: var(--brass); background: #fff7f1; }
.kpi-n { font-family: var(--display); font-size: 38px; font-weight: 600; line-height: 1; }
.kpi-l { font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.kpi-s { font-size: 12.5px; color: var(--text-3); }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ov-grid .panel { padding: 16px 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.panel-head h3 { font-size: 19px; letter-spacing: .04em; margin: 0; padding: 0; border: 0; }
.panel-head h3 .muted { font-family: var(--body); font-size: 12px; letter-spacing: 0; font-weight: 400; }
.panel-head a { font-size: 13px; color: var(--brass); }
.list { display: grid; }
.list .row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--line); color: var(--text); border-radius: 4px; }
.list .row:first-child { border-top: 0; }
.list .row:hover { background: var(--bg-2); }
.list .row strong { display: block; font-weight: 600; font-size: 14px; }
.list .row .muted { font-size: 12.5px; display: block; }
.list .row .when { font-size: 12px; text-align: right; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 14px; letter-spacing: .04em; flex: none; overflow: hidden; }
.avatar.small { width: 44px; height: 32px; border-radius: 4px; background: var(--bg-3); color: var(--text-3); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 6px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bars .bar i { display: block; width: 100%; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars.enq .bar i { background: var(--brass); }
.bars .bar span { font-size: 10px; color: var(--text-3); }
.empty { padding: 16px 0; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input[type=search], .toolbar select { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; color: var(--text); min-width: 0; }
.toolbar input[type=search] { flex: 1 1 240px; }
.toolbar .spacer, .d-actions .spacer { flex: 1; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--bg-2); }
.table tr.dim td { opacity: .55; }
.table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--brass); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table.compact th, .table.compact td { padding: 8px 6px; }
.table td.when { white-space: nowrap; }
.table td.empty { text-align: center; padding: 30px; }
.cell-car { display: flex; align-items: center; gap: 10px; }
.cell-car img { width: 56px; height: 38px; object-fit: cover; border-radius: 3px; background: var(--bg-3); flex: none; }
.cell-car.big img { width: 120px; height: 80px; }
.cell-person { display: flex; align-items: center; gap: 10px; }
.tag { display: inline-block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: var(--bg-3); color: var(--text-2); vertical-align: middle; }
.tag.green { background: #e3f4e9; color: var(--green); } .tag.brass { background: #fbe9dc; color: var(--brass); }
.badge.static.grey { background: var(--bg-3); color: var(--text-3); }
.inline-status { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; color: var(--text); }
.inline-status.big { font-size: 15px; padding: 10px 12px; width: 100%; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--line-2); border-radius: 22px; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(16px); }
.drawer-panel.narrow { width: min(720px, 100%); }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d-grid .full { grid-column: 1 / -1; }
.d-grid .panel { padding: 16px 18px; }
.kv.one { grid-template-columns: 1fr; }
.message { white-space: pre-wrap; line-height: 1.6; background: var(--bg-2); padding: 12px 14px; border-radius: 4px; margin: 0; }
#d-notes, #c-notes { width: 100%; min-height: 96px; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: #fffdf5; }
.d-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn.danger { border-color: #e0a0a0; color: #b3261e; } .btn.danger:hover { background: #b3261e; border-color: #b3261e; color: #fff; }
.compact-form { grid-template-columns: 1fr 1fr; gap: 12px; }
.compact-form textarea { min-height: 80px; }
.small { font-size: 12.5px; }
.insights { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin: -6px 0 16px; }
.insights b { color: var(--text); font-weight: 600; }
.insights a { color: var(--brass); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b3261e; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .ov-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; overflow-x: auto; }
  .admin-nav { display: flex; gap: 4px; }
  .admin-nav a { padding: 9px 12px; font-size: 15px; white-space: nowrap; }
  .admin-nav a .icon { display: none; }
  .admin-side-foot { display: none; }
  .admin-main { padding: 16px 16px 90px; }
  .admin-top h1 { font-size: 28px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 12px 14px; } .kpi-n { font-size: 30px; }
  .d-grid, .compact-form { grid-template-columns: 1fr; }
  .toolbar select { flex: 1 1 45%; }
  #vehicle-table th:nth-child(1), #vehicle-table td:nth-child(1), #vehicle-table th:nth-child(5), #vehicle-table td:nth-child(5), #vehicle-table th:nth-child(6), #vehicle-table td:nth-child(6), #vehicle-table th:nth-child(7), #vehicle-table td:nth-child(7), #vehicle-table th:nth-child(8), #vehicle-table td:nth-child(8) { display: none; }
  #request-table th:nth-child(1), #request-table td:nth-child(1), #request-table th:nth-child(5), #request-table td:nth-child(5), #request-table th:nth-child(3), #request-table td:nth-child(3) { display: none; }
  #user-table th:nth-child(3), #user-table td:nth-child(3), #user-table th:nth-child(4), #user-table td:nth-child(4), #user-table th:nth-child(5), #user-table td:nth-child(5), #user-table th:nth-child(7), #user-table td:nth-child(7), #user-table th:nth-child(8), #user-table td:nth-child(8) { display: none; }
  #vehicle-table td.actions a { display: none; }
  #vehicle-table td.actions { text-align: right; }
}

.card-media .main .count-pill { right: auto; left: 12px; top: 12px; bottom: auto; }
@media (max-width: 860px) { #request-table .badge.static { font-size: 11px; padding: 4px 6px; letter-spacing: .06em; } #request-table td, #user-table td { padding: 8px 6px; } }
