/* =============================================================================
   public.css — the marketplace.

   THE IDEA
   Every Kosovar can read a number plate: white, a blue RKS band, and a two
   digit region code -- 01 Prishtinë, 02 Mitrovicë, 03 Pejë, 04 Prizren,
   05 Ferizaj, 06 Gjilan, 07 Gjakovë. Rovo uses that plate as its location
   marker, everywhere a place is named: on a car's photo, on a company, as the
   city picker on a phone. It carries real information, it is local in a way
   no generic rental site can copy, and it is the one loud thing on the page.

   Everything else is quiet: navy and white, gold only on actions, Barlow
   Semi Condensed (drawn from plates and road signs) for headlines and prices,
   Inter for reading.

   THE FLOW
   Find a car -> see the real total for your dates -> WhatsApp the company.
   Contact is reachable from every card, and on a phone it is pinned to the
   bottom of the vehicle and company pages, because that tap is the product.

   The legal pages also load this file for .bar and .site-footer; keep those
   class names.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Bar
   ----------------------------------------------------------------------------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bar-bg);
  color: var(--bar-ink);
  border-bottom: 1px solid var(--bar-line);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 60px;
}

/* The wordmark, white on the navy bar. The link pads it to the tap floor;
   the padding is also the logo's clear space. */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-block: 8px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
}
.brand .rovo-logo { height: 28px; }

.brand:hover { text-decoration: none; }

.bar-nav { display: flex; gap: var(--space-1); align-items: center; }

.bar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border-radius: var(--radius);
  color: var(--bar-ink-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.bar-nav a:hover { color: var(--bar-ink); background: rgba(255, 255, 255, 0.06); text-decoration: none; }

/* Current page: the cut, laid flat under the link, at the logo's slant. */
.bar-nav a { position: relative; }
.bar-nav a[aria-current='page'] { color: var(--bar-ink); border-radius: 0; }
.bar-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 7px;
  height: 3px;
  background: var(--brand-gold);
  transform: skewX(-15deg);
}

.bar-actions { display: flex; gap: var(--space-2); align-items: center; margin-left: auto; }

.bar .btn-ghost { color: var(--bar-ink); border-color: rgba(255, 255, 255, 0.24); }
.bar .btn-ghost:hover { border-color: var(--brand-gold); background: rgba(255, 255, 255, 0.06); }
.bar .btn-quiet { color: var(--bar-ink-2); }
.bar .btn-quiet:hover { color: var(--bar-ink); background: rgba(255, 255, 255, 0.06); }
.bar .btn-primary { background: var(--brand-gold); color: var(--brand-navy); border-color: var(--brand-gold); }

.bar-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--bar-ink-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  padding: 0 var(--space-2);
}
.bar-link:hover { color: var(--bar-ink); text-decoration: none; }

@media (max-width: 720px) {
  .bar-inner { gap: var(--space-3); min-height: 56px; }
  .brand .rovo-logo { height: 22px; }
  .bar-nav a { padding: 0 var(--space-2); }
  .bar-hide-sm { display: none; }
}

/* On a phone the logo is the way home, which frees room for Rezervimet and
   Dil when a customer is signed in. */
@media (max-width: 480px) {
  .bar-nav a[href='#/'] { display: none; }
}

/* -----------------------------------------------------------------------------
   The plate. A location marker, drawn like a Kosovo number plate.
   ----------------------------------------------------------------------------- */
.plate {
  display: inline-flex;
  align-items: stretch;
  height: 28px;
  border: 1.5px solid #121826;
  border-radius: 5px;
  background: #fff;
  color: #121826;
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-weight: var(--weight-semi);
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(14, 23, 38, 0.18);
  flex: 0 0 auto;
}

/* "RKS" is what is printed on the plate itself, not a label. */
.plate-band {
  display: grid;
  place-items: center;
  padding: 0 4px;
  background: var(--flag-blue);
  color: #fff;
  font-family: var(--font-text);
  font-size: 8.5px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
}

.plate-code {
  display: grid;
  place-items: center;
  padding: 0 6px 0 7px;
  font-size: 1rem;
  font-weight: var(--weight-bold);
  border-right: 1px solid rgba(18, 24, 38, 0.2);
}

.plate-name {
  display: grid;
  place-items: center;
  padding: 0 8px 0 7px;
  font-size: 0.95rem;
}

.plate-lg { height: 36px; border-width: 2px; border-radius: 6px; }
.plate-lg .plate-band { font-size: 10px; padding: 0 6px; }
.plate-lg .plate-code { font-size: 1.3rem; padding: 0 8px 0 9px; }
.plate-lg .plate-name { font-size: 1.2rem; padding: 0 11px 0 9px; }

/* -----------------------------------------------------------------------------
   Home: hero
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--brand-navy);
  color: var(--bar-ink);
  padding-block: var(--space-8) var(--space-7);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-7);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  font-weight: var(--weight-bold);
  line-height: 0.96;
  letter-spacing: -0.006em;
  color: #fff;
}

.hero h1 span { display: block; }

.hero-lede {
  margin-top: var(--space-5);
  max-width: 44ch;
  font-size: var(--text-md);
  color: var(--bar-ink-2);
}

.hero-lede b { color: var(--bar-ink); font-weight: var(--weight-semi); }

/* The search lives in the hero, in white, so the first thing on the page is
   the thing you came to do. */
.search {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
  padding: var(--space-4);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.search .field > label { font-size: var(--text-xs); color: var(--ink-3); }
.search .input,
.search .select { background: var(--page); border-color: transparent; }
.search .input:hover,
.search .select:hover { border-color: var(--line-strong); }
.search .btn-primary { min-height: 46px; padding-inline: var(--space-6); }

/* City plates. On a phone they replace the map; anywhere, they are the
   quickest way to say "Prizren". */
.cities {
  display: none;
  gap: var(--space-2);
  margin-top: var(--space-5);
  margin-inline: calc(-1 * var(--space-4));
  padding: 2px var(--space-4) var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.cities::-webkit-scrollbar { display: none; }

.city {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px 6px 6px;
  min-height: var(--tap);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bar-ink-2);
  font-size: var(--text-sm);
  cursor: pointer;
  scroll-snap-align: start;
  flex: 0 0 auto;
  transition: border-color var(--transition), background var(--transition);
}

.city .plate { height: 26px; }
.city b { color: var(--bar-ink); font-weight: var(--weight-semi); }
.city:hover { border-color: rgba(255, 255, 255, 0.4); }
.city[aria-pressed='true'] { border-color: var(--brand-gold); background: rgba(201, 162, 75, 0.14); color: var(--bar-ink); }
.city[disabled] { opacity: 0.45; cursor: default; }

/* -----------------------------------------------------------------------------
   Results
   ----------------------------------------------------------------------------- */
.results { padding-block: var(--space-7) var(--space-8); }

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.results-head h2 {
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.005em;
}

.results-head p { color: var(--ink-3); font-size: var(--text-sm); margin-top: var(--space-1); }
.results-head .select { width: auto; min-width: 200px; background-color: var(--surface); }

/* One row of filters. It scrolls sideways on a phone instead of wrapping into
   three rows that push the cars off screen. */
.filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-5) calc(-1 * var(--space-5)) var(--space-6);
  padding: 2px var(--space-5);
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.chip-sep { width: 1px; height: 24px; background: var(--line-strong); flex: 0 0 auto; margin-inline: var(--space-2); }

