:root {
  color-scheme: light;
  --ink: #17323a;
  --ink-soft: #526970;
  --paper: #fffdf4;
  --cream: #fff4c7;
  --cream-deep: #f8df85;
  --teal: #167a72;
  --teal-dark: #0c5b56;
  --teal-soft: #d9f4ed;
  --sky: #dff4ff;
  --line: #c9d6d2;
  --shadow: 0 12px 0 rgba(23, 50, 58, 0.12), 0 20px 44px rgba(23, 50, 58, 0.18);
  --shadow-small: 0 5px 0 rgba(23, 50, 58, 0.13), 0 9px 20px rgba(23, 50, 58, 0.15);
  --historic: #d45f4d;
  --culture: #8a61c4;
  --schools: #5367b5;
  --parks: #3c9365;
  --recreation: #287bc1;
  --food: #df8a25;
  --visitor: #197f8f;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--sky);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Avenir Next", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
a {
  font: inherit;
}

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

button:focus-visible,
input:focus-visible,
a:focus-visible,
#map:focus-visible {
  outline: 4px solid #ffcc38;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 3000;
  top: 8px;
  left: 50%;
  padding: 11px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  transform: translate(-50%, -180%);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.app-shell,
.map-stage,
#map {
  width: 100%;
  height: 100%;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.map-stage {
  position: absolute;
  inset: 0;
}

#map {
  z-index: 0;
  background: #d9efe8;
}

.leaflet-container {
  color: var(--ink);
  font-family: inherit;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 2px solid var(--ink) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow-small) !important;
}

.leaflet-control-zoom a {
  width: 42px !important;
  height: 42px !important;
  color: var(--ink) !important;
  line-height: 40px !important;
}

.leaflet-control-attribution {
  max-width: min(78vw, 720px);
  padding: 2px 4px !important;
  color: var(--ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 700;
  line-height: 1.25;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.96),
    1px -1px 0 rgba(255, 255, 255, 0.96),
    -1px 1px 0 rgba(255, 255, 255, 0.96),
    1px 1px 0 rgba(255, 255, 255, 0.96),
    0 0 3px rgba(255, 255, 255, 0.96);
}

.leaflet-control-attribution a {
  color: inherit !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

.map-status {
  position: absolute;
  z-index: 800;
  top: 50%;
  left: 50%;
  display: flex;
  max-width: calc(100% - 32px);
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-small);
  font-size: 13px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.map-status[data-state="ready"] {
  visibility: hidden;
  opacity: 0;
}

.map-status[data-state="error"] {
  color: #7a231d;
  background: #fff0eb;
  border-color: #a43e32;
}

.status-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 3px solid #b9ddd6;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.map-status[data-state="error"] .status-spinner {
  display: none;
}

.map-badge {
  position: absolute;
  z-index: 700;
  top: max(12px, env(safe-area-inset-top));
  min-height: 46px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  box-shadow: var(--shadow-small);
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 7px;
  background: var(--cream);
  transform: rotate(-1deg);
}

.map-badge > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  font-size: 19px;
}

.map-badge strong {
  font-size: 13px;
}

.map-style-control {
  position: absolute;
  z-index: 700;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  width: min(286px, calc(100vw - 78px));
  padding: 5px;
  color: var(--ink);
  background: rgba(255, 253, 244, 0.97);
  border: 2px solid var(--ink);
  border-radius: 17px;
  box-shadow: var(--shadow-small);
}

.map-style-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.map-style-button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.map-style-button:hover {
  background: var(--teal-soft);
}

.map-style-button[aria-pressed="true"] {
  color: #fff;
  background: var(--teal);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.map-style-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.illustration-options {
  margin-top: 5px;
  padding: 7px 7px 5px;
  border-top: 1px dashed rgba(23, 50, 58, 0.3);
}

.illustration-opacity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 10px;
  font-weight: 900;
}

.illustration-opacity output {
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
}

#illustrationOpacity {
  width: 100%;
  height: 44px;
  margin: -1px 0 -3px;
  accent-color: var(--teal);
  cursor: pointer;
}

.map-style-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
}

