/* Booking Sheet Modal - following established nc-sheet pattern */

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-overlay.nc-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.98) 0%, rgba(16, 16, 22, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.booking-overlay.nc-open + .booking-sheet,
.booking-sheet.nc-open {
  transform: translateY(0);
}

/* Desktop styles - centered modal */
@media (min-width: 768px) {
  .booking-sheet {
    position: fixed;
    bottom: auto;
    left: 50%;
    top: 50%;
    right: auto;
    width: 100%;
    max-width: 48rem; /* max-w-3xl to match the original form */
    max-height: 90vh;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  }

  .booking-overlay.nc-open + .booking-sheet,
  .booking-sheet.nc-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.booking-handle {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  flex-shrink: 0;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
}

/* Hide handle on desktop */
@media (min-width: 768px) {
  .booking-handle {
    display: none;
  }
}

.booking-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.booking-checkout-bar {
  z-index: 30;
}

@media (min-width: 768px) {
  .booking-sheet {
    height: min(90vh, 860px);
  }

  .booking-content {
    padding-bottom: 0;
  }

  .booking-checkout-bar {
    position: sticky;
    bottom: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 -12px 30px rgba(0,0,0,0.35);
  }
}

/* Support for safe area on mobile */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .booking-content {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Custom scrollbar */
.booking-content::-webkit-scrollbar {
  width: 4px;
}

.booking-content::-webkit-scrollbar-track {
  background: transparent;
}

.booking-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.booking-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Body lock when modal is open (reuse existing class) */
body.booking-body-locked {
  overflow: hidden;
  touch-action: none;
}