/* Host-owned booking page; adapted from Claude Design, 4 October 2026. */
:root { --hdr-h: 86px; }
@media (max-width: 600px) { :root { --hdr-h: 74px; } }
html { scroll-padding-top: calc(var(--hdr-h) + 16px); }

/* header on /book: CTA becomes "you are here", hidden on small screens */
.header-book[aria-current] { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.header-book[aria-current]:hover { background: var(--paper-dim); }

/* secondary button (pairs with existing .button) */
.button.secondary { background: var(--shell); color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--paper-dim); border-color: var(--ink-muted); }
.button:active { transform: translateY(1px); }

/* intro — specificity (0,2,2) so provider global heading resets cannot win */
.bk-intro { max-width: 1320px; margin: 0 auto; padding: 56px 5% 32px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 14px 48px; align-items: end; }
.bk-intro .eyebrow { grid-column: 1 / -1; margin: 0; font-size: 13px; letter-spacing: .15em; color: var(--ink-muted); }
body .bk-intro h1.bk-title { margin: 0; font-family: 'Cerebri Sans', sans-serif; font-weight: 300;
  font-size: clamp(40px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.025em; color: var(--ink); text-transform: none; }
body .bk-intro h1.bk-title em { font-family: inherit; font-style: italic; font-weight: 300; }
.bk-lede { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-muted); max-width: 340px; text-wrap: pretty; }

/* engine frame — one hairline system, no box around the provider */
.bk-engine { position: relative; max-width: 1320px; margin: 0 auto 56px; padding: 0 5%; }
.bk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
body .bk-bar h2.bk-bar-label { margin: 0; font: 600 12px/1.2 'Cerebri Sans', sans-serif; letter-spacing: .18em; color: var(--ink); }
.bk-bar-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px;
  text-decoration: underline; text-decoration-color: var(--coral-deep); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.bk-bar-link:hover { color: var(--coral-deep); }

.bk-status { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.bk-status:not(:empty) { padding: 16px 0; border-bottom: 1px solid var(--line); }
.bk-engine[data-state=loaded] .bk-status { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; }

.bk-loading { display: none; padding: 24px 0; gap: 16px; }
.bk-engine[data-state=loading] .bk-loading,
.bk-engine[data-state=slow] .bk-loading { display: grid; }
.bk-loading span { display: block; height: 120px; background: var(--paper-dim); border-radius: 2px; animation: bk-breathe 1.8s ease-in-out infinite; }
.bk-loading span:first-child { height: 64px; }
@keyframes bk-breathe { 50% { opacity: .55; } }

.bk-recovery { margin: 24px 0; padding: 28px; background: var(--paper-dim); border: 1px solid var(--line); border-radius: 2px; }
body .bk-recovery h3 { margin: 0 0 8px; font: 300 28px/1.15 'Cerebri Sans', sans-serif; letter-spacing: -.02em; }
.bk-recovery p { margin: 0 0 20px; max-width: 560px; color: var(--ink-soft); font-size: 15px; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 12px; }

#cloudbeds-mount:empty { display: none; }
cb-immersive-experience { display: block; }

/* Explicit booking-provider cookie choice, retained in production. */
.bk-gate { padding: 48px 24px; text-align: center; max-width: 560px; margin: 0 auto; }
.bk-gate img { margin: 0 auto 20px; }
body .bk-gate h3 { font: 300 36px/1.1 'Cerebri Sans', sans-serif; letter-spacing: -.02em; margin: 0 0 12px; }
.bk-gate p { margin: 0 0 20px; color: var(--ink-muted); }
.bk-gate .preview-caution { margin: 20px auto 0; font-size: 12px; }

/* help — always visible, never a floating widget */
.bk-help { max-width: 1320px; margin: 0 auto; padding: 48px 5% 88px; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--line); }
body .bk-help h2 { grid-column: 1 / -1; margin: 0; font: 600 12px/1.2 'Cerebri Sans', sans-serif; letter-spacing: .18em; color: var(--ink-muted); }
body .bk-help h3 { margin: 0 0 10px; font: 300 26px/1.15 'Cerebri Sans', sans-serif; letter-spacing: -.02em; }
.bk-help p { margin: 0 0 14px; font-size: 15px; color: var(--ink-muted); max-width: 360px; }
.bk-help .text-link, .bk-help .text-button { min-height: 44px; display: inline-flex; align-items: center; margin-right: 20px; }