.map-credits-note {
  margin: 7px 7px 2px;
  padding-top: 7px;
  color: var(--ink-soft);
  border-top: 1px dashed rgba(23, 50, 58, 0.3);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.map-credits-note a {
  color: var(--teal-dark);
  font-weight: 900;
  text-underline-offset: 2px;
}

.illustration-options[hidden] {
  display: none !important;
}

.explore-panel {
  position: fixed;
  z-index: 1000;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 8px;
  display: flex;
  max-height: min(44vh, 430px);
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel-header {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 16px 13px;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 2px dashed rgba(23, 50, 58, 0.3);
}

.panel-header::after {
  position: absolute;
  top: -22px;
  right: -18px;
  width: 94px;
  height: 94px;
  content: "";
  background: rgba(255, 255, 255, 0.42);
  border: 3px solid rgba(23, 50, 58, 0.08);
  border-radius: 50%;
}

.home-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  margin: -5px 0 2px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.home-link:hover {
  text-decoration: underline;
}

.title-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compass-sticker {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px 50% 50% 50%;
  box-shadow: 3px 4px 0 rgba(23, 50, 58, 0.17);
  font-size: 27px;
  transform: rotate(-4deg);
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 8vw, 34px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.intro {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #385158;
  font-size: 12px;
  line-height: 1.4;
}

.panel-body {
  flex: 1 1 auto;
  padding: 14px 14px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #b8c8c3 transparent;
  scrollbar-width: thin;
}

.search-box > label,
.filter-group legend {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap > span {
  position: absolute;
  left: 13px;
  color: var(--teal);
  font-size: 24px;
  font-weight: 900;
  pointer-events: none;
  transform: rotate(-16deg);
}

.search-input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 45px 0 41px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 15px;
  font-size: 14px;
}

.search-input-wrap input::placeholder {
  color: #7a8b90;
}

.search-input-wrap input:focus {
  border-color: var(--teal);
}

.clear-search {
  position: absolute;
  right: 6px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 23px;
}

.clear-search:hover {
  color: var(--ink);
  background: #edf5f2;
}

.filter-group {
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--chip-color);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

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

.filter-chip[aria-pressed="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--chip-color), white 76%);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--chip-color), #000 22%);
}

.filter-chip__icon {
  font-size: 16px;
}

.filter-chip__count {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 9px;
}

.explore-actions {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
  margin-top: 14px;
}

.contact-email-card {
  display: block;
  margin-top: 11px;
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(23, 50, 58, 0.13);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.contact-email-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.contact-email-card:hover {
  box-shadow: 0 6px 0 rgba(23, 50, 58, 0.17);
  transform: translateY(-2px);
}

.contact-email-card:active {
  box-shadow: 0 2px 0 rgba(23, 50, 58, 0.12);
  transform: translateY(2px);
}

.contact-email-card:focus-visible {
  outline: 4px solid rgba(28, 161, 142, 0.34);
  outline-offset: 3px;
}

.action-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 13px;
  box-shadow: 0 3px 0 rgba(23, 50, 58, 0.15);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.place-card__actions > [hidden] {
  display: none !important;
}

.action-button:hover {
  transform: translateY(-1px);
}

.action-button:active {
  box-shadow: none;
  transform: translateY(2px);
}

.action-button--primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal-dark);
}

.action-button--unavailable {
  color: var(--ink-soft);
  background: #eef2ef;
  border-color: #aab7b3;
  box-shadow: none;
  cursor: default;
}

.action-button--unavailable:hover,
.action-button--unavailable:active {
  box-shadow: none;
  transform: none;
}

.results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 1px 8px;
}

.results-heading p,
.results-heading span {
  margin: 0;
}

.results-heading p {
  font-size: 12px;
  font-weight: 900;
}

.results-heading span {
  color: var(--ink-soft);
  font-size: 9px;
}

.place-list {
  display: grid;
  gap: 8px;
}

.place-list-item {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #dbe4e1;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
}

.place-list-item:hover,
.place-list-item[aria-current="true"] {
  border-color: var(--item-color);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--item-color), transparent 70%);
}

.place-list-item__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: color-mix(in srgb, var(--item-color), white 78%);
  border: 2px solid var(--item-color);
  border-radius: 12px 50% 50% 50%;
  font-size: 19px;
}

.place-list-item__copy {
  min-width: 0;
}

