/* M-BUS ticket-booking wizard.
 *
 * Everything here is prefixed .mbw- and scoped under .mbw, so it cannot
 * collide with the rest of the theme and the rest of the theme cannot reach
 * in. Every colour, size and spacing value comes from tokens.css.
 *
 * Mobile first, and measured for it: at 360px the card gives 280px of content
 * and a four-across deck needs 208px, so the seat map never scrolls sideways
 * and never needs pinch-zoom. Every tappable thing is at least var(--mb-tap).
 *
 * Each surface states its own background, so the wizard reads the same on a
 * white page and on a tinted one.
 */

.mbw {
  --mbw-seat: var(--mb-tap);
  --mbw-seat-gap: var(--mb-sp-1);
  --mbw-aisle: var(--mb-sp-4);

  font-family: var(--mb-font);
  font-size: var(--mb-fs-base);
  line-height: var(--mb-lh-base);
  color: var(--mb-text);
}

.mbw *,
.mbw *::before,
.mbw *::after { box-sizing: border-box; }

.mbw :focus-visible {
  outline: 3px solid var(--mb-accent);
  outline-offset: 2px;
}

.mbw-shell {
  display: flex;
  flex-direction: column;
  gap: var(--mb-sp-4);
}

.mbw-sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Progress ---------------------------------------------------------------- */

.mbw-steps {
  display: flex;
  gap: var(--mb-sp-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbw-stepitem {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--mb-sp-2);
  text-align: center;
}

.mbw-stepitem::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  border-radius: var(--mb-radius-pill);
  background: var(--mb-border);
}

.mbw-stepitem.is-done::before { background: var(--mb-primary); }
.mbw-stepitem.is-current::before { background: var(--mb-accent); }

.mbw-stepnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--mb-radius-pill);
  background: var(--mb-bg-alt);
  border: 1px solid var(--mb-border);
  color: var(--mb-text-muted);
  font-size: var(--mb-fs-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mbw-stepitem.is-done .mbw-stepnum {
  background: var(--mb-primary);
  border-color: var(--mb-primary);
  color: var(--mb-text-invert);
}

.mbw-stepitem.is-current .mbw-stepnum {
  background: var(--mb-accent);
  border-color: var(--mb-accent);
  color: var(--mb-accent-ink);
}

.mbw-steplabel {
  font-size: var(--mb-fs-xs);
  line-height: var(--mb-lh-snug);
  color: var(--mb-text-muted);
}

.mbw-stepitem.is-current .mbw-steplabel {
  color: var(--mb-text);
  font-weight: 600;
}

/* Five labels will not fit across a phone. Numbers carry the progress there,
   and the line underneath names the step in words. */
@media (max-width: 35.99rem) {
  .mbw-steplabel { display: none; }
  .mbw-stepitem.is-current .mbw-steplabel { display: block; }
}

.mbw-stepline {
  margin: 0;
  font-size: var(--mb-fs-sm);
  color: var(--mb-text-muted);
  letter-spacing: var(--mb-track-wide);
}

/* Card -------------------------------------------------------------------- */

.mbw-card {
  background: var(--mb-bg);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  box-shadow: var(--mb-shadow);
  padding: var(--mb-sp-4);
}

@media (min-width: 36rem) {
  .mbw-card { padding: var(--mb-sp-5); }
}

.mbw-h2 {
  margin: 0 0 var(--mb-sp-2);
  font-size: var(--mb-fs-lg);
  line-height: var(--mb-lh-tight);
  letter-spacing: var(--mb-track-tight);
  color: var(--mb-text);
}

.mbw-h2:focus { outline: none; }

.mbw-h3 {
  margin: 0 0 var(--mb-sp-3);
  font-size: var(--mb-fs-md);
  line-height: var(--mb-lh-snug);
  letter-spacing: var(--mb-track-tight);
  color: var(--mb-text);
}

.mbw-sub {
  margin: 0 0 var(--mb-sp-4);
  color: var(--mb-text-muted);
  font-size: var(--mb-fs-sm);
}

.mbw-hint {
  margin: var(--mb-sp-2) 0 0;
  font-size: var(--mb-fs-sm);
  color: var(--mb-text-muted);
}

.mbw-note {
  margin: var(--mb-sp-4) 0 0;
  padding: var(--mb-sp-3) var(--mb-sp-4);
  background: var(--mb-bg-alt);
  border-left: 4px solid var(--mb-accent);
  border-radius: var(--mb-radius-sm);
  font-size: var(--mb-fs-sm);
  color: var(--mb-text);
}

.mbw-block {
  margin: 0 0 var(--mb-sp-4);
  padding: var(--mb-sp-4);
  background: var(--mb-bg-alt);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
}

/* Fields ------------------------------------------------------------------ */

.mbw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-sp-4);
}

