/* bookbask — my bookings.
   Assumes css/bookbask.css and css/home.css (nav + footer) are loaded.

   Geometry follows docs/bookbask/reference-build.html, "My bookings" screen.
   The one place this page departs from the reference is content, not shape:
   the reference labels its months and trip panel with a hardcoded city, and
   `venues` carries no city column, so those read as month and "This trip". */

.mb-page { padding: 40px 24px 64px; }

/* The h1 and the CTA sit on one baseline; the subline clears both. */
.mb-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.mb-h1 {
  font: 800 32px/1.14 var(--bb-font);
  letter-spacing: -1px;
  margin: 0;
}
.mb-head__cta {
  margin-left: auto;
  font-size: 14px;
}
.mb-sub { margin: 0 0 28px; }

.mb-signedout {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* ---------- next up ----------
   The one card that earns a shadow on this page, because it is the thing the
   traveler opened the page to check. */

.mb-next {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-feature);
  overflow: hidden;
  box-shadow: var(--bb-shadow-hover);
  margin-bottom: 32px;
}

.mb-next__photo {
  background: var(--bb-tint-blue);
  background-size: cover;
  background-position: center;
  min-height: 240px;
}

.mb-next__body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-next__pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mb-next__ref { font-variant-numeric: tabular-nums; }

.mb-next__name {
  font: 800 21px/1.25 var(--bb-font);
  letter-spacing: -0.3px;
  margin: 0 0 3px;
}
.mb-next__line { margin: 0; }

/* Ruled on both edges — the facts strip is a band through the card, not a
   header for what follows it. */
.mb-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--bb-hairline);
  border-bottom: 1px solid var(--bb-hairline);
}
.mb-facts > div { min-width: 0; }
.mb-facts dt {
  font: 500 12px/1.4 var(--bb-font);
  color: var(--bb-ink-soft);
  margin-bottom: 2px;
}
.mb-facts dd {
  margin: 0;
  font: 700 14.5px/1.4 var(--bb-font);
  font-variant-numeric: tabular-nums;
}
/* "$52 · pay at the venue" — the amount is the fact, the terms are metadata. */
.mb-facts__soft {
  color: var(--bb-ink-soft);
  font-weight: 600;
}

/* Free cancellation is a trust fact, so it is jade -- and only rendered when
   the booking genuinely still has one. */
.mb-next__cancel {
  margin: 0;
  font: 600 13px/1.5 var(--bb-font);
  color: var(--bb-trust);
}
.mb-next__cancel:empty { display: none; }

.mb-next__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.mb-next__actions .bb-btn {
  padding: 11px 20px;
  font-size: 13.5px;
}
.mb-next__actions .bb-btn--primary {
  padding: 11px 22px;
  font-weight: 700;
}
/* Voucher and Message venue are drawn but not wired: the screens behind them
   do not exist yet, and a button that silently does nothing is worse than one
   that says so. */
.mb-next__actions .bb-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* ---------- tabs + list ---------- */

.mb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.mb-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.mb-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--bb-r-pill);
  border: 1px solid var(--bb-hairline);
  background: var(--bb-surface);
  color: var(--bb-ink);
  padding: 9px 18px;
  font: 600 14px/1.2 var(--bb-font);
  cursor: pointer;
}
.mb-tab[aria-selected="true"] {
  background: var(--bb-primary);
  border-color: var(--bb-primary);
  color: var(--bb-page);
}
.mb-tab i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  opacity: .65;
}

.mb-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mb-month {
  font: 700 13px/1.4 var(--bb-font);
  color: var(--bb-ink-soft);
  margin: 0;
}
.mb-month + * { margin-top: 0; }
.mb-list .mb-month:not(:first-child) { margin-top: 12px; }

/* Reservations are cards here, not hairline-separated rows: each one is a
   separate object the traveler acts on, and on this page the whole card is the
   click target. */
.mb-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-card);
  padding: 16px 20px;
  color: var(--bb-ink);
}
a.mb-row:hover {
  box-shadow: var(--bb-shadow-hover);
  text-decoration: none;
}

