/* =============================================================
   TourOps — bookings.css
   Traveller details, payment, confirmation
   ============================================================= */

/* ── booking steps (in header) ── */
.booking-steps { display: flex; align-items: center; gap: 0; }
.booking-step { display: flex; align-items: center; }
.booking-step .step-num {
  width: 28px; height: 28px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.booking-step .step-label { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 8px; white-space: nowrap; }
.booking-step .sep { width: 28px; height: 1px; background: var(--line); margin: 0 6px; }
.booking-step.is-done .step-num { background: var(--mint); border-color: var(--mint); color: #fff; }
.booking-step.is-active .step-num { background: var(--coral); border-color: var(--coral); color: #fff; }
.booking-step.is-active .step-label { color: var(--ink); font-weight: 600; }

/* ── layout ── */
.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
@media (max-width: 991.98px) { .booking-layout { grid-template-columns: 1fr; } }

/* ── form block ── */
.form-block {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 28px; margin-bottom: 18px;
}
.form-block h3 { font-family: var(--ff-display); font-size: 19px; font-weight: 600; margin: 0; }
.form-block .blurb { font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
.form-block .block-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.form-block .block-head .num { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }

/* ── summary card ── */
.summary-card { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.summary-card .sc-head { padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.summary-card .sc-head h5 { font-family: var(--ff-display); font-size: 17px; font-weight: 600; margin: 0; }
.summary-card .sc-body { padding: 18px 22px; }
.summary-card .sc-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.summary-card .sc-row .k { color: var(--muted); }
.summary-card .sc-row .v { font-weight: 500; }
.summary-card .sc-totals { background: var(--cream); padding: 18px 22px; }
.summary-card .sc-total { display: flex; justify-content: space-between; font-family: var(--ff-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* ── traveler tabs ── */
.traveler-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 1px; }
.traveler-tabs .tt-btn {
  background: transparent; border: 0; padding: 10px 16px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.traveler-tabs .tt-btn.is-active { color: var(--ink); border-color: var(--coral); }
.traveler-tabs .tt-btn .pill {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--cream-2); color: var(--muted); font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .1em;
}
.traveler-tabs .tt-btn.is-active .pill { background: var(--coral); color: #fff; }

/* ── add-on row ── */
.add-on-row {
  display: flex; gap: 14px; align-items: center; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.add-on-row:hover { background: var(--cream-2); }
.add-on-row.is-sel { background: #FFF9F6; border-color: var(--coral); }
.add-on-row .ico {
  width: 42px; height: 42px; border-radius: 10px; background: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink); flex-shrink: 0;
}
.add-on-row .ttl { font-weight: 500; font-size: 14px; }
.add-on-row .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.add-on-row .price { font-family: var(--ff-display); font-size: 16px; font-weight: 600; margin-left: auto; white-space: nowrap; }

/* ── payment method grid ── */
.pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
@media (max-width: 575.98px) { .pm-grid { grid-template-columns: repeat(2, 1fr); } }
.pm-card {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
  transition: border-color .2s, background .2s; position: relative; background: #fff;
}
.pm-card:hover { border-color: var(--ink); }
.pm-card.is-sel { border-color: var(--coral); background: #FFFBF8; box-shadow: 0 0 0 3px rgba(255,106,77,0.08); }
.pm-card.is-sel::before {
  content: ""; position: absolute; top: 8px; right: 8px;
  width: 16px; height: 16px; border-radius: 999px; background: var(--coral);
}
.pm-card.is-sel::after {
  content: "✓"; position: absolute; top: 8px; right: 8px;
  width: 16px; height: 16px; color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.pm-card .pm-ico { font-size: 22px; }
.pm-card .pm-name { font-size: 13px; font-weight: 500; }
.pm-card .pm-sub { font-size: 11px; color: var(--muted); font-family: var(--ff-mono); letter-spacing: .04em; }

/* ── card preview ── */
.card-preview {
  background: linear-gradient(135deg, var(--ink) 0%, #1B2B40 60%, #243A5A 100%);
  color: #fff; border-radius: var(--r-lg); padding: 22px; aspect-ratio: 1.586/1; max-width: 380px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.card-preview::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 999px; background: radial-gradient(closest-side, rgba(232,199,122,0.2), transparent 70%);
}
.card-preview .cp-chip { width: 36px; height: 26px; border-radius: 5px; background: linear-gradient(135deg, var(--sand), #C99F4F); }
.card-preview .cp-num { font-family: var(--ff-mono); font-size: 19px; letter-spacing: 0.16em; margin-top: 28px; }
.card-preview .cp-foot { display: flex; justify-content: space-between; margin-top: 18px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.card-preview .cp-foot .lbl { color: rgba(255,255,255,0.5); font-size: 9.5px; letter-spacing: .14em; }
.card-preview .cp-brand { position: absolute; right: 22px; bottom: 22px; font-family: var(--ff-display); font-size: 16px; font-weight: 600; color: var(--sand); letter-spacing: .04em; }

/* ── wallet btn ── */
.wallet-btn {
  width: 100%; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: #fff; display: flex; gap: 10px; align-items: center; justify-content: center;
  font-weight: 500; font-size: 14px; cursor: pointer; transition: background .2s;
}
.wallet-btn:hover { background: var(--cream); }
.wallet-btn i { font-size: 18px; }

/* ── installment row ── */
.installment-row { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; cursor: pointer; }
.installment-row.is-sel { border-color: var(--coral); background: #FFF9F6; }
.installment-row .pay-now { font-family: var(--ff-display); font-size: 16px; font-weight: 600; }
.installment-row .lbl { font-weight: 500; font-size: 13.5px; }
.installment-row .sub { font-size: 12px; color: var(--muted); }

/* ── promo row ── */
.promo-row { display: flex; gap: 8px; margin-bottom: 10px; }
.promo-row input { flex: 1; }

/* ── secure strip ── */
.secure-strip { display: flex; gap: 18px; padding: 14px 0; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.secure-strip i { color: var(--mint); margin-right: 5px; }

/* ── confirmation hero ── */
.confirm-hero { background: var(--ink); color: #fff; padding: 36px 0; position: relative; overflow: hidden; }
.confirm-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px;
  border-radius: 999px; background: radial-gradient(closest-side, rgba(232,199,122,0.15), transparent 70%); pointer-events: none;
}
.confirm-hero h2 { color: #fff; margin: 0; font-size: clamp(22px, 2.6vw, 30px); }
.confirm-hero h2 .serif-it { color: var(--sand); }

.check-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sand);
}
.check-pill .dot {
  width: 18px; height: 18px; border-radius: 999px; background: var(--mint); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.ref-row {
  display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--ff-mono); font-size: 11.5px;
  letter-spacing: .08em; color: rgba(255,255,255,0.5);
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,0.12);
}
.ref-row strong { color: var(--sand); font-weight: 500; letter-spacing: .12em; }

/* ── confirmation layout ── */
.confirm-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; padding: 28px 0 40px; }
@media (max-width: 991.98px) { .confirm-layout { grid-template-columns: 1fr; } }

/* ── booking card ── */
.booking-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.booking-card .bc-head { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
.booking-card .bc-head h4 { margin: 0; font-family: var(--ff-display); font-size: 15px; font-weight: 600; }
.booking-card .bc-body { padding: 18px 20px; }

/* ── ticket ── */
.ticket {
  border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--cream-2);
  padding: 16px 18px; display: grid; grid-template-columns: 1fr 70px 1fr;
  gap: 14px; align-items: center; position: relative; overflow: hidden;
}
.ticket + .ticket { margin-top: 10px; }
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 999px; background: #fff; border: 1px dashed var(--line);
}
.ticket::before { left: -8px; } .ticket::after { right: -8px; }
.ticket .city-code { font-family: var(--ff-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.ticket .city-name { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ticket .time { font-family: var(--ff-display); font-size: 14px; font-weight: 600; margin-top: 6px; }
.ticket .date { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.ticket .mid { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.ticket .mid .duration { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; }
.ticket .mid i { font-size: 14px; color: var(--ink); }
.ticket .ttl { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 575.98px) { .ticket { grid-template-columns: 1fr; gap: 10px; padding: 14px; } .ticket .mid { flex-direction: row; } }

/* ── detail / pay grid ── */
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; padding: 14px 20px; border-top: 1px solid var(--line-soft); background: #fff; }
@media (max-width: 767.98px) { .detail-grid { grid-template-columns: repeat(2, 1fr); } }
.pay-grid { background: var(--cream); border-top: 1px solid var(--line-soft); padding: 14px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; }
@media (max-width: 767.98px) { .pay-grid { grid-template-columns: repeat(2, 1fr); } }
.detail-item .lbl { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detail-item .val { font-weight: 500; font-size: 13px; margin-top: 3px; line-height: 1.35; }

/* ── next strip ── */
.next-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 767.98px) { .next-strip { grid-template-columns: 1fr; } }
.next-strip a { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 12px 14px; transition: border-color .2s, background .2s; }
.next-strip a:hover { border-color: var(--ink); }
.next-strip a .ico { width: 32px; height: 32px; border-radius: 8px; background: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink); flex-shrink: 0; }
.next-strip a .ttl { font-weight: 500; font-size: 13px; }
.next-strip a .sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ── QR card ── */
.qr-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 16px; display: flex; gap: 14px; align-items: center; }
.qr-placeholder { width: 72px; height: 72px; background: var(--ink); border-radius: 6px; position: relative; flex-shrink: 0; overflow: hidden; }
.qr-placeholder::before {
  content: ""; position: absolute; inset: 6px;
  background: repeating-linear-gradient(0deg, #fff 0 3px, transparent 3px 6px), repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px);
  background-color: var(--ink);
}
.qr-placeholder::after { content: ""; position: absolute; width: 20px; height: 20px; background: #fff; top: 4px; left: 4px; box-shadow: 48px 0 0 #fff, 0 48px 0 #fff; }

/* ── side card ── */
.side-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 16px 18px; }
.side-card + .side-card { margin-top: 12px; }
.side-card h5 { font-family: var(--ff-display); font-size: 14px; font-weight: 600; margin: 0; }
.side-card .lbl { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── timeline mini ── */
.timeline-mini .row-t { display: flex; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.timeline-mini .row-t:first-of-type { border-top: 0; padding-top: 4px; }
.timeline-mini .row-t .dot { width: 22px; height: 22px; border-radius: 999px; background: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted); font-size: 11px; font-family: var(--ff-mono); }
.timeline-mini .row-t.is-done .dot { background: var(--mint); color: #fff; }
.timeline-mini .when { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.timeline-mini .what { font-size: 12.5px; font-weight: 500; margin-top: 2px; line-height: 1.3; }
