:root {
  --color-navy: #0b1b3d;
  --color-deep-navy: #07142e;
  --color-gold: #d4af37;
  --color-background: #fbf9f3;
  --color-card: #ffffff;
  --color-text: #0b1b3d;
  --color-text-muted: #687386;
  --font-display: "Playfair Display", "Noto Serif JP", Georgia, serif;
  --font-ui: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-size-hero-title: clamp(2.5rem, 11.5vw, 4.75rem);
  --font-size-hero-subtitle: clamp(1.8rem, 7vw, 3.25rem);
  --font-size-hero-date: 1rem;
  --font-size-countdown: 1.15rem;
  --font-size-countdown-number: 1.6rem;
  --font-size-section-title: 1.7rem;
  --font-size-next-title: 1.15rem;
  --font-size-next-body: 0.92rem;
  --font-size-shortcut-label: 0.875rem;
  --font-size-nav-label: 0.875rem;
  --space-page-x: 1rem;
  --space-section: 1.5rem;
  --space-shortcut-gap-x: 0.65rem;
  --space-shortcut-gap-y: 0.8rem;
  --radius-card: 0.9rem;
  --radius-next-plan: 1.15rem;
  --shadow-card: 0 0.35rem 1rem rgba(11, 27, 61, 0.10);
  --hero-height: clamp(12.2rem, min(52vw, 31svh), 27.5rem);
  --next-plan-height: 5.1rem;
  --shortcut-card-ratio: 1 / 1.03;
  --shortcut-label-height: 2.3rem;
  --shortcut-icon-size: 1.5rem;
  --bottom-nav-height: 4.5rem;
  --bottom-nav-icon-size: 1.7rem;
  --icon-label-gap: 0.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #e9edf1;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #e9edf1;
  color: var(--color-text);
  font-family: var(--font-ui);
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #5ba7ff;
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  width: min(100%, 30rem);
  min-height: 100dvh;
  margin-inline: auto;
  overflow: clip;
  background: var(--color-background);
  box-shadow: 0 0 2.25rem rgba(7, 20, 46, 0.16);
}

.hero {
  position: relative;
  height: var(--hero-height);
  min-height: 12.2rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 19, 43, 0.88) 0%, rgba(7, 26, 55, 0.72) 34%, rgba(8, 27, 50, 0.20) 69%, rgba(6, 17, 36, 0.10) 100%),
    linear-gradient(180deg, rgba(4, 15, 35, 0.05) 46%, rgba(5, 18, 38, 0.22) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem) var(--space-page-x) clamp(0.65rem, 2.5vw, 1.25rem);
  color: #fff;
}

.hero__title {
  display: flex;
  margin: 0;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 0.14rem 0.45rem rgba(0, 0, 0, 0.28);
}

.hero__title span:first-child {
  font-size: var(--font-size-hero-title);
  line-height: 0.96;
}

.hero__title span:last-child {
  margin-top: 0.16rem;
  color: #e7bd49;
  font-size: var(--font-size-hero-subtitle);
  line-height: 1.04;
}

.hero__date {
  margin: clamp(0.55rem, 1.7vw, 0.85rem) 0 0;
  font-family: var(--font-display);
  font-size: var(--font-size-hero-date);
  font-weight: 500;
  letter-spacing: 0.018em;
}

.countdown {
  display: inline-flex;
  min-height: 2.45rem;
  margin-top: clamp(0.7rem, 2vw, 1rem);
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.78rem;
  border: 1.5px solid var(--color-gold);
  border-radius: 999px;
  background: rgba(7, 20, 46, 0.62);
  box-shadow: 0 0.2rem 0.65rem rgba(0, 0, 0, 0.20);
  font-size: clamp(0.9rem, 4vw, var(--font-size-countdown));
  white-space: nowrap;
}

.countdown strong {
  color: #efbd42;
  font-size: clamp(1.3rem, 6vw, var(--font-size-countdown-number));
  font-weight: 700;
  line-height: 1;
}

.app-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: inherit;
}

.app-icon > svg {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit !important;
}

.app-icon > svg [fill]:not([fill="none"]) {
  fill: currentColor !important;
}

