/* ==========================================================================
   Area 51 Auto — site styles
   Brand colours come from the logo: navy #022135 and red #96000a.
   Mobile first; breakpoints at 700px, 1000px and 1200px.
   ========================================================================== */

:root {
  --navy: #022135;
  --navy-2: #0c3552;
  --navy-soft: #e8eef3;
  --red: #96000a;
  --red-hover: #7a0008;
  --red-soft: #fbeced;
  --text: #0f1b24;
  --muted: #5b6772;
  --border: #e2e7ec;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(2, 33, 53, .05), 0 6px 20px rgba(2, 33, 53, .06);
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 68px; /* room for the mobile action bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(150, 0, 10, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 24px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
.muted { color: var(--muted); }
.icon { width: 22px; height: 22px; flex: none; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .75em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); color: #fff; }
.btn--outline { background: #fff; color: var(--navy); border-color: #c8d1d9; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--icon { width: 46px; padding: 0; border-color: #c8d1d9; color: var(--navy); background: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.badge--sold { background: var(--red); color: #fff; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #fff; font-size: .85rem; }
.topbar .container { display: flex; justify-content: center; align-items: center; gap: 4px 12px; flex-wrap: wrap; min-height: 38px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.topbar a { color: #fff; font-weight: 700; }
.topbar a:hover { color: #ffd5d8; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside the header box. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.08rem; font-weight: 800; letter-spacing: .02em; color: var(--navy); }
.brand__text small { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a { padding: 8px 14px; border-radius: 8px; font-weight: 600; color: var(--text); text-decoration: none; }
.main-nav > a:hover { background: var(--bg-alt); color: var(--navy); }
.main-nav > a[aria-current="page"] { color: var(--red); }
.main-nav__phones { display: none; }

.header-phones { margin-left: auto; display: flex; gap: 20px; }
.header-phones a { display: flex; flex-direction: column; line-height: 1.2; font-weight: 800; text-decoration: none; color: var(--navy); font-size: .98rem; }
.header-phones small { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.header-phones a:hover small { color: var(--red); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 10px; background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
.nav-toggle__open { display: inline-flex; }

@media (max-width: 1099px) { .header-phones { display: none; } .main-nav { margin-left: auto; } }
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 1px) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; padding: 8px 16px 24px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav > a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1.15rem; font-weight: 700; }
  .main-nav__phones { display: grid; gap: 10px; margin-top: 20px; }
  .main-nav__phones a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-alt); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
  .main-nav__phones span { display: flex; flex-direction: column; line-height: 1.25; }
  .main-nav__phones small { font-size: .78rem; font-weight: 600; color: var(--muted); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 380px) { .brand__text small { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--alt { background: var(--bg-alt); }
@media (min-width: 1000px) { .section { padding: 80px 0; } .section--tight { padding: 40px 0; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* ---------- Home hero ---------- */
.hero { padding: 32px 0 8px; background: linear-gradient(180deg, var(--bg-alt), #fff); }
.hero__inner { display: grid; gap: 28px; align-items: center; }
.hero__text h1 { max-width: 14ch; }
.hero__address { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 700; color: var(--navy); }
.hero__address .icon { flex: none; width: 1.1em; height: 1.1em; color: var(--red); }
.hero__phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }
.hero__phones a { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; }
.hero__phones a:hover strong { text-decoration: underline; }
.hero__phones .icon { width: 1.1em; height: 1.1em; color: var(--red); }
.hero__actions { margin-top: 24px; }
.hero__actions .btn { white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; }
.hero__actions .btn .icon { flex: none; width: 1.2em; height: 1.2em; }
.hero__media img { width: 100%; border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 40px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

.search-box { position: relative; display: flex; align-items: center; max-width: 520px; margin-top: 24px; background: #fff; border: 1px solid #cdd5dc; border-radius: 12px; box-shadow: var(--shadow); }
.search-box > .icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search-box input { flex: 1; min-width: 0; height: 58px; padding: 0 12px 0 50px; border: 0; background: transparent; border-radius: 12px; font-size: 1rem; }
.search-box input:focus { outline: none; }
.search-box:focus-within { border-color: var(--navy); }
.search-box button { flex: none; width: 42px; height: 42px; margin-right: 8px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search-box button:hover { background: var(--red); }
.search-box button .icon { width: 18px; height: 18px; }
.search-box--wide { max-width: none; margin: 0; box-shadow: none; }
.search-box--wide input { height: 50px; }

/* ---------- Service tiles ---------- */
.service-tiles { display: grid; gap: 14px; }
@media (min-width: 800px) { .service-tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tile { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: #c4ced7; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tile__icon { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.tile__icon .icon { width: 26px; height: 26px; }
.tile__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tile__body strong { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.tile__body span { font-size: .93rem; color: var(--muted); line-height: 1.45; }
.tile__arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.tile__arrow .icon { width: 16px; height: 16px; }
.tile:hover .tile__arrow { background: var(--red); }

/* ---------- Car cards ---------- */
.car-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .car-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (max-width: 699px) {
  /* Featured row on the home page scrolls sideways on phones */
  .car-grid--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .car-grid--scroll::-webkit-scrollbar { display: none; }
  .car-grid--scroll .car-card { flex: 0 0 86%; scroll-snap-align: start; }
}

.car-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.car-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.car-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.car-card__link:hover { color: inherit; }
.car-card__media { position: relative; aspect-ratio: 5 / 3; background: var(--bg-alt); overflow: hidden; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.car-card:hover .car-card__media img { transform: scale(1.03); }
.car-card__media .badge { position: absolute; top: 12px; left: 12px; }
.car-card__photos { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(2, 33, 53, .72); color: #fff; font-size: .78rem; font-weight: 700; }
.car-card__photos .icon { width: 15px; height: 15px; }
.car-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.car-card__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 2px; color: var(--text); }
.car-card__sub { margin: 0; color: var(--muted); font-size: .93rem; }
.car-card__price-row { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 14px; }
.car-card__price { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.car-card__price--call { font-size: 1.2rem; color: var(--navy); }
.car-card__price--sold { font-size: 1.2rem; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.car-card__note { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.car-card.is-sold .car-card__media img { filter: grayscale(.85); opacity: .75; }

/* ---------- Promo band ---------- */
.promo { display: grid; gap: 24px; padding: 32px 24px; border-radius: 20px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(150, 0, 10, .35); pointer-events: none; }
.promo h2 { color: #fff; }
.promo p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 560px; }
.promo__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
@media (min-width: 900px) { .promo { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 48px 56px; } .promo__actions { justify-content: flex-end; } }
@media (max-width: 520px) { .promo__actions .btn { width: 100%; } }

/* ---------- Visit / info ---------- */
.visit { display: grid; gap: 32px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1.25fr; align-items: start; gap: 56px; } }
.map { display: block; width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--bg-alt); }
@media (min-width: 900px) { .map { height: 420px; } }
.info-list { display: grid; gap: 20px; margin-top: 8px; }
.info-list > li { display: flex; gap: 14px; }
.info-list > li > .icon { margin-top: 2px; color: var(--red); }
.info-list strong { display: block; color: var(--navy); }
.info-list p { margin: 0; }
.info-list a { font-weight: 600; }
.hours { display: grid; gap: 4px; max-width: 340px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; }
.hours li span { white-space: nowrap; }
.hours--lg li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.hours--lg li span:first-child { font-weight: 700; color: var(--navy); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 40px 0 32px; background: linear-gradient(180deg, var(--bg-alt), #fff); }
.page-hero h1 { max-width: 20ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 1000px) { .page-hero { padding: 72px 0 48px; } }
@media (max-width: 520px) { .page-hero__actions .btn { width: 100%; } }

/* ---------- Services ---------- */
.services { display: grid; gap: 14px; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.service { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.service .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--navy-soft); color: var(--navy); margin-bottom: 14px; }
.service h3 { margin-bottom: 6px; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Financing ---------- */
.feature-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feature-cards li { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); }
.feature-cards .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }
.feature-cards h2 { font-size: 1.15rem; margin-bottom: 6px; }
.feature-cards p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps { display: grid; gap: 14px; counter-reset: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--bg-alt); }
.steps__num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .contact-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.contact-card { padding: 22px; }
.contact-card .icon { color: var(--red); margin-bottom: 10px; }
.contact-card h2 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.contact-card a { font-size: 1.12rem; font-weight: 800; text-decoration: none; word-break: break-word; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 28px; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; } }
.form-layout__intro p { color: var(--muted); }
.form { display: grid; gap: 16px; padding: 22px; }
@media (min-width: 700px) { .form { padding: 32px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cad3db; border-radius: var(--radius-sm);
  background: #fff; font-size: 16px; /* 16px stops iOS zooming into inputs */
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2, 33, 53, .12); }
.form .btn[type="submit"] { justify-self: start; }
@media (max-width: 599px) { .form .btn[type="submit"] { width: 100%; } }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inventory ---------- */
.inventory { padding-top: 20px; padding-bottom: 56px; }
.inventory__top { margin-bottom: 16px; }
.inventory__layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .inventory__layout { grid-template-columns: 260px 1fr; gap: 28px; align-items: start; } }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.results-bar__title { font-size: 1rem; font-weight: 600; margin: 0; color: var(--text); letter-spacing: 0; }
.results-bar__title > span { font-weight: 800; }
.results-bar__actions { display: flex; gap: 10px; }
.sort select { min-height: 40px; padding: 0 34px 0 14px; border: 1.5px solid #c8d1d9; border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; }
.filters-toggle__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; }
.filters-toggle__count[hidden] { display: none; }

.filters { background: #fff; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.filters__head h2 { font-size: 1.1rem; margin: 0; }
.filters__close { display: none; width: 44px; height: 44px; border: 0; background: var(--bg-alt); border-radius: 50%; cursor: pointer; place-items: center; }
.filter { border-bottom: 1px solid var(--border); }
.filter summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none; color: var(--navy); }
.filter summary::-webkit-details-marker { display: none; }
.filter summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.filter[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.filter__body { padding: 0 0 16px; display: grid; gap: 4px; }
.filter__range { grid-template-columns: 1fr 1fr; gap: 10px; }
.filter__range label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.filter input[type="number"], .filter select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #cad3db; border-radius: 8px; background: #fff; font-size: 16px; }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; }
.check span { flex: 1; }
.check em { font-style: normal; font-size: .82rem; color: var(--muted); }
.filters__foot { display: flex; gap: 10px; padding-top: 16px; }
.filters__apply { display: none; }

@media (max-width: 999px) {
  .filters {
    position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
    padding: 12px 16px 0; transform: translateY(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__close { display: grid; }
  .filters__form { flex: 1; overflow-y: auto; }
  .filters__foot { padding: 12px 0 max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
  .filters__foot .btn { flex: 1; }
  .filters__apply { display: inline-flex; }
  body.filters-open { overflow: hidden; }
}
@media (min-width: 1000px) {
  .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
  .filters-toggle { display: none; }
}
.empty-state { text-align: center; padding: 48px 16px; border: 1px dashed #c8d1d9; border-radius: var(--radius); }
.empty-state[hidden] { display: none; }
.price-disclaimer { margin-top: 24px; font-size: .85rem; color: var(--muted); }

/* ---------- Vehicle detail ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }
.vd-layout { display: grid; gap: 24px; padding-bottom: 56px; }
.vd-main { min-width: 0; }
@media (min-width: 1000px) {
  .vd-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
  .vd-aside { position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (max-width: 999px) {
  /* On phones the price box comes right after the photos */
  .vd-layout { grid-template-columns: minmax(0, 1fr); }
  .vd-main { display: contents; }
  .gallery { order: 1; }
  .vd-aside { order: 2; }
  .vd-tabs, .vd-section { order: 3; }
}

.gallery { min-width: 0; }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 5 / 3; cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .badge { position: absolute; top: 14px; left: 14px; font-size: .9rem; padding: 6px 14px; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery__nav:hover { background: #fff; color: var(--red); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(2, 33, 53, .78); color: #fff; font-size: .85rem; font-weight: 700; cursor: pointer; }
.gallery__count .icon { width: 17px; height: 17px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery__thumb { flex: 0 0 auto; width: 96px; aspect-ratio: 5 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg-alt); opacity: .7; transition: opacity .15s, border-color .15s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--red); opacity: 1; }
@media (max-width: 699px) {
  .gallery__main { border-radius: 0; margin: 0 -16px; }
  .gallery__nav { display: none; }
  .gallery__thumbs { display: none; }
}
@media (min-width: 1000px) { .gallery__thumb { width: 116px; } }

.buy-box { padding: 22px; }
.buy-box__title { font-size: clamp(1.5rem, 3vw, 1.85rem); margin-bottom: 4px; }
.buy-box__sub { color: var(--muted); margin: 0 0 16px; }
.buy-box__pricing { padding-top: 16px; border-top: 1px solid var(--border); }
.buy-box__price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--text); }
.buy-box__price--call { font-size: 1.6rem; color: var(--navy); }
.buy-box__price--sold { color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.buy-box__note { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.buy-box__sold { font-weight: 600; margin: 0; }
.highlights { display: grid; gap: 8px; margin-top: 16px; }
.highlights li { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: .95rem; }
.highlights .icon { width: 20px; height: 20px; color: #0f7a3b; margin-top: 1px; }
.buy-box__cta { display: grid; gap: 10px; margin-top: 20px; }
.buy-box__links { margin-top: 14px; overflow: hidden; }
.buy-box__row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; color: var(--text); }
.buy-box__row + .buy-box__row { border-top: 1px solid var(--border); }
.buy-box__row > .icon:first-child { color: var(--red); }
.buy-box__row > .icon:last-child { width: 18px; height: 18px; color: var(--muted); margin-left: auto; }
.buy-box__row span { display: flex; flex-direction: column; line-height: 1.35; }
.buy-box__row small { color: var(--muted); font-size: .84rem; }
.buy-box__row:hover { background: var(--bg-alt); color: var(--text); }

.vd-tabs { display: flex; gap: 4px; margin: 28px 0 0; padding: 6px; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.vd-tabs a { flex: 1; text-align: center; padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; }
.vd-tabs a:hover { background: var(--bg-alt); color: var(--navy); }
@media (max-width: 999px) { .vd-tabs { display: none; } }
.vd-section { padding: 32px 0 8px; border-bottom: 1px solid var(--border); }
.vd-section:last-child { border-bottom: 0; }
.vd-section h2 { font-size: 1.5rem; margin-bottom: 20px; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding-bottom: 24px; }
@media (min-width: 700px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.spec { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.spec .icon { color: var(--navy); margin-top: 2px; }
.spec strong { display: block; font-weight: 700; word-break: break-word; }
.spec span { font-size: .85rem; color: var(--muted); }

.feature-group { margin-bottom: 24px; }
.feature-group__title { font-size: 1.05rem; color: var(--red); margin-bottom: 12px; }
.feature-list { display: grid; gap: 12px; }
@media (min-width: 700px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li { padding: 18px; border-radius: var(--radius-sm); background: var(--bg-alt); }
.feature-list strong { display: block; color: var(--navy); margin-bottom: 4px; }
.feature-list p { margin: 0; color: #33414c; font-size: .95rem; }

#inquire .form { margin: 16px 0 32px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #05121c; color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: #05121c; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
.lightbox__count { font-weight: 700; }
.lightbox__close { width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 8px; }
.lightbox__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox .gallery__nav { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
@media (max-width: 699px) { .lightbox .gallery__nav { display: none; } }

/* ---------- Simple pages ---------- */
.simple-page { padding: 72px 0 96px; }
.simple-page__inner { max-width: 640px; text-align: center; }
.simple-page__inner .lead { margin-left: auto; margin-right: auto; }
.simple-page__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); margin-bottom: 16px; }
.simple-page__icon .icon { width: 30px; height: 30px; }
.simple-page .page-hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffc9cd; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 12px; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.1fr 1.3fr .8fr; } .footer-brand { grid-column: auto; } }
@media (min-width: 700px) and (max-width: 999px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 12px; }
.site-footer p { margin: 0 0 10px; }
.site-footer small { color: rgba(255, 255, 255, .6); }
.hours--footer { max-width: 280px; }
.hours--footer li { flex-direction: column; gap: 0; margin-bottom: 6px; }
.hours--footer li span:first-child { color: #fff; font-weight: 600; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-bottom { margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* ---------- Mobile action bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(2, 33, 53, .08); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar:not(.mobile-bar--vehicle) > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 6px 8px; font-size: .9rem; font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--navy); }
.mobile-bar:not(.mobile-bar--vehicle) > a + a { border-left: 1px solid var(--border); }
.mobile-bar:not(.mobile-bar--vehicle) > a .icon { color: var(--red); }
.mobile-bar__short { display: none; }
@media (max-width: 359px) { .mobile-bar__long { display: none; } .mobile-bar__short { display: inline; } }
.mobile-bar--vehicle { display: flex; align-items: center; gap: 10px; padding: 8px 16px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.mobile-bar__price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mobile-bar__price strong { font-size: 1.3rem; font-weight: 800; }
.mobile-bar__price small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-bar--vehicle .btn { min-height: 46px; }
@media (min-width: 1000px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }
.services-more { margin: 28px 0 0; text-align: center; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }
.services-more strong { display: block; margin-bottom: 4px; font-size: clamp(1.3rem, 2.6vw, 1.6rem); color: var(--navy); }
