/* ==========================================================================
   DIA BONITO · book.css
   The booking page (/book): calendar, price, guest details, payment.
   Fields, buttons and the intro band come from style.css and booking.css.
   ========================================================================== */

.book-wrap {
  max-width: 720px;
  margin: clamp(32px, 5vw, 56px) auto clamp(80px, 11vw, 130px);
  padding: 0 var(--gutter);
}

.book-step {
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4.5vw, 40px) 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.book-step[hidden], .book-done[hidden], .book-testbanner[hidden], .book-error[hidden] { display: none; }

.book-h {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  color: var(--bone);
  margin: 0;
}

.book-help, .book-loading {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 17px;
  line-height: 1.65;
  color: var(--bone-2);
  margin: 0;
}

.book-testbanner {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--lagoon);
  padding: 12px 16px;
  margin: 0 0 24px;
  text-align: center;
}

.book-error {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: #e0b4a2;
  border: 1px solid rgba(196, 110, 90, 0.5);
  padding: 12px 16px;
  margin: 0;
}

/* --- Calendar ------------------------------------------------------------ */

.book-cal { position: relative; }
.book-months { display: grid; gap: 28px; }
@media (min-width: 700px) { .book-months { grid-template-columns: 1fr 1fr; gap: 36px; } }

.book-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 8px;
}
.book-month-name {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 20px;
  color: var(--bone);
}
.book-nav {
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.book-nav:disabled { opacity: 0.25; cursor: default; }
.book-nav:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 2px; }
.book-nav-gap { width: 44px; height: 44px; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.book-dow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-3);
  text-align: center;
  padding: 6px 0;
}
.book-day {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--bone);
  background: rgba(237, 231, 218, 0.04);
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.book-day:hover:not(:disabled) { border-color: var(--lagoon); }
.book-day:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 1px; }
.book-day:disabled {
  cursor: default;
  color: rgba(237, 231, 218, 0.28);
  background: transparent;
  text-decoration: line-through;
  text-decoration-color: rgba(237, 231, 218, 0.2);
}
.book-day.is-blank { visibility: hidden; }
.book-day.in-range { background: rgba(143, 184, 168, 0.22); }
.book-day.is-end { background: var(--lagoon); color: var(--ink); border-color: var(--lagoon); }
.book-day.is-start { background: var(--lagoon); color: var(--ink); border-color: var(--lagoon); }
/* A day you can only leave on (the night before is free, that night is taken) */
.book-day.leave-only:not(:disabled) { background: transparent; border-color: var(--line); }

/* --- Price ----------------------------------------------------------------- */

.book-summary {
  border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.book-summary-stay {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--bone);
  margin: 0 0 6px;
}
.book-line, .book-total, .book-due {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--bone-2);
}
.book-total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--bone);
}
.book-due { color: var(--lagoon); font-weight: 500; }
.book-summary-note {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone-2);
  margin: 6px 0 0;
}

/* --- Details ------------------------------------------------------------- */

.book-form { gap: 28px; }
.book-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.book-terms {
  border: 1px solid var(--line);
  padding: clamp(18px, 3.5vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.book-terms-h {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237, 231, 218, 0.78);
  margin: 0;
}
.book-terms p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--bone-2);
  margin: 0;
}
.book-form .book-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--bone);
  cursor: pointer;
}
.book-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--lagoon); }

/* --- Payment and finished ---------------------------------------------------- */

#book-payment-element { min-height: 60px; }
.book-step .btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.book-step .form-actions { display: flex; justify-content: center; }
@media (max-width: 639px) { .book-step .btn-submit { width: 100%; } }

.book-done {
  text-align: center;
  border: 1px solid var(--line);
  padding: clamp(36px, 7vw, 60px) 28px;
  margin-bottom: 32px;
}
.book-done .success-mark { font-size: 30px; color: var(--lagoon); margin: 0 0 16px; line-height: 1; }
.book-done .success-title { font-family: var(--serif); font-weight: 340; font-size: clamp(28px, 4.5vw, 38px); color: var(--bone); margin: 0 0 14px; }
.book-done .success-sub { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: var(--bone-2); margin: 0 0 12px; }
.book-done .success-sub a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 699px) { .book-month-2 { display: none; } .book-nav-gap { display: none; } }

.book-guests.inquire-form { border-top: 0; padding-top: 0; max-width: 280px; gap: 12px; }
.book-policy {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.book-policy li {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone-2);
}
.book-insure {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone-2);
  margin: 14px 0 0;
}
.book-done-terms {
  margin: 28px auto 0;
  max-width: 560px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
