:root {
  --evergreen-950: #032b25;
  --evergreen-900: #004c3f;
  --evergreen-800: #076451;
  --evergreen-700: #0d7560;
  --evergreen-100: #dcece6;
  --cream: #f5f0e6;
  --paper: #fffdf8;
  --ink: #16201d;
  --muted: #66716d;
  --line: #dfe5e1;
  --orange: #ef5523;
  --orange-dark: #c93c16;
  --gold: #f3ac19;
  --blue: #2476d3;
  --sky: #49a9e8;
  --shadow-sm: 0 2px 8px rgba(12, 39, 32, 0.09);
  --shadow-md: 0 14px 35px rgba(8, 35, 29, 0.16);
  --shadow-lg: 0 26px 70px rgba(3, 30, 24, 0.28);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --device-safe-top: env(safe-area-inset-top, 0px);
  --device-safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.is-android { --device-safe-bottom: env(safe-area-inset-bottom, 0px); }
.is-android.is-native-android-app { --device-safe-top: 0px; --device-safe-bottom: 0px; }

* { box-sizing: border-box; }

html, body { height: 100%; }

html { background: var(--evergreen-950); }

body {
  margin: 0;
  overflow: hidden;
  background: var(--cream);
}

button, input { font: inherit; }

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

button { color: inherit; }

a { color: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(239, 85, 35, 0.52);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  background: var(--paper);
  color: var(--evergreen-950);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.launch-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.launch-splash img {
  width: min(100vw, 480px);
  height: 100%;
  object-fit: contain;
}

.launch-splash.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.app-shell {
  display: grid;
  grid-template-rows: calc(74px + var(--device-safe-top)) minmax(0, 1fr);
  height: 100dvh;
  min-height: 100%;
  background: var(--cream);
}

.app-header {
  position: relative;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: var(--device-safe-top) 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--evergreen-950);
  color: white;
  box-shadow: 0 4px 18px rgba(3, 36, 29, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: white;
  text-decoration: none;
}

.brand img {
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  border-radius: 13px;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.26);
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  white-space: nowrap;
}

.brand-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  letter-spacing: 0.055em;
}

.brand-title strong {
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-guide {
  color: var(--orange);
  font-size: 1.06rem;
  font-weight: 800;
}

.brand-tagline {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.weather-symbol {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: rgba(243, 172, 25, 0.17);
  color: #ffd671;
  font-size: 1.2rem;
}

.weather-pill > span:last-child { display: grid; text-align: left; line-height: 1.05; }
.weather-pill strong { font-size: 0.76rem; letter-spacing: 0.02em; }
.weather-pill small { margin-top: 4px; color: rgba(255, 255, 255, 0.68); font-size: 0.63rem; }

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.45rem;
  cursor: pointer;
}

.count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--evergreen-950);
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 0.67rem;
  font-weight: 900;
}

.explore-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  min-height: 0;
}

.discovery-panel {
  position: relative;
  z-index: 10;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 25px 22px 34px;
  background: var(--cream);
  box-shadow: 7px 0 28px rgba(21, 46, 38, 0.13);
}

.welcome-block { margin-bottom: 19px; }

.eyebrow {
  margin: 0 0 7px;
  color: var(--orange-dark);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.welcome-block h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--evergreen-950);
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.welcome-block > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.search-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 50px;
  padding: 5px 6px 5px 14px;
  border: 1px solid #d7ded9;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.search-wrap > span {
  color: var(--evergreen-700);
  font-size: 1.45rem;
  line-height: 1;
}

.search-wrap input {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
}

.search-wrap input::placeholder { color: #8a9590; }

.search-wrap button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  background: var(--evergreen-100);
  color: var(--evergreen-900);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.search-wrap button > span:first-child { font-size: 1rem; }

.desktop-show-all-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  margin: 13px 0 8px;
  padding: 8px 12px;
  border: 1px solid #cdd7d2;
  border-radius: 15px;
  background: var(--paper);
  color: var(--evergreen-950);
  text-align: left;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.desktop-show-all-button > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--evergreen-100);
  color: var(--evergreen-900);
  font-size: 1.2rem;
}

