/* Booking page (/book). Loaded after styles.css; scoped to body.book-page so
   the landing page's scroll lock and layout are untouched. */

html:has(body.book-page),
body.book-page {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

body.book-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background-attachment: fixed;
}

.book-page .book-header {
  display: flex;
  justify-content: center;
  padding: 28px 16px 8px;
}

.book-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.book-back {
  display: inline-block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.book-back:hover,
.book-back:focus-visible { color: var(--gold-light); }

.book-section {
  /* No outer card: heading sits directly on the page, calendar is the only panel. */
  width: 100%;
}

.book-intro { text-align: center; margin-bottom: 24px; }

.book-intro .eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.book-intro h1 {
  color: var(--cream);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
}

.book-lead {
  max-width: 520px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Google's embed is light-only (no dark mode or theme parameters exist and it
   runs cross-origin), so the frame is styled as a deliberate panel: a thin gold
   border, rounded corners and a soft depth shadow. The iframe is left untouched. */
.book-frame {
  overflow: hidden;
  border: 1.5px solid rgba(217, 178, 95, 0.8);
  border-radius: 16px;
  background: #0d0f12; /* matches the filtered embed so edges stay uniform */
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(217, 178, 95, 0.06),
    0 0 60px rgba(217, 178, 95, 0.1);
}

.book-frame iframe {
  display: block;
  width: 100%;
  border: 0;
  /* Overrides the inline height="600". Sized so a full day of slots plus Google's
     footer fits without a scrollbar inside the frame; tuned per breakpoint below. */
  height: 1300px;

  /* Dark appearance. Google's embed has no dark mode, so its (light) page is
     inverted: the white background sits under the filter so every region maps to
     the same near-navy black, and the invert turns Google's blue accents light
     blue. Purely visual: it doesn't touch the embed's URL, scripts or behaviour. */
  background: #fff;
  filter: invert(0.94) sepia(0.5) hue-rotate(185deg) saturate(1.6) brightness(0.9);
}

.book-fallback {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  text-align: center;
}

.book-fallback a {
  color: var(--gold-light);
  text-underline-offset: 3px;
}

.book-fallback a:hover { color: var(--gold); }

.book-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 16px 32px;
}

.book-footer a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.book-footer a:hover { color: var(--gold); }

.book-page a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .book-frame iframe { height: 1300px; }
}

@media (max-width: 640px) {
  .book-page .brand-tagline { white-space: normal; text-align: center; max-width: 260px; }
  .book-main { padding: 12px 10px 24px; }
  .book-frame { border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(217, 178, 95, 0.06); }
  .book-intro { margin-bottom: 18px; padding: 0 6px; }
  .book-frame iframe { height: 1760px; }
}