.mb-date {
  border-radius: 10px;
  background: var(--bb-tint-blue);
  color: var(--bb-primary);
  text-align: center;
  padding: 8px 0;
}
.mb-date span { display: block; font: 700 11px/1.3 var(--bb-font); text-transform: uppercase; }
.mb-date b { display: block; font: 800 20px/1.1 var(--bb-font); font-variant-numeric: tabular-nums; }

/* A past date is a label, not a destination — it loses the blue tint. */
.mb-date--muted {
  background: var(--bb-page);
  border: 1px solid var(--bb-hairline);
  color: var(--bb-ink-soft);
}

.mb-row__name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font: 700 15.5px/1.35 var(--bb-font);
}
.mb-row__line {
  font: 500 13px/1.5 var(--bb-font);
  color: var(--bb-ink-soft);
  margin-top: 3px;
}

.mb-row__price {
  text-align: right;
  font: 800 15px/1.35 var(--bb-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mb-row__pay { display: block; font: 500 12px/1.4 var(--bb-font); color: var(--bb-ink-soft); }
/* Already-paid is a settled fact, so it gets trust jade. Pay-at-venue is a
   pending obligation and stays metadata. */
.mb-row__pay--paid { color: var(--bb-trust); font-weight: 600; }

/* The row is already an anchor, so a nested control would be invalid markup.
   Saved rows use a span that looks like the button; past rows are plain divs
   and get a real anchor. */
.mb-row__act {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* A saved row leads with a 40px heart rather than a 58px date chip. */
.mb-row--saved { grid-template-columns: 40px minmax(0, 1fr) auto; }

.mb-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bb-tint-blue);
  color: var(--bb-primary);
  font-size: 16px;
}

.mb-row__done {
  font: 600 13px/1.4 var(--bb-font);
  color: var(--bb-trust);
  white-space: nowrap;
}

.mb-empty {
  font: 400 15px/1.6 var(--bb-font);
  color: var(--bb-ink-soft);
  padding: 34px 0;
  max-width: 46ch;
}

/* ---------- trip panel ---------- */

.mb-trip {
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-feature);
  padding: 22px 24px;
  position: sticky;
  top: 24px;
}
.mb-trip__h { font: 800 16px/1.3 var(--bb-font); margin: 0 0 3px; }
.mb-trip__list { margin: 16px 0 0; }
.mb-trip__list .bb-list__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 10px 0;
  font: 600 13.5px/1.45 var(--bb-font);
}
.mb-trip__list .bb-list__item:last-child { border-bottom: 1px solid var(--bb-hairline); }
.mb-trip__list .bb-list__item span {
  color: var(--bb-ink-soft);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.mb-trip__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 4px;
  font: 400 13.5px/1.4 var(--bb-font);
  color: var(--bb-ink-soft);
}
.mb-trip__total b {
  font: 800 17px/1.3 var(--bb-font);
  color: var(--bb-ink);
  font-variant-numeric: tabular-nums;
}
.mb-trip__split { margin: 0 0 16px; font-size: 12.5px; }

.mb-trip__cal {
  width: 100%;
  padding: 12px 0;
  font-size: 13.5px;
}

.mb-trip__tip {
  margin-top: 16px;
  background: var(--bb-tint-jade);
  border-radius: 10px;
  padding: 12px 16px;
  font: 400 12.5px/1.55 var(--bb-font);
  color: var(--bb-trust);
}
.mb-trip__tip b { font-weight: 700; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .mb-grid { grid-template-columns: 1fr; gap: 32px; }
  .mb-trip { position: static; max-width: 520px; }
}

@media (max-width: 640px) {
  .mb-next { grid-template-columns: 1fr; }
  .mb-next__photo { min-height: 170px; }
  .mb-h1 { font-size: 27px; }
  .mb-head__cta { margin-left: 0; }
  .mb-facts { gap: 20px; }
  .mb-row { grid-template-columns: 48px minmax(0, 1fr); }
  .mb-row__price,
  .mb-row__act,
  .mb-row__done { grid-column: 2; text-align: left; justify-self: start; }
}
