/* AirportTransfers.ai — component layer
   Import after tokens.css and base.css.

   This file is the SINGLE source for component CSS. Previews in
   components/ and templates in templates/ both import it. Do not copy a
   block out of here into a page's local <style> — the first version of
   this system kept .bpanel, .fcard, .cmp and .gstack in per-file style
   blocks and three of the four had already drifted before anything
   shipped. */

/* ---------- booking bar: horizontal ---------- */
.bbar {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr .9fr auto;
  align-items: center;
  background: var(--surface);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: var(--sp-2);
}
.bbar .field { padding: var(--sp-3) var(--sp-4); border-right: var(--border) solid var(--line); }
.bbar .field:last-of-type { border-right: 0; }
.bbar .btn { margin-left: var(--sp-2); align-self: stretch; }
@media (max-width: 900px) {
  .bbar { grid-template-columns: 1fr; }
  .bbar .field { border-right: 0; border-bottom: var(--border) solid var(--line); }
  .bbar .btn { margin: var(--sp-2) 0 0; }
}

/* ---------- booking bar: panel (split hero) ---------- */
.bpanel {
  background: var(--surface);
  border: var(--border) solid var(--line-accent);
  border-radius: var(--radius-m);
  padding: var(--sp-5);
}
.bpanel .field {
  background: var(--surface-in);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: var(--sp-3) var(--sp-4);
}
.bpanel .field + .field { margin-top: var(--sp-3); }
.bpanel .btn { width: 100%; margin-top: var(--sp-4); }
.bpanel__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-3); }
.bpanel__row .field + .field { margin-top: 0; }
.bpanel__assure { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); }
.bpanel .chiprow { margin-bottom: var(--sp-4); }

/* ---------- fleet ---------- */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.fcard { border: var(--border) solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.fcard--featured { border-color: var(--line-accent); }
.fcard__media { aspect-ratio: 16 / 10; }
.fcard__body { padding: var(--sp-4); display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); align-items: end; }
.fcard__spec { display: flex; gap: var(--sp-3); margin-top: 6px; }
.fcard__price { text-align: right; white-space: nowrap; }
/* The class name steps DOWN so the fare reads first. */
.fcard__name { font-family: var(--font-display); font-size: var(--body-l); line-height: 1.2; font-weight: 500; color: var(--text-mid); margin: 0; }
@media (max-width: 860px) { .fleet { grid-template-columns: 1fr; } }

/* ---------- route strip ---------- */
.rstrip {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  font-family: var(--font-op); font-size: var(--data); font-variant-numeric: tabular-nums;
  color: var(--text-hi);
  padding: var(--sp-4) 0;
  border-block: var(--border) solid var(--line);
}
.rstrip__sep { color: var(--champagne-700); }
.rstrip__fare { color: var(--accent); }

/* ---------- guarantees ---------- */
.gstack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.g { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.g .dot { margin-top: 9px; }
.g__head { font-family: var(--font-ui); font-size: var(--body); font-weight: 500; color: var(--text-hi); margin: 0; }
.g__head .num { font-family: var(--font-op); font-variant-numeric: tabular-nums; color: var(--accent); }
.g__body { font-size: var(--caption); color: var(--text-low); margin: 6px 0 0; }
.ginline { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; }
.ginline span { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--caption); color: var(--text-mid); }
@media (max-width: 900px) { .gstack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gstack { grid-template-columns: 1fr; } }

/* ---------- comparison ---------- */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 880px; }
.cmp th, .cmp td { padding: var(--sp-4); text-align: left; vertical-align: top; border-bottom: var(--border) solid var(--line); font-size: var(--body); color: var(--text-mid); }
/* Row labels stay put while the table pans. Without this the comparison is
   unreadable one-handed: you scroll to our column and no longer know which
   row you are on, which is exactly where the argument lives. */
.cmp__rowlabel {
  font-family: var(--font-ui);
  font-size: var(--caption);
  color: var(--text-low);
  width: 190px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--section);
}
.section--page .cmp__rowlabel { background: var(--page); }
@media (max-width: 640px) {
  .cmp { min-width: 720px; }
  .cmp__rowlabel { width: 130px; }
  .cmp th, .cmp td { padding: var(--sp-3); font-size: var(--caption); }
  .cmp__brand { font-size: var(--body-l); }
}
.cmp__brand { font-family: var(--font-display); font-size: var(--title); line-height: var(--title-lh); letter-spacing: var(--title-ls); color: var(--text-hi); }
.cmp__brandsub { font-family: var(--font-ui); font-size: var(--caption); color: var(--text-low); margin-top: var(--sp-1); }
.cmp .us {
  background: var(--surface);
  border-left: var(--border) solid var(--line-accent);
  border-right: var(--border) solid var(--line-accent);
  color: var(--text-hi);
}
.cmp thead .us { border-top: var(--border) solid var(--line-accent); border-radius: var(--radius-m) var(--radius-m) 0 0; }
.cmp tbody tr:last-child .us { border-bottom: var(--border) solid var(--line-accent); border-radius: 0 0 var(--radius-m) var(--radius-m); }
.mark { display: inline-flex; align-items: flex-start; gap: var(--sp-2); }
.mark .dot { margin-top: 7px; }
.val-num { font-family: var(--font-op); font-size: var(--data); font-variant-numeric: tabular-nums; color: var(--text-hi); }