@media (pointer: coarse) { .chip { min-height: var(--tap); } }

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-5);
}

/* -----------------------------------------------------------------------------
   Vehicle card. The whole card opens the car; the WhatsApp button sits above
   that link so it can be tapped on its own.
   ----------------------------------------------------------------------------- */
.car {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.car:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.car:focus-within { border-color: var(--accent); }

/* The card's link is stretched over the whole card, so the focus ring goes on
   the card itself: a keyboard user sees which car is selected, not a hairline. */
.car:has(.car-link:focus-visible),
.co:has(.car-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

.car-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.car-photo img { width: 100%; height: 100%; object-fit: cover; }

.car-photo .plate { position: absolute; left: var(--space-3); bottom: var(--space-3); }

.car-new {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(11, 27, 64, 0.78);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
}

.car-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-4) var(--space-4); flex: 1; }

.car-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }

.car h3 {
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: 1.45rem;
  font-weight: var(--weight-semi);
  line-height: 1.1;
  letter-spacing: 0;
}

.car-link { color: var(--ink); text-decoration: none; }
.car-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.car-link:hover { text-decoration: none; }
.car-link:focus-visible { outline: none; }

.price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  line-height: 1;
}

.price b { font-size: 1.75rem; font-weight: var(--weight-bold); color: var(--ink); }
.price span { font-family: var(--font-text); font-size: var(--text-xs); color: var(--ink-3); }

.car-company {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: var(--weight-semi); }
.rating::before { content: '★'; color: var(--brand-gold); }
.rating small { color: var(--ink-3); font-weight: var(--weight-normal); font-size: inherit; }

.insured { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: var(--weight-medium); }
.insured svg { width: 15px; height: 15px; }

.car-spec { font-size: var(--text-sm); color: var(--ink-3); }

.car-foot {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.car-total { font-size: var(--text-sm); color: var(--ink-2); line-height: 1.3; }
.car-total b { display: block; font-size: var(--text-base); color: var(--ink); }

/* Above the card's stretched link. */
.car-foot .btn { position: relative; z-index: 2; }

/* Skeleton in the card's exact shape, so nothing jumps when cars arrive. */
.car-grid .sk-vehicle {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0 0 var(--space-4);
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.car-grid .sk-vehicle .sk-thumb { height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.car-grid .sk-vehicle .sk-body { padding-inline: var(--space-4); }
.car-grid .sk-vehicle .sk-price { margin-inline: var(--space-4); justify-self: start; width: 120px; height: 28px; }
.car-grid .state { grid-column: 1 / -1; }

/* -----------------------------------------------------------------------------
   WhatsApp mark, inside contact buttons.
   ----------------------------------------------------------------------------- */
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-sm svg { width: 16px; height: 16px; }

/* -----------------------------------------------------------------------------
   Home: verified companies
   ----------------------------------------------------------------------------- */
.band { padding-block: var(--space-8); border-top: 1px solid var(--line); background: var(--surface); }

.band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.band-head h2 {
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: var(--weight-bold);
}

.band-head p { color: var(--ink-3); margin-top: var(--space-1); max-width: 52ch; }

/* -----------------------------------------------------------------------------
   How it works: three steps on a road. The dashes between them are lane
   markings; the content really is a sequence, so the steps are numbered.
   ----------------------------------------------------------------------------- */
.road {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  counter-reset: road;
}

.road li { position: relative; counter-increment: road; padding-top: 64px; }

.road li::before {
  content: counter(road);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--brand-gold);
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: 1.4rem;
  font-weight: var(--weight-bold);
}

.road li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 21px;
  left: 60px;
  right: calc(16px - var(--space-6));
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 18px, transparent 18px 30px);
}

.road h3 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.5rem; font-weight: var(--weight-semi); letter-spacing: 0; }
.road p { margin-top: var(--space-2); color: var(--ink-2); max-width: 36ch; }

/* -----------------------------------------------------------------------------
   Company card (home band and the companies page)
   ----------------------------------------------------------------------------- */
.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--space-5);
}

.co {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.band .co { background: var(--page); }
.co:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.co:focus-within { border-color: var(--accent); }

.co-top { display: flex; gap: var(--space-4); align-items: center; }

.logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--brand-navy);
  color: var(--brand-gold);
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: 1.35rem;
  font-weight: var(--weight-bold);
}

.logo img { width: 100%; height: 100%; object-fit: cover; }

.co h3 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.45rem; font-weight: var(--weight-semi); line-height: 1.1; letter-spacing: 0; }
.co-top .plate { margin-top: var(--space-2); height: 24px; }
.co-top .plate-code { font-size: 0.9rem; }
.co-top .plate-name { font-size: 0.85rem; }

.co-facts { display: flex; gap: var(--space-5); flex-wrap: wrap; font-size: var(--text-sm); }
.co-facts dt { color: var(--ink-3); font-size: var(--text-xs); }
.co-facts dd { margin: 0; font-weight: var(--weight-semi); color: var(--ink); }

.co-hours { font-size: var(--text-sm); color: var(--ink-3); }

.co-foot { margin-top: auto; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.co-foot .btn { position: relative; z-index: 2; }

/* -----------------------------------------------------------------------------
   Page head for inner pages
   ----------------------------------------------------------------------------- */
.page-head { background: var(--brand-navy); color: var(--bar-ink); padding-block: var(--space-7); }
.page-head h1 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: var(--weight-bold); color: #fff; line-height: 1; }
.page-head p { margin-top: var(--space-3); color: var(--bar-ink-2); max-width: 54ch; }
.page-head .cities { display: flex; margin-top: var(--space-5); }

.back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.back:hover { color: var(--ink); text-decoration: none; }
.back svg { width: 18px; height: 18px; }

/* -----------------------------------------------------------------------------
   Vehicle page
   ----------------------------------------------------------------------------- */
.detail-wrap { padding-block: var(--space-4) var(--space-8); }

/* Three children: the top (photos, title), the booking panel, the rest.
   On a desktop the panel runs down the right beside both; on a phone it
   comes straight after the title, before the spec sheet. */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: 'top booking' 'rest booking';
  grid-template-rows: auto 1fr;
  column-gap: var(--space-7);
  align-items: start;
}

.detail-top { grid-area: top; min-width: 0; }
.detail-rest { grid-area: rest; min-width: 0; }
.detail .booking { grid-area: booking; }

.gallery { min-width: 0; }

.gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-count {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(11, 27, 64, 0.78);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav.prev { left: var(--space-3); }
.gallery-nav.next { right: var(--space-3); }
.gallery-nav:hover { background: #fff; }

/* Scrolls sideways: eight thumbnails in a fixed grid is what pushed the old
   page 450px past the edge of a phone. */
.gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.gallery-thumbs button {
  flex: 0 0 auto;
  width: 88px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition), border-color var(--transition);
}

.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-pressed='true'] { border-color: var(--brand-navy); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-title { margin-top: var(--space-6); }
.detail-title h1 {
  margin-top: var(--space-3);
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: -0.005em;
}

.detail-title .car-company { margin-top: var(--space-3); font-size: var(--text-base); }
.detail-title .car-company a { color: var(--ink); font-weight: var(--weight-semi); }
.detail-desc { margin-top: var(--space-4); color: var(--ink-2); max-width: 65ch; }

.detail-section { margin-top: var(--space-7); }
.detail-section > h2 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.6rem; font-weight: var(--weight-semi); margin-bottom: var(--space-4); }

/* Facts as a two-column list on hairlines, not ten identical tiles. */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-6);
  border-top: 1px solid var(--line);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}

.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); font-weight: var(--weight-medium); text-align: right; }

.features { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; }
.features li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--ink); }
.features svg { width: 16px; height: 16px; color: var(--ok); }

.host {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.host > div { min-width: 0; flex: 1; }
.host h3 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.35rem; font-weight: var(--weight-semi); letter-spacing: 0; }
.host p { font-size: var(--text-sm); color: var(--ink-3); margin-top: 2px; }

/* Booking panel */
.booking {
  position: sticky;
  top: 84px;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.booking .price b { font-size: 2.5rem; }
.booking .price span { font-size: var(--text-sm); }

.booking-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }

.lines { display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.line { display: flex; justify-content: space-between; gap: var(--space-3); color: var(--ink-2); }
.line.total {
  margin-top: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: var(--weight-semi);
  font-size: var(--text-base);
}
.line.total span:last-child { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.6rem; font-weight: var(--weight-bold); line-height: 1; }

.contact-block { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.contact-block > p { font-size: var(--text-sm); color: var(--ink-2); }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.contact-actions .btn-whatsapp { grid-column: 1 / -1; }
.contact-actions .btn:only-child { grid-column: 1 / -1; }

/* Phone dock: price and the two contact taps, always in reach. */
.dock { display: none; }

/* -----------------------------------------------------------------------------
   Company page
   ----------------------------------------------------------------------------- */
/* The business-profile shape from commit 4618f4a: a cover banner, a round
   logo straddling its bottom edge, the name and actions beside it. With no
   cover photo yet, the banner carries the outline of Kosovo in gold. */
.profile-hero { padding-block: var(--space-4) 0; }

.profile-cover {
  position: relative;
  height: 220px;
  margin-top: var(--space-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--brand-navy);
}

.profile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.profile-cover-map {
  position: absolute;
  right: 7%;
  top: 7%;
  height: 86%;
  width: auto;
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(201, 162, 75, 0.55);
  stroke-width: 1.6;
}

.profile-top {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4) var(--space-5);
  flex-wrap: wrap;
  padding-inline: var(--space-6);
  position: relative;
}

.profile-logo {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--brand-navy);
  color: var(--brand-gold);
  border: 5px solid var(--page);
  box-shadow: var(--shadow);
  /* Only the logo climbs onto the cover; the name stays on the page, where
     dark text can be read. */
  margin-top: -56px;
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: 2.4rem;
  font-weight: var(--weight-bold);
}

.profile-logo img { width: 100%; height: 100%; object-fit: cover; }

.profile-name { flex: 1; min-width: 240px; padding-bottom: var(--space-1); }
.profile-name h1 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: var(--weight-bold); line-height: 1; }
.profile-meta { display: flex; align-items: center; gap: var(--space-3) var(--space-4); flex-wrap: wrap; margin-top: var(--space-3); color: var(--ink-2); font-size: var(--text-sm); }
.verified { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: var(--weight-semi); }
.verified svg { width: 16px; height: 16px; }

.profile-hero .contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-bottom: var(--space-1); }

.profile-gallery {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-7);
  scrollbar-width: thin;
}

.profile-gallery img {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.profile-gallery[hidden] { display: none; }

.profile-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-7);
  padding-block: var(--space-7);
}

.profile-about { font-size: var(--text-md); color: var(--ink-2); max-width: 60ch; }
.profile-stats { display: flex; gap: var(--space-7); flex-wrap: wrap; margin-top: var(--space-6); }
.profile-stats dt { font-size: var(--text-sm); color: var(--ink-3); }
.profile-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 2.25rem; font-weight: var(--weight-bold); line-height: 1; }

.profile-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.profile-body .facts { grid-template-columns: 1fr; }

/* -----------------------------------------------------------------------------
   Auth
   ----------------------------------------------------------------------------- */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100dvh - 60px);
}

.auth-side {
  position: relative;
  background: var(--brand-navy);
  color: var(--bar-ink);
  padding: var(--space-8) var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.auth-side .auth-outline {
  position: absolute;
  top: 5%;
  right: -4%;
  width: 64%;
  height: auto;
  fill: none;
  stroke: rgba(201, 162, 75, 0.5);
  stroke-width: 1.4;
}

.auth-side h2 { position: relative; font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: var(--weight-bold); line-height: 1; color: #fff; max-width: 18ch; }
.auth-side p { position: relative; margin-top: var(--space-4); color: var(--bar-ink-2); max-width: 40ch; }

.auth-main { display: grid; place-items: center; padding: var(--space-7) var(--space-5); }

.auth-form { width: 100%; max-width: 400px; display: grid; gap: var(--space-4); }
.auth-form h1 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 2.5rem; font-weight: var(--weight-bold); line-height: 1; }
.auth-form > p { color: var(--ink-2); margin-top: calc(-1 * var(--space-2)); }
.auth-alt { text-align: center; font-size: var(--text-sm); color: var(--ink-2); }
.auth-alt button { min-height: var(--tap); background: none; border: 0; padding: 0 4px; color: var(--accent); font-weight: var(--weight-semi); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.auth-forgot { justify-self: end; min-height: var(--tap); margin-top: calc(-1 * var(--space-3)); background: none; border: 0; padding: 0; color: var(--ink-2); font-size: var(--text-sm); cursor: pointer; }
.auth-forgot:hover { color: var(--ink); text-decoration: underline; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  gap: 4px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.segmented button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  cursor: pointer;
}

.segmented button[aria-checked='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* -----------------------------------------------------------------------------
   My bookings: one card per booking, readable on any width.
   ----------------------------------------------------------------------------- */
.trips { display: grid; gap: var(--space-4); padding-block: var(--space-6) var(--space-8); }

.trip {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.trip h2 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.4rem; font-weight: var(--weight-semi); letter-spacing: 0; }
.trip p { font-size: var(--text-sm); color: var(--ink-3); margin-top: 2px; }
.trip-dates { font-size: var(--text-sm); color: var(--ink); font-weight: var(--weight-medium); }
.trip-total { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.6rem; font-weight: var(--weight-bold); text-align: right; }

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-navy);
  color: var(--bar-ink-2);
  padding-block: var(--space-8) var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.brand-lockup { min-height: 0; padding: 0; }
.footer-about { margin-top: var(--space-5); font-size: var(--text-sm); max-width: 38ch; }

.site-footer h2 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--bar-ink);
  margin-bottom: var(--space-3);
  letter-spacing: 0;
}