.app-icon > svg [stroke]:not([stroke="none"]) {
  stroke: currentColor !important;
}

.app-icon--flight {
  width: 1.55rem;
  height: 1.55rem;
}

.home-content {
  padding: 1rem var(--space-page-x) calc(var(--bottom-nav-height) + 2.2rem + env(safe-area-inset-bottom));
}

.next-plan-section {
  margin-bottom: 1.05rem;
}

.next-plan {
  display: grid;
  min-height: var(--next-plan-height);
  grid-template-columns: 4.05rem 1px 2.65rem minmax(0, 1fr) 1.15rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-next-plan);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.next-plan:active {
  transform: translateY(1px);
  box-shadow: 0 0.2rem 0.65rem rgba(11, 27, 61, 0.10);
}

.next-plan__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  line-height: 1;
  text-align: center;
}

.next-plan__date strong {
  font-size: clamp(1.65rem, 7.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.next-plan__date span {
  margin-top: 0.22rem;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 600;
}

.next-plan__date em {
  margin-top: 0.28rem;
  color: var(--color-gold);
  font-family: var(--font-ui);
  font-size: 0.91rem;
  font-style: normal;
  font-weight: 600;
}

.next-plan__divider {
  align-self: stretch;
  margin-block: 0.18rem;
  background: rgba(11, 27, 61, 0.23);
}

.next-plan__icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--color-navy);
}

.next-plan__copy {
  min-width: 0;
}

.next-plan__copy strong,
.next-plan__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-plan__copy strong {
  font-size: clamp(0.9rem, 3.7vw, var(--font-size-next-title));
  font-weight: 600;
}

.next-plan__copy span {
  margin-top: 0.18rem;
  color: #77859b;
  font-size: clamp(0.875rem, 3.25vw, var(--font-size-next-body));
}

.next-plan__arrow {
  color: var(--color-navy);
  font-family: Georgia, serif;
  font-size: 2.45rem;
  font-weight: 400;
  line-height: 1;
}

.shortcuts {
  margin-top: var(--space-section);
}

.section-title {
  position: relative;
  width: fit-content;
  margin: 0 0 0.72rem;
  font-family: var(--font-display);
  font-size: var(--font-size-section-title);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-title::after {
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 1.35rem;
  height: 0.16rem;
  border-radius: 999px;
  background: var(--color-gold);
  content: "";
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-shortcut-gap-y) var(--space-shortcut-gap-x);
}

.shortcut-card {
  display: grid;
  aspect-ratio: var(--shortcut-card-ratio);
  min-width: 0;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr) var(--shortcut-label-height);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.shortcut-card:active {
  transform: translateY(1px);
  box-shadow: 0 0.22rem 0.65rem rgba(11, 27, 61, 0.10);
}

.shortcut-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shortcut-card__label {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  padding-inline: 0.35rem;
  color: var(--color-navy);
  font-size: var(--font-size-shortcut-label);
  font-weight: 500;
  white-space: nowrap;
}

.shortcut-card__icon {
  width: var(--shortcut-icon-size);
  height: var(--shortcut-icon-size);
  flex: 0 0 var(--shortcut-icon-size);
  color: var(--color-navy);
}

/* Visual-size normalization for the six approved Shortcut SVGs. */
.shortcut-card:nth-child(1) .shortcut-card__icon {
  --shortcut-icon-size: 1.5rem;
}

.shortcut-card:nth-child(2) .shortcut-card__icon {
  --shortcut-icon-size: 1.5rem;
  transform: translateY(-0.04rem);
}

.shortcut-card:nth-child(3) .shortcut-card__icon {
  --shortcut-icon-size: 1.44rem;
}

.shortcut-card:nth-child(4) .shortcut-card__icon {
  --shortcut-icon-size: 1.56rem;
}

.shortcut-card:nth-child(5) .shortcut-card__icon {
  --shortcut-icon-size: 1.38rem;
}

.shortcut-card:nth-child(6) .shortcut-card__icon {
  --shortcut-icon-size: 1.56rem;
  transform: translateY(-0.03rem);
}






