/* ===================================
   Booking Page
   =================================== */

/* ---- Step Titles ---- */
.book-step-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

/* ---- Room Picker ---- */
.book-rooms {
  margin-bottom: var(--space-xl);
}

.book-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.book-room-card {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--color-warm-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.book-room-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.book-room-card--selected {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-light), var(--shadow-md);
}

.book-room-card__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.book-room-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-room-card__body {
  padding: var(--space-sm) var(--space-md);
}

.book-room-card__body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin: 0 0 4px;
  color: var(--color-navy);
}

.book-room-card__cap {
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  margin: 0 0 6px;
}

.book-room-card__price {
  font-size: var(--text-base);
  color: var(--color-gold);
  font-weight: 600;
  margin: 0;
}

.book-room-card__price small {
  font-weight: 400;
  color: var(--color-charcoal);
  opacity: 0.7;
}

/* ---- Calendar ---- */
.book-calendar {
  margin-bottom: var(--space-xl);
}

.book-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.book-cal-prev,
.book-cal-next {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-navy);
  font-size: var(--text-lg);
  transition: background var(--transition-fast);
}

.book-cal-prev:hover,
.book-cal-next:hover {
  background: var(--color-gold-light);
}

.book-cal-month {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  min-width: 200px;
  text-align: center;
}

.book-cal-selection {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.book-cal-clear {
  all: unset;
  cursor: pointer;
  color: var(--color-gold);
  text-decoration: underline;
  font-size: var(--text-sm);
  margin-left: 8px;
}

.book-calendar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-month {
  margin-bottom: var(--space-md);
  width: 100%;
  max-width: 420px;
}

.book-month-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  color: var(--color-charcoal);
}

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

.book-day-head {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  color: var(--color-charcoal);
  opacity: 0.6;
  padding: 4px 0;
}

.book-day {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.book-day:hover:not([disabled]) {
  background: var(--color-gold-light);
}

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

.book-day--disabled {
  cursor: not-allowed;
  color: var(--color-border);
  text-decoration: line-through;
}

.book-day--checkin,
.book-day--checkout {
  background: var(--color-gold) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.book-day--range {
  background: var(--color-gold-light);
  color: var(--color-navy);
}

/* ---- Guest Picker ---- */
.book-guests {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.book-guest-control {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}

.book-guest-btn {
  all: unset;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  font-size: var(--text-xl);
  color: var(--color-navy);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.book-guest-btn:hover:not([disabled]) {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
}

.book-guest-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.35;
}

.book-guest-count {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  min-width: 2ch;
  text-align: center;
}

/* ---- Price Summary ---- */
.book-pricing {
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-inline: auto;
}

.book-price-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

.book-price-table th {
  text-align: left;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-charcoal);
}

.book-price-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-gold-light);
}

.book-price-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.book-price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-ui);
  padding-top: var(--space-sm);
  font-size: var(--text-lg);
}

.book-price-total strong {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-gold);
}

/* ---- Guest Form ---- */
.book-form {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.book-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

@media (max-width: 600px) {
  .book-form-row { grid-template-columns: 1fr; }
}

.book-form-field label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 4px;
  color: var(--color-charcoal);
}

.book-form-field input,
.book-form-field textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--color-warm-white);
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.book-form-field input:focus,
.book-form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-light);
}

.book-submit {
  width: 100%;
  margin-top: var(--space-sm);
}

/* ---- Confirmation ---- */
.book-confirm {
  text-align: center;
  padding: var(--space-xl) 0;
}

.book-confirm h2 {
  font-family: var(--font-heading);
  color: var(--color-sage);
  margin-bottom: var(--space-md);
}

.book-confirm p {
  font-size: var(--text-lg);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
}

/* ---- Error ---- */
.book-error {
  text-align: center;
  color: #b91c1c;
  background: #fef2f2;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
  font-family: var(--font-ui);
}
