/* My Bookings - visual layer only. Shared shell/topbar/sidebar come from profile.css and topbar-portal.css. */

.page-my-reservation .topbar::before {
  display: none !important;
}

.content.content--my-bookings {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 28px 44px;
}

.mb-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.mb-hero-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mb-hero-lead {
  max-width: 620px;
  margin: 0;
  color: #334155;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.5;
}

.mb-hero-tools {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.mb-btn-primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #4f46e5;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.26);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mb-btn-primary:hover {
  background: #4338ca;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

.mb-status {
  min-height: 0;
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
}

.mb-status:empty {
  display: none;
}

.mb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.mb-stat-card {
  min-height: 118px;
  padding: 24px 28px;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.mb-stat-label {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mb-stat-card strong {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
}

.mb-stat-card:first-child strong {
  color: #4f46e5;
}

.mb-stat-card small {
  display: block;
  margin-top: 10px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
}

.mb-secure-state {
  gap: 10px;
  font-size: 0.95rem !important;
}

.mb-secure-state i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0ea66b;
}

.mb-secure-state i.is-warn {
  background: #f59e0b;
}

.mb-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.mb-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 470px;
  padding: 5px;
  border-radius: 10px;
  background: #eef2ff;
}

.bookings-segment-btn {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.bookings-segment-btn.is-active,
.bookings-segment-btn[aria-selected="true"] {
  background: #fff;
  color: #1d1cf0;
  box-shadow: 0 7px 18px rgba(36, 46, 82, 0.08);
}

.mb-search-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.mb-search {
  width: 300px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
}

.mb-search-ico {
  color: #334155;
  display: inline-flex;
}

.mb-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 600;
}

.mb-filter-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.booking-panel.hidden,
.hidden {
  display: none !important;
}

.mb-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mb-row-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.mb-row-card--holdover {
  border-color: #fecaca;
}

.mb-row-media {
  position: relative;
  min-height: 192px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.12)),
    linear-gradient(145deg, #8eb4c4, #253445);
  background-position: center;
  background-size: cover;
}

.mb-row-media-id {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  word-break: break-word;
}

.mb-row-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mb-row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 22px 22px 14px;
}

.mb-row-location {
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.mb-row-subloc {
  margin-top: 4px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.mb-chip-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.mb-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mb-chip--active {
  color: #047857;
  background: #dcfce7;
}

.mb-chip--soon {
  color: #b45309;
  background: #fef3c7;
}

.mb-chip--hold {
  color: #b91c1c;
  background: #fee2e2;
}

.mb-overdue-note {
  margin: 0 22px 14px;
  padding: 12px 14px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e1bb8;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

.mb-row-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: auto 22px 0;
  padding: 15px 0 16px;
  border-top: 1px solid #eef2f7;
}

.mb-meta-block span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mb-meta-block span:last-child {
  color: #111827;
  font-size: 0.84rem;
  font-weight: 700;
}

.mb-row-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 22px;
  background: #eef2ff;
}

.mb-row-actions a,
.mb-row-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #d9e2f0;
  border-radius: 7px;
  background: #fff;
  color: #1d1cf0;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.mb-row-actions .mb-act-primary,
.mb-row-actions .mb-act-fine {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}

.mb-row-actions .mb-act-danger {
  border-color: #ef4444;
  color: #dc2626;
}

.mb-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  padding: 38px 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.mb-empty-title {
  margin-bottom: 8px;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 800;
}

.mb-empty-text {
  max-width: 380px;
  margin: 0 auto;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.mb-btn-ghost {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #4f46e5;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.mb-history-head {
  margin: 22px 0 14px;
}

.mb-history-head h2 {
  margin: 0;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 800;
}

.mb-history-table-wrap {
  overflow-x: auto;
  border: 1px solid #e7ebf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.mb-history-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.mb-history-table th {
  padding: 16px 22px;
  background: #eef2ff;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.mb-history-table td {
  padding: 18px 22px;
  border-top: 1px solid #eef2f7;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 600;
}

.mb-history-table a {
  color: #1d1cf0;
  font-weight: 800;
  text-decoration: none;
}

.mb-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.mb-pill--completed {
  color: #1e3a8a;
  background: #eff6ff;
}

.mb-pill--soon {
  color: #b45309;
  background: #fef3c7;
}

.mb-pill--cancelled {
  color: #b91c1c;
  background: #fee2e2;
}

.mb-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.mb-modal.hidden {
  display: none !important;
}

.mb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
}

.mb-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid #e0e7ff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
  text-align: center;
}

.mb-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.mb-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.mb-modal-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #b45309;
  background: #fef3c7;
}

.mb-modal-icon--danger {
  color: #dc2626;
  background: #fee2e2;
}

.mb-modal-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.mb-modal-card p {
  max-width: 400px;
  margin: 14px auto 0;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
}

.mb-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.mb-modal-btn {
  min-width: 126px;
  min-height: 46px;
  border-radius: 10px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.mb-modal-btn--ghost {
  border: 1px solid #dbe3f0;
  background: #fff;
  color: #334155;
}

.mb-modal-btn--primary {
  border: 1px solid #4f46e5;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.24);
}

.mb-modal-btn--primary:hover {
  background: #4338ca;
}

.mb-modal-btn--danger {
  border: 1px solid #dc2626;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.18);
}

.mb-modal-btn--danger:hover {
  background: #b91c1c;
}

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

@media (max-width: 1050px) {
  .mb-stats,
  .mb-list {
    grid-template-columns: 1fr 1fr;
  }

  .mb-control-row {
    grid-template-columns: 1fr;
  }

  .mb-search-tools {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .content.content--my-bookings {
    padding: 22px 16px 36px;
  }

  .mb-hero {
    flex-direction: column;
  }

  .mb-hero-tools,
  .mb-btn-primary,
  .mb-search,
  .mb-search-tools {
    width: 100%;
  }

  .mb-stats,
  .mb-list {
    grid-template-columns: 1fr;
  }

  .mb-row-card {
    grid-template-columns: 1fr;
  }

  .mb-row-media {
    min-height: 170px;
  }
}

@media (max-width: 520px) {
  .mb-row-top,
  .mb-row-meta {
    grid-template-columns: 1fr;
  }

  .mb-chip-row {
    justify-content: flex-start;
  }

  .mb-row-actions {
    flex-direction: column;
  }
}
