/* =========================================================================
   Phase 480 — Mobile bottom quick-nav. Single authoritative definition.

   WHY THIS FILE EXISTS
   The bottom quick-nav (Home / Stay / Book / Forecast / Contact) had ~40
   competing declarations spread across footer.bundle.css and
   theme-phase407.bundle.css, accumulated over phases 398/402/405/407/410/
   462/467. They used five different class aliases (.tgz398eQuickNav,
   .tgz410QuickNav, .tgz407QuickNav, .tgz401QuickNav, .tioQuickNavV4) with
   conflicting logic — some dark-always, some dark-only-in-dark-theme, some
   light. Depending on which page bundles loaded, the cascade resolved
   differently: home rendered dark, contact rendered light cream. This file
   consolidates every quick-nav rule into ONE definition that renders
   identically on every page and in every theme.

   The quick-nav is a fixed dark chrome element (like the top header), so it
   stays dark in both light and dark site themes. The duplicated rules were
   removed from footer.bundle.css and theme-phase407.bundle.css.

   Loads AFTER footer.bundle.css and theme-phase407.bundle.css so this wins
   the cascade. Uses html body + the alias list for specificity parity with
   the rules it replaces.
   ========================================================================= */

/* All class aliases resolve to the same element — style them together. */
html body .tgz398eQuickNav,
html body .tgz410QuickNav,
html body .tgz407QuickNav,
html body .tgz401QuickNav,
html body .tgz405QuickNav,
html body .tioQuickNavV4,
html body .bottomQuickNav {
  position: fixed !important;
  left: 8px !important;
  right: 8px !important;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 6500 !important;
  max-width: 760px !important;
  margin-inline: auto !important;
  display: none !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
  padding: 5px !important;
  border-radius: 20px !important;
  background: rgba(5, 7, 8, .97) !important;
  border: 1px solid rgba(143, 230, 210, .22) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
  box-sizing: border-box !important;
}

/* Nav items — column layout, icon over label, transparent tiles. */
html body .tgz398eQuickNav a,
html body .tgz410QuickNav a,
html body .tgz407QuickNav a,
html body .tgz401QuickNav a,
html body .tgz405QuickNav a,
html body .tioQuickNavV4 a,
html body .bottomQuickNav a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 6px 4px !important;
  border-radius: 15px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: rgba(255, 250, 241, .74) !important;
  text-decoration: none !important;
  text-align: center !important;
  font: 900 .58rem/1 Inter, system-ui, -apple-system, sans-serif !important;
  letter-spacing: -.01em !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}

/* Labels must truncate, not wrap. */
html body .tgz398eQuickNav a span,
html body .tgz410QuickNav a span,
html body .tgz407QuickNav a span,
html body .tgz401QuickNav a span,
html body .tgz405QuickNav a span,
html body .tioQuickNavV4 a span,
html body .bottomQuickNav a span {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Icons — mint teal, fixed size so the row stays aligned. */
html body .tgz398eQuickNav a .microIcon,
html body .tgz410QuickNav a .microIcon,
html body .tgz407QuickNav a .microIcon,
html body .tgz401QuickNav a .microIcon,
html body .tgz405QuickNav a .microIcon,
html body .tioQuickNavV4 a .microIcon,
html body .bottomQuickNav a .microIcon,
html body .tgz398eQuickNav a svg,
html body .tioQuickNavV4 a svg,
html body .bottomQuickNav a svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  color: #8fe6d2 !important;
}

/* Active item — the page you're on. Dark teal tile, copper icon. */
html body .tgz398eQuickNav a.is-active,
html body .tgz410QuickNav a.is-active,
html body .tgz407QuickNav a.is-active,
html body .tgz401QuickNav a.is-active,
html body .tgz405QuickNav a.is-active,
html body .tioQuickNavV4 a.is-active,
html body .bottomQuickNav a.is-active {
  background: #0c242f !important;
  color: #fffaf1 !important;
  border-color: rgba(143, 230, 210, .30) !important;
}

html body .tgz398eQuickNav a.is-active .microIcon,
html body .tgz410QuickNav a.is-active .microIcon,
html body .tgz407QuickNav a.is-active .microIcon,
html body .tgz401QuickNav a.is-active .microIcon,
html body .tgz405QuickNav a.is-active .microIcon,
html body .tioQuickNavV4 a.is-active .microIcon,
html body .bottomQuickNav a.is-active .microIcon,
html body .tgz398eQuickNav a.is-active svg,
html body .tioQuickNavV4 a.is-active svg,
html body .bottomQuickNav a.is-active svg {
  color: #e4bd79 !important;
}

/* Subtle press feedback — no geometry shift, just a quick dim. */
html body .tioQuickNavV4 a:active,
html body .bottomQuickNav a:active {
  transform: scale(.97) !important;
}

/* Visible focus ring for keyboard users. */
html body .tgz398eQuickNav a:focus-visible,
html body .tioQuickNavV4 a:focus-visible,
html body .bottomQuickNav a:focus-visible {
  outline: 2px solid rgba(154, 240, 216, .7) !important;
  outline-offset: 2px !important;
}

/* Show on mobile/tablet, hide on desktop. The navDrawer command menu
   replaces it on wide screens. */
@media (max-width: 900px) {
  html body .tgz398eQuickNav,
  html body .tgz410QuickNav,
  html body .tgz407QuickNav,
  html body .tgz401QuickNav,
  html body .tgz405QuickNav,
  html body .tioQuickNavV4,
  html body .bottomQuickNav {
    display: grid !important;
  }
}

/* Hide the quick-nav when an overlay (command menu, cookie banner) is open. */
body.commandMenuOpen .tgz398eQuickNav,
body.commandMenuOpen .tgz410QuickNav,
body.commandMenuOpen .tioQuickNavV4,
body.commandMenuOpen .bottomQuickNav,
body.tgz407MenuOpen .tgz398eQuickNav,
body.tgz407MenuOpen .tioQuickNavV4,
body.navOpen .tgz398eQuickNav,
body.navOpen .tioQuickNavV4,
body.cookieOpen .tgz398eQuickNav,
body.cookieOpen .tioQuickNavV4,
html.cookieOpen .tgz398eQuickNav,
html.cookieOpen .tioQuickNavV4 {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Responsive tweaks — keep items comfortably tappable as screens shrink. */
@media (max-width: 720px) {
  html body .tgz398eQuickNav a,
  html body .tioQuickNavV4 a,
  html body .bottomQuickNav a {
    min-height: 46px !important;
    border-radius: 14px !important;
    /* Phase 2026-W2b — was .56rem (8.96px). The owner's mobile audit flagged the
       quick-nav labels as the smallest text on the site. 11px is the largest
       size at which all five labels still fit on one line at 360px. */
    font-size: 11px !important;
  }
}

@media (max-width: 380px) {
  html body .tgz398eQuickNav a,
  html body .tioQuickNavV4 a,
  html body .bottomQuickNav a {
    min-height: 44px !important;
    padding: 5px 2px !important;
    font-size: 11px !important;
  }
  html body .tgz398eQuickNav a .microIcon,
  html body .tioQuickNavV4 a .microIcon,
  html body .bottomQuickNav a .microIcon,
  html body .tgz398eQuickNav a svg,
  html body .tioQuickNavV4 a svg,
  html body .bottomQuickNav a svg {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
  }
}
