/* Booking Modal Styles */
.booking-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.booking-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.booking-modal-content {
  background: var(--light);
  margin: auto;
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.booking-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.booking-close:hover {
  background: var(--card);
  color: var(--fg);
  transform: rotate(90deg);
}

.booking-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.booking-header h2 {
  margin: 0 0 0.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--fg);
}

.booking-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Progress Indicator */
.booking-progress {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.booking-progress::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: var(--card);
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--card);
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: var(--accent);
  color: var(--light);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(107, 143, 106, 0.3);
}

.progress-step.completed .step-number {
  background: var(--accent-strong);
  color: var(--light);
}

.step-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-step.active .step-label {
  color: var(--accent-strong);
}

/* Booking Steps */
.booking-step {
  display: none;
  padding: 2rem;
}

.booking-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.booking-step h3 {
  margin: 0 0 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--fg);
}

/* Date Selection */
.date-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-input-group label {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.9rem;
}

.date-input-group input[type="date"] {
  padding: 0.85rem;
  border: 2px solid var(--card);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  transition: all 0.3s ease;
  background: var(--light);
}

.date-input-group input[type="date"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 143, 106, 0.1);
}

.date-error {
  color: #dc3545;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.nights-display {
  text-align: center;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.availability-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.availability-status.available {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.availability-status.unavailable {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.availability-status.checking {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Pricing Breakdown */
.pricing-breakdown {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.pricing-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-line:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--accent);
}

.pricing-line.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.pricing-label {
  color: var(--muted);
}

.pricing-value {
  font-weight: 700;
  color: var(--fg);
}

/* Guest Selection */
.guest-selection {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.guest-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guest-input-group label {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.9rem;
}

.number-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--light);
}

.number-btn {
  background: var(--card);
  border: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  transition: all 0.2s ease;
}

.number-btn:hover {
  background: var(--accent);
  color: var(--light);
}

.number-btn:active {
  transform: scale(0.95);
}

.number-input input {
  flex: 1;
  text-align: center;
  border: none;
  padding: 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: transparent;
}

.capacity-info {
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--fg);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem;
  border: 2px solid var(--card);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 143, 106, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Booking Summary */
.booking-summary {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.booking-summary h4 {
  margin: 0 0 1rem;
  font-family: 'Playfair Display', serif;
  color: var(--fg);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-item:last-child {
  border-bottom: none;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Payment Options */
.payment-options {
  margin-bottom: 1.5rem;
}

.payment-options h4 {
  margin: 0 0 1rem;
  font-family: 'Playfair Display', serif;
  color: var(--fg);
}

.payment-methods {
  display: grid;
  gap: 0.75rem;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-option:hover {
  border-color: var(--accent);
  background: rgba(107, 143, 106, 0.05);
}

.payment-option input[type="radio"] {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.payment-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.payment-label strong {
  color: var(--fg);
  font-weight: 700;
}

.payment-label small {
  color: var(--muted);
  font-size: 0.85rem;
}

.payment-option input[type="radio"]:checked + .payment-label {
  color: var(--accent-strong);
}

/* Terms & Agreement */
.terms-agreement,
.checkbox-label {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* Navigation Buttons */
.booking-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
}

.booking-navigation .btn {
  flex: 1;
}

.booking-navigation .btn.secondary {
  max-width: 150px;
}

/* Loading Overlay */
.booking-loading {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 100;
}

.booking-loading.active {
  display: flex;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--card);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.booking-loading p {
  color: var(--muted);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .booking-modal-content {
    max-height: 95vh;
    border-radius: var(--radius-sm);
  }

  .booking-header,
  .booking-step,
  .booking-navigation {
    padding: 1.5rem;
  }

  .date-selection {
    grid-template-columns: 1fr;
  }

  .booking-progress {
    padding: 1rem;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .booking-navigation {
    flex-direction: column;
  }

  .booking-navigation .btn.secondary {
    max-width: 100%;
  }
}

