/* =====================================================================
   North West Car Group — cars-for-sale.site design system
   One stylesheet. Tokens first, then base, layout, components, pages.
   ===================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour — WCAG contrast ratios noted against the surface each is used on */
  --night: #0B1B3F;         /* deep navy: header, hero, footer */
  --night-2: #12275A;
  --night-line: #22386B;
  --accent: #FF6A13;        /* tangerine: CTAs and highlights — 5.9:1 on navy; navy text on it 5.9:1 */
  --accent-soft: #FF8A45;   /* hover — 7.2:1 on navy */
  --brand: #0A54E6;         /* vivid blue: primary buttons and links — 6.1:1 with white */
  --brand-dark: #0846C2;
  --ink: #15171c;           /* body text: 16.6:1 on --bg */
  --ink-2: #3b414d;
  --muted: #5a616e;         /* 6.2:1 on white */
  --line: #dfe5f0;
  --line-2: #c8d1e1;
  --bg: #F3F6FC;
  --surface: #ffffff;
  --green-bg: #e3f4ea; --green: #17633a;
  --amber-bg: #fff0e3; --amber: #9a3c00;   /* 6.6:1 on its bg */
  --blue-bg: #e7eefb;  --blue: #1f4f9e;
  --focus: #2563eb;

  /* Type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1.0625rem;
  --fs-lg: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);

  /* Space, shape, depth */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --r-sm: 8px; --r: 14px; --r-lg: 20px; --pill: 999px;
  --shadow-1: 0 1px 2px rgba(17, 19, 24, .06), 0 1px 1px rgba(17, 19, 24, .04);
  --shadow-2: 0 10px 30px -12px rgba(17, 19, 24, .22);
  --wrap: 1200px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.6;
  color: var(--ink); background: var(--bg); font-feature-settings: "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 var(--s3); font-weight: 800; color: var(--ink); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.2rem; }
address { font-style: normal; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--accent); color: var(--night); padding: var(--s2) var(--s4); border-radius: var(--r-sm); z-index: 100; font-weight: 700; }
.skip:focus { top: var(--s2); }
.small { font-size: var(--fs-sm); }
.muted { color: var(--muted); }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.i-sm { width: 1em; height: 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 1.5rem); }
.section { padding-block: clamp(2.5rem, 5vw, var(--s8)); }
.section-tight { padding-block: var(--s6); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--s2) 0 0; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: var(--s2); }
.on-dark .eyebrow { color: var(--accent); }
.lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--s6); }
.prose h3 { margin-top: var(--s5); }
.prose li { margin-bottom: var(--s2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--pill); border: 2px solid transparent;
  font: 700 var(--fs-sm)/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: .5rem 1rem; }
.btn-lg { min-height: 54px; padding: .85rem 1.6rem; font-size: var(--fs-md); }
.btn-accent { background: var(--accent); color: var(--night); box-shadow: 0 6px 18px -8px rgba(255, 106, 19, .7); }
.btn-accent:hover { background: var(--accent-soft); color: var(--night); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.on-dark .btn-ghost { color: #fff; border-color: #4a64a0; }
.on-dark .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--night-line); }
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s2); color: #fff; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
@media (min-width: 400px) { .brand img { height: 44px; } }
.brand:hover { color: #fff; }
.nav-desktop { display: none; }
.nav-desktop > ul { display: flex; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav-desktop a, .nav-desktop summary {
  display: inline-flex; align-items: center; gap: .3rem; color: #e8e9ec; text-decoration: none; font-weight: 600;
  font-size: var(--fs-sm); padding: .55rem .7rem; border-radius: var(--r-sm); cursor: pointer; list-style: none;
}
.nav-desktop summary::-webkit-details-marker { display: none; }
.nav-desktop a:hover, .nav-desktop summary:hover, .nav-desktop a[aria-current="page"] { color: var(--accent); }
.nav-desktop a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.drop { position: relative; }
.drop[open] summary .i { transform: rotate(180deg); }
.drop-panel {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%); width: min(760px, 90vw);
  background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow-2); padding: var(--s5);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
}
.drop-title { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: var(--s2); }
.drop-panel ul { list-style: none; padding: 0; margin: 0; }
.drop-panel a { color: var(--ink); padding: .3rem 0; font-weight: 600; }
.drop-panel a:hover { color: var(--brand); }
.header-call { display: none; }
.nav-mobile { position: static; }
.nav-mobile summary {
  display: inline-flex; align-items: center; gap: var(--s2); list-style: none; cursor: pointer; color: #fff; font-weight: 700;
  min-height: 44px; padding: .4rem .8rem; border: 1px solid #3a404b; border-radius: var(--pill);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--night-2); border-top: 1px solid var(--night-line); padding: var(--s3) 0 var(--s5); box-shadow: var(--shadow-2); }
.nav-mobile-panel ul { list-style: none; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 1.5rem); max-width: var(--wrap); }
.nav-mobile-panel a { display: block; padding: .8rem 0; color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--night-line); }
@media (min-width: 1080px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
  .header-call { display: inline-flex; }
}
@media (min-width: 640px) and (max-width: 1079px) {
  .header-call { display: inline-flex; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: var(--s3) 0 0; margin: 0 auto; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-2); }