/* ---------- terminals ---------- */
.terms { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); }
.term { border: var(--border) solid var(--line); border-radius: var(--radius-m); padding: var(--sp-4); background: var(--surface); }
.term__code { font-family: var(--font-op); font-size: var(--data-s); letter-spacing: var(--data-s-ls); text-transform: uppercase; color: var(--accent); }
.term__where { font-size: var(--caption); color: var(--text-mid); margin-top: var(--sp-2); }
@media (max-width: 960px) { .terms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .terms { grid-template-columns: 1fr; } }

/* ---------- faq ----------
   <details> keeps every answer in the DOM. Collapsed by the browser, not
   by JS, and never fetched on expand — AI crawlers do not run JavaScript. */
.faq details { border-bottom: var(--border) solid var(--line); padding-block: var(--sp-4); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-size: var(--title); color: var(--text-hi); min-height: 44px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: var(--sp-3) 0 0; color: var(--text-mid); }

/* ---------- trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-7); align-items: center; padding-block: var(--sp-5); border-block: var(--border) solid var(--line); }
.trust__item { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--caption); color: var(--text-mid); }
.trust__num { font-family: var(--font-op); font-variant-numeric: tabular-nums; color: var(--text-hi); font-size: var(--data); }

/* ---------- benefit pill ----------
   Short factual claims, three or four per card. Mono, squared, no fill.
   The chosen card lifts its pill borders to --gold-700. */
.pill {
  display: inline-flex; align-items: center;
  padding: 5px var(--sp-3);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-s);
  font-family: var(--font-op); font-size: var(--data-s); letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap; color: var(--text-mid);
}
.pillrow { display: flex; flex-wrap: wrap; gap: 7px; }
.is-chosen .pill { border-color: var(--gold-700); }

/* ---------- ticket ----------
   The fleet card. A transfer is a ticket, so the card is one: mono header
   carrying class and route, the photograph, the claims, then a perforated
   stub holding the fare. Chosen state is structural, never a word alone:
   the header strip fills flat gold, the border and perforation go gold, and
   every other card's photograph drops to 72% brightness. */
.ticket {
  position: relative; display: flex; flex-direction: column;
  background: var(--section);
  border: var(--border) solid var(--line);
  border-radius: 6px; overflow: hidden;
}
.ticket__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  padding: 11px var(--sp-4);
  font-family: var(--font-op); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-lo);
}
.ticket__figure { position: relative; height: 250px; overflow: hidden; }
.ticket__figure img,
.ticket__plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticket__plate { filter: brightness(.72) saturate(.85); }   /* not chosen */
.ticket__scrim { position: absolute; inset: 0; pointer-events: none; background: var(--scrim); }
.ticket__body { padding: var(--sp-4) var(--sp-4) 14px; display: flex; flex-direction: column; gap: var(--sp-3); flex: 1 1 auto; }
.ticket__name { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.15; color: var(--text-hi); margin: 0; }
/* the stub: dashed rule inset from the edges, with the perforation punched
   through both sides in the page ground */
.ticket__stub {
  position: relative; margin: 0 var(--sp-4);
  padding: 14px 0 var(--sp-4);
  border-top: var(--border) dashed var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
}
.ticket__stub::before,
.ticket__stub::after {
  content: ""; position: absolute; top: -7px;
  width: 14px; height: 14px; border-radius: var(--radius-full);
  background: var(--page);
}
.ticket__stub::before { left: -25px; }
.ticket__stub::after { right: -25px; }
.ticket__fare { font-family: var(--font-op); font-size: var(--title); font-variant-numeric: tabular-nums; color: var(--text-hi); }
.ticket__label { font-family: var(--font-op); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-low); }
.ticket.is-chosen { border-color: var(--gold-500); }
.ticket.is-chosen .ticket__head { background: var(--gold-400); color: var(--ink-900); }
.ticket.is-chosen .ticket__plate { filter: none; }
.ticket.is-chosen .ticket__stub { border-top-color: rgba(231, 198, 92, .55); }
.ticket.is-chosen .ticket__fare { color: var(--gold-400); }

/* ---------- zone chooser ----------
   Squared, not pilled. Gold marks the chosen zone. */
.zones { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.zone {
  padding: 11px 18px; border-radius: 3px;
  border: var(--border) solid var(--line-strong); background: transparent;
  font-family: var(--font-op); font-size: var(--data-s); letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap; color: var(--text-mid); cursor: pointer;
}
.zone:hover { border-color: var(--gold-500); }
.zone[aria-pressed="true"] { border-color: var(--gold-500); color: var(--gold-400); background: rgba(231, 198, 92, .1); }

/* ---------- photo wall ----------
   The gallery grid. First shot of each class spans two rows; every tile
   opens the lightbox. */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 178px; gap: 14px; }
.wall__tile { position: relative; border-radius: 6px; overflow: hidden; background: var(--surface); }
.wall__tile--lead { grid-row: span 2; }
.wall__cap { position: absolute; left: 14px; right: 14px; bottom: var(--sp-3); pointer-events: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); }
.wall__fare { font-family: var(--font-op); font-size: var(--caption); font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }

/* ---------- round control ----------
   Paging and expand affordances that sit on photography. */
.rbtn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--radius-full);
  background: rgba(11, 10, 9, .72);
  border: var(--border) solid rgba(245, 241, 234, .24);
  color: var(--text-hi); font-family: var(--font-op); font-size: 14px; cursor: pointer;
}
.rbtn:hover { border-color: var(--gold-400); color: var(--gold-400); }
.rbtn--lg { width: 42px; height: 42px; }