.mbw-field { min-width: 0; }

.mbw-label {
  display: block;
  margin-bottom: var(--mb-sp-1);
  font-size: var(--mb-fs-sm);
  font-weight: 600;
  color: var(--mb-text);
}

.mbw-input {
  width: 100%;
  min-height: var(--mb-tap);
  padding: var(--mb-sp-2) var(--mb-sp-3);
  background: var(--mb-bg);
  color: var(--mb-text);
  border: 1px solid var(--mb-border-strong);
  border-radius: var(--mb-radius-sm);
  font-family: inherit;
  /* 17px: never small enough for a phone to zoom the page on focus. */
  font-size: var(--mb-fs-base);
  line-height: var(--mb-lh-snug);
}

select.mbw-input { cursor: pointer; }

.mbw-input:focus {
  border-color: var(--mb-primary);
}

.mbw-swapwrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media (min-width: 48rem) {
  .mbw-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
  }
  .mbw-field--date { grid-column: 1 / 3; }
  .mbw-field--pax  { grid-column: 3 / 4; }
  .mbw-swapwrap { justify-content: center; padding-bottom: var(--mb-sp-1); }
}

/* The way back ------------------------------------------------------------ *
 *
 * Offered, not assumed. Most tickets on these routes are one way, so a second
 * date box standing open would be one more field to read past; ticking the box
 * reveals it, already filled with the outbound date.
 */

.mbw-return {
  margin-top: var(--mb-sp-4);
  padding-top: var(--mb-sp-4);
  border-top: 1px solid var(--mb-border);
}

.mbw-check {
  display: flex;
  align-items: center;
  gap: var(--mb-sp-2);
  /* A whole-row target, so the label is as tappable as the box itself. */
  min-height: var(--mb-tap);
  cursor: pointer;
}

.mbw-checkbox {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
  accent-color: var(--mb-primary);
  cursor: pointer;
}

.mbw-check-label {
  font-size: var(--mb-fs-base);
  font-weight: 600;
  color: var(--mb-text);
}

.mbw-field--return {
  margin-top: var(--mb-sp-3);
  max-width: 22rem;
}

.mbw-field--return[hidden] { display: none; }

/*
 * The terms, accepted on the summary rather than on somebody else's checkout
 * page. It sits directly above the pay button, which stays disabled until it
 * is ticked, so the two read as one decision.
 */
.mbw-check--terms {
  margin-top: var(--mb-sp-4);
  padding-top: var(--mb-sp-4);
  border-top: 1px solid var(--mb-border);
  align-items: flex-start;
}

.mbw-check--terms .mbw-checkbox { margin-top: 0.125rem; }

.mbw-check--terms .mbw-check-label {
  font-weight: 400;
  font-size: var(--mb-fs-sm);
  line-height: var(--mb-lh-snug);
}

.mbw-check--terms a {
  color: var(--mb-primary);
  text-decoration: underline;
}

/* Combobox ---------------------------------------------------------------- */

.mbw-combo { position: relative; }

.mbw-options {
  position: absolute;
  z-index: 30;
  inset-inline: 0;
  top: calc(100% + var(--mb-sp-1));
  margin: 0;
  padding: var(--mb-sp-1);
  /* Never taller than the room a phone keyboard leaves. */
  max-height: min(15rem, 45vh);
  overflow-y: auto;
  list-style: none;
  background: var(--mb-bg);
  border: 1px solid var(--mb-border-strong);
  border-radius: var(--mb-radius-sm);
  box-shadow: var(--mb-shadow-lg);
  -webkit-overflow-scrolling: touch;
}

