/* ==========================================================================
   Cosmo Fleet booking — design system
   Brand: navy #2a4066 + coral #E95440 (from the existing Cosmo Fleet site).
   Editorial/premium: serif display type, hairlines, square buttons,
   letter-spaced small labels, generous space. No rounded "app cards".
   ========================================================================== */

:root {
  --navy: #2a4066;
  --navy-deep: #1f3050;
  --navy-ink: #16233b;
  --coral: #e95440;
  --coral-deep: #d4432f;
  --paper: #f7f5f1;
  --card: #ffffff;
  --ink: #18202e;
  --muted: #5f6878;
  --faint: #8a919d;
  --line: #e4dfd7;
  --line-strong: #cbc4b8;
  --ok: #2c7a52;
  --ok-tint: #e8f3ec;
  --warn: #94600f;
  --warn-tint: #fbf1de;
  --bad: #b23a2c;
  --bad-tint: #fbe9e6;
  --slate-tint: #eef0f4;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 90rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --card-r: 12px; /* cards are gently rounded; buttons stay square */
  color-scheme: light;
}

/* Type scales up on big screens (everything below is in rem). */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (min-width: 1280px) { html { font-size: 17px; } }
@media (min-width: 1536px) { html { font-size: 18px; } }
@media (min-width: 1920px) { html { font-size: 19px; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.page-pad { padding-block: clamp(3rem, 8vw, 6rem); }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 .75rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(255,255,255,.72); }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  color: var(--navy-ink);
}
.lead { font-size: 1.12rem; color: var(--muted); font-weight: 300; max-width: 40rem; }
.hint { font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
small { font-size: .8em; color: var(--muted); font-weight: 400; }

/* ---------- Test ribbon ---------- */
.test-ribbon {
  background: #fff3c4; color: #5c4600; text-align: center;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem 1rem;
}

/* ---------- Header (light, hairline — no navy band) ---------- */
.site-head { background: transparent; color: var(--ink); position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; }
.brand img { height: 2.5rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 2.25rem); }
.site-nav a {
  color: var(--muted); text-decoration: none;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  padding: .4rem 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); border-bottom-color: var(--coral); }
.site-nav__phone { letter-spacing: .06em !important; }
.site-nav .site-nav__btn { border: 1px solid var(--ink); color: var(--ink); padding: .6rem 1.05rem; }
.site-nav .site-nav__btn:hover { background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .site-head__in { min-height: 4rem; }
  .brand img { height: 2rem; }
  .site-nav { gap: .9rem; }
  .site-nav__home, .site-nav a[href$="/book"]:not(.site-nav__btn), .site-nav__phone { display: none; }
  .site-nav .site-nav__btn { padding: .45rem .7rem; }
}
@media (max-width: 360px) { .brand img { height: 1.7rem; } .site-nav a { letter-spacing: .1em; } }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 5rem; padding-block: 1.75rem 7rem; color: var(--muted); font-size: .82rem; }
.site-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
@media (min-width: 1024px) { .site-foot { padding-bottom: 2rem; } }

