/*
 * HawaiiGuide intent-first navigation drawer
 *
 * The legacy navigation CSS still supplies the header icon and overlay. This
 * file owns the drawer surface itself and deliberately uses hg-menu-prefixed
 * selectors so it can be rolled out independently from the shared stylesheet.
 */

:root {
  --hg-menu-green-950: #0b3025;
  --hg-menu-green-900: #123f31;
  --hg-menu-green-800: #175b46;
  --hg-menu-green-700: #1d7658;
  --hg-menu-green-100: #dff3e9;
  --hg-menu-ink: #17332b;
  --hg-menu-muted: #61736d;
  --hg-menu-canvas: #f5f4ef;
  --hg-menu-card: #ffffff;
  --hg-menu-line: #dce5e0;
  --hg-menu-orange: #e96f22;
  --hg-menu-shadow: 0 24px 70px rgba(7, 35, 26, 0.32);
}

button#ham {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
}

body.nav-is-toggled {
  overflow: hidden;
  overscroll-behavior: none;
}

body.nav-is-toggled .menu-bg {
  background: rgba(4, 24, 18, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.nav-drill.hg-nav-drawer {
  display: block;
  position: fixed;
  z-index: 100000000036 !important;
  inset: 0 auto 0 0;
  width: min(430px, 100vw);
  height: 100vh;
  height: 100dvh;
  margin: 0 !important;
  overflow: hidden;
  border: 0;
  border-radius: 0 24px 24px 0;
  background: var(--hg-menu-canvas);
  box-shadow: var(--hg-menu-shadow);
  color: var(--hg-menu-ink);
  transform: translate3d(-104%, 0, 0);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}

.nav-is-toggled .nav-drill.hg-nav-drawer {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

.hg-menu-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.hg-menu-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: max(20px, env(safe-area-inset-top)) 20px 18px;
  background:
    radial-gradient(circle at 82% 6%, rgba(245, 194, 66, 0.2), transparent 31%),
    linear-gradient(145deg, var(--hg-menu-green-950), var(--hg-menu-green-800));
  color: #fff;
}

.hg-menu-brand {
  margin: 0 0 5px;
  color: #bde2d3;
  font: 800 11px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hg-menu-title {
  margin: 0;
  color: #fff;
  font: 700 23px/1.16 'brother-1816-printed', 'Proxima', sans-serif;
  letter-spacing: -0.025em;
}

.hg-menu-close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -3px -3px 0 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.hg-menu-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hg-menu-close:active {
  transform: scale(0.94);
}

.hg-menu-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.hg-menu-scroll a,
.hg-menu-scroll button {
  -webkit-tap-highlight-color: transparent;
}

.hg-menu-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 18px;
}

.hg-menu-search,
.hg-menu-accessibility {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--hg-menu-line);
  border-radius: 14px;
  background: var(--hg-menu-card);
  box-shadow: 0 5px 16px rgba(21, 60, 47, 0.06);
  color: var(--hg-menu-ink);
  text-decoration: none;
}

.hg-menu-accessibility {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.hg-menu-accessibility-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #edf3fb;
  color: #1866b4;
}

.hg-menu-accessibility-copy strong,
.hg-menu-accessibility-copy small {
  display: block;
}

.hg-menu-accessibility-copy strong {
  color: var(--hg-menu-ink);
  font: 700 13px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
  white-space: nowrap;
}

.hg-menu-search-copy,
.hg-menu-accessibility-copy {
  min-width: 0;
}

.hg-menu-search-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--hg-menu-green-100);
  color: var(--hg-menu-green-800);
  font-size: 19px;
}

.hg-menu-search-copy strong,
.hg-menu-search-copy small {
  display: block;
}

.hg-menu-search-copy strong {
  color: var(--hg-menu-ink);
  font: 700 14px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
}

.hg-menu-arrow {
  color: var(--hg-menu-green-700);
  font-size: 15px;
}

.hg-menu-section {
  margin: 0 0 22px;
}

.hg-menu-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 10px;
}

.hg-menu-section-heading h3 {
  margin: 0;
  color: var(--hg-menu-ink);
  font: 800 13px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hg-menu-section-heading p {
  margin: 0;
  color: var(--hg-menu-muted);
  font: 500 12px/1.2 'Proxima', sans-serif;
}

.hg-menu-trip-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--hg-menu-green-900), var(--hg-menu-green-700));
  box-shadow: 0 8px 22px rgba(17, 78, 58, 0.18);
  color: #fff;
  text-decoration: none;
}