.place-list-item__copy strong,
.place-list-item__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-list-item__copy strong {
  font-size: 12px;
}

.place-list-item__copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.place-list-item__arrow {
  color: var(--item-color);
  font-size: 18px;
  font-weight: 900;
}

.empty-state {
  margin: 4px 0 0;
  padding: 18px;
  color: var(--ink-soft);
  background: #f3f7f5;
  border: 2px dashed var(--line);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.panel-footer {
  display: none;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
  color: var(--ink-soft);
  background: #eef8f4;
  border-top: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.4;
}

.panel-footer p {
  margin: 0;
}

.welcome-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 16px 0 rgba(23, 50, 58, 0.16), 0 30px 90px rgba(23, 50, 58, 0.34);
}

.welcome-dialog::backdrop {
  background: rgba(12, 50, 53, 0.74);
  backdrop-filter: blur(5px);
}

.welcome-dialog form {
  position: relative;
  padding: clamp(26px, 6vw, 48px);
  background:
    radial-gradient(circle at 88% 12%, rgba(248, 223, 133, 0.52), transparent 28%),
    linear-gradient(145deg, #fffdf4, #f1fbf7);
}

.welcome-dialog__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 16px 50% 50% 50%;
  box-shadow: 0 4px 0 rgba(23, 50, 58, 0.16);
  font-size: 24px;
}

.welcome-dialog h2 {
  margin: 7px 0 18px;
  font-size: clamp(27px, 6vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.welcome-dialog__message {
  color: #334f56;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 3.2vw, 19px);
  line-height: 1.62;
}

.welcome-dialog__message p {
  margin: 0;
}

.welcome-dialog__message p + p {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 700;
}

.welcome-dialog__button {
  width: 100%;
  margin-top: 25px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .welcome-dialog {
    width: calc(100vw - 16px);
    border-radius: 22px;
  }

  .welcome-dialog form {
    padding: 24px 21px 22px;
  }

  .welcome-dialog__message {
    font-size: 15px;
    line-height: 1.55;
  }
}

.place-card {
  position: fixed;
  z-index: 1300;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 8px;
  max-height: min(68vh, 600px);
  padding: 19px 17px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
  animation: card-in 220ms ease-out both;
}

.card-close {
  position: absolute;
  z-index: 1;
  top: 11px;
  right: 11px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.place-card__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 45px;
}

.place-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  background: color-mix(in srgb, var(--card-color, var(--teal)), white 78%);
  border: 3px solid var(--card-color, var(--teal));
  border-radius: 16px 50% 50% 50%;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--card-color, var(--teal)), transparent 72%);
  font-size: 28px;
  transform: rotate(-3deg);
}