/* ---------- Flash ---------- */
.flash { margin-top: 1.25rem; padding: .9rem 1.1rem; border-left: 3px solid var(--navy); background: var(--card); font-size: .95rem; }
.flash--ok { border-left-color: var(--ok); background: var(--ok-tint); }
.flash--bad { border-left-color: var(--bad); background: var(--bad-tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: 0 1.75rem;
  border: 1px solid transparent; border-radius: 0;
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-deep); color: #fff; }
.btn--navy { background: var(--navy-deep); color: #fff; }
.btn--navy:hover { background: var(--navy-ink); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--danger { background: transparent; border-color: #e3b5ae; color: var(--bad); }
.btn--danger:hover { border-color: var(--bad); color: var(--bad); }
.btn--sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: .72rem; letter-spacing: .16em; }
.btn[disabled], .btn.is-busy { opacity: .45; cursor: not-allowed; }
.btn.is-busy { cursor: progress; }
.link-btn {
  background: none; border: 0; padding: .5rem 0; color: var(--navy);
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
}
.link-btn:hover { color: var(--coral-deep); }
.back-link { display: inline-block; margin-bottom: 1.25rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); }

.page-head { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Booking layout ---------- */
/* One column. The trip summary lives in the bottom bar + a slide-up sheet;
   the right-hand side of the screen is the photo panel (see "Split" below). */
.book { position: relative; padding-top: clamp(1.75rem, 4vw, 3.25rem); padding-bottom: 2rem; } /* no z-index: the trip sheet must sit above its backdrop */
.book[data-mode="change"] { padding-top: 1rem; }
.book__main { min-width: 0; }

/* Steps: a three-part progress strip. Rail on top (navy = done, coral = now, grey = to come),
   "Step 01" above, the step name in serif below. Done steps get a tick and can be clicked. */
.steps { list-style: none; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 1.5vw, 1.25rem); }
.steps__item {
  display: flex; flex-direction: column; gap: .3rem; min-width: 0;
  padding-top: .85rem; border-top: 3px solid var(--line); color: var(--faint);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.steps__no { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.steps__no::before { content: "Step "; }
.steps__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.15; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps__item.is-current { border-top-color: var(--coral); color: var(--navy-ink); }
.steps__item.is-current .steps__no { color: var(--coral-deep); }
.steps__item.is-done { border-top-color: var(--navy-deep); color: var(--navy); cursor: pointer; }
.steps__item.is-done .steps__no::after { content: " ✓"; letter-spacing: 0; }
.steps__item.is-done:hover { color: var(--coral-deep); }
@media (max-width: 520px) {
  .steps__no::before { content: ""; }
  .steps__name { font-size: 1.1rem; }
  .steps__more { display: none; }
}

.step__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); color: var(--navy-ink); }
.step__title + .hint { margin: -.75rem 0 1.75rem; }
.step__actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.step__actions .btn--primary { margin-left: auto; }
@media (max-width: 1023px) { .step__actions { display: none; } } /* phones use the bottom bar */

.form-alert { margin-bottom: 1.5rem; padding: .9rem 1.1rem; background: var(--bad-tint); border-left: 3px solid var(--bad); color: #6e2219; font-size: .95rem; }

/* Blocks */
.block { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.block__title { margin: 0 0 1rem; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.sub-block { margin-top: 1rem; }
.switch + .grid2, .switch + .sub-block + .grid2, .sub-block + .grid2 { margin-top: 1.5rem; }
.sub-block__note { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--muted); }

/* Segmented controls */
.row-controls { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); max-width: 100%; }
.seg button {
  background: transparent; border: 0; padding: .75rem 1.15rem; min-height: 2.9rem;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted);
  white-space: nowrap;
}
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.is-on { background: var(--navy-deep); color: #fff; }
.seg button:not(.is-on):hover { color: var(--ink); background: var(--paper); }
.seg--quiet { border: 0; gap: 2rem; }
.seg--quiet button { padding: .55rem 0; min-height: 2.6rem; border-bottom: 1px solid transparent; }
.seg--quiet button + button { border-left: 0; }
.seg--quiet button.is-on { background: transparent; color: var(--ink); border-bottom-color: var(--coral); }
.seg--quiet button:not(.is-on):hover { background: transparent; }
@media (max-width: 520px) { .seg--quiet { width: auto; display: inline-flex; } .seg--quiet button { flex: 0 0 auto; padding-inline: 0; letter-spacing: .14em; font-size: .74rem; } }
@media (max-width: 520px) {
  .row-controls { flex-direction: column; align-items: stretch; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 0; padding-inline: .5rem; letter-spacing: .08em; font-size: .7rem; }
}

/* Fields */
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field__label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.field__label small { letter-spacing: .04em; text-transform: none; font-size: .9em; color: var(--faint); }
.field input, .field select, .field textarea, .voucher input, .phone select, .phone input {
  width: 100%; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 0;
  padding: .8rem .9rem; min-height: 3.25rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 5.5rem; resize: vertical; line-height: 1.45; }
.field select, .phone select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6878' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem;
}
.field input:focus, .field select:focus, .field textarea:focus, .voucher input:focus, .phone select:focus, .phone input:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(42,64,102,.12);
}
.field.has-error input, .field.has-error select, .field.has-error textarea, .addr.has-error input { border-color: var(--bad); }
.field input::placeholder, .field textarea::placeholder { color: #a3a8b1; }
/* iOS date/time inputs: stop them overflowing their box */
input[type="date"], input[type="time"] { display: block; min-width: 0; max-width: 100%; line-height: 1.3; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.field-error { display: block; color: var(--bad); font-size: .84rem; min-height: 0; }
.field-error:empty { display: none; }
.grid2 { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }

.phone { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); }
.phone select { border-right: 0; }

/* Switch & check */
.switch { display: flex; align-items: flex-start; gap: .85rem; margin-top: 1.25rem; cursor: pointer; line-height: 1.4; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  flex: 0 0 auto; width: 2.6rem; height: 1.5rem; border: 1px solid var(--line-strong); background: var(--paper);
  position: relative; transition: background .2s var(--ease), border-color .2s var(--ease); margin-top: .05rem;
}
.switch__track::after {
  content: ""; position: absolute; top: .18rem; left: .2rem; width: 1.05rem; height: 1.05rem; background: var(--faint);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--navy-deep); border-color: var(--navy-deep); }
.switch input:checked + .switch__track::after { transform: translateX(1.05rem); background: #fff; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--coral); outline-offset: 2px; }
.check { display: flex; gap: .75rem; align-items: flex-start; margin-top: 2rem; font-size: .95rem; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--navy-deep); flex: 0 0 auto; }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.counters--kids { margin-top: 1rem; }
.counter { display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem; min-width: 0; }
.counter + .counter { border-left: 1px solid var(--line); }
.counter__label { font-size: .9rem; font-weight: 500; line-height: 1.3; }
.counter__label small { display: block; margin-top: .15rem; font-weight: 400; }
.counter__ctl { display: flex; align-items: center; gap: .25rem; }
.counter__ctl button {
  width: 2.6rem; height: 2.6rem; border: 1px solid var(--line-strong); background: var(--card);
  font-size: 1.2rem; line-height: 1; display: grid; place-items: center;
}
.counter__ctl button:hover { border-color: var(--ink); }
.counter__ctl button:disabled { opacity: .35; cursor: default; }
.counter__ctl output { min-width: 2.4rem; text-align: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
@media (max-width: 640px) {
  .counters { grid-template-columns: minmax(0, 1fr); }
  .counter { flex-direction: row; align-items: center; }
  .counter + .counter { border-left: 0; border-top: 1px solid var(--line); }
}

/* Legs (trip blocks) */
.leg { background: var(--card); border: 1px solid var(--line); border-radius: var(--card-r); padding: clamp(1.25rem, 3vw, 2.25rem); margin-bottom: 1.25rem; box-shadow: 0 18px 40px -32px rgba(22,35,59,.35); }
.leg .leg__head { padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .leg { padding: 1.1rem .95rem 1.25rem; } }
.leg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.leg__title { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--navy-ink); }
.leg__no { margin-right: .7rem; color: var(--coral); }
.leg__head:has(.leg__remove) { align-items: center; }
.leg__remove { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy-ink); font: 500 .85rem/1 var(--sans); cursor: pointer; transition: border-color .15s, color .15s; }
.leg__remove span { font-size: .75rem; }
.leg__remove:hover, .leg__remove:focus-visible { border-color: var(--coral); color: var(--coral); }
.leg__title small { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; margin-left: .5rem; }
.leg__remove { background: none; border: 0; color: var(--muted); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.leg__remove:hover { color: var(--bad); }
.route { position: relative; display: grid; gap: .9rem; }
.route__line { position: absolute; left: .55rem; top: 2.6rem; bottom: 1.4rem; width: 1px; background: var(--line-strong); }
.route .addr-row { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto; gap: .75rem; align-items: start; }
.route__dot { width: 1.1rem; height: 1.1rem; margin-top: 2.45rem; border: 1px solid var(--navy); background: var(--card); position: relative; z-index: 1; }
.route__dot--end { background: var(--navy-deep); }
.route__dot--stop { width: .7rem; height: .7rem; margin: 2.65rem .2rem 0; border-color: var(--faint); }
.addr-row__remove { margin-top: 2.1rem; width: 2.6rem; height: 2.6rem; border: 0; background: none; color: var(--muted); font-size: 1.3rem; }
.addr-row__remove:hover { color: var(--bad); }
.addr-row__spacer { width: 2.6rem; }
.route-actions { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin: .6rem 0 0 1.85rem; }
.link-btn--muted { color: var(--muted); }
.leg .when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin-top: 1.1rem; }
.when--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .when--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .when--3 > :first-child { grid-column: 1 / -1; } }

/* Airport panel */
.airport { margin-top: 1.4rem; padding: 1.25rem 1.35rem 1.25rem 1.5rem; background: var(--paper); border-radius: 8px; box-shadow: inset 3px 0 0 var(--coral); }
.airport__title { margin: 0 0 .9rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--navy); }
.airport__note { margin: .8rem 0 0; font-size: .85rem; color: var(--muted); }
.airport .check { margin-top: .5rem; font-size: .88rem; }