/* Hung above the field when there is no room beneath it — which, with a
   keyboard open on a phone, is most of the time. */
.mbw-options.is-above {
  top: auto;
  bottom: calc(100% + var(--mb-sp-1));
}

.mbw-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mb-sp-3);
  min-height: var(--mb-tap);
  padding: var(--mb-sp-2) var(--mb-sp-3);
  border-radius: var(--mb-radius-sm);
  cursor: pointer;
}

.mbw-option-main { font-weight: 600; }

.mbw-option-alt {
  font-size: var(--mb-fs-sm);
  color: var(--mb-text-muted);
  text-align: right;
}

.mbw-option.is-active,
.mbw-option:hover {
  background: var(--mb-primary);
  color: var(--mb-text-invert);
}

.mbw-option.is-active .mbw-option-alt,
.mbw-option:hover .mbw-option-alt { color: var(--mb-text-invert); }

.mbw-combo-note {
  margin: var(--mb-sp-1) 0 0;
  font-size: var(--mb-fs-sm);
  color: var(--mb-text-muted);
}

/* Buttons ----------------------------------------------------------------- */

.mbw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mb-sp-2);
  min-height: var(--mb-tap);
  min-width: var(--mb-tap);
  padding: var(--mb-sp-2) var(--mb-sp-5);
  border: 1px solid transparent;
  border-radius: var(--mb-radius-sm);
  background: var(--mb-bg-alt);
  color: var(--mb-text);
  font-family: inherit;
  font-size: var(--mb-fs-base);
  font-weight: 600;
  line-height: var(--mb-lh-snug);
  text-align: center;
  cursor: pointer;
  transition: background-color .18s var(--mb-ease), border-color .18s var(--mb-ease);
}

.mbw-btn--primary {
  background: var(--mb-primary);
  border-color: var(--mb-primary);
  color: var(--mb-text-invert);
}

.mbw-btn--primary:hover { background: var(--mb-primary-dark); border-color: var(--mb-primary-dark); }

.mbw-btn--accent {
  background: var(--mb-accent);
  border-color: var(--mb-accent);
  color: var(--mb-accent-ink);
}

.mbw-btn--ghost {
  background: var(--mb-bg);
  border-color: var(--mb-border-strong);
  color: var(--mb-primary);
}

.mbw-btn--ghost:hover { background: var(--mb-bg-alt); }

.mbw-btn--swap {
  padding: 0;
  width: var(--mb-tap);
  height: var(--mb-tap);
  font-size: var(--mb-fs-md);
  background: var(--mb-bg);
  border-color: var(--mb-border-strong);
  color: var(--mb-primary);
}

.mbw-btn[disabled] {
  background: var(--mb-bg-alt);
  border-color: var(--mb-border);
  color: var(--mb-text-muted);
  cursor: not-allowed;
}

.mbw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mb-sp-3);
  margin-top: var(--mb-sp-5);
}

.mbw-actions .mbw-btn--ghost { flex: 0 1 auto; }

.mbw-actions .mbw-btn--primary,
.mbw-actions .mbw-btn--accent { flex: 1 1 55%; }

.mbw-actions--single .mbw-btn { flex: 1 1 100%; }

/* On a phone the forward action takes the width it needs under the thumb; on
   a wide screen a button stretched across the card only looks lost. */
@media (min-width: 36rem) {
  .mbw-actions { justify-content: flex-start; }
  .mbw-actions .mbw-btn--primary,
  .mbw-actions .mbw-btn--accent {
    flex: 0 1 auto;
    min-width: 12rem;
  }
  .mbw-actions--single .mbw-btn { flex: 0 1 auto; }
}

/* Loading, alerts, empty -------------------------------------------------- */

.mbw-loading {
  display: flex;
  align-items: center;
  gap: var(--mb-sp-3);
  padding: var(--mb-sp-5) 0;
  color: var(--mb-text-muted);
}

/* Their own coach, from the old ticket page. */
.mbw-bus { flex: 0 0 auto; display: block; width: 9rem; height: auto; }
@media (max-width: 29.99rem) { .mbw-bus { width: 7rem; } }

