/**
 * booking.css — Testament Tours booking & auth modal styles
 * Matches the site's luxury gold/cream palette
 */

/* ── Booking Modal Overlay ───────────────────────────────────────── */
.booking-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(28, 18, 8, 0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 36px 16px;
  box-sizing: border-box;
}
.booking-modal.bm-open { opacity: 1; pointer-events: all; }

.bm-box {
  background: #fdfbf7;
  border-radius: 16px;
  border: 1px solid rgba(184, 146, 42, 0.18);
  box-shadow: 0 32px 80px rgba(28, 18, 8, 0.22);
  width: 100%; max-width: 540px;
  box-sizing: border-box;
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding: 44px 38px 36px;
  margin: auto;
  scrollbar-width: thin; scrollbar-color: #d4b060 #f5f0e6;
}
.bm-box::-webkit-scrollbar { width: 4px; }
.bm-box::-webkit-scrollbar-thumb { background: #d4b060; border-radius: 2px; }

.bm-close {
  position: absolute; top: 18px; right: 20px;
  font-size: 20px; cursor: pointer; color: #8a7a62;
  background: none; border: none; line-height: 1;
  transition: color .2s;
}
.bm-close:hover { color: #1c1208; }

/* ── Modal Header ─────────────────────────────────────────────────── */
.bm-header { margin-bottom: 28px; }
.bm-tag {
  font-size: 9px; letter-spacing: .38em; text-transform: uppercase;
  color: #b8922a; font-weight: 600; margin-bottom: 10px;
}
.bm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px; font-weight: 300; line-height: 1.1; color: #140c04;
  margin-bottom: 8px;
}
.bm-title em { font-style: italic; color: #b8922a; }
.bm-sub { font-size: 13px; color: #6e5e49; line-height: 1.6; }

/* ── Auth Tabs ────────────────────────────────────────────────────── */
.bm-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 1px solid rgba(28,18,8,.1); }
.bm-tab {
  flex: 1; background: none; border: none; cursor: pointer;
  padding: 10px 0; font-family: 'Inter', sans-serif;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; color: #8a7a62;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .25s, border-color .25s;
}
.bm-tab.active { color: #b8922a; border-bottom-color: #b8922a; }
.bm-tab:hover { color: #1c1208; }

/* ── Form Styles ─────────────────────────────────────────────────── */
.bm-form { display: flex; flex-direction: column; gap: 18px; }

.bm-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.bm-field { display: flex; flex-direction: column; gap: 7px; }
.bm-field label {
  font-size: 9px; letter-spacing: .32em; text-transform: uppercase;
  color: #734e08; font-weight: 600;
}
.bm-field input,
.bm-field select,
.bm-field textarea {
  background: #f5f0e6;
  border: 1px solid rgba(28, 18, 8, 0.12);
  border-radius: 8px; padding: 12px 14px;
  color: #140c04; font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 400; outline: none; width: 100%;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.bm-field input::placeholder,
.bm-field textarea::placeholder { color: rgba(28,18,8,.35); }
.bm-field input:focus,
.bm-field select:focus,
.bm-field textarea:focus {
  background: #fff; border-color: #8a5d0a;
  box-shadow: 0 0 0 3px rgba(138, 93, 10, 0.1);
}
.bm-field textarea { resize: vertical; min-height: 72px; }
.bm-field select { cursor: pointer; }

/* ── Price Estimate Box ───────────────────────────────────────────── */
.bm-price-box {
  background: linear-gradient(135deg, rgba(184,146,42,.08), rgba(184,146,42,.04));
  border: 1px solid rgba(184,146,42,.25);
  border-radius: 10px; padding: 18px 20px;
}
.bm-price-label {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: #b8922a; font-weight: 600; margin-bottom: 6px;
}
.bm-price-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; color: #140c04; margin-bottom: 4px;
}
.bm-price-note { font-size: 11px; color: #8a7a62; }

/* ── M-Pesa PayBill Box ───────────────────────────────────────────── */
.bm-mpesa-box {
  background: #f7faf7;
  border: 1px solid rgba(0, 168, 89, 0.32);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.bm-mpesa-head {
  display: flex; align-items: center; justify-content: space-between;
}
.bm-mpesa-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #00a859; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.bm-mpesa-type {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: #058a47; text-transform: uppercase;
}
.bm-mpesa-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.bm-mpesa-item {
  background: #fff; border: 1px solid rgba(0, 168, 89, 0.2);
  border-radius: 8px; padding: 10px 14px;
}
.bm-mpesa-lbl {
  display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: #557560; font-weight: 600; margin-bottom: 4px;
}
.bm-mpesa-val-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.bm-mpesa-val {
  font-family: 'Inter', monospace;
  font-size: 16px; font-weight: 700; color: #0f4024; letter-spacing: .05em;
}
.bm-copy-btn {
  background: rgba(0, 168, 89, 0.1); color: #008a47;
  border: 1px solid rgba(0, 168, 89, 0.25);
  border-radius: 4px; font-size: 10px; font-weight: 600;
  padding: 3px 8px; cursor: pointer; transition: all .2s;
}
.bm-copy-btn:hover {
  background: #00a859; color: #fff;
}
.bm-mpesa-account-name {
  font-size: 12px; color: #3a5c48;
}
.bm-mpesa-account-name strong {
  color: #0f4024; font-weight: 700;
}
.bm-mpesa-ref-field {
  margin-bottom: 0;
}
.bm-mpesa-ref-field label {
  color: #234530; font-weight: 500;
}
.bm-mpesa-hint {
  font-size: 11px; color: #5a7b68; margin-top: 4px; line-height: 1.4;
}

/* M-Pesa Quick Update in Confirmation & My Bookings */
.bm-mpesa-update-wrap {
  display: flex; gap: 8px; margin-top: 10px;
}
.bm-mpesa-update-input {
  flex: 1; padding: 9px 12px; border: 1px solid rgba(0, 168, 89, 0.35);
  border-radius: 6px; font-size: 12px; text-transform: uppercase;
  background: #fff; font-family: monospace; letter-spacing: .08em;
}
.bm-mpesa-update-btn {
  background: #00a859; color: #fff; border: none; border-radius: 6px;
  padding: 9px 14px; font-size: 11px; font-weight: 600; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.bm-mpesa-update-btn:hover { background: #058a47; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.bm-btn {
  background: #140c04; color: #f7f3ec;
  border: none; border-radius: 8px;
  padding: 15px 28px; font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; cursor: pointer;
  transition: background .3s, transform .2s;
}
.bm-btn:hover { background: #b8922a; transform: translateY(-1px); }
.bm-btn:disabled { opacity: .6; transform: none; cursor: not-allowed; }

.bm-btn-outline {
  background: transparent; color: #140c04;
  border: 1.5px solid rgba(28,18,8,.25);
}
.bm-btn-outline:hover { background: rgba(28,18,8,.05); }

/* ── Error message ─────────────────────────────────────────────── */
.bm-error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192,57,43,.25);
  border-radius: 6px; padding: 10px 14px;
  font-size: 13px; color: #c0392b; line-height: 1.5;
}

/* ── Switch link ──────────────────────────────────────────────────── */
.bm-switch { font-size: 12px; color: #8a7a62; text-align: center; }
.bm-switch a { color: #8a5d0a; text-decoration: none; font-weight: 500; }
.bm-switch a:hover { color: #b8922a; }

/* ── Confirmation Screen ─────────────────────────────────────────── */
.bm-confirm { text-align: center; }
.bm-confirm-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #b8922a, #d4b060);
  color: #fff; font-size: 28px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(184,146,42,.3);
}
.bm-confirm .bm-title { text-align: center; }
.bm-confirm .bm-sub   { text-align: center; max-width: 360px; margin: 0 auto 28px; }

.bm-ref-box {
  background: #f5f0e6; border-radius: 10px;
  border: 1px solid rgba(184,146,42,.25);
  padding: 16px 24px; margin-bottom: 24px;
}
.bm-ref-label {
  font-size: 9px; letter-spacing: .32em; text-transform: uppercase;
  color: #b8922a; font-weight: 600; margin-bottom: 4px;
}
.bm-ref-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 500; color: #140c04; letter-spacing: .12em;
}

.bm-summary {
  text-align: left; border-top: 1px solid rgba(28,18,8,.1);
  margin-bottom: 20px;
}
.bm-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(28,18,8,.07);
  font-size: 13px; color: #6e5e49;
}
.bm-summary-row strong { color: #140c04; font-weight: 500; }
.bm-summary-total { font-weight: 600; }
.bm-summary-total span, .bm-summary-total strong { font-size: 15px; color: #140c04; }

.bm-whatsapp-note {
  font-size: 12px; color: #6e5e49;
  background: rgba(37,211,102,.08); border-radius: 6px;
  padding: 10px 14px; margin-bottom: 24px;
}
.bm-confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── My Bookings Panel ───────────────────────────────────────────── */
.my-bookings-panel {
  position: fixed; top: 0; right: -520px; bottom: 0; z-index: 1900;
  width: 100%; max-width: 500px;
  background: #fdfbf7;
  border-left: 1px solid rgba(184,146,42,.18);
  box-shadow: -20px 0 60px rgba(28,18,8,.14);
  display: flex; flex-direction: column;
  transition: right .4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.my-bookings-panel.mbp-open { right: 0; }

.mbp-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(28,18,8,.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.mbp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 300; color: #140c04;
}
.mbp-title em { font-style: italic; color: #b8922a; }
.mbp-close {
  font-size: 20px; cursor: pointer; background: none; border: none;
  color: #8a7a62; transition: color .2s;
}
.mbp-close:hover { color: #1c1208; }

.mbp-list {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 24px 32px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #d4b060 #f5f0e6;
  display: flex; flex-direction: column; gap: 16px;
}
.mbp-list::-webkit-scrollbar { width: 3px; }
.mbp-list::-webkit-scrollbar-thumb { background: #d4b060; }

.mbp-loading, .mbp-empty {
  font-size: 14px; color: #8a7a62; text-align: center;
  padding: 40px 0;
}

.mbp-card {
  background: #f5f0e6; border-radius: 10px;
  border: 1px solid rgba(28,18,8,.1);
  padding: 20px 22px;
  transition: box-shadow .3s;
}
.mbp-card:hover { box-shadow: 0 8px 20px rgba(28,18,8,.06); }

.mbp-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.mbp-ref { font-size: 10px; letter-spacing: .3em; color: #b8922a; font-weight: 600; margin-bottom: 3px; }
.mbp-vehicle { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #140c04; font-weight: 500; }

.mbp-status-badge {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.mbp-status-pending   .mbp-status-badge { background: rgba(184,146,42,.15); color: #8a5d0a; }
.mbp-status-confirmed .mbp-status-badge { background: rgba(46,74,32,.12); color: #2e4a20; }
.mbp-status-cancelled .mbp-status-badge { background: rgba(192,57,43,.1); color: #c0392b; }
.mbp-status-completed .mbp-status-badge { background: rgba(28,18,8,.08); color: #3d2c18; }

.mbp-details { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mbp-details span { font-size: 12px; color: #6e5e49; }

.mbp-cancel-btn {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; background: none; border: 1px solid rgba(192,57,43,.35);
  color: #c0392b; border-radius: 4px; padding: 7px 14px; cursor: pointer;
  transition: background .2s, color .2s;
}
.mbp-cancel-btn:hover { background: rgba(192,57,43,.08); }

/* ── Nav Auth Area ───────────────────────────────────────────────── */
#navAuthArea { display: flex; align-items: center; gap: 10px; }

.nav-user-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(184,146,42,.12); border: 1px solid rgba(184,146,42,.35);
  border-radius: 20px; padding: 7px 16px 7px 12px;
  cursor: pointer; transition: background .25s;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: #8a5d0a;
}
.nav-user-btn:hover { background: rgba(184,146,42,.22); }
.nav-user-icon { font-size: 14px; }

.nav-logout-btn {
  background: none; border: 1px solid rgba(28,18,8,.18);
  border-radius: 50%; width: 30px; height: 30px;
  font-size: 10px; cursor: pointer; color: #6e5e49;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.nav-logout-btn:hover { background: rgba(28,18,8,.06); color: #1c1208; }

/* Solid nav — adjust user button text colour */
nav.solid .nav-user-btn { color: #8a5d0a; }

/* ── Drawer auth area ────────────────────────────────────────────── */
.drawer-logout {
  font-family: 'Inter', sans-serif;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; background: transparent; border: 1px solid rgba(28,18,8,.16);
  color: #8a7a62; border-radius: 2px; padding: 11px 20px; cursor: pointer;
  display: block; width: 100%; text-align: center; margin-top: 10px;
  transition: all .2s ease; box-sizing: border-box;
}
.drawer-logout:hover {
  color: #140c04; border-color: #140c04;
}

/* ── Fleet card Book Now button ──────────────────────────────────── */
.fleet-card-book {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  color: #fff; background: #b8922a; border: none; padding: 13px 20px;
  border-radius: 2px; cursor: pointer; margin-top: 8px;
  transition: background .3s, transform .2s; width: 100%;
}
.fleet-card-book:hover { background: #9c7820; transform: translateY(-1px); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .booking-modal {
    padding: 16px 10px;
    align-items: flex-start;
  }
  .bm-box {
    padding: 36px 20px 28px;
    max-width: 100%;
    border-radius: 14px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto 0;
  }
  .bm-2col { grid-template-columns: 1fr; }
  .my-bookings-panel { max-width: 100%; }
  .bm-confirm-actions { flex-direction: column; }
}
