/* A quiet, persistent route to dates and guests, clear of the opening image. */
html { scroll-padding-bottom: 104px; }
.floating-booking {
  position: fixed;
  right: max(32px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 220px;
  min-height: 60px;
  padding: 18px 24px;
  border: 1px solid #ffffff25;
  background: var(--olive, #475340);
  color: #fff;
  box-shadow: 0 6px 24px #1d241b26;
  font: 400 14px/1.5 Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1), visibility .4s, background-color .25s;
}
.floating-booking.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.floating-booking svg { width: 20px; height: 20px; flex-shrink: 0; }
.floating-booking:focus-visible { outline: 2px solid #ab7957; outline-offset: 5px; }
@media (hover: hover) { .floating-booking:hover { background: #333f2e; } }
/* Native dialogs retain their own booking action; no competing button behind them. */
body:has(dialog[open]) > .floating-booking { opacity: 0; pointer-events: none; }
body:has(> .floating-booking) > footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
  .floating-booking {
    left: 20px;
    right: 20px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: auto;
    max-width: 520px;
    margin-inline: auto;
    min-height: 58px;
    padding: 17px 24px;
  }
}
@media (max-width: 760px) {
  .journal-page .floating-booking {
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: max-content;
    min-height: 44px;
    padding: 9px 14px;
    gap: 12px;
    font-size: .8125rem;
    transform: none;
    transition: opacity .18s ease;
  }
  .journal-page .floating-booking svg { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) { .floating-booking { transition: none; transform: none; } }
@media print { .floating-booking { display: none; } }
