@import url("/static/css/aeonian-typography.css?v=631ehf16b");
/* Phase 6.28F - Project-Wide Mobile Landscape Responsive Foundation
   Shared public responsive layer for short, wide, coarse-pointer viewports.
   Navigation overflow/accordion hardening remains isolated to Phase 6.28G. */

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) and (pointer: coarse) {
  :root { --ae-landscape-header: 58px; }

  html { -webkit-text-size-adjust: 100%; }
  body { min-height: 100dvh; }

  /* Global shell and safe areas */
  .p-wrap,
  .p-wrap.narrow { width: min(var(--max), calc(100% - 48px)); }

  .site-header,
  .site-header.scrolled {
    height: var(--ae-landscape-header);
    min-height: var(--ae-landscape-header);
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .preview-bar + .site-header,
  .preview-bar + .site-header.site-header--overlay { top: 38px; }
  .site-brand img { width: 32px; height: 32px; }
  .site-brand-logo { max-height: 38px; }
  .site-brand strong { font-size: 11px; }
  .site-brand small { display: none; }
  .mobile-menu-button { min-width: 42px; min-height: 42px; font-size: 20px; }

  /* Hero system: height is governed by the actual landscape viewport, not a
     portrait-oriented fixed minimum. This applies to CMS pages and properties. */
  .p-hero,
  .property-hero,
  .property-hero.has-photo,
  .p-hero.home-photo-hero {
    min-height: max(330px, 100dvh);
    padding-top: calc(var(--ae-landscape-header) + 24px);
    padding-bottom: 54px;
    justify-content: center;
  }
  .preview-bar ~ main .p-hero { min-height: max(330px, calc(100dvh - 38px)); }
  .hero-grid { gap: 18px; align-items: center; }
  .hero-content { max-width: min(78vw, 820px); }
  .hero-content h1,
  .property-hero.has-photo .hero-content h1 {
    font-size: clamp(28.8px, 5.76vw, 49.6px);
    line-height: .98;
    max-width: 92vw;
  }
  .hero-content p,
  .property-hero.has-photo .hero-content p {
    font-size: clamp(11.96px, 1.61vw, 14.72px);
    line-height: 1.5;
    max-width: 70vw;
    margin: 16px 0;
  }
  .p-eyebrow { font-size: 9px; margin-bottom: 10px; }
  .hero-visual { width: 390px; height: 390px; right: -150px; opacity: .28; }
  .hero-bottomline { height: 38px; padding-inline: max(20px, env(safe-area-inset-left)); }
  .property-logo-hero { width: min(230px, 31vw); padding: 8px 10px; margin-top: 8px; }
  .property-logo-hero img,
  .property-hero.has-photo .property-logo-hero img { height: 64px; max-height: 64px; padding: 4px 8px; }

  /* Shared sections and editorial layouts */
  .p-section { padding-top: 64px; padding-bottom: 64px; }
  .p-section h2,
  .booking-band h2,
  .section-heading h2,
  .story-copy h2 { font-size: clamp(28.56px, 4.368vw, 43.68px); }
  .story { padding: 54px 0 72px; }
  .story-grid { gap: 42px; }
  .story-image { min-height: 330px; }
  .full-image-block { height: 78dvh; min-height: 300px; }
  .section-heading { gap: 34px; margin-bottom: 30px; }
  .property-card { min-height: 0; }

  /* Media/card systems should not inherit portrait-only minimum heights. */
  [data-mobile-card-carousel] > *,
  .property-grid.property-mosaic[data-mobile-card-carousel] > .property-mosaic-card,
  .experience-grid[data-mobile-card-carousel] > article,
  .experience-grid[data-mobile-card-carousel] > .experience-photo-card {
    min-height: 0;
  }

  /* Forms and booking surfaces */
  .booking-band { padding: 54px 0; }
  .booking-dialog {
    width: min(720px, calc(100vw - 56px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    padding: 28px 32px;
  }
  .booking-dialog h2 { font-size: 29.24px; }
  .booking-dialog > p { margin: 10px 0 18px; }
  .booking-dialog form { gap: 12px; }
  .dialog-dates { grid-template-columns: 1fr 1fr; }

  /* Fixed actions respect iPhone landscape safe areas. */
  .floating-actions {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .wh-floating-booking,
  .wh-floating-booking.is-open {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  }
  .wh-floating-booking.is-open .wh-floating-body {
    max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
  }

  /* Footer: preserve columns where landscape width allows it, while reducing
     portrait-scale vertical whitespace. */
  .site-footer { padding-top: 48px; }
  .footer-grid { gap: 38px; }
  .footer-bottom { margin-top: 36px; }

  /* CMS popup / consent surfaces loaded across public pages. */
  .aeo-popup,
  .consent-modal,
  .consent-dialog {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
  }
}

/* dvh fallback for older engines. */
@supports not (height: 100dvh) {
  @media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) and (pointer: coarse) {
    body { min-height: 100vh; }
    .p-hero,
    .property-hero,
    .property-hero.has-photo,
    .p-hero.home-photo-hero { min-height: max(330px, 100vh); }
    .full-image-block { height: 78vh; }
    .booking-dialog { max-height: calc(100vh - 28px); }
  }
}

/* Phase 6.28G - Project-Wide Navigation, Overlay & Viewport Hardening
   Short landscape viewports use a three-zone mobile navigation shell:
   fixed header, independently scrollable navigation, and non-overlapping CTA. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) and (pointer: coarse) {
  body.menu-open,
  body.modal-open,
  body.aeo-popup-open,
  body.consent-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  .mobile-panel {
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    padding:
      max(10px, env(safe-area-inset-top))
      max(22px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    contain: layout paint;
  }
  .mobile-panel-top {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 0 6px;
  }
  .mobile-panel-brand img {
    width: 88px;
    max-width: 22vw;
    max-height: 54px;
  }
  .mobile-panel-top button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 25.8px;
    line-height: 1;
  }
  .mobile-panel nav {
    flex: 1 1 auto;
    min-height: 0;
    margin: 4px 0 8px;
    padding: 0 max(5px, env(safe-area-inset-right)) 10px 0;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scroll-padding-block: 10px 20px;
  }
  .mobile-panel nav > a,
  .mobile-nav-trigger {
    min-height: 48px;
    padding: 8px 0;
    font-size: clamp(20.16px, 3.696vw, 28.56px);
    line-height: 1.08;
  }
  .mobile-panel nav > a { border-bottom: 1px solid rgba(255,255,255,.12); }
  .mobile-nav-group { scroll-margin-block: 8px 18px; }
  .mobile-nav-trigger-icon { flex: 0 0 12px; margin-inline: 16px 5px; }
  .mobile-submenu-panel {
    gap: 0;
    padding: 1px 0 8px 10px;
  }
  .mobile-panel nav .mobile-subnav {
    min-height: 38px;
    padding: 7px 0 7px 13px;
    font-size: clamp(13.2px, 2.156vw, 16.72px);
    line-height: 1.25;
  }
  .mobile-panel .p-btn.full {
    position: relative;
    inset: auto;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    min-height: 48px;
    max-height: 52px;
    margin: 0;
    padding-inline: 18px;
    box-shadow: 0 -10px 28px rgba(0,51,117,.18);
  }

  /* Modal and popup shells must scroll internally instead of escaping the
     visual viewport when Safari chrome expands/collapses. */
  .booking-modal,
  .consent-modal-backdrop,
  .aeo-popup-runtime,
  .aeo-popup-backdrop {
    height: 100dvh;
    max-height: 100dvh;
    overscroll-behavior: contain;
  }
  .booking-modal { padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .booking-dialog,
  .consent-modal,
  .aeo-popup {
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .consent-modal-backdrop,
  .aeo-popup-backdrop {
    padding:
      max(8px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    align-items: center;
  }
  .consent-banner {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .aeo-popup {
    grid-template-columns: minmax(190px,.72fr) minmax(300px,1.28fr);
  }
  .aeo-popup-media,
  .aeo-popup-media img { min-height: 0; height: 100%; }
  .aeo-popup-copy { padding: 30px 34px 26px; }
  .aeo-popup--announcement .aeo-popup-copy { padding: 34px 40px 28px; }
  .aeo-popup--full_image .aeo-popup-copy,
  .aeo-popup--full_image .aeo-popup-media img { min-height: min(420px, calc(100dvh - 24px)); }

  /* Keep fixed utility controls inside the safe visual viewport. */
  .toast {
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 40px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }
  .consent-floating-settings {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@supports not (height: 100dvh) {
  @media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) and (pointer: coarse) {
    .mobile-panel,
    .booking-modal,
    .consent-modal-backdrop,
    .aeo-popup-runtime,
    .aeo-popup-backdrop { height: 100vh; max-height: 100vh; }
    .booking-dialog,.consent-modal,.aeo-popup { max-height: calc(100vh - 20px); }
    .consent-banner { max-height: calc(100vh - 20px); }
  }
}