@media (max-width: 850px) {
  .bk-intro { grid-template-columns: minmax(0, 1fr); }
  .bk-help { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
  .header-book[aria-current] { display: none; }
  .bk-intro { padding: 24px 5% 20px; gap: 10px; }
  .bk-intro .eyebrow { font-size: 12px; }
  body .bk-intro h1.bk-title { font-size: 40px; }
  .bk-lede { font-size: 15px; }
  .bk-engine { padding: 0; margin-bottom: 32px; }
  .bk-bar, .bk-status:not(:empty), .bk-loading { padding-left: 5%; padding-right: 5%; }
  .bk-bar { min-height: 52px; }
  .bk-price-note { padding: 12px 5% 0; }
  .bk-recovery { margin: 20px 5%; padding: 22px 20px; }
  .bk-actions .button { width: 100%; }
  .bk-help { padding: 36px 5% 56px; }
}
@media (max-width: 360px) {
  body .bk-intro h1.bk-title { font-size: 34px; }
  .bk-bar-link { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .bk-loading span { animation: none; } }

/* Host-only refinements from integration review. */
.booking-page .eyebrow { text-transform: none; }
.booking-page .menu-toggle { margin-left: auto; min-height: 44px; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.bk-help a, .bk-actions a { overflow-wrap:anywhere; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Keep recovery discoverable even when the loader downloaded but rooms did not render. */
.bk-inline-help { display: none; margin: 12px 0; font-size: 14px; color: var(--ink-muted); }
.bk-engine[data-state=loaded] .bk-inline-help { display: block; }
.bk-inline-help a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
/* A focused live status must remain visible to keyboard users. */
.bk-engine[data-state=loaded] .bk-status:focus { position: static; width: auto; height: auto;
  clip-path: none; white-space: normal; padding: 16px 0; outline: 2px solid var(--sea); outline-offset: 4px; }
.booking-page .text-button { background: transparent; border: 0; border-bottom: 1px solid var(--coral-deep);
  padding: 4px 0; color: var(--ink); font-size: 15px; }
/* Let the provider's calendar/dialog occupy the viewport without competing sticky chrome. */
.booking-page .header { position: relative; z-index: auto; }
.booking-page .room-meta { text-transform: none; }
@media (max-width: 600px) { .bk-inline-help { padding: 0 5%; } }

/* Quieter shell: keep the live announcement, without a decorative focus box. */
.bk-intro { padding-top: 36px; padding-bottom: 24px; }
.bk-engine .preview-caution { font-size: 12px; margin: 8px 0; color: var(--ink-muted); }
.bk-engine[data-state=loaded] .bk-status:focus {
  position: static; width: auto; height: auto; overflow: visible;
  clip-path: none; padding: 8px 0; border: 0; outline: none;
}
.bk-engine[data-state=loaded] .bk-inline-help { display: block; }
.bk-engine[data-state=slow] .bk-inline-help,
.bk-engine[data-state=error] .bk-inline-help { display: block; }
@media (max-width:600px) {
  .bk-intro { padding-top: 22px; padding-bottom: 20px; }
  .bk-engine .preview-caution { padding-inline: 5%; }
}

/* 17 October: calm, reachable help and keyboard navigation on narrow screens. */
.bk-inline-help { border-bottom: 1px solid var(--line); padding-block: 8px; }
.booking-page :is(.button,.text-link,.text-button,.bk-bar-link):focus-visible {
  outline: 2px solid var(--sea); outline-offset: 4px;
}
.bk-bar { flex-wrap: wrap; column-gap: 20px; row-gap: 0; }
.bk-help { scroll-margin-top: 24px; }
.bk-gate { padding: 32px 20px; }
.bk-actions .button { white-space: normal; text-align: center; }
@media (max-width:600px) {
  .bk-gate { padding: 24px 5%; }
  body .bk-gate h3 { font-size: 30px; }
  .bk-bar-label { flex-shrink: 0; }
  .bk-help { gap: 24px; }
}

/* 23 October: keep the room search ahead of secondary help; retain a readable test notice. */
.bk-engine .preview-caution { font-size: 13px; line-height: 1.5; padding-block: 10px; margin-block: 0 12px; }
.bk-inline-help { margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 0; }

.bk-engine[data-state=loaded] .bk-status:focus { padding-inline:5%; }

.bk-gate .bk-actions { justify-content: center; }
.bk-cookie-controls { padding: 16px 5%; font-size: 14px; }
.bk-cookie-controls summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.bk-cookie-controls p { max-width: 640px; margin: 8px 0; }
