/* ============================================================
   Booking popup — ported from BookSheet.astro
   ============================================================ */

/* Flatsome styles every <button>; reset inside the popup. */
html body .book-sheet :where(button) {
  margin: 0; padding: 0; min-height: 0; line-height: normal; font-size: inherit; font-weight: 400;
  text-transform: none; letter-spacing: normal; box-shadow: none; background: none; border: 0; color: inherit;
  width: auto; max-width: none;
}
html body .book-sheet h2, html body .book-sheet h3 { font-family: var(--font-display); text-transform: uppercase; }
.book-sheet p { max-width: none; }

  html body .book-sheet {
    border: 0;
    padding: 0;
    width: min(520px, calc(100vw - 2rem));
    max-height: min(86dvh, 780px);
    border-radius: 10px;
    background: var(--cream);
    box-shadow: 0 30px 80px rgba(14, 13, 13, 0.4);
    overflow: hidden;
  }
  html body .book-sheet::backdrop {
    background: rgba(14, 13, 13, 0.55);
    backdrop-filter: blur(2px);
  }
  @media (max-width: 560px) {
    html body .book-sheet {
      width: 100vw;
      max-width: 100vw;
      margin: auto 0 0;
      max-height: 92dvh;
      border-radius: 14px 14px 0 0;
    }
  }

  /* The authored moment: the sheet rises, the red band sweeps in */
  @media (prefers-reduced-motion: no-preference) {
    html body .book-sheet[open] {
      animation: sheet-rise 340ms cubic-bezier(0.16, 1, 0.3, 1);
    }
    html body .book-sheet[open]::backdrop {
      animation: backdrop-in 260ms ease-out;
    }
    html body .book-sheet[open] .sheet-band::after {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--cream);
      transform-origin: right center;
      animation: band-sweep 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
      pointer-events: none;
      opacity: 0.22;
    }
  }
  @keyframes sheet-rise {
    from { translate: 0 26px; opacity: 0; }
    to { translate: 0 0; opacity: 1; }
  }
  @keyframes backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes band-sweep {
    from { scale: 1 1; }
    to { scale: 0 1; }
  }

  html body .sheet-frame {
    display: flex;
    flex-direction: column;
    max-height: inherit;
  }
  html body .sheet-band {
    position: relative;
    background: var(--red);
    color: var(--cream);
    padding: 1rem 1.1rem 1.1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.75rem;
  }
  html body .sheet-title-wrap {
    grid-column: 1;
  }
  html body .sheet-title {
    color: var(--cream);
    font-size: 1.9rem;
    margin: 0;
  }
  html body .sheet-meta {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    color: rgba(255, 246, 238, 0.92);
    max-width: none;
  }
  html body .sheet-meta a {
    color: inherit;
  }
  html body .sheet-close,
  html body .sheet-back {
    background: none;
    border: 0;
    color: var(--cream);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    border-radius: 6px;
  }
  html body .sheet-close:hover,
  html body .sheet-back:hover {
    background: rgba(255, 246, 238, 0.14);
  }
  html body .sheet-close {
    grid-column: 2;
    grid-row: 1;
  }
  html body .sheet-back {
    display: none;
    grid-column: 1;
    justify-self: start;
    font-family: var(--font-nav);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-inline: 0.5rem;
  }
  html body .book-sheet[data-view='widget'] .sheet-back {
    display: inline-flex;
  }

  html body .sheet-body {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html body .chooser-city {
    padding: 0.4rem 1.1rem 0.6rem;
  }
  html body .chooser-city h3 {
    font-size: 1.05rem;
    color: var(--charcoal);
    letter-spacing: 0.07em;
    margin: 0.8rem 0 0.2rem;
  }
  html body .chooser-row {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--paper-line);
    padding: 0.7rem 0.25rem;
    cursor: pointer;
    font-family: var(--font-body);
    color: var(--charcoal);
    min-height: 56px;
    border-radius: 2px;
  }
  html body .chooser-row:hover {
    background: var(--churro);
  }
  html body .row-name {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.25rem;
    color: var(--ink);
  }
  html body .row-sub {
    display: block;
    font-size: 0.9rem;
    color: var(--charcoal);
  }
  html body .book-again {
    padding: 0.9rem 1.1rem 0;
  }
  html body .book-again-row {
    border: 1.5px solid var(--red);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
  }
  html body .book-again-row .row-name {
    color: var(--red);
    font-size: 1.1rem;
  }

  html body .sheet-widget {
    padding: 1rem 1.1rem 1.2rem;
  }
  html body .widget-holder {
    display: flex;
    justify-content: center;
    min-height: 500px;
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
  }
  html body .widget-holder iframe {
    border: 0;
    width: 100%;
    height: 520px;
  }
  html body .widget-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    margin: 0;
    color: var(--charcoal);
    font-size: 0.95rem;
    background: #fff;
    transition: opacity 240ms ease-out;
  }
  html body .widget-loading.done {
    opacity: 0;
    pointer-events: none;
  }
  html body .widget-notes {
    padding-top: 0.8rem;
  }
  html body .widget-assure {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--charcoal);
  }
  html body .widget-alt {
    margin: 0;
    font-size: 0.9rem;
  }

/* Links under the booking form: charcoal + underline (Flatsome's default link colour is blue) */
html body .book-sheet .widget-alt a, html body .book-sheet .sheet-meta a { text-decoration: underline; text-underline-offset: 3px; }
html body .book-sheet .widget-alt a { color: var(--charcoal); }
html body .book-sheet .widget-alt a:hover { color: var(--ink); }
html body .book-sheet .sheet-close, html body .book-sheet .sheet-back { outline-color: var(--red); }