/* Address autocomplete */
.addr { position: relative; }
.addr__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px);
  margin: 0; padding: .25rem 0; list-style: none; background: var(--card);
  border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -18px rgba(22,35,59,.35);
  max-height: 20rem; overflow: auto;
}
.addr__list li { padding: .7rem .95rem; cursor: pointer; line-height: 1.3; }
.addr__list li small { display: block; margin-top: .1rem; }
.addr__list li.is-active, .addr__list li:hover { background: var(--paper); }
.addr__list .addr__none { color: var(--muted); cursor: default; font-size: .9rem; }
.addr__tag { display: inline-block; margin-left: .4rem; padding: .05rem .4rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; background: var(--slate-tint); color: var(--navy); vertical-align: middle; }
.addr__picked { margin-top: .35rem; font-size: .8rem; color: var(--ok); }

/* Vehicles: rows divided by hairlines; the chosen one is lifted onto white */
.vehicles { display: grid; border-top: 1px solid var(--line); }
.vehicle {
  display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 2rem;
  border: 0; border-bottom: 1px solid var(--line); padding: 1.5rem 1.25rem; background: transparent;
  text-align: left; width: 100%; transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.vehicle:hover { background: rgba(255,255,255,.55); }
.vehicle.is-on { background: var(--card); box-shadow: inset 3px 0 0 var(--coral); }
.vehicle.is-off { opacity: .5; cursor: not-allowed; }
.vehicle__img { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
/* Fit the whole vehicle in the box — tall photos (minibus) shrink instead of being cut off */
.vehicle__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vehicle__cap span { white-space: nowrap; }
.vehicle__name { margin: 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1.05; color: var(--navy-ink); }
.vehicle__desc { margin: .25rem 0 .6rem; color: var(--muted); font-size: .9rem; }
.vehicle__cap { margin: 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.vehicle__why { margin: .35rem 0 0; color: var(--bad); font-size: .85rem; }
.vehicle__price { text-align: right; }
.vehicle__amount { display: block; font-family: var(--serif); font-size: 2.15rem; font-weight: 500; line-height: 1; color: var(--navy-ink); white-space: nowrap; }
.vehicle__incl { display: block; margin-top: .35rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vehicle__pick { display: inline-block; margin-top: .75rem; padding: .45rem .8rem; border: 1px solid var(--line-strong); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.vehicle.is-on .vehicle__pick { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
@media (max-width: 720px) {
  .vehicle { grid-template-columns: minmax(0, 1fr) auto; padding: 1.25rem .9rem; gap: .75rem 1rem; }
  .vehicle__img { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  .vehicle__name { font-size: 1.5rem; }
  .vehicle__amount { font-size: 1.65rem; }
}

/* Voucher, payment */
.voucher { display: flex; max-width: 28rem; }
.voucher input { text-transform: uppercase; letter-spacing: .08em; }
.voucher .btn { border-left: 0; min-height: 3.25rem; }
.voucher__msg { margin: .5rem 0 0; font-size: .88rem; color: var(--ok); }
.voucher__msg.is-bad { color: var(--bad); }
.pay-pane { margin-top: 1.25rem; }
.payment-element { min-height: 3rem; }
.secure-note { margin: 1rem 0 0; font-size: .78rem; color: var(--faint); letter-spacing: .04em; text-align: right; }
@media (max-width: 1023px) { .secure-note { text-align: left; } }
.diff { border: 1px solid var(--line); }
.diff__row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; }
.diff__row + .diff__row { border-top: 1px solid var(--line); }
.diff__row strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.diff__note { padding: .8rem 1rem; background: var(--paper); font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Trip summary: a sheet that slides up from the bottom bar ---------- */
.book__summary {
  position: fixed; z-index: 60; right: 0; bottom: 0; width: 100%;
  max-height: calc(100vh - 3rem); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  transform: translateY(105%); transition: transform .35s var(--ease); min-width: 0;
}
.book__summary.is-open { transform: none; }
@media (min-width: 1024px) { .book__summary { width: var(--visual-w); } }
.summary { background: var(--card); padding: 1.6rem 1.6rem calc(var(--bar-h) + 1.75rem); box-shadow: 0 -24px 60px -24px rgba(22,35,59,.45); }
.summary__head { display: flex; justify-content: space-between; align-items: center; }
.summary__head .eyebrow { margin: 0; }
.summary__close { border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--muted); width: 2.75rem; height: 2.75rem; margin: -.6rem -.6rem 0 0; }
.summary__empty { color: var(--muted); font-size: .92rem; margin: 1rem 0 0; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(22,35,59,.4); }
.sum-leg { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.sum-leg__when { margin: 0 0 .55rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); font-weight: 500; }
.sum-leg__stops { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.sum-leg__stops li { position: relative; padding-left: 1.1rem; font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere; }
.sum-leg__stops li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .45rem; height: .45rem; border: 1px solid var(--navy); }
.sum-leg__stops li:last-child::before { background: var(--navy-deep); }
.sum-leg__stops li.is-stop::before { border-color: var(--faint); width: .35rem; height: .35rem; left: .05rem; }
.sum-leg__meta { margin: .55rem 0 0; font-size: .8rem; color: var(--muted); }
.sum-group { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.sum-group p { margin: 0; }
.sum-label { margin-bottom: .35rem !important; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--navy); }
.sum-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.15; color: var(--navy-ink); }
.sum-contact { margin-top: .25rem !important; font-size: .85rem; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.sum-vehicle { display: flex; gap: .9rem; align-items: center; }
.sum-vehicle img { width: 5.5rem; aspect-ratio: 16/8; object-fit: contain; }
.sum-vehicle strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; display: block; line-height: 1.1; }
.sum-lines { list-style: none; margin: 0; padding: 1rem 0 .25rem; display: grid; gap: .45rem; font-size: .9rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.sum-lines li span:first-child { color: var(--muted); }
.sum-lines li.is-discount span:last-child { color: var(--ok); }
.sum-lines .sum-lines__trip { margin-top: .4rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .75rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.sum-total span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.sum-total strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1; color: var(--navy-ink); }
.sum-note { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.summary__map { margin-top: 1.25rem; height: 14rem; background: var(--paper); }

/* ---------- Trip bar: docked along the bottom (wide), floating card (phones) ---------- */
:root { --bar-h: 5.25rem; }
.tripbar {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem);
  min-height: var(--bar-h); padding: .8rem clamp(2rem, 4.5vw, 5.5rem) calc(.8rem + env(safe-area-inset-bottom));
  background: var(--navy-ink); color: #fff;
}
.tripbar__info, .tripbar__price { background: none; border: 0; padding: 0; color: inherit; text-align: left; min-width: 0; display: flex; flex-direction: column; }
.tripbar__route { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tripbar__meta, .tripbar__sub { margin-top: .2rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tripbar__price { text-align: right; align-items: flex-end; }
.tripbar__total { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1; white-space: nowrap; }
.tripbar__price:hover .tripbar__sub, .tripbar__info:hover .tripbar__meta { color: #fff; }
.tripbar .btn { min-height: 3.25rem; }
@media (min-width: 1024px) { .tripbar.no-price .tripbar__price { display: none; } }
body:has(.tripbar) .site-foot { padding-bottom: calc(var(--bar-h) + 2rem); }
@media (max-width: 1023px) {
  :root { --bar-h: 4.5rem; }
  .tripbar {
    left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; min-height: 0;
    padding: .55rem .55rem .55rem 1rem; box-shadow: 0 14px 34px -12px rgba(22,35,59,.55);
  }
  .tripbar__info { display: none; }
  .tripbar__price { text-align: left; align-items: flex-start; }
  .tripbar__total { font-size: 1.45rem; line-height: 1.05; }
  .tripbar__sub { font-size: .64rem; letter-spacing: .14em; margin-top: .1rem; }
  .tripbar .btn { min-height: 3rem; padding: 0 1.15rem; }
  .summary { padding-bottom: 6.5rem; }
}

/* ---------- Confirmation, trips, receipt ---------- */
.confirm { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.confirm__ref { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--coral-deep); margin: 0 0 1rem; letter-spacing: .04em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.panel { background: var(--card); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2.25rem); }
.panel + .panel { margin-top: 1.25rem; }
.panel__title { margin: 0 0 1rem; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--navy-ink); }
.two-col { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); margin-top: 2rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr); align-items: start; } }

.kv { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: .6rem 1.25rem; margin: 0; font-size: .95rem; }
.kv dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); gap: .15rem; } .kv dd { margin-bottom: .6rem; } }

.trip-legs { display: grid; gap: 1rem; }
a
.chip { display: inline-flex; align-items: center; padding: .2rem .6rem; font-size: .74rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap; background: var(--slate-tint); color: var(--navy); }
.chip--ok { background: var(--ok-tint); color: var(--ok); }
.chip--warn { background: var(--warn-tint); color: var(--warn); }
.chip--bad { background: var(--bad-tint); color: var(--bad); }
.chip--muted { background: var(--slate-tint); color: var(--muted); }

.tabs { display: flex; gap: 1.75rem; border-bottom: 1px solid var(--line); margin: 2rem 0 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 0 0 .9rem; text-decoration: none; color: var(--muted); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.is-on { color: var(--ink); border-bottom-color: var(--coral); }
.tabs a .count { margin-left: .4rem; color: var(--faint); }

.empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); }

/* Sign-in */
.auth { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 2rem; }
@media (min-width: 860px) { .auth { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.auth form { display: grid; gap: 1rem; }
.code-input { font-family: var(--serif) !important; font-size: 1.8rem !important; letter-spacing: .5em; text-align: center; }

/* Tax invoice / print (redesigned 23 Nov): white A4 sheet on paper; prints as just the sheet. */
.print-page { background: var(--paper); }
.inv-wrap { max-width: 56rem; margin: 0 auto; padding: clamp(1rem, 4vw, 3rem) clamp(.75rem, 3vw, 1.5rem) 3rem; }
.inv {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(22,35,59,.4); padding: clamp(1.5rem, 5vw, 3.25rem);
}
.inv h2 { margin: 0 0 .4rem; font-family: var(--sans); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.inv p { margin: 0; }
.inv__strong { font-weight: 500; color: var(--ink); }
.inv__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem 2rem; flex-wrap: wrap; padding-bottom: 1.75rem; border-bottom: 2px solid var(--navy-ink); }
.inv__logo { display: block; height: 2.6rem; width: auto; margin-bottom: 1rem; }
.inv__biz p { font-size: .88rem; line-height: 1.6; color: var(--muted); }
.inv__biz strong { color: var(--ink); font-weight: 600; }
.inv__title { position: relative; text-align: right; margin-left: auto; }
.inv__kicker { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--coral-deep); }
.inv__no { margin: .35rem 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: .03em; color: var(--navy-ink); }
.inv__stamp {
  display: inline-block; margin-top: .9rem; padding: .3rem .9rem; border: 2px solid #1e7a45; border-radius: 6px;
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; color: #1e7a45; transform: rotate(-4deg);
}
.inv__meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.inv__meta p { font-size: .92rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.inv__meta .inv__strong { font-size: 1rem; color: var(--ink); }
.inv__gap { margin-top: 1rem !important; }

.inv__lines { width: 100%; border-collapse: collapse; margin-top: 1.25rem; }
.inv__lines th { padding: 0 0 .6rem; text-align: left; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.inv__lines td { padding: 1.2rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.inv__lines th:last-child, .inv__lines td:last-child { text-align: right; white-space: nowrap; padding-left: 1.5rem; }
.inv__lines td:last-child { font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.inv__item { display: flex; gap: 1rem; }
.inv .nowrap { white-space: nowrap; }
.inv__n { flex: 0 0 auto; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; color: var(--coral-deep); }
.inv__desc { min-width: 0; }
.inv__desc > p { font-size: .92rem; line-height: 1.45; color: var(--muted); }
.inv__desc > .inv__strong { font-size: 1rem; color: var(--ink); margin-bottom: .1rem; }
.inv__route { margin: .7rem 0 0; display: grid; gap: .3rem; }
.inv__route div { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .5rem; font-size: .9rem; line-height: 1.4; }
.inv__route dt { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding-top: .2rem; }
.inv__route dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.inv__flag { margin-top: .5rem !important; font-size: .82rem !important; font-weight: 500; color: var(--coral-deep) !important; }
.is-cancelled td:last-child { color: var(--muted); text-decoration: line-through; }

.inv__totals { display: flex; justify-content: flex-end; padding: 1.25rem 0 0; }
.inv__totals dl { margin: 0; width: min(100%, 22rem); }
.inv__totals dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .95rem; color: var(--muted); }
.inv__totals dd { margin: 0; color: var(--ink); white-space: nowrap; }
.inv__total { margin-top: .5rem; padding-top: .9rem !important; border-top: 2px solid var(--navy-ink); align-items: baseline; }
.inv__total dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--navy-ink); }
.inv__total dt small { font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: .14em; margin-left: .3rem; }
.inv__total dd { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--navy-ink); }
.inv__net dt, .inv__net dd { font-weight: 600; color: var(--ink); }

.inv__foot { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .35rem; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.inv__actions { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .inv__title { text-align: left; margin-left: 0; width: 100%; order: -1; }
  .inv__stamp { position: absolute; top: 0; right: 0; margin: 0; }
  .inv__meta { grid-template-columns: 1fr 1fr; }
  .inv__meta > div:first-child { grid-column: 1 / -1; }
  .inv__item { gap: .6rem; }
  .inv__lines td:last-child { padding-left: .75rem; font-size: .95rem; }
}
.no-print { margin-top: 2rem; }
@media print {
  /* Page margin lives on the sheet itself, so it prints the same whatever the browser's
     Margins setting is (Mac's Chrome was on "None" → edge to edge). margin:0 also hides
     the browser's date/URL header and footer. */
  @page { size: A4; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; }
  .no-print, .test-ribbon { display: none !important; }
  .print-page { background: #fff; }
  .inv-wrap { padding: 0; max-width: none; margin: 0; }
  .inv { border: 0; box-shadow: none; border-radius: 0; padding: 16mm 17mm 14mm; overflow: visible; }
  .inv__stamp { margin-right: 2mm; }
  .inv__lines tr { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

[data-leg-field="flight_number"] { text-transform: uppercase; }

/* Phone polish */
@media (max-width: 520px) {
  .route .addr-row { grid-template-columns: 1rem minmax(0, 1fr) auto; gap: .6rem; }
  .addr-row__spacer { display: none; }
  .addr-row__remove { width: 2.2rem; }
  .route__line { left: .5rem; }
  .route-actions { margin-left: 1.6rem; gap: .25rem 1.5rem; }
  .vehicle__cap { letter-spacing: .08em; }
}
@media (max-width: 420px) {
  .leg .when, .when--3 { grid-template-columns: minmax(0, 1fr); }
  .when--3 > :first-child { grid-column: auto; }
}

/* ==========================================================================
   Split ("magazine spread"): content on the left, a photo panel on the right
   that stays put while you scroll. On the booking page the panel turns into
   the chosen car after step 1. Phones: no panel.
   ========================================================================== */
:root { --visual-w: 40vw; } /* 60 / 40 split: form | photo */
.visual { display: none; }
@media (min-width: 1024px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) var(--visual-w); min-height: 100vh; }
  .split__main { min-width: 0; display: flex; flex-direction: column; }
  .split__main > main { flex: 1 0 auto; }
  .is-split .wrap { max-width: none; margin-left: 0; padding-inline: clamp(2.25rem, 4.5vw, 5.5rem); }
  .is-split .site-foot { margin-top: 3rem; }

  .visual { display: block; position: sticky; top: 0; height: 100vh; align-self: start; overflow: hidden; background: var(--navy-ink); }
  .visual__photo { position: absolute; inset: 0; background-size: cover; background-position: 60% 25%; transition: opacity .6s var(--ease), transform 8s linear; }
  .visual__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,35,59,0) 45%, rgba(22,35,59,.78) 100%); }
  .visual__caption { position: absolute; left: clamp(2rem, 3.5vw, 4rem); right: 2rem; bottom: 3rem; transition: opacity .4s var(--ease); }
  body:has(.tripbar) .visual__caption { bottom: calc(var(--bar-h) + 2.75rem); }
  .visual__line { margin: 0; font-family: var(--serif); font-weight: 400; color: #fff; font-size: clamp(2.6rem, 4vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; max-width: 10ch; }
  .visual.is-car .visual__photo, .visual.is-car .visual__caption { opacity: 0; }

  .visual__car {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
    padding: 3rem clamp(2rem, 4vw, 4.5rem) calc(var(--bar-h) + 3rem);
    background: linear-gradient(180deg, #f3efe8 0%, #e7e1d7 100%);
    animation: visual-in .5s var(--ease);
  }
  .visual__carimg img { width: 100%; max-width: 38rem; margin: 0 auto; }
  .visual__carname { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); font-family: var(--serif); font-size: clamp(2.2rem, 3.2vw, 3.4rem); line-height: 1.05; color: var(--navy-ink); }
  .visual__carmeta { margin: .6rem 0 0; color: var(--muted); font-size: .95rem; }
}
@keyframes visual-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .visual__car { animation: none; } }

/* Editorial fields on the split pages: underlined, no boxes */
.is-split .field input, .is-split .field select, .is-split .voucher input, .is-split .phone select, .is-split .phone input {
  background-color: transparent; border: 0; border-bottom: 1px solid var(--line-strong); padding: .7rem 0; min-height: 3.1rem; font-size: 1.05rem;
}
.is-split .field select, .is-split .phone select { background-position: right .1rem center; padding-right: 1.6rem; }
.is-split .field textarea { background: transparent; }
.is-split .field input:focus, .is-split .field select:focus, .is-split .voucher input:focus, .is-split .phone select:focus, .is-split .phone input:focus {
  border-bottom-color: var(--navy-deep); box-shadow: 0 1px 0 var(--navy-deep);
}
.is-split .field.has-error input, .is-split .field.has-error select, .is-split .addr.has-error input { border-bottom-color: var(--bad); box-shadow: 0 1px 0 var(--bad); }
.is-split .phone { grid-template-columns: 6.4rem minmax(0, 1fr); gap: 1rem; }
.is-split .airport .field input, .is-split .airport .field select { background-color: transparent; }
.is-split .counters { background: transparent; }
/* A block shown as one white card (e.g. Passengers & luggage): title, counters and switches together */
.is-split .block--card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--card-r); padding: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: 1.25rem; box-shadow: 0 18px 40px -32px rgba(22,35,59,.35);
}
.block--card .block__title { padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.block--card .block__title + .counters { margin-top: -1.4rem; }
.block--card .block__title + .switch { margin-top: 0; }
.step .block--card + .block--card { margin-top: 1.25rem; }
.step .block--card .field textarea { background: var(--card); }
.block--card .counters { border: 0; border-bottom: 1px solid var(--line); }
.block--card .counters--kids { border-top: 1px solid var(--line); border-bottom: 0; }
.block--card .counter { padding: 1.25rem 1.1rem; }
.block--card .counter:first-child { padding-left: 0; }
@media (max-width: 640px) { .block--card .counter, .block--card .counter:first-child { padding: 1rem 0; } }
@media (max-width: 520px) { .is-split .block--card { padding: 1.1rem .95rem 1.25rem; } }
.is-split .counter__ctl button { background: transparent; }
.is-split .voucher { gap: 1rem; align-items: end; }
.is-split .voucher .btn { border-left: 1px solid var(--line-strong); }
.is-split .block { margin-top: 2.5rem; padding-top: 2rem; }

/* Sign-in / create account */
.auth-page { padding-top: clamp(2rem, 5vw, 3.5rem); }
.auth .panel + .panel { margin-top: 0; }
.is-split .auth { gap: 2.5rem 3rem; }
.is-split .auth .panel { background: transparent; border: 0; border-top: 1px solid var(--ink); padding: 1.5rem 0 0; }
.is-split .auth { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1400px) { .is-split .auth { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.auth-form { display: grid; gap: 1.4rem; margin-top: 2rem; max-width: 40rem; }
.auth-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.auth-form__actions .hint { margin: 0; }
.auth-new { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.auth-new .panel__title { margin-bottom: .35rem; }

/* ==========================================================================
   Date & time pickers (no typing): field buttons, drop-down calendar, time wheels
   ========================================================================== */
.picker__btn {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%;
  min-height: 3.1rem; padding: .7rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  font-size: 1.05rem; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.picker__btn:hover { border-bottom-color: var(--navy); }
.picker__btn:focus-visible, .picker__btn[aria-expanded="true"] { outline: none; border-bottom-color: var(--navy-deep); box-shadow: 0 1px 0 var(--navy-deep); }
.picker__btn.is-empty .picker__value { color: #a3a8b1; }
.picker__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__icon { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; color: var(--navy); }
.picker.has-error .picker__btn { border-bottom-color: var(--bad); box-shadow: 0 1px 0 var(--bad); }

.cal {
  position: absolute; z-index: 90; width: 20rem; padding: 1rem 1rem .9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--card-r);
  box-shadow: 0 24px 60px -24px rgba(22,35,59,.45);
}
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.cal__title { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--navy-ink); }
.cal__nav { width: 2.4rem; height: 2.4rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); font-size: 1.25rem; line-height: 1; color: var(--navy); }
.cal__nav:hover:not(:disabled) { border-color: var(--navy); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.cal__dow span { padding: .35rem 0; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal__day {
  position: relative; aspect-ratio: 1; margin: 1px; border: 0; border-radius: 8px; background: none;
  font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums;
}
.cal__day:hover:not(:disabled) { background: var(--paper); }
.cal__day:disabled { color: #c3c7ce; cursor: default; }
.cal__day.is-today::after { content: ""; position: absolute; left: 50%; bottom: .3rem; width: .3rem; height: .3rem; margin-left: -.15rem; border-radius: 50%; background: var(--coral); }
.cal__day.is-on { background: var(--navy-deep); color: #fff; }
.cal__day.is-on::after { background: #fff; }
.cal__day:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.cal__foot { display: flex; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.cal__quick { padding: .55rem .9rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--navy); }
.cal__quick:hover { border-color: var(--navy); }

.tm-backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(22,35,59,.45); }
.tm {
  position: fixed; z-index: 96; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(24rem, calc(100vw - 2rem)); padding: 1.6rem 1.5rem 1.5rem;
  background: var(--card); border-radius: 14px; box-shadow: 0 30px 80px -30px rgba(22,35,59,.6);
}
.tm__close { position: absolute; top: .6rem; right: .6rem; width: 2.6rem; height: 2.6rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.tm__title { margin: 0 0 1rem; text-align: center; font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--navy-ink); }
.tm__wheels { position: relative; display: grid; grid-template-columns: 1fr auto 1fr 1fr; align-items: center; height: 220px; }
.tm__band { position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; border: 1px solid var(--coral); border-radius: 10px; background: var(--paper); pointer-events: none; }
.tm__colon { position: relative; font-weight: 600; font-size: 1.15rem; color: var(--navy-ink); }
.wheel {
  position: relative; height: 220px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain;
  padding-block: 88px; scrollbar-width: none; text-align: center; outline: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
}
.wheel::-webkit-scrollbar { display: none; }
.wheel__item { height: 44px; line-height: 44px; scroll-snap-align: center; font-size: 1.15rem; color: var(--muted); cursor: pointer; user-select: none; font-variant-numeric: tabular-nums; }
.wheel__item.is-near { color: var(--ink); }
.wheel__item.is-sel { color: var(--navy-ink); font-weight: 600; font-size: 1.25rem; }
.wheel:focus-visible .wheel__item.is-sel { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 6px; }
.tm__set { width: 100%; margin-top: 1.25rem; border-radius: 8px; }

/* ==========================================================================
   Wide screens: no bottom bar — the trip summary card lives in the right panel.
   Step 1: the card sits over the photo. Steps 2–3: under the chosen car.
   ========================================================================== */
@media (min-width: 1024px) {
  .tripbar { display: none; }
  body:has(.tripbar) .site-foot { padding-bottom: 2rem; }
  body:has(.tripbar) .visual__caption { bottom: 3rem; }

  .visual__stack {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 1.5rem;
    padding: clamp(2rem, 3.5vw, 3.5rem) clamp(1.75rem, 3vw, 3.5rem);
  }
  .visual.is-car { background: linear-gradient(180deg, #f3efe8 0%, #e7e1d7 100%); }
  .visual__car { position: static; inset: auto; padding: 0; background: none; flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; }
  .visual:not(.has-trip) .visual__car { margin-block: auto; }
  .visual.has-trip .visual__car { flex: 0 0 auto; }
  .visual.has-trip .visual__carimg img { max-height: 24vh; width: auto; max-width: 100%; margin: 0 auto; }
  /* The card below names the car, so the big name/description would repeat it. */
  .visual.has-trip .visual__carname, .visual.has-trip .visual__carmeta, .visual.has-trip #visualCarEyebrow { display: none; }
  .visual.has-trip .visual__caption { opacity: 0; }
  .visual.has-trip .visual__photo::after { background: linear-gradient(180deg, rgba(22,35,59,.15) 0%, rgba(22,35,59,.55) 100%); }

  .visual.is-car.has-trip .visual__car { margin-top: auto; margin-bottom: -2.6rem; position: relative; z-index: 2; padding: 0 1.25rem; }
  .visual.is-car.has-trip .visual__trip { margin-top: 0; padding-top: 0; }
  .visual.is-car.has-trip .summary { padding-top: 2.9rem; }
  .visual.is-car .visual__carimg img { filter: drop-shadow(0 18px 18px rgba(22,35,59,.18)); }
  .visual__trip { margin-top: auto; flex: 0 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; border-radius: var(--card-r); scrollbar-width: thin; }
  .visual .book__summary { position: static; transform: none; width: auto; max-height: none; overflow: visible; transition: none; }
  .visual .summary { padding: 1.4rem 1.6rem 1.25rem; border-radius: var(--card-r); box-shadow: 0 30px 70px -30px rgba(10,18,32,.6); }
  .visual .summary__close { display: none; }
  .visual .summary__map { height: 11rem; }
  /* Keep the total in view while the rest of the card scrolls. */
  .visual .sum-total { position: sticky; bottom: -1.25rem; z-index: 1; margin-bottom: -1.25rem; padding-bottom: 1.25rem; background: var(--card); box-shadow: 0 -14px 18px -14px rgba(22,35,59,.25); }
}

/* ==========================================================================
   Booking pass (confirmation + trip page): one ticket per trip.
   Band → route → date/time/status strip → grouped details. No tear-off stub (Mac 23 Nov).
   ========================================================================== */
.passes { display: grid; gap: 1.5rem; margin-top: 2rem; }
.pass {
  --pass-r: 16px;
  position: relative; background: var(--card); border-radius: var(--pass-r); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(22,35,59,.45);
  filter: drop-shadow(0 0 .5px var(--line-strong));
}
.pass__main { min-width: 0; }
.pass__band {
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding: .95rem 1.75rem; background: var(--navy-deep); color: #fff;
}
.pass__logo { height: 1.9rem; width: auto; }
.pass__kind { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.pass__ref { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--serif); font-size: 1.35rem; letter-spacing: .06em; line-height: 1; color: #fff; }
.pass__ref small { font-family: var(--sans); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .25rem; }

.pass__route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(7rem, 1fr) minmax(0, 1fr); align-items: center; gap: 1rem; padding: 1.75rem 1.75rem .5rem; }
.pass__end--to { text-align: right; }
.pass__label { margin: 0 0 .2rem; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.pass__code { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; letter-spacing: .02em; color: var(--navy-ink); }
.pass__code--name { font-size: clamp(1.45rem, 2.2vw, 2.1rem); line-height: 1.1; letter-spacing: 0; overflow-wrap: break-word; }
.pass__place { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.pass__path { position: relative; display: flex; align-items: center; gap: .5rem; color: var(--coral); }
.pass__line { flex: 1; height: 0; border-top: 1px dashed var(--line-strong); }
.pass__car { width: 2.6rem; height: auto; flex: 0 0 auto; }
.pass__dist { position: absolute; left: 0; right: 0; top: 100%; margin-top: .4rem; text-align: center; font-size: .74rem; color: var(--muted); white-space: nowrap; }
.pass__via { margin: .75rem 1.75rem 0; font-size: .85rem; color: var(--muted); }

/* Date · Pick-up · Status — the three things people look for first */
.pass__when {
  display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: 1rem clamp(2rem, 5vw, 4.5rem);
  margin: 1.75rem 1.75rem 0; padding: 1.1rem 1.4rem; background: var(--paper); border-radius: 10px;
}
.pass__when span { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: .3rem; }
.pass__when strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.1; color: var(--navy-ink); white-space: nowrap; }
.pass__state { text-align: right; }
.pass__status { display: inline-flex; align-items: center; gap: .45rem; font-style: normal; font-size: .9rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pass__status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.pass__status--confirmed { color: #1e7a45; }
.pass__status--cancelled { color: var(--coral-deep); }

/* Grouped details: each group = small heading, one strong line, quieter lines under it */
.pass__groups {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.25rem 2rem;
  margin: 0 1.75rem; padding: 1.5rem 0 1.7rem;
}
.pass__group { min-width: 0; padding-left: 1rem; border-left: 2px solid var(--line); }
.pass__group h3 { margin: 0 0 .45rem; font-family: var(--sans); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.pass__group p { margin: .15rem 0 0; font-size: .92rem; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.pass__group .pass__main-line { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.pass__note { margin: 0 1.75rem 1.6rem; padding: .85rem 1rem; background: var(--paper); border-radius: 8px; font-size: .9rem; }
.pass__note span { display: block; margin-bottom: .2rem; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.confirm__below { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 1024px) { .confirm__below { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.confirm__below .block--card { background: var(--card); border: 1px solid var(--line); border-radius: var(--card-r); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 18px 40px -32px rgba(22,35,59,.35); }

/* Phones / narrow */
@media (max-width: 760px) {
  .pass__band { padding: .85rem 1.25rem; }
  .pass__route { grid-template-columns: minmax(0, 1fr) 3.2rem minmax(0, 1fr); padding: 1.4rem 1.25rem .4rem; gap: .5rem; }
  .pass__dist { display: none; }
  .pass__code { font-size: 2rem; }
  .pass__code--name { font-size: 1.3rem; }
  .pass__when { margin: 1.4rem 1.25rem 0; padding: 1rem 1.1rem; grid-template-columns: 1fr auto; gap: 1rem; }
  .pass__state { grid-column: 1 / -1; text-align: left; padding-top: .8rem; border-top: 1px solid var(--line); }
  .pass__state span { display: none; }
  .pass__groups { margin: 0 1.25rem; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: 1.3rem 0 1.4rem; }
  .pass__via, .pass__note { margin-left: 1.25rem; margin-right: 1.25rem; }
}
@media print {
  .split .visual, .site-head, .site-foot, .confirm__below .actions, .test-ribbon { display: none !important; }
  .pass { box-shadow: none; filter: none; border: 1px solid #999; break-inside: avoid; }
}

/* ===================== Sign in / Create account (redesigned 20 Nov) =====================
   One card beside a photo panel. Sign in = one email box + "Email me a code" / "Use a password". */
.auth2 { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.auth2__shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(22, 35, 59, .35); }
.auth2__aside { position: relative; display: flex; align-items: flex-end; padding: clamp(1.75rem, 3vw, 2.75rem); background: #16233b center / cover no-repeat; color: #fff; }
.auth2__aside::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 35, 59, .15) 0%, rgba(22, 35, 59, .88) 100%); }
.auth2__aside-in { position: relative; }
.auth2__line { margin: .6rem 0 0; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.05; }
.auth2__perks { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.auth2__perks li { display: flex; gap: .65rem; align-items: center; }
.auth2__perks li::before { content: ''; width: 1.1rem; height: 1.1rem; flex: none; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.auth2__card { display: flex; flex-direction: column; padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.75rem); }
.auth2__title { margin: .5rem 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4vw, 3.1rem); line-height: 1.05; color: var(--navy-ink); }
.auth2__sub { margin: .8rem 0 0; max-width: 34rem; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.auth2__form { display: grid; gap: 1.15rem; margin-top: 1.8rem; }
.auth2__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.auth2__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .35rem; font-size: .93rem; color: var(--muted); }
.auth2__foot p { margin: 0; }
.auth2__foot a { color: var(--navy-ink); font-weight: 500; text-underline-offset: 3px; }
.auth2 .form-alert { margin-top: 1.25rem; }
.btn--block { width: 100%; justify-content: center; }

/* Code / password switch */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: .75rem .5rem; border-radius: 999px; text-align: center; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--navy-ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
.auth2__form:has(#viaCode:checked) .when-pw,
.auth2__form:has(#viaPassword:checked) .when-code { display: none; }
.auth2__form .hint .link-btn { font-size: inherit; letter-spacing: normal; text-transform: none; cursor: pointer; }

@media (max-width: 860px) {
  .auth2__shell { grid-template-columns: 1fr; min-height: 0; }
  .auth2__aside { min-height: 220px; }
  .auth2__perks { display: none; }
}
@media (max-width: 640px) {
  .auth2 { padding-top: 1rem; }
  .auth2__shell { border-radius: 12px; }
  .auth2__aside { min-height: 150px; padding: 1.4rem; }
  .auth2__line { font-size: 1.9rem; }
  .auth2__card { padding: 1.6rem 1.25rem 1.8rem; }
  .seg span { font-size: .72rem; letter-spacing: .05em; padding: .7rem .3rem; }
}


/* ===================== My trips + trip page (redesigned 20 Nov) ===================== */
.mytrips, .tripview { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.mytrips__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.mytrips__head .display { margin: .2rem 0 0; }
.mytrips__lead { margin: .5rem 0 0; }

.nexttrip { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-top: 2rem; border-radius: 16px; overflow: hidden; background: var(--navy-deep); color: #fff; box-shadow: 0 30px 60px -36px rgba(22, 35, 59, .6); }
.nexttrip__main { padding: clamp(1.5rem, 3.5vw, 2.6rem); }
.nexttrip__tag { margin: 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.nexttrip__tag span { display: inline-block; margin-right: .6rem; padding: .3rem .65rem; border-radius: 999px; background: var(--coral); color: #fff; letter-spacing: .1em; }
.nexttrip__when { margin: .9rem 0 0; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05; }
.nexttrip__when em { font-style: italic; opacity: .7; }
.nexttrip__route { display: grid; grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr); align-items: start; gap: .75rem; margin-top: 1.6rem; }
.nexttrip__route small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.nexttrip__route b { display: block; margin-top: .3rem; font-weight: 500; font-size: 1.15rem; line-height: 1.25; }
.nexttrip__route span { display: block; margin-top: .25rem; font-size: .82rem; color: rgba(255,255,255,.6); overflow-wrap: anywhere; }
.nexttrip__route i { align-self: center; height: 0; margin-top: 1.4rem; border-top: 2px dashed rgba(255,255,255,.35); position: relative; }
.nexttrip__route i::after { content: ''; position: absolute; right: -2px; top: -6px; border: 5px solid transparent; border-left-color: rgba(255,255,255,.6); }
.nexttrip__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.btn--light { background: #fff; color: var(--navy-ink); }
.btn--light:hover { background: var(--coral); color: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.nexttrip__car { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 1.5rem 1.5rem 1.75rem; background: radial-gradient(circle at 50% 40%, #2c4269 0%, var(--navy-deep) 70%); text-align: center; }
.nexttrip__car img { width: 100%; max-width: 340px; height: auto; filter: drop-shadow(0 22px 22px rgba(0,0,0,.45)); }
.nexttrip__car p { margin: .8rem 0 0; font-size: .85rem; color: rgba(255,255,255,.7); }
.nexttrip__car p b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: #fff; }

.trip-legs { display: grid; gap: .9rem; }
.trip-card { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.1rem 1.4rem 1.1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--card-r); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .2s, transform .2s; }
a.trip-card:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -30px rgba(22,35,59,.45); transform: translateY(-1px); }
.trip-card.is-cancelled { opacity: .72; }
.trip-card__date { display: grid; justify-items: center; padding: .6rem 0; border-radius: 10px; background: var(--paper); text-align: center; line-height: 1; }
.trip-card__date span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trip-card__date b { margin: .3rem 0; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--navy-ink); }
.trip-card__when { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trip-card__route { position: relative; display: grid; gap: .45rem; margin-top: .55rem; padding-left: 1.1rem; }
.trip-card__route::before { content: ''; position: absolute; left: .26rem; top: .5rem; bottom: .55rem; border-left: 1px dashed var(--line-strong); }
.trip-card__route > div { position: relative; min-width: 0; }
.trip-card__route > div::before { content: ''; position: absolute; left: -1.1rem; top: .38rem; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--navy); background: var(--card); }
.trip-card__route > div:last-child::before { background: var(--navy); }
.trip-card__route > div.is-stop::before { width: .4rem; height: .4rem; left: -1.03rem; border-color: var(--faint); }
.trip-card__route b { font-weight: 500; font-size: 1rem; color: var(--navy-ink); }
.trip-card__route small { margin-left: .4rem; font-size: .82rem; color: var(--faint); }
.trip-card__meta { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .84rem; color: var(--muted); }
.trip-card__ref { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.trip-card__side { display: grid; justify-items: end; gap: .5rem; text-align: right; }
.trip-card__side b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--navy-ink); }
.trip-card__go { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.mytrips__none { color: var(--muted); }
.mytrips__empty { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1.5rem; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--card-r); text-align: center; }
.mytrips__empty p { margin: 0; max-width: 32rem; }
.mytrips__empty-title { font-family: var(--serif); font-size: 1.6rem; color: var(--navy-ink); }

.tripview__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem 2rem; flex-wrap: wrap; margin-top: .5rem; }
.tripview__head .display { margin: .25rem 0 0; }
.tripview__at { font-style: italic; color: var(--muted); }
.tripview__chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: .9rem 0 0; }
.tripview__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.tripview__pass { margin-top: 2rem; }
.tripview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; align-items: start; }
.tv-card { padding: clamp(1.25rem, 2.6vw, 1.75rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--card-r); box-shadow: 0 18px 40px -32px rgba(22,35,59,.35); }
.tv-card__title { margin: 0 0 .9rem; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--navy-ink); }
.tv-card .sum-lines { padding-top: 0; }
.tv-cancel { margin-top: 1rem; }
.tv-cancel summary { list-style: none; cursor: pointer; width: 100%; }
.tv-cancel summary::-webkit-details-marker { display: none; }
.tv-cancel[open] summary { display: none; }
.tv-cancel form { display: grid; gap: 1rem; }
.tv-help { display: grid; gap: .6rem; margin-top: 1rem; }

@media (max-width: 960px) {
  .tripview__grid { grid-template-columns: 1fr 1fr; }
  .tv-card--help { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nexttrip { grid-template-columns: 1fr; }
  .nexttrip__car { order: -1; padding: 1.25rem 1.25rem .5rem; }
  .nexttrip__car img { max-width: 240px; }
  .nexttrip__route { grid-template-columns: 1fr; gap: .9rem; }
  .nexttrip__route i { display: none; }
  .nexttrip__actions .btn { flex: 1 1 auto; }
  .trip-card { grid-template-columns: 3.6rem minmax(0, 1fr); gap: .9rem; padding: 1rem; }
  .trip-card__date { align-self: start; }
  .trip-card__date b { font-size: 1.6rem; }
  .trip-card__side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: .7rem; border-top: 1px solid var(--line); }
  .trip-card__route small { display: block; margin: .1rem 0 0; }
  .tripview__grid { grid-template-columns: 1fr; }
  .tripview__actions { width: 100%; }
  .tripview__actions .btn { flex: 1 1 auto; }
}