.site-footer nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--bar-ink-2);
  font-size: var(--text-sm);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer nav a:hover { color: var(--bar-ink); text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--bar-line);
  font-size: var(--text-xs);
}

/* -----------------------------------------------------------------------------
   States on this surface
   ----------------------------------------------------------------------------- */
.state { border-style: solid; border-color: var(--line); }

/* -----------------------------------------------------------------------------
   Tablet
   ----------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .detail { grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--space-6); }
}

@media (max-width: 900px) {
  .hero { padding-block: var(--space-6) var(--space-6); }
  /* minmax(0, …): the plate row scrolls, and a bare 1fr track would grow to
     its full width and push the lede and search off the screen. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .kmap { display: none; }
  .cities { display: flex; }
  /* Without the map beside it, the search gets two columns: place on top,
     dates side by side, then the button. Four in a row overflowed at 768. */
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search .field:first-child,
  .search .btn-primary { grid-column: 1 / -1; }

  /* minmax(0, …), not 1fr: a bare 1fr track grows to fit the thumbnail strip
     and pushed the page past the edge of a phone. */
  .detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'top' 'booking' 'rest'; grid-template-rows: auto; }
  .detail .booking { margin-top: var(--space-6); }
  .booking { position: static; }

  .profile-body { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }

  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-side { min-height: 220px; padding: var(--space-6) var(--space-5); }
  .auth-side svg { width: 46%; right: 2%; top: 10%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-lead { grid-column: 1 / -1; }

  .road { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .road li { padding: 0 0 0 64px; min-height: 44px; }
  .road li:not(:last-child)::after {
    top: 52px;
    left: 21px;
    right: auto;
    bottom: calc(8px - var(--space-5));
    width: 3px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 12px, transparent 12px 22px);
  }
  .road h3 { padding-top: 6px; }

  .trip { grid-template-columns: minmax(0, 1fr) auto; }
  .trip-dates { grid-column: 1; }
  .trip-total { grid-row: 1; grid-column: 2; }
}

/* -----------------------------------------------------------------------------
   Phone
   ----------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .wrap { padding-inline: var(--space-4); }

  .hero { padding-block: var(--space-6) var(--space-5); }
  .hero-lede { margin-top: var(--space-4); font-size: var(--text-base); }
  .kmap { display: none; }
  .cities { display: flex; }

  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-4); padding: var(--space-3); }
  .search .field:first-child,
  .search .btn-primary { grid-column: 1 / -1; }

  .results { padding-block: var(--space-6); }
  .results-head .select { min-width: 0; width: 100%; }
  .results-head > div:last-child { width: 100%; }
  .filters { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); margin-block: var(--space-4) var(--space-5); }

  .car-grid { gap: var(--space-4); }
  .car-photo { aspect-ratio: 16 / 10; }

  .band { padding-block: var(--space-7); }

  .detail-wrap { padding-top: 0; }
  .detail-wrap > .back { display: none; }
  .gallery { margin-inline: calc(-1 * var(--space-4)); }
  .gallery-main { border-radius: 0; aspect-ratio: 4 / 3; }
  .gallery-thumbs { padding-inline: var(--space-4); }
  .gallery-thumbs button { width: 64px; }
  .gallery-nav { width: 38px; height: 38px; }
  .detail-title { margin-top: var(--space-4); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .booking { box-shadow: none; }
  .host { flex-wrap: wrap; }
  .host .btn { width: 100%; }

  /* The dock. Pages that show it reserve room so it never covers the footer. */
  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -8px 24px rgba(14, 23, 38, 0.08);
  }
  .dock .price { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
  .dock .price b { font-size: 1.5rem; }
  .dock-name { flex: 1; min-width: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.2rem; font-weight: var(--weight-semi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dock .btn { min-height: 48px; }
  .dock .btn-icon { width: 48px; padding: 0; }
  body.has-dock { padding-bottom: 84px; }

  .profile-cover { height: 150px; border-radius: var(--radius-lg); margin-inline: calc(-1 * var(--space-2)); }
  .profile-cover-map { right: 5%; }
  .profile-top { padding-inline: var(--space-2); gap: var(--space-3); }
  .profile-logo { margin-top: -44px; }
  .profile-logo { width: 88px; height: 88px; font-size: 1.9rem; border-width: 4px; }
  .profile-name { min-width: 100%; }
  .profile-hero .contact-actions { display: none; }
  .profile-gallery img { width: 168px; }
  .profile-stats { gap: var(--space-6); }

  .auth-side { display: none; }
  .auth-main { padding-block: var(--space-6); place-items: start center; }

  .footer-grid { gap: var(--space-5); }
  .site-footer { padding-block: var(--space-7) var(--space-5); }

  .trip { padding: var(--space-4); }
}

/* =============================================================================
   HOME: how it works, trust, price, reviews, questions, companies.

   Every claim in these sections is something the product enforces or the
   Terms state. The two paper artifacts -- an inspection sheet and a receipt --
   are drawn live from a real listed car, so they are evidence, not artwork.
   ============================================================================= */

.zone { padding-block: var(--space-8); border-top: 1px solid var(--line); }

.zone-title::before,
.band-head h2::before {
  content: '';
  display: inline-block;
  width: 0.2em;
  height: 0.68em;
  margin-right: 0.34em;
  background: var(--brand-gold);
  transform: skewX(-15deg);
  transform-origin: 0 100%;
  vertical-align: baseline;
}

.zone-title,
.band-head h2 {
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: var(--weight-bold);
  line-height: 1.02;
  letter-spacing: -0.005em;
}

.zone-lede { margin-top: var(--space-4); color: var(--ink-2); font-size: var(--text-md); max-width: 46ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.split.is-reversed > :first-child { order: 2; }
.split.is-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: start; }

.sheet-slot { display: grid; justify-items: center; min-width: 0; }

/* Plain statements, each with a short reason. */
.promises { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.promises div { padding-left: var(--space-4); border-left: 3px solid var(--brand-gold); }
.promises dt { font-weight: var(--weight-semi); color: var(--ink); }
.promises dd { margin: var(--space-1) 0 0; color: var(--ink-2); font-size: var(--text-sm); max-width: 48ch; }

.fine { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--ink-3); max-width: 52ch; }
.fine a { font-weight: var(--weight-medium); }

/* -----------------------------------------------------------------------------
   Two ways to rent
   ----------------------------------------------------------------------------- */
.ways-title {
  margin-top: var(--space-8);
  margin-bottom: var(--space-5);
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: 1.6rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0;
}

.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }

.way {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--page);
}

.way-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-navy);
  color: var(--brand-gold);
}
.way-icon svg { width: 24px; height: 24px; }
.way-icon.is-wa { background: #25d366; color: #05231a; }

.way h4 { margin-top: var(--space-4); font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.5rem; font-weight: var(--weight-semi); letter-spacing: 0; }
.way > p { margin-top: var(--space-1); color: var(--ink-3); font-size: var(--text-sm); }
.way ul { list-style: none; padding: 0; margin-top: var(--space-4); display: grid; gap: var(--space-3); }
.way li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: var(--text-sm); color: var(--ink); }
.way li svg { width: 20px; height: 20px; color: var(--ok); }