.mbw-loading-text { font-size: var(--mb-fs-sm); }

.mbw-alert {
  margin: 0 0 var(--mb-sp-4);
  padding: var(--mb-sp-4);
  background: var(--mb-bg-alt);
  border: 1px solid var(--mb-border);
  border-left: 4px solid var(--mb-error);
  border-radius: var(--mb-radius-sm);
}

.mbw-alert-title {
  margin: 0 0 var(--mb-sp-1);
  font-weight: 700;
  color: var(--mb-error);
}

.mbw-alert-text {
  margin: 0 0 var(--mb-sp-3);
  font-size: var(--mb-fs-sm);
  color: var(--mb-text);
}

.mbw-alert-text:last-child { margin-bottom: 0; }

.mbw-alert-list {
  margin: 0;
  padding-left: var(--mb-sp-5);
  font-size: var(--mb-fs-sm);
}

.mbw-alert-list li + li { margin-top: var(--mb-sp-1); }

.mbw-empty {
  padding: var(--mb-sp-5) var(--mb-sp-4);
  background: var(--mb-bg-alt);
  border: 1px dashed var(--mb-border-strong);
  border-radius: var(--mb-radius-sm);
  text-align: center;
}

.mbw-empty-title {
  margin: 0 0 var(--mb-sp-2);
  font-size: var(--mb-fs-md);
  font-weight: 700;
}

.mbw-empty-text {
  margin: 0;
  font-size: var(--mb-fs-sm);
  color: var(--mb-text-muted);
}

/* Step 2: departures ------------------------------------------------------ */

.mbw-courses {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--mb-sp-3);
}

.mbw-course {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-sp-3);
  padding: var(--mb-sp-4);
  background: var(--mb-bg);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
}

.mbw-course.is-unavailable { background: var(--mb-bg-alt); }

/* Both columns are label-over-value and nothing else, so aligning on the
   bottom edge puts the two times on one line whatever they say. */
.mbw-course-times {
  display: flex;
  align-items: flex-end;
  gap: var(--mb-sp-3);
}

.mbw-time { display: flex; flex-direction: column; }

.mbw-time-label {
  font-size: var(--mb-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--mb-track-wide);
  color: var(--mb-text-muted);
}

.mbw-time-value {
  font-size: var(--mb-fs-xl);
  font-weight: 700;
  line-height: var(--mb-lh-tight);
  letter-spacing: var(--mb-track-tight);
  font-variant-numeric: tabular-nums;
}

.mbw-time-plus {
  margin-left: var(--mb-sp-1);
  font-size: var(--mb-fs-sm);
  font-weight: 600;
  color: var(--mb-text-muted);
  vertical-align: super;
}

.mbw-course-arrow {
  padding-bottom: var(--mb-sp-2);
  color: var(--mb-text-muted);
  font-size: var(--mb-fs-md);
}

.mbw-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mb-sp-2);
}

.mbw-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--mb-sp-2);
  padding: var(--mb-sp-1) var(--mb-sp-3);
  background: var(--mb-bg-alt);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-pill);
  font-size: var(--mb-fs-sm);
  color: var(--mb-text);
  font-variant-numeric: tabular-nums;
}

/* Free seats: the dot carries the mood, the words carry the meaning, so the
   state never rests on colour alone. */
.mbw-chip--ok::before {
  content: "";
  width: var(--mb-sp-2);
  height: var(--mb-sp-2);
  border-radius: var(--mb-radius-pill);
  background: var(--mb-success);
}

.mbw-chip--warn {
  background: var(--mb-warning);
  border-color: var(--mb-warning);
  color: var(--mb-text-invert);
  font-weight: 600;
}

.mbw-chip--price {
  background: var(--mb-bg);
  border-color: var(--mb-border-strong);
  font-weight: 700;
}

.mbw-course-action { display: flex; }
.mbw-course-action .mbw-btn { flex: 1 1 auto; }

@media (min-width: 48rem) {
  .mbw-course {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--mb-sp-5);
  }
  .mbw-course-action .mbw-btn { flex: 0 1 auto; }
}

.mbw-stops {
  margin-top: var(--mb-sp-4);
  padding: var(--mb-sp-3) var(--mb-sp-4);
  background: var(--mb-bg-alt);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
}