.place-card__category {
  display: inline-block;
  margin-bottom: 3px;
  padding: 3px 7px;
  color: var(--ink);
  background: color-mix(in srgb, var(--card-color, var(--teal)), white 78%);
  border: 1px solid var(--card-color, var(--teal));
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.place-card h2 {
  margin-bottom: 0;
  font-size: clamp(21px, 6.2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.place-card__summary {
  margin: 16px 0 12px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.5;
}

.story-note {
  padding: 13px 14px;
  background: color-mix(in srgb, var(--card-color, var(--teal)), white 88%);
  border-left: 5px solid var(--card-color, var(--teal));
  border-radius: 5px 14px 14px 5px;
}

.story-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.story-note p,
.place-tip {
  margin-bottom: 0;
  font-size: 11px;
  line-height: 1.5;
}

.place-location {
  position: relative;
  margin: 12px 0 0;
  padding-left: 24px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.place-location::before {
  position: absolute;
  left: 0;
  content: "📍";
}

.place-tip {
  position: relative;
  margin-top: 12px;
  padding-left: 24px;
  color: var(--ink-soft);
}

.place-tip::before {
  position: absolute;
  left: 0;
  content: "💡";
}

.place-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.place-card__actions > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.noscript-message {
  position: fixed;
  z-index: 5000;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100% - 32px));
  margin: 0;
  padding: 20px;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.sr-only {
  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;
}

.visitor-marker {
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
}

.nearby-place-cluster {
  background: transparent !important;
  border: 0 !important;
}

.nearby-place-cluster__bubble {
  display: grid;
  width: 48px;
  height: 48px;
  place-content: center;
  color: var(--ink);
  background: #fff4e8;
  border: 3px solid var(--historic);
  border-radius: 50% 44% 48% 46%;
  box-shadow: 0 0 0 2px var(--ink), 4px 5px 0 rgba(23, 50, 58, 0.2);
  line-height: 0.85;
  text-align: center;
  transform: rotate(-3deg);
  transition: transform 150ms ease;
}

.nearby-place-cluster__bubble strong {
  font-size: 18px;
  font-weight: 950;
}

.nearby-place-cluster__bubble span {
  margin-top: 3px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nearby-place-cluster:hover .nearby-place-cluster__bubble,
.nearby-place-cluster:focus .nearby-place-cluster__bubble {
  transform: rotate(0) scale(1.1);
}

.geographic-label-marker {
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
  background: none !important;
  border: 0 !important;
  overflow: visible !important;
}

#map[data-geographic-label-scale="far"] {
  --geographic-label-max-width: 132px;
  --geographic-label-padding: 2px 4px;
  --geographic-label-radius: 6px 5px 7px 4px;
  --geographic-label-font-size: 8px;
  --geographic-label-line-height: 1.06;
  --geographic-label-offset: 6px;
}

#map[data-geographic-label-scale="mid"] {
  --geographic-label-max-width: 160px;
  --geographic-label-padding: 3px 5px 2px;
  --geographic-label-radius: 7px 6px 8px 5px;
  --geographic-label-font-size: 9px;
  --geographic-label-line-height: 1.1;
  --geographic-label-offset: 8px;
}

#map[data-geographic-label-scale="near"] {
  --geographic-label-max-width: 190px;
  --geographic-label-padding: 4px 7px 3px;
  --geographic-label-radius: 8px 7px 9px 6px;
  --geographic-label-font-size: 11px;
  --geographic-label-line-height: 1.15;
  --geographic-label-offset: 10px;
}

.geographic-label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: max-content;
  max-width: var(--geographic-label-max-width, 190px);
  padding: var(--geographic-label-padding, 4px 7px 3px);
  color: #17323a;
  background: rgba(255, 253, 244, 0.84);
  border: 1px solid rgba(23, 50, 58, 0.28);
  border-radius: var(--geographic-label-radius, 8px 7px 9px 6px);
  box-shadow: 1px 2px 0 rgba(23, 50, 58, 0.16);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: var(--geographic-label-font-size, 11px);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: var(--geographic-label-line-height, 1.15);
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%);
  transition: opacity 100ms ease;
}

.geographic-label-marker.is-visible .geographic-label {
  opacity: 1;
}

#map[data-geographic-labels-zooming="true"] .geographic-label {
  opacity: 0 !important;
  transition: none;
}

.geographic-label-marker--left .geographic-label {
  right: var(--geographic-label-offset, 10px);
  left: auto;
  text-align: right;
  transform: translateY(-50%);
}

.geographic-label-marker--right .geographic-label {
  left: var(--geographic-label-offset, 10px);
  text-align: left;
  transform: translateY(-50%);
}

.geographic-label-marker--owned.geographic-label-marker--left .geographic-label {
  right: 34px;
}

.geographic-label-marker--owned.geographic-label-marker--right .geographic-label {
  left: 34px;
}

.geographic-label-marker--community .geographic-label {
  color: #6f3e23;
  background: rgba(255, 246, 220, 0.88);
  border-color: rgba(111, 62, 35, 0.34);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.geographic-label-marker--park .geographic-label,
.geographic-label-marker--protected-area .geographic-label {
  color: #185a3d;
  background: rgba(235, 249, 219, 0.88);
  border-color: rgba(24, 90, 61, 0.34);
}

.geographic-label-marker--historic-landscape .geographic-label {
  color: #8a352e;
  background: rgba(255, 238, 219, 0.9);
  border-color: rgba(138, 53, 46, 0.36);
}

.geographic-label-marker--recreation-area .geographic-label {
  color: #175c91;
  background: rgba(229, 245, 255, 0.9);
  border-color: rgba(23, 92, 145, 0.34);
}

.geographic-label-marker--district .geographic-label {
  color: #604083;
  background: rgba(247, 238, 255, 0.88);
  border-color: rgba(96, 64, 131, 0.34);
}

.geographic-label-marker--corridor .geographic-label {
  color: #734b14;
  background: rgba(255, 241, 189, 0.92);
  border-color: rgba(115, 75, 20, 0.38);
}

.geographic-label-marker--water .geographic-label {
  color: #176e97;
  background: rgba(229, 248, 255, 0.86);
  border-color: rgba(23, 110, 151, 0.3);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.035em;
}

#app[data-map-style="satellite"] .geographic-label {
  background: rgba(255, 253, 244, 0.96);
  border-color: rgba(23, 50, 58, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.82), 2px 3px 0 rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 0 #fff, 0 0 3px rgba(255, 255, 255, 0.95);
}