/* -----------------------------------------------------------------------------
   The inspection sheet. Drawn like the form at a technical inspection:
   a header with the plate, then label ..... value on dotted leaders.
   ----------------------------------------------------------------------------- */
.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--brand-navy);
  color: #fff;
}

.sheet-head > div { min-width: 0; }
.sheet-kind { font-size: var(--text-xs); color: var(--brand-gold-light); font-weight: var(--weight-semi); }
.sheet-head h3 { margin-top: var(--space-1); font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.75rem; font-weight: var(--weight-bold); color: #fff; line-height: 1.05; letter-spacing: 0; }
.sheet-co { margin-top: 2px; font-size: var(--text-sm); color: var(--bar-ink-2); }

.sheet-body { padding: var(--space-5); display: grid; gap: var(--space-3); }
.sheet-body h4 { font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--ink-3); letter-spacing: 0; }
.sheet-body h4:not(:first-child) { margin-top: var(--space-3); }

.checks { list-style: none; padding: 0; display: grid; gap: var(--space-3); }

.checks li {
  display: grid;
  grid-template-columns: 24px auto minmax(16px, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

/* The dotted leader, in its own grid track between label and value. */
.checks li::after {
  content: '';
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  margin-bottom: 5px;
  border-bottom: 2px dotted var(--line-strong);
}

.check-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok);
}
.check-mark svg { width: 15px; height: 15px; }
.checks li.is-open .check-mark { background: var(--warn-soft); color: var(--warn); }
.checks.is-declared .check-mark { background: var(--surface-2); color: var(--ink-3); }

.check-k { color: var(--ink-2); grid-column: 2; }
.check-v { color: var(--ink); font-weight: var(--weight-semi); grid-column: 4; text-align: right; }

.sheet-foot { padding: 0 var(--space-5) var(--space-5); }

/* -----------------------------------------------------------------------------
   The receipt. Paper with a torn edge, figures in tabular columns.
   ----------------------------------------------------------------------------- */
.receipt {
  width: 100%;
  max-width: 360px;
  padding: var(--space-6) var(--space-6) calc(var(--space-6) + 12px);
  background: var(--surface);
  /* The torn bottom edge: a row of 16px teeth. */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
}

/* The shadow lives on the wrapper: a mask clips an element's own shadow,
   which left the receipt as loose text on a white band. */
#trustReceipt { filter: drop-shadow(0 18px 28px rgba(14, 23, 38, 0.14)) drop-shadow(0 0 1px rgba(14, 23, 38, 0.35)); }

.receipt-kind { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.5rem; font-weight: var(--weight-semi); line-height: 1.1; }
.receipt-dates { margin-top: 2px; font-size: var(--text-sm); color: var(--ink-3); }

.receipt-lines {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 2px dashed var(--line-strong);
  display: grid;
  gap: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.receipt-lines div { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); color: var(--ink-2); }
.receipt-lines dd { margin: 0; color: var(--ink); }

.receipt-lines .is-total {
  margin-top: var(--space-3);
  padding-top: var(--space-4);
  border-top: 2px dashed var(--line-strong);
  align-items: baseline;
  color: var(--ink);
  font-weight: var(--weight-semi);
  font-size: var(--text-base);
}

.receipt-lines .is-total dd { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 2.25rem; font-weight: var(--weight-bold); line-height: 1; }

.receipt-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--ink-2); }
.receipt-foot { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--ink-3); }

/* -----------------------------------------------------------------------------
   Reviews
   ----------------------------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-5); }

.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.review-stars { color: var(--brand-gold); font-size: 1.1rem; letter-spacing: 2px; line-height: 1; }
.review-stars span { color: var(--line-strong); }

.review blockquote { margin: 0; font-size: var(--text-md); line-height: var(--leading-snug); color: var(--ink); }

.review figcaption { margin-top: auto; display: grid; gap: 2px; font-size: var(--text-sm); color: var(--ink-3); }
.review figcaption b { color: var(--ink); font-weight: var(--weight-semi); }
.review-proof { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-2); color: var(--ok); font-weight: var(--weight-medium); }
.review-proof svg { width: 15px; height: 15px; }

/* -----------------------------------------------------------------------------
   Questions. Native <details>, so it works without JavaScript and with every
   screen reader; the plus turns into a cross when open.
   ----------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line-strong); }

.faq-item { border-bottom: 1px solid var(--line-strong); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding-block: var(--space-3);
  cursor: pointer;
  list-style: none;
  font-weight: var(--weight-semi);
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--ink-3); transition: transform var(--transition); }
.faq-item[open] summary svg { transform: rotate(45deg); color: var(--ink); }

.faq-item p { padding: 0 var(--space-7) var(--space-5) 0; color: var(--ink-2); max-width: 64ch; }

/* -----------------------------------------------------------------------------
   For companies
   ----------------------------------------------------------------------------- */
.cta-band { background: var(--brand-navy); color: var(--bar-ink); padding-block: var(--space-8); border-bottom: 1px solid var(--bar-line); }

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: end;
}

.cta-band h2 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(2rem, 4vw, 3rem); font-weight: var(--weight-bold); color: #fff; line-height: 1; }
.cta-band p { margin-top: var(--space-3); color: var(--bar-ink-2); max-width: 54ch; }

