/* Shared booking links use the existing FiT FEAST header and reservation route. */
.header nav > .menu-booking,
.mobile-booking {
  display: none;
}

.trial-price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.trial-price strong {
  font-size: 1.18em;
  font-weight: 600;
}

@media (max-width: 768px) {
  :root {
    --mobile-header-height: calc(76px + env(safe-area-inset-top, 0px));
    --mobile-booking-height: calc(68px + env(safe-area-inset-bottom, 0px));
    --booking-fill: #6f5d49;
  }

  html { scroll-padding-top: var(--mobile-header-height); }

  .header, .header.scrolled {
    height: var(--mobile-header-height);
    padding: env(safe-area-inset-top, 0px) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
  }

  .detail-page main { padding-top: var(--mobile-header-height); }

  html.menu-is-open {
    overflow: hidden;
    overscroll-behavior: none;
    scroll-behavior: auto;
  }

  html.menu-is-open body {
    position: fixed;
    top: var(--locked-scroll-offset, 0px);
    inset-inline: 0;
    overflow: hidden;
  }

  .header .menu {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    margin-left: 8px;
  }

  .header .menu[aria-expanded="true"] { background: var(--booking-fill); }

  .header #navigation {
    display: flex;
    top: var(--mobile-header-height);
    bottom: auto;
    height: calc(100vh - var(--mobile-header-height));
    height: calc(100dvh - var(--mobile-header-height));
    padding: 10px max(20px, env(safe-area-inset-right, 0px))
      max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px);
    transition: opacity .2s ease, transform .24s ease, visibility 0s linear .24s;
  }

  .header #navigation.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  .header #navigation > a:not(.menu-booking) {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 8px 10px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    text-align: start;
  }

  .header #navigation > a[aria-current="page"]:not(.menu-booking) {
    background: var(--beige);
    font-weight: 600;
  }

  .header #navigation > a:not(.menu-booking)::after {
    content: "";
    box-sizing: border-box;
    width: 7px;
    height: 7px;
    flex: none;
    margin-right: 3px;
    border: solid #8e7b63;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
  }

  .header #navigation > .menu-booking,
  .mobile-booking > .reserve-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--booking-fill);
    border: 0;
    border-radius: 2px;
  }

  .header #navigation > .menu-booking {
    flex: none;
    flex-direction: column;
    min-height: 64px;
    margin: 18px 0 0;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
  }

  .menu-booking .trial-action { font-size: 12px; }

  body:has(.mobile-booking) { padding-bottom: var(--mobile-booking-height); }

  .mobile-booking {
    display: block;
    position: fixed;
    z-index: 15;
    inset: auto 0 0;
    padding: 8px max(12px, env(safe-area-inset-right, 0px))
      calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--paper);
    box-shadow: 0 -1px 0 var(--line);
  }

  .mobile-booking > .reserve-link {
    gap: clamp(8px, 3.5vw, 22px);
    min-height: 52px;
    width: 100%;
    max-width: 520px;
    margin: auto;
    padding: 6px;
    font-size: clamp(12px, 3.5vw, 14px);
  }

  .mobile-booking .trial-action { font-weight: 600; }
  .menu-is-open .mobile-booking { visibility: hidden; }
  body:has(.mobile-booking) .back-top {
    bottom: calc(var(--mobile-booking-height) + 12px);
    right: max(12px, env(safe-area-inset-right, 0px));
  }

  @media (max-height: 470px) and (orientation: landscape) {
    .mobile-booking { display: none; }
    body:has(.mobile-booking) { padding-bottom: 0; }
    body:has(.mobile-booking) .back-top { bottom: 12px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .header #navigation { transition: none; }
}

@media (max-width: 768px) {
  body:has(.mobile-booking) .design-comparison {
    bottom: calc(var(--mobile-booking-height) + 8px);
    left: max(8px, env(safe-area-inset-left, 0px));
  }
  .menu-is-open .design-comparison { visibility: hidden; }

  @media (max-height: 470px) and (orientation: landscape) {
    body:has(.mobile-booking) .design-comparison { bottom: 8px; }
  }
}

/* Shared reservation label, preserving each existing button's geometry and fill. */
[data-reservation],.reservation-cta{text-align:center}
[data-reservation] .cta-duration,[data-reservation] .trial-action,.reservation-cta .cta-duration,.reservation-cta .trial-action{white-space:nowrap}
.reservation-cta{display:flex;align-items:center;justify-content:center;gap:8px}
.header>.reserve-link{display:flex;align-items:center;justify-content:center;white-space:nowrap;text-align:center}
.header>.reserve-link .trial-price{white-space:normal}
.header>.reserve-link .trial-price strong{white-space:nowrap;font:inherit}
.header>.reserve-link .trial-action{font:inherit}
@media(max-width:768px){
 .header>.reserve-link{height:42px}
 .mobile-booking>.reserve-link{gap:4px}
}

/* The homepage trial invitation follows the unchanged mobile fixed CTA. */
.integrated-home .hero .hero-offer .reserve-link{
 display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px;
 min-height:52px;height:52px;padding:6px;background:#6f5d49;color:#fff;border:0;border-radius:2px;
 font-size:14px;line-height:1.6;font-weight:600;text-align:center;white-space:nowrap;
}
.integrated-home .hero .hero-offer .reserve-link .trial-price,
.integrated-home .hero .hero-offer .reserve-link .cta-duration,
.integrated-home .hero .hero-offer .reserve-link .trial-action{
 display:inline;margin:0;color:inherit;font:inherit;letter-spacing:inherit;white-space:nowrap;
}
.integrated-home .hero .hero-offer .reserve-link .trial-price strong{
 display:inline;margin:0;padding:0;background:none;border:0;box-shadow:none;font-family:inherit;font-size:1.18em;font-weight:600;line-height:inherit;letter-spacing:inherit;color:inherit;
}
@media(max-width:768px){.integrated-home .hero .hero-offer .reserve-link{font-size:clamp(12px,3.5vw,14px)}}