.mbw-stops-summary {
  min-height: var(--mb-tap);
  display: flex;
  align-items: center;
  font-size: var(--mb-fs-sm);
  font-weight: 600;
  color: var(--mb-primary);
  cursor: pointer;
}

.mbw-stoplist {
  margin: var(--mb-sp-2) 0 0;
  padding-left: var(--mb-sp-5);
  font-size: var(--mb-fs-sm);
  color: var(--mb-text);
}

.mbw-stop { padding: var(--mb-sp-1) 0; }

/* Step 3: the deck -------------------------------------------------------- */

.mbw-seatcount {
  margin: 0 0 var(--mb-sp-4);
  padding: var(--mb-sp-2) var(--mb-sp-3);
  background: var(--mb-bg-alt);
  border-radius: var(--mb-radius-sm);
  font-size: var(--mb-fs-sm);
  font-weight: 600;
  color: var(--mb-text);
}

.mbw-deck {
  padding: var(--mb-sp-3);
  background: var(--mb-bg-alt);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  /* A four- or five-across deck fits a 360px screen with room to spare. The
     overflow is a safety valve for an unusually wide scheme, nothing more. */
  overflow-x: auto;
}

/* A bus deck is narrow by nature. On a wide screen the seats take a little
   more room so the plan does not look stranded in the middle of the card;
   on a phone they stay at exactly one tap target. */
@media (min-width: 48rem) {
  .mbw-deck {
    --mbw-seat: 3.25rem;
    --mbw-seat-gap: var(--mb-sp-2);
    --mbw-aisle: var(--mb-sp-6);
    padding: var(--mb-sp-5);
  }
}

.mbw-deck-front {
  margin: 0 0 var(--mb-sp-3);
  padding-bottom: var(--mb-sp-2);
  border-bottom: 1px solid var(--mb-border-strong);
  font-size: var(--mb-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--mb-track-wide);
  color: var(--mb-text-muted);
  text-align: center;
}

.mbw-deck-grid {
  display: flex;
  flex-direction: column;
  gap: var(--mbw-seat-gap);
  width: max-content;
  margin-inline: auto;
}

.mbw-deck-row {
  display: flex;
  gap: var(--mbw-seat-gap);
}

.mbw-aisle {
  flex: 0 0 var(--mbw-aisle);
  width: var(--mbw-aisle);
}

.mbw-seat {
  flex: 0 0 var(--mbw-seat);
  width: var(--mbw-seat);
  height: var(--mbw-seat);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--mb-bg);
  border: 1px solid var(--mb-border-strong);
  border-radius: var(--mb-radius-sm);
  color: var(--mb-text);
  font-family: inherit;
  font-size: var(--mb-fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color .15s var(--mb-ease), color .15s var(--mb-ease);
}

.mbw-seat--gap {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.mbw-seat.is-taken {
  background: var(--mb-bg-alt);
  border-style: dashed;
  border-color: var(--mb-border);
  color: var(--mb-text-muted);
  text-decoration: line-through;
  cursor: not-allowed;
}

.mbw-seat.is-chosen {
  background: var(--mb-primary);
  border-color: var(--mb-primary-dark);
  color: var(--mb-text-invert);
  font-weight: 700;
}

.mbw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mb-sp-2) var(--mb-sp-3);
  margin: var(--mb-sp-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--mb-fs-sm);
  color: var(--mb-text-muted);
}

.mbw-legend-item { display: flex; align-items: center; gap: var(--mb-sp-2); }

.mbw-legend-swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--mb-radius-sm);
  background: var(--mb-bg);
  border: 1px solid var(--mb-border-strong);
}

.mbw-legend-item.is-taken .mbw-legend-swatch {
  background: var(--mb-bg-alt);
  border-style: dashed;
  border-color: var(--mb-border);
}

.mbw-legend-item.is-chosen .mbw-legend-swatch {
  background: var(--mb-primary);
  border-color: var(--mb-primary-dark);
}

.mbw-seattools { margin-top: var(--mb-sp-4); }

/* Step 5: summary --------------------------------------------------------- */