.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 50%;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 30rem);
  min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  padding: 0.58rem 0.35rem calc(0.48rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: linear-gradient(180deg, #0d2b55 0%, var(--color-deep-navy) 100%);
  box-shadow: 0 -0.28rem 0.9rem rgba(7, 20, 46, 0.12);
}

.bottom-nav__item {
  display: flex;
  min-width: 0;
  min-height: 3.45rem;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--icon-label-gap);
  color: rgba(255, 255, 255, 0.96);
  font-size: var(--font-size-nav-label);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.bottom-nav__item.is-active {
  color: var(--color-gold);
}

.nav-icon {
  width: var(--bottom-nav-icon-size);
  height: var(--bottom-nav-icon-size);
}





.coming-soon {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 2rem 1rem calc(var(--bottom-nav-height) + 2rem + env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(7, 20, 46, 0.62), rgba(7, 20, 46, 0.72)),
    url("assets/hero/home-hero.webp") center / cover no-repeat;
}

.coming-soon__card {
  width: min(100%, 24rem);
  padding: 2rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.coming-soon__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--color-gold);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coming-soon__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.coming-soon__text {
  margin: 0.75rem 0 1.25rem;
  color: var(--color-text-muted);
}

.coming-soon__back {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--color-navy);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 374px) {
  :root {
    --space-page-x: 0.78rem;
    --space-shortcut-gap-x: 0.48rem;
    --space-shortcut-gap-y: 0.62rem;
    --font-size-shortcut-label: 0.875rem;
    --shortcut-icon-size: 1.4rem;
  }

  .next-plan {
    grid-template-columns: 3.75rem 1px 2.2rem minmax(0, 1fr) 0.9rem;
    gap: 0.48rem;
    padding-inline: 0.7rem;
  }

  .next-plan__icon {
    width: 2rem;
    height: 2rem;
  }

  .next-plan__arrow {
    font-size: 2rem;
  }

  .shortcut-card__label {
    gap: 0.3rem;
  }
}

/* iPhone home-screen standalone: fixed status-bar Safe Area guard for primary pages, including Dining and Tools. It masks scrolling/rubber-band content without changing normal Safari. */
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) and (max-width: 480px) {
    body.page-home,
    body.page-flight,
    body.page-airport,
    body.page-journey,
    body.page-guide,
    body.page-dining,
    body.page-tools,
    body.page-kids,
    body.page-spa {
      --app-top-safe-area-guard-bg: var(--color-background);
    }

    body.page-home {
      --app-top-safe-area-guard-bg: var(--color-navy);
    }

    body.page-guide {
      --app-top-safe-area-guard-bg: #fff;
    }

    body.page-home::before,
    body.page-flight::before,
    body.page-airport::before,
    body.page-journey::before,
    body.page-guide::before,
    body.page-dining::before,
    body.page-tools::before,
    body.page-kids::before,
    body.page-spa::before {
      position: fixed;
      z-index: 30;
      top: 0;
      right: 0;
      left: 0;
      height: env(safe-area-inset-top);
      background: var(--app-top-safe-area-guard-bg);
      content: "";
      pointer-events: none;
    }
  }
}