.desktop-show-all-button > span:last-child { display: grid; gap: 2px; }
.desktop-show-all-button strong { font-size: 0.8rem; }
.desktop-show-all-button small { color: var(--muted); font-size: 0.67rem; }
.desktop-show-all-button:hover { border-color: rgba(0, 76, 63, 0.38); transform: translateY(-1px); }
.desktop-show-all-button.is-active { border-color: var(--evergreen-900); background: var(--evergreen-900); color: white; }
.desktop-show-all-button.is-active > span:first-child { background: rgba(255, 255, 255, 0.14); color: white; }
.desktop-show-all-button.is-active small { color: #d7e4df; }

.desktop-resource-links {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.desktop-resource-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 76, 63, 0.16);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--evergreen-950);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16, 42, 34, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.desktop-resource-button > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.desktop-resource-button strong { font-size: 0.76rem; line-height: 1.2; }
.desktop-resource-button small { color: var(--muted); font-size: 0.63rem; line-height: 1.25; }
.desktop-resource-button:hover { border-color: rgba(0, 76, 63, 0.38); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.desktop-resource-button:focus-visible { outline: 3px solid rgba(0, 109, 119, 0.3); outline-offset: 2px; }

.desktop-resource-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--evergreen-100);
  color: var(--evergreen-900);
  font-family: Georgia, serif;
  font-size: 0.88rem;
  font-weight: 900;
}

.desktop-resource-arrow { color: var(--evergreen-700); font-size: 1rem; font-weight: 800; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin: 13px 0 20px;
  padding: 0;
}

.filter-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid #d7ded9;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: #4f5e59;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-chip:hover { transform: translateY(-1px); }

.filter-chip.is-active {
  border-color: var(--evergreen-900);
  background: var(--evergreen-900);
  color: white;
  box-shadow: 0 5px 14px rgba(0, 76, 63, 0.21);
}

.category-browser-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  width: 100%;
  min-height: 54px;
  margin: 13px 0 19px;
  padding: 9px 14px;
  border: 1px solid #cdd7d2;
  border-radius: 15px;
  background: var(--paper);
  color: var(--evergreen-950);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.category-browser-button > span { display: grid; gap: 2px; }
.category-browser-button strong { font-size: 0.78rem; }
.category-browser-button small { color: var(--muted); font-size: 0.67rem; }
.category-browser-button b { color: var(--orange-dark); font-size: 1.35rem; }
.category-browser-button:hover { border-color: rgba(0, 76, 63, 0.38); transform: translateY(-1px); }

.panel-toolbar, .mobile-sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-toolbar > div, .mobile-sheet-summary { display: grid; gap: 2px; }
.panel-toolbar strong, .mobile-sheet-summary strong { font-size: 0.91rem; color: var(--evergreen-950); }
.panel-toolbar > div span, .mobile-sheet-summary span { color: var(--muted); font-size: 0.72rem; }

.mobile-sheet-summary {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mobile-sheet-summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@keyframes mobile-expand-prompt-pulse {
  0%, 100% {
    color: #b62f0b;
    opacity: 1;
    text-shadow: 0 0 0 rgba(182, 47, 11, 0);
    transform: scale(1);
  }
  50% {
    color: #126bd6;
    opacity: 1;
    text-shadow: 0 0 10px rgba(18, 107, 214, 0.55);
    transform: scale(1.07);
  }
}

.mobile-sheet-summary .mobile-sheet-action.is-ready {
  display: inline-block;
  color: #b62f0b;
  font-weight: 900;
  transform-origin: left center;
  animation: mobile-expand-prompt-pulse 2.2s ease-in-out infinite;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4c5955;
  font-size: 0.73rem;
  font-weight: 800;
  cursor: pointer;
}

.open-now-control { display: none !important; }

.toggle-label input { position: absolute; opacity: 0; pointer-events: none; }

.toggle-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #cbd3cf;
  transition: background 160ms ease;
}

.toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  content: "";
  transition: transform 160ms ease;
}

.toggle-label input:checked + .toggle-track { background: var(--evergreen-700); }
.toggle-label input:checked + .toggle-track::after { transform: translateX(14px); }
.toggle-label input:focus-visible + .toggle-track { outline: 3px solid rgba(239, 85, 35, 0.48); outline-offset: 3px; }

.featured-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 15px 0 13px;
  padding: 12px;
  border: 1px solid rgba(239, 85, 35, 0.24);
  border-radius: 17px;
  background: linear-gradient(120deg, #fff8ea, #fffdf8 62%, #f7e7d8);
  box-shadow: var(--shadow-sm);
}

.featured-card[hidden] { display: none; }

.featured-date {
  display: grid;
  place-items: center;
  width: 48px;
  height: 52px;
  border-radius: 12px;
  background: var(--evergreen-950);
  color: white;
  line-height: 1;
}