.marker-bubble {
  position: relative;
  display: block;
  width: 44px;
  height: 52px;
}

.marker-pin-visual {
  position: absolute;
  inset: 0;
  display: block;
  width: 44px;
  height: 52px;
  filter: drop-shadow(3px 4px 0 rgba(23, 50, 58, 0.22));
  transform-origin: 50% 94%;
  transition: filter 150ms ease, transform 150ms ease;
}

.marker-pin-shape {
  position: absolute;
  /* Leaflet assigns pane SVGs z-index: 200; this inline marker SVG must stay behind its glyph. */
  z-index: 0 !important;
  inset: 0;
  display: block;
  width: 44px;
  height: 52px;
  overflow: visible;
}

.marker-pin-outline,
.marker-pin-body {
  vector-effect: non-scaling-stroke;
}

.marker-pin-outline {
  fill: var(--marker-color);
  stroke: var(--ink);
  stroke-linejoin: round;
  stroke-width: 5px;
}

.marker-pin-body {
  fill: var(--marker-color);
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 2.5px;
}

.marker-pin-glyph {
  position: absolute;
  z-index: 1;
  top: 21px;
  left: 50%;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 18px;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.visitor-marker:hover .marker-pin-visual,
.visitor-marker:focus .marker-pin-visual,
.visitor-marker.is-selected .marker-pin-visual {
  filter: drop-shadow(3px 6px 0 rgba(23, 50, 58, 0.18));
  transform: translateY(-3px) scale(1.1);
}

.visitor-marker:focus,
.visitor-marker.is-selected {
  z-index: 1000 !important;
}

.marker-label {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 51px;
  display: none;
  width: max-content;
  max-width: 170px;
  padding: 6px 8px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 253, 244, 0.96);
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 2px 3px 0 rgba(23, 50, 58, 0.15);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-marker.has-label-left .marker-label {
  right: 51px;
  left: auto;
}

.visitor-marker.has-label-right .marker-label {
  right: auto;
  left: 51px;
}

#app[data-map-labels="show"] .visitor-marker:not(.visitor-marker--close-pair) .marker-label,
#app[data-map-labels="show"] .visitor-marker--close-pair.is-label-visible .marker-label,
.visitor-marker:hover .marker-label,
.visitor-marker:focus .marker-label,
.visitor-marker.is-selected .marker-label {
  display: block;
}

.visitor-marker.is-label-measuring .marker-label {
  display: block;
  opacity: 0;
}

.place-tooltip.leaflet-tooltip {
  padding: 7px 9px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 2px 3px 0 rgba(23, 50, 58, 0.16);
  font-size: 10px;
  font-weight: 900;
}

.place-tooltip.leaflet-tooltip::before {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 860px) {
  .leaflet-control-zoom {
    margin-top: 176px !important;
  }

  .map-badge {
    top: 18px;
    left: 404px;
  }

  .map-style-control {
    top: 18px;
    right: 18px;
  }

  .explore-panel {
    top: 16px;
    right: auto;
    bottom: 16px;
    left: 16px;
    width: 364px;
    max-height: none;
    border-radius: 27px;
  }

  .panel-header {
    padding: 16px 19px 17px;
  }

  .panel-body {
    padding: 16px 17px 22px;
  }

  .panel-footer {
    display: flex;
  }

  .place-card {
    right: 18px;
    bottom: 18px;
    left: auto;
    width: min(390px, calc(100vw - 420px));
    min-width: 340px;
    padding: 22px;
    border-radius: 27px;
  }

  .leaflet-left .leaflet-control {
    margin-left: 400px;
  }

  .leaflet-bottom.leaflet-left .leaflet-control {
    margin-left: 392px;
  }

  .leaflet-control-attribution {
    max-width: min(720px, calc(100vw - 410px));
  }
}

@media (max-width: 859px) {
  .leaflet-control-zoom {
    margin-top: 170px !important;
  }

  .leaflet-bottom {
    bottom: calc(min(44vh, 430px) + 12px) !important;
  }

  .leaflet-control-attribution {
    max-width: calc(100vw - 16px);
  }

  .map-status {
    top: 28%;
  }

  .place-card {
    max-height: min(66vh, 620px);
  }
}

@media (max-width: 480px) {
  .map-badge strong {
    display: none;
  }

  .map-badge {
    padding-right: 7px;
  }
}

@media (max-width: 420px) {
  .leaflet-control-zoom {
    margin-top: 184px !important;
  }

  .map-style-control {
    right: 7px;
    width: min(272px, calc(100vw - 70px));
  }

  .map-style-button {
    padding: 0 4px;
    font-size: 10px;
  }

  .explore-panel {
    max-height: 46vh;
    border-radius: 21px;
  }

  .panel-header {
    padding: 11px 13px 10px;
  }

  .home-link {
    min-height: 28px;
    margin-top: -3px;
  }

  .compass-sticker {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    font-size: 23px;
  }

  .intro {
    display: none;
  }

  .panel-body {
    padding: 11px 11px 18px;
  }

  h1 {
    font-size: 25px;
  }

  .filter-chip {
    padding: 0 8px;
    font-size: 10px;
  }

  .filter-chip__count {
    display: none;
  }

  .place-card {
    right: 0;
    bottom: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .explore-panel {
    top: 8px;
    right: auto;
    bottom: 8px;
    left: 8px;
    width: min(345px, 46vw);
    max-height: none;
  }

  .panel-header {
    padding: 9px 13px;
  }

  .intro,
  .panel-footer {
    display: none;
  }

  .map-stage {
    padding-bottom: 0;
  }

  .map-badge {
    display: none;
  }

  .leaflet-left .leaflet-control {
    margin-left: calc(min(345px, 46vw) + 18px);
  }

  .leaflet-bottom {
    bottom: 0 !important;
  }

  .place-card {
    right: 8px;
    bottom: 8px;
    left: auto;
    width: min(370px, 48vw);
    max-height: calc(100vh - 16px);
  }
}

/* Compact map controls and the slide-out place explorer. */
.explore-panel-toggle {
  position: fixed;
  z-index: 1200;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  display: inline-flex;
  min-width: 116px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px 0 9px;
  color: #fff;
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 15px;
  box-shadow: var(--shadow-small);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.explore-panel-toggle:hover {
  background: var(--teal-dark);
}

.explore-panel-toggle__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border-radius: 9px;
  font-size: 21px;
  line-height: 1;
}

.explore-panel {
  top: calc(max(12px, env(safe-area-inset-top)) + 58px);
  right: auto;
  bottom: max(42px, calc(env(safe-area-inset-bottom) + 32px));
  left: max(12px, env(safe-area-inset-left));
  width: min(326px, calc(100vw - 56px));
  max-height: none;
  border-radius: 21px;
  pointer-events: none;
  transform: translateX(calc(-100% - 24px));
  transition: transform 230ms cubic-bezier(0.22, 0.85, 0.35, 1);
  will-change: transform;
}

.explore-panel[data-open="true"] {
  pointer-events: auto;
  transform: translateX(0);
}

.panel-header {
  padding: 10px 13px 11px;
}

.home-link {
  min-height: 44px;
  margin: -7px 0 0;
}

.title-lockup {
  gap: 9px;
}

.compass-sticker {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 13px 50% 50% 50%;
  font-size: 23px;
}

h1 {
  font-size: clamp(24px, 7vw, 28px);
}

.intro {
  margin-top: 7px;
  font-size: 11px;
}

.panel-body {
  min-height: 0;
  padding: 12px 12px 18px;
}

.filter-group {
  margin-top: 13px;
}

.filter-chips {
  gap: 6px;
}

.clear-search {
  right: 3px;
  width: 44px;
  height: 44px;
}

.panel-footer {
  display: none;
}

.map-style-control {
  z-index: 1200;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-style-toggle {
  display: grid;
  width: 158px;
  min-height: 48px;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 7px;
  padding: 4px 8px 4px 6px;
  color: var(--ink);
  background: rgba(255, 253, 244, 0.98);
  border: 2px solid var(--ink);
  border-radius: 15px;
  box-shadow: var(--shadow-small);
  cursor: pointer;
  text-align: left;
}

.map-style-toggle:hover {
  background: #fff;
}

.map-style-toggle__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--teal-soft);
  border-radius: 10px;
  font-size: 18px;
}

.map-style-toggle__copy {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.map-style-toggle__copy small {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-style-toggle__copy strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-style-toggle__chevron {
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease;
}

.map-style-toggle[aria-expanded="true"] .map-style-toggle__chevron {
  transform: rotate(180deg);
}

.map-style-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: min(286px, calc(100vw - 24px));
  padding: 5px;
  color: var(--ink);
  background: rgba(255, 253, 244, 0.98);
  border: 2px solid var(--ink);
  border-radius: 17px;
  box-shadow: var(--shadow-small);
}

.map-style-menu[hidden] {
  display: none;
}

.leaflet-control-zoom {
  margin-top: 70px !important;
  margin-right: max(12px, env(safe-area-inset-right)) !important;
}

.app-shell[data-map-style-menu-open="true"] .leaflet-control-zoom {
  margin-top: 220px !important;
}

.map-badge {
  top: max(12px, env(safe-area-inset-top));
  left: 142px;
}

.leaflet-left .leaflet-control,
.leaflet-bottom.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-bottom {
  bottom: 0 !important;
}

.leaflet-control-attribution {
  max-width: min(78vw, 720px);
}

@media (min-width: 860px) {
  .explore-panel {
    top: 72px;
    bottom: 16px;
    left: 16px;
    width: 332px;
    border-radius: 24px;
  }

  .app-shell[data-explore-open="true"] .leaflet-bottom.leaflet-left .leaflet-control {
    margin-left: 358px;
  }

  .app-shell[data-explore-open="true"] .leaflet-control-attribution {
    max-width: min(720px, calc(100vw - 372px));
  }
}

@media (max-width: 620px) {
  #map[data-geographic-label-scale="far"] {
    --geographic-label-max-width: 120px;
    --geographic-label-padding: 2px 3px;
    --geographic-label-font-size: 8px;
    --geographic-label-line-height: 1.05;
    --geographic-label-offset: 5px;
  }

  #map[data-geographic-label-scale="mid"] {
    --geographic-label-max-width: 138px;
    --geographic-label-padding: 2px 4px;
    --geographic-label-font-size: 9px;
    --geographic-label-line-height: 1.08;
    --geographic-label-offset: 7px;
  }

  #map[data-geographic-label-scale="near"] {
    --geographic-label-max-width: 148px;
    --geographic-label-padding: 3px 5px;
    --geographic-label-font-size: 10px;
    --geographic-label-line-height: 1.12;
    --geographic-label-offset: 8px;
  }

  .map-badge {
    display: none;
  }

  .map-status {
    top: 50%;
  }
}

@media (max-width: 360px) {
  .explore-panel-toggle {
    width: 48px;
    min-width: 48px;
    padding: 0;
  }

  #explorePanelToggleLabel {
    display: none;
  }

  .map-style-toggle {
    width: 148px;
  }
}

.app-shell[data-place-card-open="true"] .leaflet-bottom {
  bottom: calc(var(--place-card-clearance, min(66vh, 620px)) + 12px) !important;
}

@media (max-height: 620px) and (orientation: landscape) {
  .app-shell[data-place-card-open="true"] .leaflet-bottom {
    bottom: 0 !important;
  }

  .app-shell[data-place-card-open="true"] .leaflet-control-attribution {
    max-width: calc(52vw - 28px);
    margin-right: calc(min(370px, 48vw) + 16px);
  }
}

@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;
  }
}

@media (forced-colors: active) {
  .marker-bubble,
  .nearby-place-cluster__bubble,
  .place-card__icon,
  .place-list-item__icon {
    forced-color-adjust: none;
  }
}