.mbw-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mb-sp-1) var(--mb-sp-4);
  margin: 0 0 var(--mb-sp-5);
  padding: var(--mb-sp-4);
  background: var(--mb-bg-alt);
  border-radius: var(--mb-radius-sm);
}

.mbw-fact-label {
  font-size: var(--mb-fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--mb-track-wide);
  color: var(--mb-text-muted);
}

.mbw-fact-value {
  margin: 0 0 var(--mb-sp-3);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.mbw-fact-value:last-child { margin-bottom: 0; }

@media (min-width: 36rem) {
  .mbw-facts { grid-template-columns: 10rem 1fr; align-items: baseline; }
  .mbw-fact-label { padding-top: var(--mb-sp-1); }
  .mbw-fact-value { margin-bottom: var(--mb-sp-2); }
}

.mbw-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mbw-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--mb-sp-4);
  padding: var(--mb-sp-3) 0;
  border-bottom: 1px solid var(--mb-border);
}

.mbw-line-main { display: flex; flex-direction: column; min-width: 0; }

.mbw-line-name { font-weight: 600; overflow-wrap: anywhere; }

.mbw-line-detail {
  font-size: var(--mb-fs-sm);
  color: var(--mb-text-muted);
}

.mbw-line-price {
  flex: 0 0 auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* The total reads like the board at the station: dark band, amber figure. */
.mbw-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mb-sp-4);
  margin-top: var(--mb-sp-4);
  padding: var(--mb-sp-4);
  background: var(--mb-board);
  border-radius: var(--mb-radius-sm);
  color: var(--mb-text-invert);
}

.mbw-total-label {
  font-size: var(--mb-fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--mb-track-wide);
}

.mbw-total-value {
  font-size: var(--mb-fs-lg);
  font-weight: 700;
  letter-spacing: var(--mb-track-tight);
  font-variant-numeric: tabular-nums;
  color: var(--mb-accent);
  white-space: nowrap;
}

.mbw-note--pay { border-left-color: var(--mb-warning); }

/* Motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .mbw *,
  .mbw *::before,
  .mbw *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* An animated GIF cannot be paused from CSS; it is small and it loops
     gently, so it stays. Everything we do control stops. */
}

/* Which of the two Burgas stations this coach leaves from. Quiet, but not
   so quiet that someone misses it and drives to the wrong side of town. */
.mbw-chip--station {
  background: rgba(11, 77, 162, .08);
  color: var(--mb-primary);
  font-weight: 650;
}

/* The route, on a real map ----------------------------------------------- */

.mbw-map {
  margin: var(--mb-sp-5) 0 0;
  padding: var(--mb-sp-4);
  background: var(--mb-bg-alt);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
}
.mbw-map__caption {
  font-size: var(--mb-fs-sm);
  font-weight: 700;
  color: var(--mb-text);
  margin-bottom: var(--mb-sp-3);
}
.mbw-map__canvas {
  height: 20rem;
  border-radius: var(--mb-radius-sm);
  overflow: hidden;
  background: #DCE6EF;
  z-index: 0;           /* keep Leaflet's panes under the site header */
}
@media (min-width: 48rem) { .mbw-map__canvas { height: 26rem; } }

.mbw-map__note {
  margin: var(--mb-sp-3) 0 0;
  font-size: var(--mb-fs-xs);
  color: var(--mb-text-muted);
}

/* Leaflet's own furniture, in the site's voice. */
.mbw-map__canvas .leaflet-container { font-family: var(--mb-font); font-size: var(--mb-fs-xs); }
.mbw-map__canvas .leaflet-control-zoom a {
  color: var(--mb-text); border-radius: var(--mb-radius-sm);
}
.mbw-map__tip {
  background: var(--mb-bg);
  border: 1px solid var(--mb-border-strong);
  border-radius: var(--mb-radius-sm);
  box-shadow: var(--mb-shadow);
  color: var(--mb-text);
  font-weight: 650;
  font-size: var(--mb-fs-xs);
  padding: 2px 7px;
}
.mbw-map__tip::before { display: none; }
.mbw-map__tip--end {
  background: var(--mb-board);
  border-color: var(--mb-board);
  color: var(--mb-text-invert);
}