@media (min-width: 481px) {
  body {
    padding-block: 1rem;
  }

  body::after {
    position: fixed;
    z-index: 19;
    right: 50%;
    bottom: 0;
    width: min(100%, 30rem);
    height: 2.2rem;
    transform: translateX(50%);
    background: #e9edf1;
    content: "";
    pointer-events: none;
  }

  .app-shell {
    min-height: calc(100dvh - 2rem);
    border-radius: 1.15rem;
  }

  .hero {
    border-radius: 1.15rem 1.15rem 0 0;
  }

  .bottom-nav {
    bottom: 1rem;
    overflow: hidden;
    border-radius: 0 0 1.15rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* v1.12 shared subpage card primitives for Kids / Spa */
.subpage-status { margin:.8rem 0; padding:.7rem .8rem; border-radius:.75rem; background:rgba(11,27,61,.06); color:#58677c; font-size:.875rem; }
.subpage-section { margin-top:1.35rem; }
.section-kicker { color:var(--color-gold); font-size:.875rem; font-weight:900; letter-spacing:.12em; }
.subpage-section h2 { margin:.12rem 0 .75rem; font-family:var(--font-ui); font-size:1.35rem; }
.fact-card-grid { display:grid; gap:.55rem; }
.fact-card { padding:.78rem .85rem; border-radius:.9rem; background:#fff; box-shadow:var(--shadow-card); }
.fact-card strong { display:block; color:var(--color-navy); font-size:.875rem; }
.fact-card span { display:block; margin-top:.18rem; color:#4e5d72; font-size:.875rem; line-height:1.6; }
.subpage-link { display:flex; min-height:2.65rem; margin-top:.7rem; align-items:center; justify-content:center; border-radius:.75rem; background:var(--color-navy); color:#fff; font-size:.875rem; font-weight:900; }

/* v1.12 shared photo Hero for Dining / Tools / Kids / Spa */
.feature-hero {
  position: relative;
  min-height: 12.4rem;
  margin: calc(var(--space-page-x) * -1) calc(var(--space-page-x) * -1) 1.15rem;
  overflow: hidden;
  background: var(--color-navy);
  color: #fff;
}
.feature-hero__image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.feature-hero__shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(5,17,38,.79) 0%,rgba(5,17,38,.52) 42%,rgba(5,17,38,.12) 72%,rgba(5,17,38,.04) 100%); }
.feature-hero__copy { position:relative; z-index:1; display:flex; min-height:12.4rem; flex-direction:column; justify-content:flex-end; padding:1.25rem var(--space-page-x) 1.15rem; }
.feature-hero__eyebrow { margin:0 0 .3rem; color:#f1c94d; font-size:.875rem; font-weight:800; letter-spacing:.12em; }
.feature-hero h1 { margin:0; font-family:var(--font-display); font-size:2.35rem; line-height:1; font-weight:800; color:#fff; text-shadow:0 1px 12px rgba(0,0,0,.22); }
.feature-hero__lead { max-width:19rem; margin:.55rem 0 0; color:rgba(255,255,255,.96); font-size:.88rem; line-height:1.65; font-weight:650; }
.feature-hero__home { position:absolute; z-index:2; top:.8rem; right:var(--space-page-x); display:inline-flex; min-height:2.25rem; align-items:center; padding:.45rem .72rem; border:1px solid rgba(255,255,255,.35); border-radius:999px; background:rgba(5,17,38,.34); color:#fff; font-size:.875rem; font-weight:800; backdrop-filter:blur(8px); }
.photo-credit-note { margin:.35rem 0 0; color:#6c7584; font-size:.875rem; line-height:1.5; }
@media (min-width: 700px) {
  .feature-hero { min-height:15rem; border-radius:1.15rem; }
  .feature-hero__copy { min-height:15rem; padding-inline:1.4rem; }
}

/* v1.12 follow-up: common standalone Safe Area / Visual Viewport stabilization */
:root {
  --app-visual-viewport-top: 0px;
  --app-visual-viewport-bottom: 0px;
}
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) and (max-width: 480px) {
    html, body { overscroll-behavior-y:none; }
    body.page-home,
    body.page-flight,
    body.page-airport,
    body.page-journey,
    body.page-guide,
    body.page-dining,
    body.page-tools,
    body.page-kids,
    body.page-spa { background:var(--app-top-safe-area-guard-bg,var(--color-background)); }
    body.page-home::before,
    body.page-flight::before,
    body.page-airport::before,
    body.page-journey::before,
    body.page-guide::before,
    body.page-dining::before,
    body.page-tools::before,
    body.page-kids::before,
    body.page-spa::before {
      height:calc(env(safe-area-inset-top) + var(--app-visual-viewport-top,0px) + 2px);
    }
    .bottom-nav {
      bottom:var(--app-visual-viewport-bottom,0px);
      will-change:bottom;
    }
  }
}

/* v1.12 Production-prep public UI revision */
:root {
  --public-body-size: 1rem;
  --public-small-size: .9rem;
  --public-control-size: .95rem;
  --public-hero-height: clamp(13.75rem, 41vw, 17.25rem);
  --app-nav-font-size: .94rem;
  --app-nav-icon-size: 1.65rem;
  --app-nav-min-height: 4.45rem;
}
html, body { width:100%; max-width:100%; overflow-x:clip; }
html { background:var(--color-background); }
body { font-size:var(--public-body-size); overflow-wrap:break-word; word-break:normal; line-break:strict; }
.app-shell { width:min(100%,30rem); max-width:100%; overflow-x:clip; }
h1,h2,h3,h4,p,li,dd,dt,span,a,button,label,summary { overflow-wrap:break-word; word-break:normal; line-break:strict; }
button,a,.dining-status,.hyatt-status,.airport-status-legend span,.journey-status,.spa-badge { text-wrap:pretty; }
input, select, textarea { font-size:16px !important; }

.feature-hero { position:relative; min-height:var(--public-hero-height); height:var(--public-hero-height); margin:0; overflow:hidden; border-radius:0; isolation:isolate; }
.feature-hero__image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.feature-hero__shade { position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(5,17,38,.84) 0%,rgba(5,17,38,.63) 34%,rgba(5,17,38,.22) 67%,rgba(5,17,38,.07) 100%),linear-gradient(180deg,rgba(5,17,38,.04) 40%,rgba(5,17,38,.22) 100%); }
.feature-hero__copy { position:relative; z-index:2; min-height:100%; justify-content:flex-end; padding:calc(1.15rem + env(safe-area-inset-top)) var(--space-page-x) 1.15rem; }
.feature-hero h1 { font-size:clamp(2.15rem,9vw,3.15rem); letter-spacing:-.025em; }
.feature-hero__lead { max-width:21rem; font-size:1rem; line-height:1.55; text-wrap:pretty; }
.feature-hero__eyebrow { font-size:.9rem; }
.feature-hero__home { display:none !important; }
.page-flight .feature-hero__image { object-position:57% 50%; }
.page-airport .feature-hero__image { object-position:60% 50%; }
.page-journey .feature-hero__image { object-position:54% 50%; }
.page-guide .feature-hero__image { object-position:59% 50%; }

.external-action,
a[target="_blank"]:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out) {
  display:inline-flex; min-height:2.75rem; align-items:center; justify-content:center; gap:.35rem;
  margin:.18rem 0; padding:.62rem .8rem; border:1px solid rgba(11,27,61,.15); border-radius:.78rem;
  background:#fff; color:var(--color-navy); font-size:var(--public-control-size); font-weight:800; line-height:1.25;
  box-shadow:0 .12rem .45rem rgba(11,27,61,.06);
}

.bottom-nav {
  left:var(--app-vv-center-x,50%); width:var(--app-vv-width,min(100%,30rem)); max-width:30rem;
  min-height:calc(var(--app-nav-min-height) + env(safe-area-inset-bottom));
  padding:var(--app-nav-pad-y,.58rem) .35rem calc(var(--app-nav-pad-bottom,.48rem) + env(safe-area-inset-bottom));
  bottom:var(--app-visual-viewport-bottom,0px); transform:translateX(-50%); overflow:hidden;
  background:rgba(255,255,255,.97); border-top:1px solid rgba(11,27,61,.10); backdrop-filter:blur(14px);
  transition:opacity .16s ease, transform .16s ease;
}
.bottom-nav__item { min-width:0; font-size:var(--app-nav-font-size); line-height:1.1; }
.bottom-nav .nav-icon { width:var(--app-nav-icon-size); height:var(--app-nav-icon-size); }
html.is-keyboard-open .bottom-nav { opacity:0; pointer-events:none; transform:translate(-50%,110%); }

/* Persistent safe-area masks prevent content/background exposure during standalone bounce. */
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) {
    body::before { height:calc(env(safe-area-inset-top) + var(--app-visual-viewport-top,0px)); }
    body::after { content:""; position:fixed; z-index:29; left:0; right:0; bottom:0; height:calc(env(safe-area-inset-bottom) + var(--app-visual-viewport-bottom,0px)); background:var(--color-background); pointer-events:none; }
    .bottom-nav { z-index:40; }
  }
}

/* Cards: information first, imagery as supporting thumbnail. */
.dining-photo,.dining-situation-card__photo,.dining-rest-card figure,.photo-pair figure,.wide-photo,.spa-gallery figure,.spa-small-photo { background:#eef0ec; }
.dining-photo img,.dining-situation-card__photo img,.dining-rest-card img { aspect-ratio:16/7; object-fit:cover; }
.dining-card .dining-photo { float:left; width:7.25rem; margin:0 .75rem .55rem 0; border-radius:.75rem; }
.dining-card .dining-photo img { aspect-ratio:4/3; }
.dining-card::after { content:""; display:block; clear:both; }
.dining-photo figcaption,.dining-situation-card__photo figcaption,.photo-pair figcaption,.wide-photo figcaption,.spa-gallery figcaption,.spa-small-photo figcaption { display:none; }

.dining-status,.hyatt-status,.spa-badge,.journey-overview__status { white-space:nowrap; max-width:100%; font-size:.875rem; }

/* Mouse-friendly navigation on wider screens */
@media (min-width:700px) {
  .app-shell { width:min(100%,72rem); }
  .feature-hero { border-radius:0 0 1.15rem 1.15rem; }
  .dining-jump-nav,.tools-actions,.kids-date-tabs,.kids-program-tabs,.kids-mode-tabs,.phrase-categories,.airport-jump-nav,.day-tabs,.guide-filters,.hyatt-anchor-nav {
    flex-wrap:wrap !important; overflow:visible !important; scrollbar-width:auto; margin-inline:0 !important; padding-inline:0 !important;
  }
  .dining-jump-nav,.tools-actions { display:flex !important; }
  .dining-card-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dining-rest-compare__grid,.dining-situation-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .kids-schedule-list,.spa-treatment-grid,.spa-city-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bottom-nav { max-width:42rem; border-radius:1rem 1rem 0 0; }
}

@media (max-width:480px) {
  .dining-card .dining-photo { width:6.5rem; }
  .bottom-nav__item { font-size:.9rem; }
}

/* Production-prep: unified major-page Hero placement and resilient text wrapping */
.page-flight .flight-main,.page-airport .airport-main,.page-journey .journey-main,.page-guide .guide-main{padding-top:0!important}.page-flight .feature-hero,.page-airport .feature-hero,.page-journey .feature-hero,.page-dining .feature-hero,.page-tools .feature-hero,.page-kids .feature-hero,.page-spa .feature-hero{margin-inline:calc(var(--space-page-x) * -1)}
.page-guide .feature-hero{margin-inline:-.45rem}
.page-hyatt .hyatt-hero{min-height:var(--public-hero-height);height:var(--public-hero-height);margin:0;overflow:hidden}.page-hyatt .hyatt-hero__image{width:100%;height:100%;object-fit:cover}.page-hyatt .hyatt-hero__shade{background:linear-gradient(90deg,rgba(5,17,38,.84) 0%,rgba(5,17,38,.62) 35%,rgba(5,17,38,.2) 70%,rgba(5,17,38,.06) 100%)}.page-hyatt .hyatt-hero__content{min-height:100%;justify-content:flex-end;padding:calc(1.15rem + env(safe-area-inset-top)) var(--space-page-x) 1.15rem}.page-hyatt .hyatt-hero h1{font-size:clamp(2.15rem,9vw,3.15rem)}.page-hyatt .hyatt-hero__content>p:last-child{font-size:1rem;line-height:1.55;max-width:21rem}
.feature-hero__lead{word-break:keep-all;overflow-wrap:normal}.hyatt-hero__content>p:last-child{word-break:normal;overflow-wrap:anywhere;white-space:normal}.external-action,.bottom-nav__item,button,.dining-jump-nav a,.tools-action,.kids-date-tabs button,.kids-program-tabs button,.kids-mode-tabs button{word-break:keep-all;overflow-wrap:normal}.feature-hero__copy{max-width:100%}
@media(min-width:700px){.page-flight .feature-hero,.page-airport .feature-hero,.page-journey .feature-hero,.page-guide .feature-hero,.page-dining .feature-hero,.page-tools .feature-hero,.page-kids .feature-hero,.page-spa .feature-hero{margin-inline:0}.page-hyatt .hyatt-hero{border-radius:0 0 1.15rem 1.15rem}}


/* v1.12 Production final candidate: shared navigation, readability, Hero spacing and external actions */
.bottom-nav { background:#0B2C67 !important; }
.bottom-nav__item { color:#fff !important; font-size:clamp(.9rem,2.4vw,1rem); }
.bottom-nav__item .nav-icon { color:#fff !important; }
.bottom-nav__item.is-active { color:#D4A62A !important; font-weight:900; position:relative; }
.bottom-nav__item.is-active .nav-icon { color:#D4A62A !important; }
.bottom-nav__item.is-active::before { content:""; position:absolute; top:-.25rem; left:50%; width:1.65rem; height:.18rem; border-radius:999px; transform:translateX(-50%); background:#D4A62A; }
.feature-hero__lead { font-size:1rem; line-height:1.6; max-width:23rem; }
.page-flight .feature-hero,.page-journey .feature-hero { margin-bottom:1.35rem; }
.subpage-status,.fact-card span,.photo-credit-note { font-size:.9rem; }
.external-action { position:relative; }
.external-action::after { content:none; }
.external-action--maps::before { content:"⌖"; display:inline-grid; width:1.25rem; height:1.25rem; place-items:center; border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:#fff; border:2px solid #0B2C67; color:#0B2C67; font-size:.72rem; line-height:1; }
.external-action--maps::before { text-indent:-9999px; }
.external-action--maps::after { content:none !important; }
.leaflet-control-attribution,.leaflet-control-attribution a { min-height:0 !important; margin:0 !important; padding:0 !important; border:0 !important; border-radius:0 !important; background:rgba(255,255,255,.82) !important; box-shadow:none !important; font-size:10px !important; font-weight:400 !important; line-height:1.3 !important; display:inline !important; }
@supports (-webkit-touch-callout:none) { @media(display-mode:standalone) { html,body{overscroll-behavior:none;} body{min-height:100dvh;} .bottom-nav{position:fixed!important;} } }

/* 01-4 correction: prevent HOME next-plan clipping */
.next-plan__copy strong,.next-plan__copy span{overflow:visible;text-overflow:clip;white-space:normal;word-break:normal;overflow-wrap:anywhere}.next-plan{grid-template-columns:3.65rem 1px 2.35rem minmax(0,1fr) 1rem}.next-plan__copy{align-self:center}.next-plan__copy strong{line-height:1.35}.next-plan__copy span{line-height:1.4}
@media(max-width:390px){.next-plan{gap:.5rem;padding-inline:.7rem}.next-plan__icon{width:2.05rem;height:2.05rem}.next-plan__arrow{font-size:2rem}}

/* 01-4 correction: compact line-icon links */
.subpage-link,.external-action{display:inline-flex!important;min-height:2.15rem!important;align-items:center!important;justify-content:flex-start!important;gap:.42rem!important;margin-top:.4rem!important;padding:.25rem .15rem!important;border:0!important;border-radius:0!important;background:transparent!important;color:#0B2C67!important;box-shadow:none!important;font-size:.875rem!important;font-weight:800!important;line-height:1.35!important;text-decoration:none!important}.subpage-link::before,.external-action::before{content:"";flex:0 0 auto;width:1.05rem;height:1.05rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2C67' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l2-2a5 5 0 0 0-7-7l-1.1 1.1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-2 2a5 5 0 0 0 7 7l1.1-1.1'/%3E%3C/svg%3E") center/contain no-repeat}.tools-attribution a,.leaflet-control-attribution a{font-size:inherit!important;font-weight:600!important}.page-hyatt .hyatt-hero__content>p:last-child{max-width:min(24rem,92vw)!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important}.page-tools .feature-hero__lead{max-width:22rem}.page-tools .feature-hero__lead br{display:none}

/* v1.12 final UI-fix: reinforce the standalone top guard on pages that reproduced status-bar overlap. */
@supports (-webkit-touch-callout:none){
  @media(display-mode:standalone) and (max-width:480px){
    body.page-spa::before,
    body.page-kids::before,
    body.page-journey::before,
    body.page-guide::before,
    body.page-tools::before {
      z-index:70;
      height:calc(env(safe-area-inset-top) + var(--app-visual-viewport-top,0px) + 4px);
      backface-visibility:hidden;
      transform:translateZ(0);
    }
    body.page-spa,
    body.page-kids,
    body.page-journey,
    body.page-guide,
    body.page-tools { min-height:100dvh; overscroll-behavior-y:none; }
    .page-spa .feature-hero,
    .page-kids .feature-hero,
    .page-journey .feature-hero,
    .page-guide .feature-hero,
    .page-tools .feature-hero { scroll-margin-top:calc(env(safe-area-inset-top) + .35rem); }
  }
}


/* v1.12 ui-fix-revised: visual viewport, stable bottom navigation, shared card carousel */
:root {
  --app-nav-inverse-scale: 1;
  --app-nav-layout-width: min(100%,30rem);
  --app-nav-visual-bottom: 0px;
  --app-sticky-top: calc(env(safe-area-inset-top) + var(--app-visual-viewport-top,0px) + .2rem);
}
@media (max-width:480px) {
  .bottom-nav {
    left:var(--app-vv-center-x,50%) !important;
    width:var(--app-nav-layout-width,min(100%,30rem)) !important;
    max-width:none !important;
    bottom:var(--app-nav-visual-bottom,0px) !important;
    transform:translateX(-50%) scale(var(--app-nav-inverse-scale,1)) !important;
    transform-origin:50% 100%;
    will-change:transform,bottom,left;
  }
  .bottom-nav__item { font-size:.9rem !important; min-height:3.45rem; }
  .bottom-nav .nav-icon { width:1.7rem !important; height:1.7rem !important; }
  html.is-keyboard-open .bottom-nav {
    opacity:0;
    pointer-events:none;
    transform:translateX(-50%) translateY(115%) scale(var(--app-nav-inverse-scale,1)) !important;
  }
  html.is-visual-zoomed .bottom-nav {
    transition:none !important;
  }
}

.app-photo-carousel {
  position:relative;
  width:100%;
  min-width:0;
  margin:0 0 .72rem;
  overflow:hidden;
  border-radius:.9rem;
  background:#eef0ec;
}
.app-photo-carousel__track {
  display:flex;
  width:100%;
  aspect-ratio:3/2;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  overscroll-behavior-inline:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y pinch-zoom;
}
.app-photo-carousel__track::-webkit-scrollbar { display:none; }
.app-photo-carousel__slide {
  flex:0 0 100%;
  width:100%;
  height:100%;
  margin:0;
  background:#eef0ec;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.app-photo-carousel__slide img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.app-photo-carousel__slide img.is-contain {
  object-fit:contain;
}
.app-photo-carousel__dots {
  position:absolute;
  z-index:2;
  right:0;
  bottom:.42rem;
  left:0;
  display:flex;
  justify-content:center;
  gap:.32rem;
  pointer-events:none;
}
.app-photo-carousel__dot {
  width:.38rem;
  height:.38rem;
  border-radius:999px;
  background:rgba(255,255,255,.58);
  box-shadow:0 0 0 1px rgba(11,27,61,.2);
}
.app-photo-carousel__dot.is-active { background:#fff; transform:scale(1.18); }
.app-photo-carousel__arrow {
  position:absolute;
  z-index:3;
  top:50%;
  display:none;
  width:2.15rem;
  height:2.15rem;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.8);
  border-radius:999px;
  background:rgba(11,44,103,.72);
  color:#fff;
  font:700 1.45rem/1 system-ui,sans-serif;
  transform:translateY(-50%);
  cursor:pointer;
}
.app-photo-carousel__arrow--prev { left:.5rem; }
.app-photo-carousel__arrow--next { right:.5rem; }
.app-photo-carousel.is-single .app-photo-carousel__track { overflow:hidden; scroll-snap-type:none; }
@media (min-width:700px) {
  .app-photo-carousel.is-multiple .app-photo-carousel__arrow { display:grid; }
}

/* v1.12 revised5: Hero-page standalone Safe Area guard uses the Hero navy, not a white strip. */
@supports (-webkit-touch-callout:none) {
  @media (display-mode:standalone) and (max-width:480px) {
    body.page-flight,
    body.page-airport,
    body.page-spa { --app-top-safe-area-guard-bg:var(--color-navy); }
  }
}
