/* ========================================= */
/* SHANAYA — MY BOOKING PAGE                 */
/* ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #EAE6DF;
  color: #2E2A27;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================= */
/* AMBIENT BACKGROUND                        */
/* ========================================= */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  filter: saturate(0.5) blur(3px);
}

.ambient-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F4F1EC 0%, rgba(244, 241, 236, 0.88) 100%);
}

/* ========================================= */
/* PAGE LAYOUT                               */
/* ========================================= */

.mybooking-layout {
  position: relative;
  z-index: 1;
  width: min(860px, 92%);
  margin: 0 auto;
  padding: 120px 0 80px;
}

/* ========================================= */
/* PAGE HEADER                               */
/* ========================================= */

.mybooking-header {
  margin-bottom: 40px;
}

.mybooking-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C4AB74;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mybooking-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #C4AB74;
}

.mybooking-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: #1a1410;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.mybooking-subtitle {
  font-size: 14px;
  color: rgba(46, 42, 39, 0.55);
  line-height: 1.6;
  font-weight: 400;
}

/* ========================================= */
/* FILTER TABS                               */
/* ========================================= */

.mybooking-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(46, 42, 39, 0.1);
  padding-bottom: 0;
}

.mybooking-tab {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(46, 42, 39, 0.45);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.mybooking-tab.active {
  color: #1a1410;
  border-bottom-color: #C4AB74;
}

.mybooking-tab:hover:not(.active) {
  color: rgba(46, 42, 39, 0.75);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(196, 171, 116, 0.18);
  color: #C4AB74;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
}

.mybooking-tab.active .tab-count {
  background: #C4AB74;
  color: #1a1410;
}

/* ========================================= */
/* BOOKING CARDS                             */
/* ========================================= */

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(46, 42, 39, 0.07), 0 1px 4px rgba(46, 42, 39, 0.04);
  border: 1px solid rgba(196, 171, 116, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 320px;
  position: relative;
}

.booking-card:hover {
  box-shadow: 0 8px 36px rgba(46, 42, 39, 0.12), 0 2px 8px rgba(46, 42, 39, 0.06);
  transform: translateY(-2px);
}

/* CARD BODY */
.booking-card-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  flex: 1;
}

/* CARD IMAGE — absolutely positioned to span the full card height */
.booking-card-img {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  overflow: hidden;
}

.booking-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.booking-card:hover .booking-card-img img {
  transform: scale(1.04);
}

.booking-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 8, 5, 0.28) 0%, transparent 60%);
}

/* STATUS BADGE (on image) */
.booking-status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.booking-status-badge.status-awaiting {
  background: rgba(196, 171, 116, 0.85);
  color: #1a1410;
}

.booking-status-badge.status-pending {
  background: rgba(255, 193, 98, 0.85);
  color: #1a1410;
}

.booking-status-badge.status-confirmed {
  background: rgba(105, 168, 114, 0.85);
  color: white;
}

.booking-status-badge i {
  font-size: 12px;
}

/* COUNTDOWN (on image, bottom) */
.booking-countdown {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 8, 5, 0.72) 0%, transparent 100%);
  padding: 24px 14px 14px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.countdown-days {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: white;
  line-height: 1;
}

.countdown-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
}

/* CARD DETAILS */
.booking-card-details {
  grid-column: 2;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.booking-ref-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.booking-ref-code {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(46, 42, 39, 0.4);
}

.booking-ref-copy {
  background: none;
  border: none;
  color: rgba(46, 42, 39, 0.28);
  cursor: pointer;
  padding: 2px 3px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.booking-ref-copy i {
  font-size: 12px;
}

.booking-ref-copy:hover {
  color: #C4AB74;
}

.booking-villa-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: #1a1410;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  line-height: 1.2;
}

/* DATES ROW */
.booking-dates-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.booking-date-item {
  flex: 0 0 auto;
}

.booking-date-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(46, 42, 39, 0.4);
  margin-bottom: 3px;
}

.booking-date-value {
  font-size: 14px;
  font-weight: 500;
  color: #2E2A27;
}

.booking-date-sub {
  font-size: 11px;
  color: rgba(46, 42, 39, 0.45);
  margin-top: 1px;
}

.dates-arrow {
  padding: 0 14px;
  color: rgba(196, 171, 116, 0.6);
  font-size: 16px;
}

/* DETAILS CHIPS */
.booking-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.booking-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(196, 171, 116, 0.1);
  border: 1px solid rgba(196, 171, 116, 0.2);
  font-size: 11px;
  color: rgba(46, 42, 39, 0.65);
  font-weight: 400;
}

.booking-chip i {
  font-size: 12px;
  color: #C4AB74;
}

/* FOOTER: PRICE + ACTIONS */
.booking-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  position: absolute;
  bottom: 0;
  left: 220px;
  right: 0;
  border-top: 1px solid rgba(46, 42, 39, 0.06);
  background: rgba(244, 241, 236, 0.5);
  gap: 12px;
}

.booking-price-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.booking-price-label {
  font-size: 10px;
  color: rgba(46, 42, 39, 0.4);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-price-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a1410;
  letter-spacing: -0.01em;
}

.booking-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-pill i {
  font-size: 12px;
}

/* green — payment confirmed */
.status-pill.pill-paid {
  background: rgba(96, 162, 104, 0.12);
  color: rgba(60, 130, 68, 0.9);
  border: 1px solid rgba(96, 162, 104, 0.25);
}