.crumbs a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1100px 520px at 88% -10%, rgba(10, 84, 230, .55), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(255, 106, 19, .22), transparent 60%), var(--night); color: #fff; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: var(--s6); padding-block: clamp(2rem, 5vw, 4rem) clamp(5rem, 9vw, 7rem); align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { color: #d6def0; }
.hero-media { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--night-2); aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3); display: flex; justify-content: space-between; gap: var(--s3); align-items: end;
  background: rgba(11, 27, 63, .86); padding: var(--s3) var(--s4); border-radius: var(--r); font-size: var(--fs-sm);
}
.hero-caption a { color: #fff; font-weight: 700; text-decoration: none; }
.hero-caption a:hover { color: var(--accent); }
.hero-caption strong { color: var(--accent); font-size: var(--fs-md); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; padding: 0; margin: var(--s5) 0 0; color: #dfe6f5; font-size: var(--fs-sm); }
.hero-points li { display: flex; gap: var(--s2); align-items: center; }
.hero-points .i { color: var(--accent); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

/* ---------- Search panel ---------- */
.search-panel { position: relative; z-index: 5; margin-top: clamp(-4.5rem, -7vw, -3rem); }
.search-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: clamp(1rem, 2.5vw, 1.5rem); }
.search-card h2 { font-size: var(--fs-lg); margin-bottom: var(--s3); }
.search-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; }
.search-grid .field:last-child, .search-grid .search-submit { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .search-grid { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
  .search-grid .field:last-child, .search-grid .search-submit { grid-column: auto; }
}
.search-foot { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: var(--s3) 0 0; font-size: var(--fs-sm); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label, .field .label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.select, .input {
  width: 100%; min-height: 48px; padding: .6rem .8rem; font: 600 var(--fs-sm) var(--font); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 10px;
}
.select { appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b414d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; }
.select:hover, .input:hover { border-color: var(--muted); }
.select:focus-visible, .input:focus-visible { border-color: var(--focus); outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 0; }
.select:disabled { background-color: #f1f2f4; color: var(--muted); }
.check { display: flex; gap: var(--s2); align-items: center; font-weight: 600; font-size: var(--fs-sm); min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--night); }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3) var(--s4); list-style: none; margin: 0; padding: var(--s5) 0; }
.trust li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.trust li strong { display: block; color: var(--ink); font-size: var(--fs-sm); }
.trust .i { width: 28px; height: 28px; color: var(--accent); }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .trust ul { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Vehicle cards ---------- */
.vgrid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); list-style: none; padding: 0; margin: 0; }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1); transition: box-shadow .2s ease, transform .2s ease; }
.vcard:hover { box-shadow: var(--shadow-2); }
.vcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9eaee; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); height: 100%; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.vcard-noimg .i { width: 40px; height: 40px; }
.vcard-count { position: absolute; right: var(--s2); bottom: var(--s2); background: rgba(17, 19, 24, .78); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: .15rem .5rem; border-radius: var(--pill); }
.vcard-body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); flex: 1; }
.vcard-title { font-size: 1.15rem; margin: 0; }
.vcard-title a { color: var(--ink); text-decoration: none; }
.vcard-title a:hover { text-decoration: underline; }
.vcard-deriv { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.vcard-price { color: var(--night); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: var(--s1) 0 0; }
.vcard-spec { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem var(--s3); list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.vcard-spec li { display: flex; gap: .4rem; align-items: center; }
.vcard-spec .i { color: var(--muted); }
.vcard-tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: var(--s1) 0 0; }
.tag { display: inline-flex; align-items: center; font-size: var(--fs-xs); font-weight: 700; padding: .2rem .55rem; border-radius: var(--pill); background: #eef0f3; color: var(--ink-2); }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.vcard-actions { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); margin-top: auto; padding-top: var(--s3); }

/* ---------- Tiles (browse by) ---------- */
.tiles { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); list-style: none; padding: 0; margin: 0; }
.tile { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 700; min-height: 64px; }
.tile:hover { border-color: var(--ink); color: var(--ink); }
.tile small { display: block; color: var(--muted); font-weight: 600; font-size: var(--fs-xs); }
.tile .i { color: var(--accent); }
.browse-tabs { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .browse-tabs { grid-template-columns: repeat(2, 1fr); } }
.browse-group h3 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .9rem; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip .count { color: var(--muted); font-weight: 600; }

/* ---------- Feature / info blocks ---------- */
.band-dark { background: linear-gradient(160deg, var(--night) 0%, #10286a 100%); color: #d6def0; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a:not(.btn) { color: var(--accent); }
.band-white { background: var(--surface); border-block: 1px solid var(--line); }
.cols-2 { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-2-wide { grid-template-columns: 1.3fr 1fr; } }
.features { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.band-dark .feature { background: var(--night-2); border-color: var(--night-line); }
.feature .i { width: 32px; height: 32px; color: var(--brand); margin-bottom: var(--s3); }
.band-dark .feature .i { color: var(--accent); }
.feature h3 { font-size: var(--fs-md); margin-bottom: var(--s2); }
.feature p { margin: 0; font-size: var(--fs-sm); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--s4); }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--accent); font-weight: 800; }
.band-dark .steps li::before { background: var(--accent); color: var(--night); }
.steps strong { display: block; color: inherit; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.compliance { border-left: 4px solid var(--accent); background: #fff6ef; padding: var(--s4) var(--s5); border-radius: 0 var(--r) var(--r) 0; font-size: var(--fs-sm); color: var(--ink-2); }
.compliance p:last-child { margin: 0; }
.band-dark .compliance { background: var(--night-2); color: #d6def0; border-color: var(--accent); }

/* ---------- Alerts / states ---------- */
.alert { border-radius: var(--r); padding: var(--s4) var(--s5); margin-block: var(--s4); border: 1px solid; }
.alert p:last-child { margin: 0; }
.alert-info { background: var(--blue-bg); border-color: #c4d3f1; color: #1c3a70; }
.alert-warn { background: var(--amber-bg); border-color: #efd7a8; color: var(--amber); }
.empty { text-align: center; padding: var(--s7) var(--s4); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .i { width: 44px; height: 44px; color: var(--muted); margin: 0 auto var(--s3); }
.loading { opacity: .55; pointer-events: none; transition: opacity .15s ease; }

/* ---------- Stock search page ---------- */
.results-layout { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 1000px) { .results-layout { grid-template-columns: 280px 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.filters > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s4); font-weight: 800; cursor: pointer; list-style: none; min-height: 52px; }
.filters > summary::-webkit-details-marker { display: none; }
.filters-body { padding: 0 var(--s4) var(--s4); display: grid; gap: var(--s3); }
.filters-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
@media (min-width: 1000px) {
  .filters { position: sticky; top: calc(var(--header-h) + 1rem); max-height: calc(100vh - var(--header-h) - 2rem); overflow: auto; }
  .filters > summary { pointer-events: none; }
  .filters > summary .i-toggle { display: none; }
}
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.results-count { font-weight: 800; font-size: var(--fs-lg); margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0 0 var(--s4); }
.active-filters a { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .25rem .4rem .25rem .8rem; background: var(--night); color: #fff; border-radius: var(--pill); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.active-filters a:hover { background: var(--night-2); color: #fff; }
.active-filters .clear { background: transparent; color: var(--ink); text-decoration: underline; padding-left: .4rem; }
.active-filters .clear:hover { background: transparent; color: var(--brand); }
.sort-field { display: flex; align-items: center; gap: var(--s2); }
.sort-field label { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.sort-field .select { min-width: 210px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); list-style: none; padding: 0; margin: var(--s6) 0 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; }
.pager [aria-current="page"] { background: var(--night); color: #fff; border-color: var(--night); }
.cat-intro { max-width: 75ch; color: var(--ink-2); }

/* ---------- Area & content pages ---------- */
.page-head { padding-block: var(--s5) var(--s6); }
.page-head h1 { max-width: 22ch; }
.facts { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); list-style: none; padding: 0; margin: var(--s5) 0 0; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); font-size: var(--fs-sm); color: var(--ink-2); }
.facts strong { display: block; font-size: var(--fs-lg); color: var(--ink); }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: var(--s3); }
.faq-list summary { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; padding: var(--s4) var(--s5); font-weight: 700; cursor: pointer; list-style: none; min-height: 56px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { transition: transform .2s ease; color: var(--muted); }
.faq-list details[open] summary .i { transform: rotate(180deg); }
.faq-list .answer { padding: 0 var(--s5) var(--s4); color: var(--ink-2); }
.faq-list .answer p:last-child { margin: 0; }
.area-list { columns: 2 200px; column-gap: var(--s5); list-style: none; padding: 0; }
.area-list li { break-inside: avoid; padding: .3rem 0; }
.hours { width: 100%; font-size: var(--fs-sm); }
.hours th { text-align: left; font-weight: 600; padding: .2rem var(--s4) .2rem 0; }
.hours td { text-align: right; padding: .2rem 0; font-variant-numeric: tabular-nums; }
.hours .today th, .hours .today td { color: var(--accent); font-weight: 800; }
.distance-tool { display: grid; gap: var(--s3); }
.distance-tool .row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.distance-tool .row .input { flex: 1 1 180px; }
.distance-result { min-height: 1.6em; font-weight: 700; margin: 0; }
.guide-cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; padding: 0; margin: 0; }
.guide-card { display: flex; flex-direction: column; gap: var(--s2); height: 100%; padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--ink); color: var(--ink); }
.guide-card h3 { font-size: var(--fs-md); margin: 0; }
.guide-card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.guide-card .more { margin-top: auto; font-weight: 700; color: var(--brand); display: inline-flex; gap: .3rem; align-items: center; }
.cta-band { background: linear-gradient(120deg, var(--night) 0%, #123a93 100%); color: #d6def0; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: var(--s4); align-items: center; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } .cta-actions { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.site-footer { background: #081530; color: #c9d3e8; margin-top: var(--s8); padding-top: var(--s7); font-size: var(--fs-sm); }
.site-footer a, .site-footer .linklike { color: #e8e9ec; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--accent); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-bottom: var(--s6); }
.footer-h { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s3); }
.footer-links { display: grid; gap: var(--s2); margin-top: var(--s3); }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; text-decoration: none; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.footer-brand img { width: 200px; height: auto; margin-bottom: var(--s4); }
.footer-legal { border-top: 1px solid var(--night-line); padding-block: var(--s5) calc(var(--s6) + 72px); color: #aebbd6; font-size: var(--fs-xs); }
.footer-legal p { max-width: 110ch; }
.legal-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; }
@media (min-width: 900px) { .footer-legal { padding-bottom: var(--s6); } }

/* ---------- Mobile action bar ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--night); border-top: 1px solid var(--night-line); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 60px; color: #fff; text-decoration: none; font-size: var(--fs-xs); font-weight: 700; }
.action-bar a .i { color: var(--accent); }
.action-bar a + a { border-left: 1px solid var(--night-line); }
body { padding-bottom: 60px; }
@media (min-width: 900px) { .action-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 60px; z-index: 60; padding: var(--s3); }
.cookie-inner { max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s4) var(--s5); display: grid; gap: var(--s3); font-size: var(--fs-sm); }
.cookie-inner p { margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end; }
.cookie-actions .btn { flex: 1 1 160px; }
@media (min-width: 900px) { .cookie-banner { bottom: 0; } .cookie-inner { grid-template-columns: 1fr auto; align-items: center; } .cookie-actions .btn { flex: none; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .tag, .chip, .tile { border: 1px solid ButtonText; }
}

/* ---------- Utilities ---------- */
.center { justify-content: center; text-align: center; }
.h-sub { font-size: var(--fs-lg); }
.mt-0 { margin-top: 0; }
.band-dark .section-head p, .band-dark .feature p { color: #c9d3e8; }
@media (min-width: 1150px) { .vgrid-4 { grid-template-columns: repeat(4, 1fr); } .vgrid-4 .vcard-actions { grid-template-columns: 1fr; } }

/* ---------- Small-screen fit and tap targets ---------- */
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }
.panel a[href^="mailto:"], address { overflow-wrap: anywhere; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 32px; }
.legal-links a, .legal-links .linklike { display: inline-flex; align-items: center; min-height: 32px; }
.hero-caption a { display: inline-block; padding: .15rem 0; }
.check input { width: 24px; height: 24px; }
.crumbs a { display: inline-flex; min-height: 28px; align-items: center; }
.vcard-media { text-decoration: none; }
.vcard-noimg { background: linear-gradient(135deg, #eef2fa, #e3e9f5); }
.vcard-noimg .i { color: var(--brand); }
@media (min-width: 1000px) { .results-layout .vgrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
.panel .hours .today th, .panel .hours .today td, .band-white .hours .today th, .band-white .hours .today td { color: var(--brand); }
.vcard-fee { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); letter-spacing: 0; margin-top: .1rem; }
.tag-blue { background: var(--blue-bg); color: var(--blue); }
.tag-blue { background: var(--blue-bg); color: var(--blue); }