.hg-menu-trip-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
}

.hg-menu-trip-copy strong,
.hg-menu-trip-copy small {
  display: block;
}

.hg-menu-trip-copy strong {
  color: #fff;
  font: 750 17px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
}

.hg-menu-trip-copy small {
  margin-top: 2px;
  color: #d9eee5;
  font: 500 12px/1.25 'Proxima', sans-serif;
}

.hg-menu-trip-card .hg-menu-arrow {
  color: #fff;
}

.hg-menu-utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 0;
}

.hg-menu-utility-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--hg-menu-line);
  border-radius: 14px;
  background: var(--hg-menu-card);
  color: var(--hg-menu-ink);
  text-decoration: none;
  font: 700 13px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
}

.hg-menu-utility-card--wide {
  grid-column: 1 / -1;
}

.hg-menu-utility-card i {
  color: var(--hg-menu-green-700);
  font-size: 18px;
}

.hg-menu-os-compass {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
}

.hg-menu-utility-card--app {
  grid-column: 1 / -1;
  min-height: 62px;
  border-color: rgba(29, 151, 113, 0.28);
  background: linear-gradient(135deg, rgba(29, 151, 113, 0.12), rgba(69, 170, 242, 0.08));
}

.hg-menu-utility-app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--hg-menu-green-700);
}

.hg-menu-utility-card--app .hg-menu-utility-app-icon i {
  color: #fff;
  font-size: 22px;
}

.hg-menu-utility-app-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.hg-menu-utility-app-copy strong,
.hg-menu-utility-app-copy small {
  display: block;
}

.hg-menu-utility-app-copy strong {
  font: 750 14px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
}

.hg-menu-utility-app-copy small {
  color: var(--hg-menu-muted);
  font: 500 12px/1.25 'Proxima', sans-serif;
}

.hg-menu-utility-card--app .hg-menu-arrow {
  margin-left: auto;
}

.hg-menu-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hg-menu-stage-card {
  position: relative;
  display: grid;
  grid-template-columns: 37px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 9px;
  min-height: 86px;
  padding: 13px 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--hg-menu-ink);
  text-decoration: none;
}

.hg-menu-stage-card::after {
  position: absolute;
  right: 10px;
  bottom: 7px;
  color: currentColor;
  content: '\e80b';
  font: 11px/1 'gous';
  opacity: 0.45;
}

.hg-menu-stage-card--plan {
  border-color: #badfcd;
  background: #e1f4eb;
  color: #155b42;
}

.hg-menu-stage-card--book {
  border-color: #c9dfee;
  background: #e8f3fa;
  color: #1b5e83;
}

.hg-menu-stage-card--pack {
  border-color: #efd8b4;
  background: #fff2dd;
  color: #8a541f;
}

.hg-menu-stage-card--go {
  border-color: #cfd9c2;
  background: #edf1e5;
  color: #4a662d;
}

.hg-menu-stage-icon {
  display: grid;
  grid-row: 1 / span 2;
  align-self: center;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 18px;
}

.hg-menu-stage-card strong {
  align-self: end;
  color: inherit;
  font: 800 17px/1.05 'brother-1816-printed', 'Proxima', sans-serif;
}

.hg-menu-stage-card small {
  align-self: start;
  color: inherit;
  font: 600 11px/1.2 'Proxima', sans-serif;
  opacity: 0.78;
}

.hg-menu-island-feature {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 61px;
  padding: 8px 13px;
  border-radius: 17px;
  background: var(--hg-menu-card);
  box-shadow: inset 0 0 0 1px var(--hg-menu-line);
  color: var(--hg-menu-ink);
  text-decoration: none;
}

.hg-menu-island-feature-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 14px;
  background: var(--hg-menu-green-100);
  color: var(--hg-menu-green-700);
  font-size: 23px;
}

.hg-menu-island-feature strong,
.hg-menu-island-feature small {
  display: block;
}

.hg-menu-island-feature strong {
  color: var(--hg-menu-ink);
  font: 750 16px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
}

.hg-menu-island-feature small {
  margin-top: 2px;
  color: var(--hg-menu-muted);
  font: 500 12px/1.2 'Proxima', sans-serif;
}

