/* ─── BOOKING MODAL OVERLAY ─── */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 46, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  padding: 20px;
}
.booking-overlay.active {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  background: var(--snow);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.booking-overlay.active .booking-modal {
  transform: translateY(0) scale(1);
}

.booking-modal::-webkit-scrollbar { width: 6px; }
.booking-modal::-webkit-scrollbar-track { background: transparent; }
.booking-modal::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 3px; }

/* ─── MODAL HEADER ─── */
.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px 0;
}

.booking-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--forest);
}
.booking-title em {
  font-style: italic;
  color: var(--sage);
}

.booking-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(45, 74, 45, 0.1);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--stone);
  transition: all 0.3s;
  flex-shrink: 0;
}
.booking-close:hover {
  background: rgba(45, 74, 45, 0.06);
  color: var(--forest);
}

/* ─── PROPERTY TABS ─── */
.property-tabs {
  display: flex;
  gap: 8px;
  padding: 24px 32px 0;
  flex-wrap: wrap;
}

.property-tab {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(45, 74, 45, 0.12);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.property-tab:hover {
  border-color: var(--sage);
  color: var(--forest);
}
.property-tab.active {
  background: var(--forest);
  color: var(--snow);
  border-color: var(--forest);
}

/* ─── PROMO BADGE ─── */
.promo-badge {
  margin: 20px 32px 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(138, 154, 108, 0.1));
  border: 1px solid rgba(212, 165, 116, 0.25);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--amber);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.promo-badge span { font-size: 1rem; }

/* ─── CALENDAR ─── */
.calendar-container {
  padding: 24px 32px;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-month-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--forest);
}

.calendar-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(45, 74, 45, 0.1);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.calendar-nav-btn:hover {
  background: rgba(45, 74, 45, 0.06);
  color: var(--forest);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s;
  position: relative;
  font-family: var(--font-body);
  padding: 4px 2px;
}

.calendar-day-num {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1;
}

.calendar-day-price {
  font-size: 0.6rem;
  color: var(--sage);
  font-weight: 500;
  line-height: 1;
}

/* Empty / other month */
.calendar-day.empty { cursor: default; }

/* Available */
.calendar-day.available:hover {
  background: rgba(138, 154, 108, 0.1);
}

/* Unavailable / past */
.calendar-day.unavailable {
  cursor: not-allowed;
  opacity: 0.35;
}
.calendar-day.unavailable .calendar-day-num {
  text-decoration: line-through;
}

/* Selected check-in */
.calendar-day.check-in {
  background: var(--forest);
  border-radius: 10px 4px 4px 10px;
}
.calendar-day.check-in .calendar-day-num,
.calendar-day.check-in .calendar-day-price {
  color: #fff;
}

/* Selected check-out */
.calendar-day.check-out {
  background: var(--forest);
  border-radius: 4px 10px 10px 4px;
}
.calendar-day.check-out .calendar-day-num,
.calendar-day.check-out .calendar-day-price {
  color: #fff;
}

/* In range */
.calendar-day.in-range {
  background: rgba(138, 154, 108, 0.15);
  border-radius: 2px;
}
.calendar-day.in-range .calendar-day-num {
  color: var(--forest);
}

/* Special event indicator */
.calendar-day.special-event::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--warm);
  position: absolute;
  bottom: 4px;
}

/* Today */
.calendar-day.today .calendar-day-num {
  color: var(--warm);
  font-weight: 700;
}

/* ─── SELECTION INFO ─── */
.selection-info {
  padding: 0 32px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--stone);
  min-height: 24px;
}
.selection-info strong {
  color: var(--forest);
}

/* ─── MIN STAY NOTICE ─── */
.min-stay-notice {
  padding: 0 32px;
  margin-bottom: 16px;
}
.min-stay-notice p {
  font-size: 0.78rem;
  color: var(--amber);
  background: rgba(212, 165, 116, 0.08);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 165, 116, 0.15);
}

/* ─── PRICE SUMMARY ─── */
.price-summary {
  margin: 0 32px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(45, 74, 45, 0.08);
  overflow: hidden;
}

.price-summary-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(45, 74, 45, 0.06);
}
.price-summary-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--forest);
}

.price-nights {
  max-height: 200px;
  overflow-y: auto;
}

.price-night-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(45, 74, 45, 0.04);
}
.price-night-row:last-child { border-bottom: none; }

.price-night-date {
  color: var(--stone);
}
.price-night-date .event-tag {
  font-size: 0.65rem;
  background: rgba(212, 165, 116, 0.15);
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  font-weight: 600;
}

.price-night-amount {
  font-weight: 600;
  color: var(--forest);
}

.price-totals {
  padding: 16px 24px;
  background: rgba(45, 74, 45, 0.02);
  border-top: 1px solid rgba(45, 74, 45, 0.08);
}

.price-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--stone);
}
.price-total-row.discount {
  color: var(--sage);
}
.price-total-row.grand-total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(45, 74, 45, 0.1);
  font-size: 1.1rem;
}
.price-total-row.grand-total .price-total-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest);
}
.price-total-row.grand-total .price-total-amount {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--forest);
}

/* ─── BOOKING FORM ─── */
.booking-form {
  padding: 0 32px 32px;
}

.booking-form h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid rgba(45, 74, 45, 0.12);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: #fff;
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.booking-submit {
  width: 100%;
  padding: 16px;
  background: var(--warm);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}
.booking-submit:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 135, 59, 0.3);
}
.booking-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── CONFIRMATION ─── */
.booking-confirmation {
  padding: 60px 32px;
  text-align: center;
  display: none;
}
.booking-confirmation.active { display: block; }

.booking-confirmation-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.booking-confirmation h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--forest);
  margin-bottom: 12px;
}
.booking-confirmation p {
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .booking-modal {
    border-radius: 16px 16px 0 0;
    max-height: 100vh;
    max-height: 100dvh;
    margin-top: auto;
  }
  .booking-overlay {
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }
  .booking-header { padding: 20px 20px 0; }
  .property-tabs { padding: 16px 20px 0; gap: 6px; }
  .promo-badge { margin: 16px 20px 0; }
  .calendar-container { padding: 16px 20px; }
  .selection-info { padding: 0 20px; }
  .min-stay-notice { padding: 0 20px; }
  .price-summary { margin: 0 20px 20px; }
  .booking-form { padding: 0 20px 20px; }
  .booking-confirmation { padding: 40px 20px; }

  .form-row {
    grid-template-columns: 1fr;
  }
  .calendar-day-price {
    font-size: 0.5rem;
  }
  .property-tab {
    font-size: 0.75rem;
    padding: 8px 14px;
  }
}