/* amber — pending / waiting */
.status-pill.pill-pending {
  background: rgba(220, 165, 60, 0.12);
  color: rgba(185, 125, 20, 0.9);
  border: 1px solid rgba(220, 165, 60, 0.25);
}

/* red — cancelled */
.status-pill.pill-cancelled {
  background: rgba(180, 60, 60, 0.08);
  color: rgba(165, 50, 50, 0.85);
  border: 1px solid rgba(180, 60, 60, 0.18);
}

/* teal — refunded */
.status-pill.pill-refunded {
  background: rgba(60, 150, 170, 0.1);
  color: rgba(40, 120, 140, 0.85);
  border: 1px solid rgba(60, 150, 170, 0.22);
}

/* gold — reviewed */
.status-pill.pill-reviewed {
  background: rgba(196, 171, 116, 0.14);
  color: rgba(150, 120, 60, 0.9);
  border: 1px solid rgba(196, 171, 116, 0.3);
}

/* soft teal-green — free cancellation */
.status-pill.pill-free-cancel {
  background: rgba(80, 165, 150, 0.1);
  color: rgba(50, 130, 118, 0.85);
  border: 1px solid rgba(80, 165, 150, 0.2);
}

/* upload required — warning */
.status-pill.pill-upload {
  background: rgba(220, 100, 50, 0.1);
  color: rgba(190, 75, 30, 0.85);
  border: 1px solid rgba(220, 100, 50, 0.22);
}

/* ========================================= */
/* ADDONS STRIP                              */
/* ========================================= */

.booking-addons-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  position: absolute;
  bottom: 72px;
  left: 220px;
  right: 0;
  border-top: 1px solid rgba(46, 42, 39, 0.06);
  flex-wrap: wrap;
}

.addons-strip-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(46, 42, 39, 0.35);
  margin-right: 2px;
}

.addon-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 8, 5, 0.05);
  font-size: 11px;
  color: rgba(46, 42, 39, 0.6);
}

.addon-pill i {
  font-size: 11px;
  color: #C4AB74;
}

/* ========================================= */
/* EMPTY STATE                               */
/* ========================================= */

.mybooking-empty {
  text-align: center;
  padding: 80px 24px;
  display: none;
}

.mybooking-empty.visible {
  display: block;
}

.empty-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(196, 171, 116, 0.1);
  border: 1px solid rgba(196, 171, 116, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-icon-wrap i {
  font-size: 28px;
  color: #C4AB74;
}

.empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: #1a1410;
  margin-bottom: 10px;
}

.empty-desc {
  font-size: 14px;
  color: rgba(46, 42, 39, 0.5);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto 28px;
}

.empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  background: #2E2A27;
  color: white;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.empty-cta:hover {
  background: #1a1410;
}

/* ========================================= */
/* POLICY NOTE                               */
/* ========================================= */

.booking-policy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  margin: 28px 0 0;
  background: rgba(196, 171, 116, 0.08);
  border: 1px solid rgba(196, 171, 116, 0.2);
  border-radius: 12px;
  font-size: 12px;
  color: rgba(46, 42, 39, 0.6);
  line-height: 1.6;
}

.booking-policy-note i {
  font-size: 15px;
  color: #C4AB74;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========================================= */
/* MODAL (cancel confirmation)               */
/* ========================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 8, 5, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: white;
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(180, 60, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-icon i {
  font-size: 24px;
  color: rgba(180, 60, 60, 0.8);
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: #1a1410;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 13px;
  color: rgba(46, 42, 39, 0.55);
  line-height: 1.65;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: none;
  border: 1px solid rgba(46, 42, 39, 0.15);
  color: rgba(46, 42, 39, 0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.modal-btn-cancel:hover {
  background: rgba(46, 42, 39, 0.05);
}

.modal-btn-confirm {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: rgba(180, 60, 60, 0.85);
  border: none;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease;
}

.modal-btn-confirm:hover {
  background: rgba(160, 40, 40, 0.9);
}

/* ========================================= */
/* TOAST NOTIFICATION                        */
/* ========================================= */

.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1410;
  color: rgba(255, 255, 255, 0.88);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================= */
/* RESPONSIVE — MOBILE                       */
/* ========================================= */

@media (max-width: 680px) {

  .mybooking-layout {
    padding: 100px 0 80px;
  }

  .mybooking-title {
    font-size: 32px;
  }

  .topbar-logo span {
    display: none;
  }

  .booking-card {
    height: auto;
  }

  .booking-card-body {
    grid-template-columns: 1fr;
  }

  .booking-card-img {
    position: relative;
    width: 100%;
    height: 200px;
  }

  .booking-card-details {
    grid-column: 1;
    padding: 18px 18px 14px;
  }

  .booking-addons-strip {
    position: relative;
    bottom: auto;
    left: 0;
    right: 0;
    padding: 10px 18px;
  }

  .booking-card-footer {
    position: relative;
    bottom: auto;
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: flex-start;
    padding: 14px 18px;
    gap: 12px;
  }

  .booking-status-pills {
    flex: 1;
    justify-content: flex-end;
    row-gap: 10px;
  }

  .mybooking-tabs {
    gap: 0;
  }

  .mybooking-tab {
    padding: 10px 12px;
    font-size: 11px;
  }

}