.cta-facts { display: flex; gap: var(--space-3) var(--space-7); flex-wrap: wrap; margin-top: var(--space-5); }
.cta-facts dt { font-size: var(--text-sm); color: var(--bar-ink-2); }
.cta-facts dd { margin: 2px 0 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.5rem; font-weight: var(--weight-semi); color: #fff; }

.cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.cta-band .btn-ghost:hover { border-color: var(--brand-gold); background: rgba(255, 255, 255, 0.06); }

/* -----------------------------------------------------------------------------
   Narrower screens
   ----------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .split,
  .split.is-faq { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .split.is-reversed > :first-child { order: 0; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 640px) {
  .zone { padding-block: var(--space-7); }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way { padding: var(--space-5); }
  .ways-title { margin-top: var(--space-7); }
  .sheet-head { flex-direction: column; gap: var(--space-3); }
  .sheet-body,
  .sheet-head { padding: var(--space-4); }
  .sheet-foot { padding: 0 var(--space-4) var(--space-4); }
  .receipt { padding-inline: var(--space-5); }
  .review { padding: var(--space-5); }
  .faq-item p { padding-right: 0; }
  .cta-band { padding-block: var(--space-7); }
  .cta-actions .btn { flex: 1; }
}

/* -----------------------------------------------------------------------------
   The map. Real cities, projected from latitude and longitude onto the
   country outline. Land is a dot matrix; roads are thin gold lines with small
   cars on them; each city is a dot sized by its live car count, with a label
   drawn like a plate: region code in a box, then the name and the count.
   ----------------------------------------------------------------------------- */
.kmap { position: relative; grid-row: 1; grid-column: 2; }

.kmap-svg { width: 100%; height: auto; max-height: 540px; display: block; overflow: visible; }

.kmap-land { fill: #121d33; }
.kmap-dots { fill: rgba(169, 180, 198, 0.3); }
.kmap-outline { fill: none; stroke: rgba(201, 162, 75, 0.75); stroke-width: 1.6; stroke-linejoin: round; }

.kmap-road { fill: none; stroke: rgba(201, 162, 75, 0.42); stroke-width: 1.5; stroke-linecap: round; }
.kmap-road.is-exit { stroke-dasharray: 3 5; }
.kmap-car { fill: #fff; filter: drop-shadow(0 0 3px rgba(212, 172, 94, 0.9)); }

.kmap-district { cursor: default; }
.kmap-district[role='button'] { cursor: pointer; }
.kmap-hit { fill: transparent; }

.kmap-dot {
  fill: var(--brand-gold);
  stroke: var(--brand-navy);
  stroke-width: 2.5;
  transition: r 200ms ease, fill 200ms ease;
}
.kmap-district.is-empty .kmap-dot { fill: #3a4a6b; stroke-width: 2; }
.kmap-district.is-airport .kmap-dot { fill: #fff; }

/* Cities with cars send out a slow ping: something is available here. */
.kmap-ping {
  fill: none;
  stroke: var(--brand-gold);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: kmap-ping 2.8s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.kmap-district:nth-child(2n) .kmap-ping { animation-delay: 0.9s; }
.kmap-district:nth-child(3n) .kmap-ping { animation-delay: 1.7s; }

@keyframes kmap-ping {
  from { transform: scale(1); opacity: 0.85; }
  to { transform: scale(3.2); opacity: 0; }
}

.kmap-tag-bg { fill: rgba(11, 27, 64, 0.88); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; transition: fill 200ms ease, stroke 200ms ease; }
.kmap-code-bg { fill: #fff; }
.kmap-code { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 14px; font-weight: 700; fill: #121826; text-anchor: middle; }
.kmap-label { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 15px; font-weight: 600; fill: #fff; }
.kmap-count { font-family: var(--font-text); font-size: 10.5px; font-weight: 600; fill: var(--brand-gold-light); }
.kmap-district.is-empty .kmap-tag-bg { fill: rgba(11, 27, 64, 0.6); stroke: transparent; }
.kmap-district.is-empty .kmap-label { font-size: 12px; font-weight: 500; fill: rgba(237, 241, 247, 0.62); }

.kmap-district.is-hover .kmap-tag-bg,
.kmap-district:focus-visible .kmap-tag-bg { stroke: var(--brand-gold); }
.kmap-district.is-hover .kmap-dot { fill: #e6c27a; }

.kmap-district.is-selected .kmap-tag-bg { fill: var(--brand-gold); stroke: var(--brand-gold); }
.kmap-district.is-selected .kmap-label,
.kmap-district.is-selected .kmap-count { fill: var(--brand-navy); }
.kmap-district.is-selected .kmap-dot { fill: #fff; stroke: var(--brand-gold); stroke-width: 3; }

.kmap-district:focus { outline: none; }
.kmap-district:focus-visible .kmap-hit { stroke: #fff; stroke-width: 2; stroke-dasharray: 4 3; }

/* Arrival: land first, then roads draw, then cities appear. One sequence. */
.kmap-land, .kmap-dots { animation: kmap-fade 600ms ease both; }
.kmap-road { stroke-dasharray: 600; stroke-dashoffset: 600; animation: kmap-draw 1100ms cubic-bezier(0.4, 0, 0.2, 1) 250ms forwards; }
.kmap-road.is-exit { animation: kmap-fade 600ms ease 900ms both; stroke-dashoffset: 0; }
.kmap-cities { animation: kmap-fade 500ms ease 650ms both; }
@keyframes kmap-fade { from { opacity: 0; } }
@keyframes kmap-draw { to { stroke-dashoffset: 0; } }

.kmap-hint { margin-top: var(--space-2); text-align: center; font-size: var(--text-xs); color: var(--bar-ink-2); }

/* -----------------------------------------------------------------------------
   Hero headline: each line rises out of its own mask, once, on arrival.
   ----------------------------------------------------------------------------- */
.rise > span { display: block; overflow: hidden; padding-bottom: 0.06em; }
.rise > span > span { display: block; animation: rise 760ms cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.rise > span:nth-child(2) > span { animation-delay: 110ms; }
@keyframes rise { from { transform: translateY(105%); } }

/* -----------------------------------------------------------------------------
   The monogram as a watermark (the brand kit lists watermark as a use of the
   solo R): one large R behind the headline, its gold cuts faintly lit.
   ----------------------------------------------------------------------------- */
.hero > .wrap { position: relative; z-index: 1; }

.brand-watermark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: auto;
  aspect-ratio: 123 / 100;
  overflow: visible;
  color: rgba(255, 255, 255, 0.03);
  --logo-accent: rgba(201, 162, 75, 0.09);
}
.hero .brand-watermark { height: 118%; left: -9%; top: -9%; }
.cta-band .brand-watermark { height: 190%; left: -6%; top: -30%; }

/* -----------------------------------------------------------------------------
   Price ticker: real cheapest prices per city, on a plate rail.
   ----------------------------------------------------------------------------- */
.ticker {
  position: relative;
  overflow: hidden;
  background: #070c17;
  border-top: 1px solid rgba(201, 162, 75, 0.35);
  border-bottom: 1px solid var(--bar-line);
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, #070c17, transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, #070c17, transparent); }

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

@keyframes ticker { to { transform: translateX(-50%); } }

.tick {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: 0 var(--space-6);
  border: 0;
  border-right: 1px solid var(--bar-line);
  background: transparent;
  color: var(--bar-ink-2);
  font-size: var(--text-sm);
  white-space: nowrap;
  cursor: pointer;
}

.tick b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.3rem; font-weight: var(--weight-bold); color: #fff; }
.tick .plate { height: 26px; }
.tick-n { color: var(--brand-gold-light); font-weight: var(--weight-semi); }
.tick:hover b { color: var(--brand-gold-light); }
.ticker[hidden] { display: none; }

/* -----------------------------------------------------------------------------
   How it works: a car drives the road once, lighting each step as it passes.
   ----------------------------------------------------------------------------- */
.road-wrap { position: relative; }

.road-car {
  position: absolute;
  top: 6px;
  left: 0;
  width: 44px;
  z-index: 2;
  color: var(--brand-gold);
  opacity: 0;
  pointer-events: none;
}
.road-car svg { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.road-wrap.is-live .road-car { animation: road-drive 2600ms cubic-bezier(0.45, 0, 0.25, 1) 200ms both; }

/* From the first node to the third. Columns are (W - 2 gaps) / 3 with a 32px
   gap, so the third node starts at 2/3 of the width plus 2/3 of one gap. */
@keyframes road-drive {
  0% { opacity: 0; left: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; left: calc(66.667% + 21px); }
}

.road-wrap.is-live .road li::before { animation: road-light 400ms ease both; }
.road-wrap.is-live .road li:nth-child(1)::before { animation-delay: 300ms; }
.road-wrap.is-live .road li:nth-child(2)::before { animation-delay: 1400ms; }
.road-wrap.is-live .road li:nth-child(3)::before { animation-delay: 2500ms; }

@keyframes road-light {
  from { background: var(--brand-navy); color: var(--brand-gold); }
  to { background: var(--brand-gold); color: var(--brand-navy); }
}

/* -----------------------------------------------------------------------------
   Inspection sheet: the checks tick in, then the stamp lands.
   ----------------------------------------------------------------------------- */
.sheet { position: relative; }

.checks .check-mark { transform: scale(0.4); opacity: 0; }
.sheet.is-live .check-mark { animation: tick-in 320ms cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.sheet.is-live .checks li:nth-child(1) .check-mark { animation-delay: 150ms; }
.sheet.is-live .checks li:nth-child(2) .check-mark { animation-delay: 330ms; }
.sheet.is-live .checks li:nth-child(3) .check-mark { animation-delay: 510ms; }
.sheet.is-live .checks li:nth-child(4) .check-mark { animation-delay: 690ms; }
.sheet.is-live .checks.is-declared .check-mark { animation-delay: 900ms; }
@keyframes tick-in { to { transform: scale(1); opacity: 1; } }

.stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: 8px 14px 7px;
  border: 3px solid rgba(22, 111, 73, 0.78);
  border-radius: 10px;
  color: rgba(22, 111, 73, 0.85);
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  line-height: 1;
  transform: rotate(-9deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.stamp span { font-size: 1.35rem; font-weight: var(--weight-bold); letter-spacing: 0.08em; text-transform: uppercase; }
.stamp small { margin-top: 3px; font-size: 0.8rem; font-weight: var(--weight-semi); letter-spacing: 0.04em; }

.sheet.is-live .stamp { animation: stamp 420ms cubic-bezier(0.2, 1.4, 0.4, 1) 1250ms both; }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-9deg) scale(1.9); }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}

/* -----------------------------------------------------------------------------
   Receipt: printed out of a slot.
   ----------------------------------------------------------------------------- */
.printer { position: relative; width: 100%; max-width: 380px; display: grid; justify-items: center; padding-top: 10px; }

.printer-slot {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 14px;
  border-radius: 8px;
  background: var(--brand-navy);
  box-shadow: inset 0 -4px 0 #000, 0 6px 14px rgba(14, 23, 38, 0.18);
}

.printer .receipt { clip-path: inset(0 0 100% 0); }
.printer.is-live .receipt { animation: print 1100ms steps(14, end) 150ms both; }
@keyframes print { to { clip-path: inset(0 0 -40px 0); } }

/* -----------------------------------------------------------------------------
   Reviews: a large quote mark in the corner of each card.
   ----------------------------------------------------------------------------- */
.review { position: relative; overflow: hidden; }
.review::before {
  content: '“';
  position: absolute;
  top: -34px;
  right: 10px;
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: 9rem;
  font-weight: var(--weight-bold);
  line-height: 1;
  color: var(--accent-soft);
  pointer-events: none;
}
.review > * { position: relative; }

/* -----------------------------------------------------------------------------
   For companies: oversized plates breaking out of the corner.
   ----------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band > .wrap { position: relative; z-index: 1; }

.cta-deco { position: absolute; inset: 0; pointer-events: none; }

.cta-plates {
  position: absolute;
  right: -40px;
  top: -30px;
  display: grid;
  gap: 18px;
  justify-items: end;
  transform: rotate(-11deg);
  opacity: 0.16;
}
.cta-plates .plate:nth-child(2) { margin-right: 70px; }
.cta-plates .plate:nth-child(3) { margin-right: 16px; }

.plate-xl { height: 64px; border-width: 3px; border-radius: 9px; }
.plate-xl .plate-band { font-size: 15px; padding: 0 10px; }
.plate-xl .plate-code { font-size: 2.4rem; padding: 0 14px; }
.plate-xl .plate-name { font-size: 2.1rem; padding: 0 18px 0 14px; }

/* -----------------------------------------------------------------------------
   Smaller screens and reduced motion
   ----------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .brand-watermark { height: 72%; left: -22%; top: -6%; }
  .road-car { display: none; }
  .cta-plates { right: -120px; opacity: 0.1; }
}

@media (max-width: 640px) {
  .tick { min-height: 52px; padding: 0 var(--space-4); }
  .tick b { font-size: 1.15rem; }
  .stamp { right: 12px; bottom: 12px; }
  .stamp span { font-size: 1.1rem; }
  .printer { max-width: 100%; }
}

/* Motion is decoration here, never information: under reduced motion every
   piece is shown in its final state and nothing loops. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
  .kmap-ping { display: none; }
  .road-car { display: none; }
  .checks .check-mark,
  .stamp { opacity: 1; transform: none; }
  .stamp { transform: rotate(-9deg); }
  .printer .receipt { clip-path: none; }
  .kmap-road { stroke-dashoffset: 0; }
}

/* =============================================================================
   SECTIONS, MARKETS AND LISTINGS
   ============================================================================= */

/* ---- Header: five sections on wide screens, a menu below that ------------ */
.bar { position: sticky; }
.bar-nav { gap: 0; }
.bar-nav a { padding: 0 var(--space-3); white-space: nowrap; }

.menu-btn { display: none; gap: var(--space-2); }
.menu-icon {
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-icon::before, .menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition);
}
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-btn[aria-expanded='true'] .menu-icon { background: transparent; }
.menu-btn[aria-expanded='true'] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--brand-navy);
  border-bottom: 1px solid var(--bar-line);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
  padding-block: var(--space-3) var(--space-5);
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
}
.menu-panel[hidden] { display: none; }
.menu-panel .wrap { display: grid; }
.menu-panel a, .menu-panel button {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-2);
  border: 0;
  background: none;
  color: var(--bar-ink);
  font: inherit;
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: 1.35rem;
  font-weight: var(--weight-semi);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-panel a[aria-current='page'] { color: var(--brand-gold-light); }
.menu-panel a:hover, .menu-panel button:hover { color: var(--brand-gold-light); text-decoration: none; }
.menu-panel hr { border: 0; border-top: 1px solid var(--bar-line); margin: var(--space-2) 0; }

@media (max-width: 1080px) {
  .bar-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .bar-hide-md { display: none; }
}

/* ---- Page heads -------------------------------------------------------------- */
.page-head-tight { padding-block: var(--space-6); }
.back-light { color: var(--bar-ink-2); }
.back-light:hover { color: #fff; }

/* ---- Listing: filters beside results --------------------------------------- */
.listing {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  padding-block: var(--space-6) var(--space-8);
}

.filters-panel {
  position: sticky;
  top: 80px;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.filters-head h2 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.5rem; font-weight: var(--weight-semi); letter-spacing: 0; }
.filters-close, .filters-foot { display: none; }
.filters-form { display: grid; gap: var(--space-4); }
.filters-form .field > label, .filters-form .label { font-size: var(--text-xs); color: var(--ink-3); }
.filters-form .select, .filters-form .input { min-height: 42px; padding-block: var(--space-2); font-size: var(--text-sm); }
/* Stacked: two date fields side by side truncate inside a 280px panel. */
.filters-dates { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }

.filters-pills { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filters-pills legend { width: 100%; margin-bottom: var(--space-2); }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.pill input:checked + span { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

input[type='range'] { width: 100%; accent-color: var(--brand-gold); min-height: 32px; }
.range-out { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--ink); }

.check { display: flex; align-items: center; gap: var(--space-2); min-height: 32px; font-size: var(--text-sm); color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-navy); }

.listing-bar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.listing-bar h2 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: var(--weight-bold); margin-right: auto; }
.listing-sort .select { width: auto; min-width: 190px; min-height: 40px; padding-block: var(--space-2); font-size: var(--text-sm); background-color: var(--surface); }
.filters-open { display: none; }
.filters-n { color: var(--accent); }

.active-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.active-chips:empty { display: none; }
.chip-x { gap: var(--space-2); background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.chip-x span { font-size: 1.1rem; line-height: 1; color: var(--ink-2); }
.chip-x:hover { background: var(--surface-2); }

.filters-scrim { position: fixed; inset: 0; z-index: 44; background: rgba(11, 27, 64, 0.5); }
.filters-scrim[hidden] { display: none; }

/* Companies in a city that has no cars listed yet */
.fallback {
  grid-column: 1 / -1;
  padding: var(--space-6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.fallback h3 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.5rem; font-weight: var(--weight-semi); letter-spacing: 0; }
.fallback > p { margin: var(--space-2) 0 var(--space-5); color: var(--ink-2); max-width: 60ch; }
.fallback .co { background: var(--page); }

/* ---- Cities (markets) ------------------------------------------------------- */
.markets {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-7);
  align-items: start;
  padding-block: var(--space-6) var(--space-8);
}

.market-map {
  position: sticky;
  top: 84px;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--brand-navy);
}
.market-map .kmap-svg { max-height: 560px; }

.market-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--space-3); }

.market {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.market:hover { border-color: var(--line-strong); box-shadow: var(--shadow); text-decoration: none; }
.market:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.market-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.market-state { font-size: var(--text-xs); color: var(--ink-3); }
.market.is-listed .market-state { color: var(--accent); font-weight: var(--weight-semi); }
.market.is-quiet { background: transparent; border-style: dashed; }
.market h3 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.5rem; font-weight: var(--weight-semi); letter-spacing: 0; }
.market-facts { display: flex; gap: var(--space-5); font-size: var(--text-sm); }
.market-facts dt { font-size: var(--text-xs); color: var(--ink-3); }
.market-facts dd { margin: 0; font-weight: var(--weight-semi); }
.market-facts small { color: var(--ink-3); font-weight: var(--weight-normal); }

/* ---- One city --------------------------------------------------------------- */
.city-head { padding-block: var(--space-5) var(--space-7); }
.city-title { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-3); }
.city-title h1 { margin: 0; }
.city-actions { margin-top: var(--space-5); }
.other-title { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.6rem; font-weight: var(--weight-semi); margin-bottom: var(--space-4); }
.other-cities { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.city-link {
  display: inline-flex;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
}
.city-link b { color: var(--ink); }
.city-link:hover { border-color: var(--ink-3); text-decoration: none; }

/* ---- Offers ----------------------------------------------------------------- */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-5); }

.offer {
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--brand-navy);
  color: var(--bar-ink);
  overflow: hidden;
}
/* The ticket notch: two half-circles cut from the edges, like a voucher. */
.offer::before, .offer::after {
  content: '';
  position: absolute;
  top: 118px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--page);
}
.offer::before { left: -11px; }
.offer::after { right: -11px; }
.offer-amount { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 4.5rem; font-weight: var(--weight-bold); line-height: 0.9; color: var(--brand-gold-light); }
.offer-amount span { font-size: 2.5rem; }
.offer-body { padding-top: var(--space-4); border-top: 2px dashed rgba(255, 255, 255, 0.18); }
.offer-body h2 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.6rem; font-weight: var(--weight-semi); color: #fff; letter-spacing: 0; }
.offer-body p { color: var(--bar-ink-2); margin-top: var(--space-1); }
.offer-scope { font-size: var(--text-sm); }
.offer-code { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border: 2px dashed rgba(201, 162, 75, 0.6); border-radius: var(--radius); }
.offer-code-text { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.5rem; font-weight: var(--weight-bold); letter-spacing: 0.08em; color: #fff; }
.offer .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.offer .btn-ghost:hover { border-color: var(--brand-gold); background: rgba(255, 255, 255, 0.06); }
.offer-dates { font-size: var(--text-sm); color: var(--bar-ink-2); }

.offer-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); padding: 0; margin-top: var(--space-7); }
.offer-steps li { counter-increment: st; display: grid; gap: 2px; padding-left: 52px; position: relative; }
.offer-steps li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--brand-gold);
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-weight: var(--weight-bold);
  font-size: 1.2rem;
}
.offer-steps b { font-weight: var(--weight-semi); }
.offer-steps span { color: var(--ink-2); font-size: var(--text-sm); }

.line.is-discount { color: var(--ok); }

/* ---- Map and plates: "companies, no cars yet" ---------------------------- */
.kmap-district.is-listed .kmap-dot { fill: var(--brand-navy); stroke: var(--brand-gold); stroke-width: 2.5; }
.kmap-district.is-listed .kmap-tag-bg { stroke: rgba(201, 162, 75, 0.55); stroke-dasharray: 4 3; }
.kmap-district.is-listed .kmap-count { fill: var(--brand-gold-light); }
.city.is-listed { border-style: dashed; border-color: rgba(201, 162, 75, 0.55); }

/* ---- Narrow screens ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters-open { display: inline-flex; }
  .filters-close, .filters-foot { display: block; }
  /* Filters become a sheet that slides up from the bottom. */
  .filters-panel {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 86dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(105%);
    transition: transform 260ms cubic-bezier(0.2, 0, 0.2, 1);
    padding-bottom: 0;
  }
  .filters-panel.is-open { transform: none; box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3); }
  .filters-foot { position: sticky; bottom: 0; padding: var(--space-4) 0 calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
  .markets { grid-template-columns: minmax(0, 1fr); }
  .market-map { position: static; }
  .offer-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .listing-sort { width: 100%; }
  .listing-sort .select { width: 100%; min-width: 0; }
  .market-map { padding: var(--space-3); border-radius: var(--radius-lg); }
  .offer { padding: var(--space-5); }
  .offer-amount { font-size: 3.6rem; }
}

body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .filters-panel { transition: none; }
}

/* Touch screens: every filter control reaches the 44px floor. */
@media (pointer: coarse) {
  .pill span, .check, input[type='range'], .listing-sort .select { min-height: var(--tap); }
}

/* -----------------------------------------------------------------------------
   Not found
   ----------------------------------------------------------------------------- */
.lost { position: relative; overflow: hidden; background: var(--brand-navy); color: var(--bar-ink); }
.lost-inner { position: relative; z-index: 1; display: grid; justify-items: start; gap: var(--space-4); min-height: min(72vh, 640px); align-content: center; padding-block: var(--space-8); }
.lost h1 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: var(--weight-bold); line-height: 1; color: #ffffff; }
.lost p { max-width: 46ch; color: var(--bar-ink-2); }
.lost .row { margin-top: var(--space-2); }
.lost .btn-ghost { color: var(--bar-ink); border-color: rgba(255, 255, 255, 0.24); }
.lost .brand-watermark { height: 150%; right: -12%; left: auto; top: -25%; }