.featured-date strong { font-family: Georgia, serif; font-size: 1.42rem; }
.featured-date span { color: #ffc14c; font-size: 0.58rem; font-weight: 900; letter-spacing: 0.15em; }
.featured-copy { display: grid; min-width: 0; gap: 2px; }
.featured-copy strong { overflow: hidden; color: var(--evergreen-950); font-family: Georgia, serif; font-size: 0.94rem; text-overflow: ellipsis; white-space: nowrap; }
.featured-copy small { color: var(--muted); font-size: 0.69rem; }
.featured-kicker { color: var(--orange-dark); font-size: 0.59rem; font-weight: 900; letter-spacing: 0.08em; }
.featured-card > button {
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--orange);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.place-list, .mobile-place-list { display: grid; gap: 9px; margin-top: 12px; }

.place-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 71px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.place-card:hover, .place-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(0, 76, 63, 0.18);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.place-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--evergreen-100);
  color: var(--evergreen-900);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-weight: 900;
}

.place-symbol.category-tone-dining, .dialog-icon.category-tone-dining { background: #fff0ca; color: #8b6000; }
.place-symbol.category-tone-lodging, .dialog-icon.category-tone-lodging { background: #dcefeb; color: #126859; }
.place-symbol.category-tone-activity, .dialog-icon.category-tone-activity { background: #dff2e4; color: #147442; }
.place-symbol.category-tone-shopping, .dialog-icon.category-tone-shopping { background: #f3e7f5; color: #7b4085; }
.place-symbol.category-tone-service, .dialog-icon.category-tone-service { background: #e8ecea; color: #4a5d56; }
.place-symbol.category-tone-event, .dialog-icon.category-tone-event { background: #fee5d7; color: var(--orange-dark); }
.place-symbol.category-tone-transport, .dialog-icon.category-tone-transport { background: #e0ebfa; color: #175da9; }
.place-symbol.category-tone-safety, .dialog-icon.category-tone-safety { background: #f8dfe0; color: #a02931; }
.place-symbol.category-tone-community, .dialog-icon.category-tone-community { background: #eee5f8; color: #704aa3; }
.place-symbol.category-color,
.dialog-icon.category-color {
  background: var(--category-soft, #e8ecea);
  color: var(--category-color, #4a5d56);
}

.place-card-copy { display: grid; min-width: 0; gap: 3px; }
.place-card-copy > strong { overflow: hidden; color: var(--evergreen-950); font-size: 0.83rem; text-overflow: ellipsis; white-space: nowrap; }
.place-meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 0.67rem; }
.place-meta > span:not(.status-dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-distance { color: var(--evergreen-700); font-size: 0.63rem; font-weight: 800; }
.status-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #89928f; }
.status-dot.open { background: #2c9e60; }
.status-dot.closed { background: var(--orange); }
.place-chevron { color: #8a9490; font-size: 1.12rem; }

.empty-results {
  padding: 26px 17px;
  border: 1px dashed #cbd4cf;
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
}

.empty-results strong { display: block; margin-bottom: 4px; color: var(--evergreen-950); }

.source-note {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 13px;
  background: rgba(220, 236, 230, 0.68);
  color: #4f625b;
}

.source-note > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--evergreen-700);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
}

.source-note p { margin: 0; font-size: 0.67rem; line-height: 1.45; }
.source-note strong { color: var(--evergreen-950); }

.map-panel { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #d9e1da; }

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #dce3dc;
  --marker-name-font-size: 0.78rem;
}

.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { background: rgba(255, 255, 255, 0.78) !important; color: #56635e; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--evergreen-800); }
.leaflet-control-zoom { display: none; }

.map-marker-composition {
  position: relative;
  width: 36px;
  height: 44px;
}

.map-marker {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid white;
  border-radius: 14px 14px 14px 3px;
  background: var(--evergreen-900);
  color: white;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(5, 35, 28, 0.35);
  transform: rotate(-45deg);
  transform-origin: center;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.map-marker > span { transform: rotate(45deg); }
.map-marker.category-tone-dining { background: #b56f00; }
.map-marker.category-tone-lodging { background: #167362; }
.map-marker.category-tone-activity { background: #238552; }
.map-marker.category-tone-shopping { background: #824d91; }
.map-marker.category-tone-service { background: #536b63; }
.map-marker.category-tone-event { background: var(--orange); }
.map-marker.category-tone-transport { background: var(--blue); }
.map-marker.category-tone-safety { background: #ae3139; }
.map-marker.category-tone-community { background: #7952a8; }
.map-marker.category-color {
  background: var(--category-color, var(--evergreen-900));
  color: var(--category-ink, white);
}
.map-marker.is-active { z-index: 1000; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7), 0 9px 22px rgba(5, 35, 28, 0.4); transform: rotate(-45deg); }

.map-marker-name {
  position: absolute;
  bottom: 51px;
  left: 18px;
  display: none;
  width: max-content;
  max-width: min(230px, calc(100vw - 28px));
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--evergreen-950);
  color: white;
  box-shadow: var(--shadow-md);
  font-size: var(--marker-name-font-size);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-align: center;
  transform: translate(calc(-50% + var(--marker-label-x, 0px)), var(--marker-label-y, 0px));
  transition: transform 140ms ease-out;
  white-space: normal;
}

#map.show-marker-names .map-marker-name { display: block; }
#map.show-marker-names .place-tooltip { display: none !important; }

.user-marker {
  width: 18px;
  height: 18px;
  border: 4px solid white;
  border-radius: 50%;
  background: #1d8be0;
  box-shadow: 0 0 0 7px rgba(29, 139, 224, 0.24), 0 3px 10px rgba(0, 0, 0, 0.3);
}

.leaflet-tooltip.place-tooltip {
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: var(--evergreen-950);
  color: white;
  box-shadow: var(--shadow-md);
  font-size: 0.69rem;
  font-weight: 800;
}

.leaflet-tooltip-top.place-tooltip::before { border-top-color: var(--evergreen-950); }

.map-brand-card {
  position: absolute;
  z-index: 400;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.91);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.map-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--evergreen-950);
  color: white;
  font-family: Georgia, serif;
  font-size: 0.77rem;
  font-weight: 900;
}

.map-brand-card > span:last-child { display: grid; }
.map-brand-card strong { color: var(--evergreen-950); font-size: 0.61rem; letter-spacing: 0.1em; }
.map-brand-card small { margin-top: 2px; color: var(--orange-dark); font-size: 0.51rem; font-weight: 900; letter-spacing: 0.12em; }

.map-controls {
  position: absolute;
  z-index: 400;
  top: 16px;
  right: 16px;
  display: grid;
  gap: 8px;
}

.map-control-button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--evergreen-900);
  box-shadow: var(--shadow-md);
  font-size: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(9px);
}

.map-list-toggle { display: none; }
.mobile-discovery-sheet, .bottom-nav { display: none; }

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(1, 23, 19, 0.68);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.place-dialog {
  position: fixed;
  width: min(92vw, 460px);
  max-height: min(88dvh, 760px);
  overflow: hidden auto;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.dialog-accent { height: 9px; background: var(--evergreen-700); }
.dialog-accent.category-tone-dining { background: var(--gold); }
.dialog-accent.category-tone-lodging { background: #167362; }
.dialog-accent.category-tone-activity { background: #36a96c; }
.dialog-accent.category-tone-shopping { background: #9c62a8; }
.dialog-accent.category-tone-service { background: #607970; }
.dialog-accent.category-tone-event { background: var(--orange); }
.dialog-accent.category-tone-transport { background: var(--blue); }
.dialog-accent.category-tone-safety { background: #c83d46; }
.dialog-accent.category-tone-community { background: #8e6ac8; }
.dialog-accent.category-color { background: var(--category-color, var(--evergreen-900)); }

.dialog-close {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #edf1ee;
  color: #50605a;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.place-dialog > .dialog-close { position: absolute; top: 21px; right: 18px; }

.dialog-body { padding: 24px 27px 27px; }

.dialog-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border-radius: 18px;
  background: var(--evergreen-100);
  color: var(--evergreen-900);
  font-family: Georgia, serif;
  font-size: 1.12rem;
  font-weight: 900;
}

.dialog-kicker { margin: 0 0 5px; color: var(--orange-dark); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.dialog-body h2 { margin: 0; color: var(--evergreen-950); font-family: Georgia, serif; font-size: clamp(1.65rem, 4vw, 2.1rem); line-height: 1.08; letter-spacing: -0.025em; }
.dialog-address { margin: 7px 0 0; color: var(--muted); font-size: 0.77rem; }

.dialog-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #edf5f0;
  color: #2b5f45;
  font-size: 0.73rem;
  font-weight: 800;
}

.dialog-status.is-closed { background: #fff0ea; color: #9c371b; }
.dialog-status.is-neutral { background: #edf1ef; color: #596761; }

.dialog-description { margin: 17px 0 14px; color: #4e5c57; font-size: 0.86rem; line-height: 1.55; }

.camera-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 76, 63, 0.14);
  border-radius: 15px;
  background: #0b2420;
  box-shadow: 0 9px 24px rgba(3, 33, 27, 0.14);
}

.camera-preview iframe,
.camera-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.camera-preview.is-unavailable {
  display: grid;
  place-items: center;
  padding: 22px;
  background: #edf1ef;
  box-shadow: none;
}

.camera-preview.is-unavailable p { margin: 0; color: #596761; font-size: 0.76rem; font-weight: 800; text-align: center; }

.detail-list { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.detail-list li { display: flex; gap: 9px; color: #53605c; font-size: 0.76rem; line-height: 1.45; }
.detail-list li::before { color: var(--evergreen-700); font-weight: 900; content: "✓"; }

.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dialog-actions.is-single-action { grid-template-columns: 1fr; }
.dialog-actions [hidden] { display: none !important; }

.primary-action, .secondary-action, .event-actions button, .install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 13px;
  font-size: 0.77rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-action { border: 1px solid var(--evergreen-900); background: var(--evergreen-900); color: white; }
.secondary-action { border: 1px solid #d4ddd8; background: white; color: var(--evergreen-900); }
.secondary-action.is-saved { border-color: rgba(239, 85, 35, 0.28); background: #fff0e9; color: var(--orange-dark); }
.event-actions { margin-top: 9px; }
.event-actions button { width: 100%; border: 1px solid #edd3c5; background: #fff7f0; color: var(--orange-dark); }

.official-link { display: inline-block; margin-top: 18px; color: var(--evergreen-700); font-size: 0.75rem; font-weight: 900; text-underline-offset: 3px; }
.hours-source-link[hidden] { display: none; }
.verified-line { margin: 9px 0 0; color: #88928e; font-size: 0.62rem; }

.drawer-dialog {
  position: fixed;
  width: min(94vw, 480px);
  max-height: min(88dvh, 800px);
  margin-right: 18px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 23px 23px 17px; border-bottom: 1px solid var(--line); }
.drawer-header .eyebrow { margin-bottom: 5px; }
.drawer-header h2 { margin: 0; color: var(--evergreen-950); font-family: Georgia, serif; font-size: 1.75rem; }
.saved-list { display: grid; gap: 9px; max-height: 48dvh; padding: 17px 20px; overflow-y: auto; }

.saved-row {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.saved-row .place-symbol { width: 39px; height: 39px; border-radius: 12px; font-size: 0.78rem; }
.saved-row > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.saved-row strong { overflow: hidden; color: var(--evergreen-950); font-size: 0.79rem; text-overflow: ellipsis; white-space: nowrap; }
.saved-row small { color: var(--muted); font-size: 0.65rem; }
.saved-row button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: #f0f2f0; color: #707d78; font-size: 1.05rem; cursor: pointer; }

.saved-empty { padding: 40px 18px; color: var(--muted); text-align: center; line-height: 1.5; }
.saved-empty strong { display: block; margin-bottom: 6px; color: var(--evergreen-950); font-family: Georgia, serif; font-size: 1.15rem; }
.drawer-actions { display: grid; gap: 9px; padding: 0 20px 22px; }
.drawer-actions .primary-action { width: 100%; }
.drawer-actions .primary-action:disabled { opacity: 0.45; cursor: not-allowed; }
.text-button { min-height: 36px; border: 0; background: transparent; color: #7a8581; font-size: 0.71rem; font-weight: 800; cursor: pointer; }

.directory-picker-scroll {
  max-height: 61dvh;
  padding: 17px 20px 22px;
  overflow-y: auto;
}

.directory-filter-section h3 {
  margin: 0 0 9px;
  color: var(--evergreen-950);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-picker-list {
  display: grid;
  gap: 9px;
}

.category-directory {
  display: grid;
  gap: 9px;
}

.category-directory.is-category-focused { gap: 0; }

.category-directory-item {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--category-color, #536b63) 25%, #d7ded9);
  border-left: 5px solid var(--category-color, #536b63);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 3px 12px rgba(16, 42, 34, 0.06);
}

.category-directory-item.is-expanded {
  background: linear-gradient(180deg, var(--category-soft, #eef2ef), var(--paper) 88px);
  box-shadow: 0 8px 22px rgba(16, 42, 34, 0.12);
}

.category-directory-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 59px;
  padding: 8px 12px 8px 10px;
  border: 0;
  background: transparent;
  color: var(--evergreen-950);
  text-align: left;
  cursor: pointer;
}

.category-directory-button:hover { background: var(--category-soft, #eef2ef); }
.category-directory-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--category-color, #536b63) 38%, transparent); outline-offset: -3px; }

.category-directory-icon,
.category-option-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--category-color, #536b63);
  color: var(--category-ink, white);
  font-family: Georgia, serif;
  font-size: 0.7rem;
  font-weight: 900;
}

.category-directory-button > strong { min-width: 0; font-size: 0.82rem; line-height: 1.25; }
.category-directory-meta { display: inline-flex; align-items: center; gap: 8px; }
.category-directory-count {
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--category-soft, #eef2ef);
  color: var(--category-color, #536b63);
  font-size: 0.65rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
.category-directory-arrow { color: var(--category-color, #536b63); font-size: 1.25rem; transform: rotate(0); transition: transform 160ms ease; }
.category-directory-item.is-expanded .category-directory-arrow { transform: rotate(90deg); }
.category-directory-results { display: grid; gap: 8px; padding: 0 10px 11px; }
.category-directory-results .place-card { min-height: 67px; background: rgba(255, 255, 255, 0.93); }
.category-directory.is-direct-results { display: grid; gap: 9px; }
.subcategory-group {
  display: grid;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--category-color, #536b63) 18%, #dce2de);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}
.subcategory-group.is-expanded { background: var(--paper); box-shadow: 0 5px 14px rgba(16, 42, 34, 0.08); }
.subcategory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  padding: 8px 10px 8px 13px;
  border: 0;
  background: transparent;
  color: var(--evergreen-950);
  text-align: left;
  cursor: pointer;
}
.subcategory-heading:hover { background: var(--category-soft, #eef2ef); }
.subcategory-heading:focus-visible { outline: 3px solid color-mix(in srgb, var(--category-color, #536b63) 35%, transparent); outline-offset: -3px; }
.subcategory-heading-label {
  font-size: 0.73rem;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-transform: uppercase;
}
.subcategory-meta { display: inline-flex; align-items: center; gap: 8px; }
.subcategory-count {
  display: inline-block;
  min-width: 58px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--category-color, #536b63) 24%, transparent);
  border-radius: 999px;
  background: var(--category-soft, #eef2ef);
  color: var(--category-color, var(--evergreen-800));
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}
.subcategory-arrow { color: var(--category-color, #536b63); font-size: 1.2rem; transform: rotate(0); transition: transform 160ms ease; }
.subcategory-group.is-expanded .subcategory-arrow { transform: rotate(90deg); }
.subcategory-places { display: grid; gap: 8px; padding: 0 8px 8px; }

.category-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  color: var(--evergreen-950);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.category-option:hover { transform: translateY(-1px); border-color: rgba(0, 76, 63, 0.35); }
.category-option.is-active { border-color: var(--category-color, var(--evergreen-900)); background: var(--category-soft, var(--evergreen-100)); }
.category-option-label { display: inline-flex; align-items: center; gap: 9px; }
.category-option-count {
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--category-soft, #eef2ef);
  color: var(--category-color, #536b63);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}
.category-option-arrow { color: var(--category-color, #84908b); font-size: 1rem; }

.resources-dialog { overflow: hidden auto; }
.resource-grid { display: grid; gap: 9px; padding: 17px 20px; }
.resource-grid a {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.resource-grid a:hover { transform: translateY(-1px); border-color: rgba(0, 76, 63, 0.32); }
.resource-grid a > span:nth-child(2) { display: grid; gap: 3px; }
.resource-grid strong { color: var(--evergreen-950); font-size: 0.79rem; }
.resource-grid small { color: var(--muted); font-size: 0.66rem; }
.resource-grid b { color: #8d9893; font-size: 0.76rem; }

.resource-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  color: white;
  font-family: Georgia, serif;
  font-weight: 900;
}

.resource-icon.fire { background: var(--orange); }
.resource-icon.road { background: #6b7480; }
.resource-icon.bus { background: #258557; }
.resource-icon.dart { background: #865bb4; }
.resource-icon.parking { background: var(--blue); }
.resource-icon.event { background: #c17b00; }
.install-button { width: calc(100% - 40px); margin: 0 20px 14px; border: 0; background: var(--orange); color: white; }
.install-button:disabled { cursor: wait; opacity: 0.78; }
.install-instructions {
  margin: -2px 20px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 85, 35, 0.34);
  border-radius: 12px;
  background: #fff0e8;
  color: #6f2b14;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.45;
}
.resources-footnote { margin: 0; padding: 0 23px 23px; color: #7d8984; font-size: 0.66rem; line-height: 1.5; }

.toast {
  position: fixed;
  z-index: 11000;
  left: 50%;
  bottom: 22px;
  max-width: min(88vw, 420px);
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--evergreen-950);
  color: white;
  box-shadow: var(--shadow-lg);
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.app-update-banner {
  position: fixed;
  z-index: 12000;
  top: 86px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(calc(100vw - 32px), 720px);
  padding: 13px 14px 13px 17px;
  border: 1px solid rgba(255,255,255,.32);
  border-left: 5px solid var(--gold);
  border-radius: 15px;
  background: rgba(3,43,37,.97);
  color: white;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}
.app-update-banner.type-safety { border-left-color: #ff4d39; }
.app-update-banner.type-travel { border-left-color: #37b5ff; }
.app-update-banner.type-event { border-left-color: var(--orange); }
.app-update-banner > div { min-width: 0; display: grid; flex: 1; gap: 2px; }
.app-update-banner strong { font-size: .78rem; }
.app-update-banner span { color: #d5e0dc; font-size: .68rem; line-height: 1.4; }
.app-update-banner a { flex: 0 0 auto; color: #ffd47b; font-size: .68rem; font-weight: 900; }
.app-update-banner button { width: 28px; height: 28px; border: 0; border-radius: 9px; background: rgba(255,255,255,.1); color: white; cursor: pointer; }

@media (max-width: 820px) {
  body { background: var(--evergreen-950); }

  .app-shell {
    --mobile-nav-height: calc(69px + var(--device-safe-bottom));
    grid-template-rows: calc(64px + var(--device-safe-top)) minmax(0, 1fr);
    min-height: 0;
    padding-bottom: var(--mobile-nav-height);
    background: var(--paper);
  }

  .app-header { grid-row: 1; padding: var(--device-safe-top) 13px 0; }
  .brand { gap: 8px; }
  .brand img { width: 41px; height: 41px; border-radius: 11px; }
  .brand-copy { gap: 3px; }
  .brand-title { gap: 5px; }
  .brand-title strong { font-size: 1.03rem; }
  .brand-guide { font-size: 0.83rem; }
  .brand-tagline { max-width: 166px; font-size: 0.58rem; letter-spacing: 0.02em; }

  .weather-pill { min-height: 39px; padding: 5px 8px 5px 6px; border-radius: 12px; }
  .weather-symbol { width: 28px; height: 28px; border-radius: 9px; font-size: 1rem; }
  .weather-pill strong { font-size: 0.67rem; }
  .weather-pill small { display: none; }
  .icon-button { width: 39px; height: 39px; border-radius: 12px; font-size: 1.25rem; }

  .explore-layout {
    grid-row: 2;
    display: block;
    min-height: 0;
    overflow: hidden;
  }

  .discovery-panel {
    position: absolute;
    z-index: 410;
    top: 0;
    right: 0;
    left: 0;
    height: auto;
    overflow: visible;
    padding: 12px 13px 0;
    background: linear-gradient(180deg, rgba(3, 43, 37, 0.93), rgba(3, 43, 37, 0.72) 72%, transparent);
    box-shadow: none;
    pointer-events: none;
  }

  .welcome-block, .filter-row, .category-browser-button, .desktop-show-all-button, .desktop-resource-links, .panel-toolbar, .featured-card, .place-list, .source-note { display: none; }
  .search-wrap { pointer-events: auto; }
  .search-wrap { min-height: 47px; padding: 4px 5px 4px 13px; border: 1px solid rgba(255, 255, 255, 0.56); border-radius: 15px; background: rgba(255, 253, 248, 0.98); box-shadow: var(--shadow-md); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .search-wrap input { height: 37px; font-size: 0.83rem; }
  .search-wrap button { height: 36px; }

  .map-panel { position: absolute; inset: 0; }
  .map-brand-card { display: none; }
  .map-controls { top: 74px; right: 12px; }
  .map-control-button { width: 40px; height: 40px; border-radius: 12px; }
  .map-control-button { background: rgba(255, 253, 248, 0.98); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .map-marker { transition: none; box-shadow: 0 3px 8px rgba(5, 35, 28, 0.26); }
  #map.is-map-moving .map-marker { box-shadow: none; }
  #map.is-map-moving .map-marker-composition { transition: none; }
  #map.is-map-moving .map-marker.is-active { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.68); }
  #map.is-map-moving .map-marker-name { box-shadow: none; }

  .map-list-toggle {
    position: absolute;
    z-index: 420;
    right: 13px;
    bottom: 19px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 13px;
    border: 0;
    border-radius: 13px;
    background: var(--evergreen-950);
    color: white;
    box-shadow: var(--shadow-md);
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
  }

  .map-list-toggle > span:first-child { font-size: 1rem; }

  .mobile-discovery-sheet {
    position: fixed;
    z-index: 430;
    right: 0;
    bottom: var(--mobile-nav-height);
    left: 0;
    display: block;
    height: min(43dvh, 390px);
    padding: 0 13px 16px;
    overflow: hidden;
    border-radius: 23px 23px 0 0;
    background: var(--cream);
    box-shadow: 0 -10px 38px rgba(3, 37, 30, 0.23);
    transform: translateY(calc(100% - 70px));
    transition: transform 250ms cubic-bezier(.2, .8, .2, 1), height 250ms ease;
  }

  .mobile-discovery-sheet.is-open { transform: translateY(0); }
  .mobile-discovery-sheet.is-expanded {
    top: calc(123px + var(--device-safe-top));
    bottom: var(--mobile-nav-height);
    height: auto;
    transform: translateY(0);
  }

  .sheet-handle {
    display: grid;
    place-items: center;
    width: 100%;
    height: 27px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .sheet-handle span { width: 39px; height: 4px; border-radius: 999px; background: #c4ccc8; }
  .mobile-sheet-heading { height: 39px; }
  .mobile-sheet-summary { flex: 1; align-self: stretch; }
  .mobile-sheet-summary span { white-space: nowrap; }
  .mobile-discovery-sheet:not(.is-open) .mobile-sheet-heading .compact-toggle { display: none; }
  .mobile-place-list { max-height: calc(100% - 66px); margin-top: 8px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
  .mobile-place-list .place-card { min-height: 67px; background: var(--paper); }

  .bottom-nav {
    position: fixed;
    z-index: 2000;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    width: 100%;
    height: var(--mobile-nav-height);
    padding: 5px 8px var(--device-safe-bottom);
    border-top: 1px solid #dbe1dd;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 -4px 18px rgba(7, 40, 33, 0.08);
    isolation: isolate;
    transform: translateZ(0);
  }

  body.has-mobile-dialog::before {
    position: fixed;
    z-index: 1800;
    inset: 0 0 calc(69px + var(--device-safe-bottom)) 0;
    background: rgba(1, 23, 19, 0.68);
    pointer-events: auto;
    content: "";
  }

  .nav-item {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #71807a;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
  }

  .nav-item > span:first-child { display: grid; place-items: center; min-height: 23px; font-size: 1.16rem; line-height: 1; }
  .nav-item > span:last-child { width: 100%; text-align: center; line-height: 1; }
  .nav-item-home { gap: 1px; }
  .nav-item-copy { display: grid; justify-items: center; gap: 1px; line-height: 1.05; }
  .nav-item-copy strong { font-size: 0.75rem; }
  .nav-item-copy small { max-width: 86px; font-size: 0.45rem; font-weight: 650; line-height: 1.05; }
  .nav-item.is-active { color: var(--evergreen-900); }
  .nav-item.is-active > span:first-child { color: var(--orange); }

  .place-dialog {
    z-index: 1900;
    inset: auto 0 calc(69px + var(--device-safe-bottom));
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 69px - var(--device-safe-bottom) - max(12px, var(--device-safe-top)));
    margin: 0;
    border-radius: 25px 25px 0 0;
  }

  .place-dialog[open], .drawer-dialog[open] { animation: sheet-in 220ms ease-out; }
  .dialog-body { padding: 22px 20px max(24px, var(--device-safe-bottom)); }

  .drawer-dialog {
    z-index: 1900;
    inset: auto 0 calc(69px + var(--device-safe-bottom));
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 69px - var(--device-safe-bottom) - max(12px, var(--device-safe-top)));
    margin: 0;
    border-radius: 25px 25px 0 0;
  }

  .drawer-dialog.category-dialog {
    width: calc(100% - 24px);
    max-width: 480px;
    height: min(74dvh, 620px);
    max-height: min(74dvh, 620px);
    inset: auto 12px calc(78px + var(--device-safe-bottom));
    margin: 0 auto;
    overflow: hidden;
    border-radius: 23px;
  }

  .drawer-dialog.category-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    animation: none;
  }

  .category-dialog .directory-picker-scroll {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .toast { bottom: calc(80px + var(--device-safe-bottom)); }
  .app-update-banner { top: 72px; align-items: start; width: calc(100vw - 22px); }
  .app-update-banner a { align-self: center; }
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 410px) {
  .app-header { padding: var(--device-safe-top) 10px 0; }
  .brand { gap: 7px; }
  .brand img { width: 39px; height: 39px; }
  .brand-title { gap: 4px; }
  .brand-title strong { font-size: 0.92rem; }
  .brand-guide { display: inline; font-size: 0.72rem; }
  .brand-tagline { display: block; max-width: 160px; font-size: 0.56rem; letter-spacing: 0.01em; }
  .header-actions { gap: 7px; }
  .weather-pill > span:last-child { display: none; }
  .weather-pill { width: 39px; padding: 5px; justify-content: center; }
  .search-wrap button > span:last-child { display: none; }
  .search-wrap button { width: 36px; padding: 0; justify-content: center; }
  .dialog-actions { grid-template-columns: 1fr; }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .explore-layout { grid-template-columns: 360px minmax(0, 1fr); }
  .discovery-panel { padding-right: 18px; padding-left: 18px; }
  .filter-row { margin-right: 0; margin-left: 0; padding-right: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mobile-sheet-summary .mobile-sheet-action.is-ready {
    color: #126bd6;
    opacity: 1;
    animation: none !important;
    transform: none;
    text-decoration: underline;
    text-decoration-style: dotted;
  }
}

@media (prefers-contrast: more) {
  .place-card, .filter-chip, .search-wrap { border-color: #68756f; }
  .place-card-copy > strong, .welcome-block h1 { color: #001b16; }
}