.hg-menu-island-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.hg-menu-island-card {
  display: grid;
  min-width: 0;
  min-height: 66px;
  padding: 9px 3px 7px;
  place-items: center;
  border: 1px solid var(--hg-menu-line);
  border-radius: 15px;
  background: var(--hg-menu-card);
  color: var(--hg-menu-ink);
  text-align: center;
  text-decoration: none;
  font: 750 11px/1.1 'brother-1816-printed', 'Proxima', sans-serif;
}

.hg-menu-island-card i {
  margin-bottom: 5px;
  font-size: 24px;
}

.hg-menu-island-card--oahu i { color: #ef7a2e; }
.hg-menu-island-card--maui i { color: #2b78bd; }
.hg-menu-island-card--big i { color: #bd3b43; }
.hg-menu-island-card--kauai i { color: #218760; }

.hg-menu-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.hg-menu-context-link {
  display: grid;
  min-width: 0;
  min-height: 55px;
  padding: 8px 2px 6px;
  place-items: center;
  border: 1px solid var(--hg-menu-line);
  border-radius: 13px;
  background: var(--hg-menu-card);
  color: var(--hg-menu-ink);
  text-align: center;
  text-decoration: none;
  font: 650 10px/1.12 'Proxima', sans-serif;
}

.hg-menu-context-link i {
  color: var(--hg-menu-green-700);
  font-size: 17px;
}

.hg-menu-route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hg-menu-route {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 9px;
  border: 1px solid var(--hg-menu-line);
  border-radius: 14px;
  background: var(--hg-menu-card);
  color: var(--hg-menu-ink);
  text-decoration: none;
  font: 700 12px/1.16 'brother-1816-printed', 'Proxima', sans-serif;
}

.hg-menu-route i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #edf3ef;
  color: var(--hg-menu-green-700);
  font-size: 16px;
}

.hg-menu-local {
  margin: 4px 0 0;
  padding: 14px;
  border-radius: 18px;
  background: var(--hg-menu-green-950);
  color: #fff;
}

.hg-menu-local-kicker {
  margin: 0 0 9px;
  color: #bde2d3;
  font: 750 11px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hg-nav-local-mode-toggle.hg-menu-local-button {
  display: grid;
  width: 100%;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  cursor: pointer;
  text-align: left;
}

.hg-menu-local-button > i {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  color: #f5c242;
  font-size: 20px;
}

.hg-menu-local-copy strong,
.hg-menu-local-copy small {
  display: block;
}

.hg-menu-local-copy strong {
  color: #fff;
  font: 750 14px/1.2 'brother-1816-printed', 'Proxima', sans-serif;
}

.hg-menu-local-copy small {
  margin-top: 2px;
  color: #cfe7de;
  font: 500 11px/1.25 'Proxima', sans-serif;
}

.hg-menu-local-button.is-local {
  border-color: #f5c242;
  background: rgba(245, 194, 66, 0.16) !important;
}

.hg-menu-local-button .hg-menu-arrow {
  color: #fff;
}

.hg-menu-scroll a:hover,
.hg-menu-scroll a:focus-visible,
.hg-menu-scroll button:hover,
.hg-menu-scroll button:focus-visible,
.hg-menu-close:focus-visible,
button#ham:focus-visible {
  outline: 3px solid #f5c242;
  outline-offset: 2px;
}

.hg-menu-scroll a:active {
  transform: translateY(1px);
}

@media (min-width: 1024px) {
  .nav-drill.hg-nav-drawer {
    right: 0;
    left: auto;
    border-radius: 24px 0 0 24px;
    transform: translate3d(104%, 0, 0);
  }
}

@media (max-width: 480px) {
  .nav-drill.hg-nav-drawer {
    border-radius: 0;
  }

  .hg-menu-header {
    padding-right: 17px;
    padding-left: 17px;
  }

  .hg-menu-scroll {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (max-width: 350px) {
  .hg-menu-title {
    font-size: 20px;
  }

  .hg-menu-search-copy strong,
  .hg-menu-accessibility-copy strong {
    font-size: 12px;
  }

  .hg-menu-stage-card {
    grid-template-columns: 32px 1fr;
    padding-right: 9px;
    padding-left: 9px;
  }

  .hg-menu-stage-icon {
    width: 32px;
    height: 32px;
  }

  .hg-menu-stage-card strong {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drill.hg-nav-drawer,
  .hg-menu-close {
    transition: none;
  }
}
