/* ==============================
   BOOKING MODAL — Premium
============================== */

/* ── Overlay ── */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── Modal shell ── */
.booking-modal {
  background: #0d0d0d;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(201, 168, 76, 0.04);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ── Gold top accent bar ── */
.booking-modal::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #c9a84c 30%, #e8cc78 60%, #c9a84c 80%, transparent 100%);
  flex-shrink: 0;
}

/* ── Header ── */
.booking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  gap: 1rem;
}

.booking-modal-logo {
  height: 32px;
  width: auto;
}

.booking-modal-header-text {
  flex: 1;
  text-align: center;
}

.booking-modal-header-text p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
}

.booking-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.booking-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.booking-modal-close svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* ── Value strip ── */
.booking-modal-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 1.75rem;
  background: rgba(201, 168, 76, 0.06);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  flex-shrink: 0;
}

.booking-modal-value-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.booking-modal-value-item svg {
  color: #c9a84c;
  flex-shrink: 0;
}

.booking-modal-value-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Calendar iframe ── */
.booking-modal-calendar {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.booking-modal-calendar iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: none;
  display: block;
  background: #fff;
}

/* ── Loading state ── */
.booking-modal-calendar::before {
  content: 'Loading calendar...';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 0;
  pointer-events: none;
  padding: 2rem;
}

.booking-modal-calendar iframe {
  position: relative;
  z-index: 1;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .booking-modal {
    border-radius: 12px;
    max-height: 95vh;
  }

  .booking-modal-header {
    padding: 0.9rem 1.1rem;
  }

  .booking-modal-value {
    gap: 1rem;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .booking-modal-value-divider {
    display: none;
  }

  .booking-modal-value-item {
    font-size: 0.68rem;
  }

  .booking-modal-calendar iframe {
    min-height: 460px;
  }
}
