/**
 * Booking Page Styles
 */

/* Page Header */
.booking-header {
  padding-top: calc(72px + var(--space-12));
  padding-bottom: var(--space-12);
  background: linear-gradient(135deg, var(--peacock-teal) 0%, var(--peacock-teal-dark) 100%);
  color: white;
  text-align: center;
}

.booking-header h1 {
  color: white;
  margin-bottom: var(--space-4);
}

.booking-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* Layout */
.booking-section {
  padding: var(--space-12) 0 var(--space-16);
}

.booking-layout {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .booking-layout {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

/* Room Summary Sidebar */
.booking-room-summary {
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: calc(72px + var(--space-4));
}

.booking-room-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.booking-room-info {
  padding: var(--space-6);
}

.booking-room-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.booking-room-meta {
  display: flex;
  gap: var(--space-4);
  color: var(--gray-500);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.booking-room-divider {
  border: none;
  border-top: var(--border-width) solid var(--gray-200);
  margin: var(--space-4) 0;
}

.booking-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.booking-price-row.total {
  padding-top: var(--space-4);
  border-top: var(--border-width-2) solid var(--gray-200);
  margin-top: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}

.booking-price-row.total .booking-price-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--peacock-teal);
}

.booking-price-label {
  color: var(--gray-600);
}

.booking-price-value {
  font-weight: var(--font-medium);
}

/* Form Card */
.booking-form-card {
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
}

.booking-form-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.booking-form-subtitle {
  color: var(--gray-500);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

/* Step Indicator */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.booking-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-400);
}

.booking-step.active {
  color: var(--peacock-teal);
  font-weight: var(--font-medium);
}

.booking-step.completed {
  color: var(--color-success);
}

.booking-step-number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border: var(--border-width-2) solid var(--gray-300);
  color: var(--gray-400);
}

.booking-step.active .booking-step-number {
  border-color: var(--peacock-teal);
  background-color: var(--peacock-teal);
  color: white;
}

.booking-step.completed .booking-step-number {
  border-color: var(--color-success);
  background-color: var(--color-success);
  color: white;
}

.booking-step-line {
  width: 40px;
  height: 2px;
  background-color: var(--gray-300);
}

.booking-step.completed + .booking-step-line {
  background-color: var(--color-success);
}

/* Date Selection Section */
.booking-dates {
  margin-bottom: var(--space-8);
}

.booking-dates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.booking-dates-display {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-6);
}

.booking-date-box {
  padding: var(--space-4);
  border: var(--border-width-2) solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.booking-date-box:hover {
  border-color: var(--peacock-teal-light);
}

.booking-date-box.active {
  border-color: var(--peacock-teal);
  background-color: rgba(6, 95, 70, 0.05);
}

.booking-date-box-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--gray-500);
  margin-bottom: var(--space-1);
}

.booking-date-box-value {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--gray-800);
}

.booking-date-box-value.placeholder {
  color: var(--gray-400);
}

.booking-dates-arrow {
  color: var(--gray-400);
}

.booking-nights-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background-color: rgba(6, 95, 70, 0.1);
  color: var(--peacock-teal);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* Calendar */
.dp-calendar {
  border: var(--border-width) solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  background-color: var(--sand-light);
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.dp-month-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.dp-nav-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--gray-600);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dp-nav-btn:hover:not(:disabled) {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

.dp-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--space-2);
}

.dp-weekday {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--gray-500);
  padding: var(--space-2) 0;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

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

.dp-day,
.dp-day-empty {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dp-day-empty {
  cursor: default;
}

.dp-day:hover:not(.dp-day-disabled):not(.dp-day-booked) {
  background-color: rgba(6, 95, 70, 0.1);
}

.dp-day-disabled {
  cursor: not-allowed;
}

.dp-day-past {
  color: var(--gray-300);
}

.dp-day-booked {
  color: var(--gray-400);
  text-decoration: line-through;
  cursor: not-allowed;
}

.dp-day-today {
  font-weight: var(--font-bold);
  color: var(--peacock-teal);
}

.dp-day-check-in,
.dp-day-check-out {
  background-color: var(--peacock-teal) !important;
  color: white !important;
  font-weight: var(--font-semibold);
}

.dp-day-in-range {
  background-color: rgba(6, 95, 70, 0.15);
  border-radius: var(--radius-sm);
}

.dp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--gray-200);
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.dp-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dp-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-sm);
}

.dp-legend-dot.selected {
  background-color: var(--peacock-teal);
}

.dp-legend-dot.in-range {
  background-color: rgba(6, 95, 70, 0.15);
}

.dp-legend-dot.booked {
  background-color: var(--gray-200);
  position: relative;
}

/* Guest Details Section */
.booking-guests {
  margin-bottom: var(--space-8);
}

.booking-section-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.booking-guest-counter {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.guest-counter-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width-2) solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  color: var(--gray-600);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.guest-counter-btn:hover:not(:disabled) {
  border-color: var(--peacock-teal);
  color: var(--peacock-teal);
}

.guest-counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.guest-counter-value {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  min-width: 40px;
  text-align: center;
}

.guest-counter-label {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-left: var(--space-2);
}

/* Special Requests */
.booking-special-requests {
  margin-bottom: var(--space-8);
}

.special-requests-hints {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.special-requests-hint {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--gray-600);
  background-color: var(--gray-100);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.special-requests-hint:hover {
  background-color: rgba(6, 95, 70, 0.1);
  color: var(--peacock-teal);
}

/* Submit */
.booking-submit {
  padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--gray-200);
}

.booking-submit-btn {
  width: 100%;
}

.booking-submit-note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-3);
}

/* Loading / Error States */
.booking-loading {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
}

.booking-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
  text-align: center;
  padding: var(--space-8);
}

.booking-error-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
}

/* Mobile order - show sidebar summary first on mobile */
@media (max-width: 1023px) {
  .booking-room-summary {
    position: static;
    order: -1;
  }
}
