/* The live map already owns nearby context. A delayed proximity toast must
   not cover map controls, especially on a short landscape screen. */
body.mobile-map-visible .proximity-toast {
  display: none !important;
}

.island-map-section.map-app {
  --map-forest: #102e26;
  --map-sea: #416b70;
  --map-paper: #f4f0e5;
  --map-lime: #d9f044;
  --map-rust: #8d351f;
  --map-line: rgba(16, 46, 38, 0.18);
  position: relative;
  width: min(1380px, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 5rem) auto;
  padding: 0;
  overflow: visible;
  background: var(--map-paper);
  color: var(--map-forest);
  scroll-margin-top: 0;
}

.map-app-head {
  position: absolute;
  z-index: 8;
  top: 14px;
  left: 14px;
  right: 14px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(16, 46, 38, 0.96);
  padding: 0.55rem 0.65rem 0.55rem 0.9rem;
  color: #fff;
  box-shadow: 0 12px 30px rgba(7, 27, 21, 0.2);
}

.map-app-head .eyebrow {
  margin: 0 0 0.08rem;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
}

.map-app-head h2 {
  margin: 0;
  color: #fff;
  font: 400 1.45rem/0.95 "Instrument Serif", serif;
}

.map-attribution {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font: 800 0.75rem/1 "DM Sans", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.map-attribution:hover,
.map-attribution:focus-visible {
  color: var(--map-lime);
}

.map-attribution-stage {
  position: absolute;
  z-index: 6;
  left: 14px;
  bottom: 170px;
  min-height: 28px;
  border: 1px solid rgba(16, 46, 38, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0 0.5rem;
  color: rgba(16, 46, 38, 0.72);
  font-size: 0.56rem;
  box-shadow: 0 4px 12px rgba(7, 27, 21, 0.12);
}

.map-attribution-stage:hover,
.map-attribution-stage:focus-visible {
  color: var(--map-forest);
}

.map-scale {
  position: absolute;
  z-index: 6;
  left: 14px;
  bottom: 207px;
  min-width: 54px;
  display: grid;
  justify-items: start;
  gap: 0.22rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.36rem 0.45rem 0.32rem;
  color: var(--map-forest);
  box-shadow: 0 4px 12px rgba(7, 27, 21, 0.12);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

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

.map-scale-line {
  width: 54px;
  height: 6px;
  display: block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.map-scale strong {
  font: 900 0.54rem/1 "DM Sans", sans-serif;
  letter-spacing: 0.01em;
}

.map-search-trigger {
  min-width: 112px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 0.8rem;
  color: #fff;
  font: 700 0.68rem/1 "DM Sans", sans-serif;
}

.map-search-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.map-primary-controls {
  position: absolute;
  z-index: 8;
  top: 82px;
  left: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(64px, auto));
  gap: 0.4rem;
}

.map-primary-controls button,
.map-more-controls button {
  min-height: 48px;
  border: 1px solid rgba(16, 46, 38, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.45rem 0.82rem;
  color: var(--map-forest);
  font: 800 0.64rem/1 "DM Sans", sans-serif;
  box-shadow: 0 7px 20px rgba(7, 27, 21, 0.13);
  white-space: nowrap;
}

.map-primary-controls button span {
  display: block;
  min-height: 13px;
  margin-bottom: 0.18rem;
  color: var(--map-rust);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.map-primary-controls button svg {
  width: 17px;
  height: 17px;
  display: block;
  margin: 0 auto 0.18rem;
  fill: none;
  stroke: var(--map-rust);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-primary-controls button[data-mobile-map-filter="more"] svg {
  fill: var(--map-rust);
  stroke: none;
}

.map-primary-controls button[hidden] {
  display: none;
}

.map-primary-controls button.active {
  border-color: var(--map-forest);
  background: var(--map-lime);
  box-shadow: 0 9px 24px rgba(7, 27, 21, 0.19);
}

.map-more-controls {
  position: absolute;
  z-index: 10;
  top: 140px;
  left: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(116px, 1fr));
  gap: 0.42rem;
  width: min(360px, calc(100% - 28px));
  border: 1px solid rgba(16, 46, 38, 0.16);
  border-radius: 20px;
  background: rgba(244, 240, 229, 0.98);
  padding: 0.6rem;
  box-shadow: 0 18px 42px rgba(7, 27, 21, 0.25);
}

.map-more-controls[hidden] {
  display: none;
}

.map-more-controls button {
  width: 100%;
  box-shadow: none;
}

.map-more-controls button.active {
  border-color: var(--map-forest);
  background: var(--map-lime);
}

.map-more-controls .map-trip-ready {
  grid-column: 1 / -1;
  min-height: 46px;
  border-color: rgba(16, 46, 38, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--map-forest);
  font-weight: 750;
}

.map-style-control {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr) minmax(72px, 1fr);
  align-items: center;
  gap: 0.38rem;
  border-top: 1px solid rgba(16, 46, 38, 0.12);
  padding-top: 0.5rem;
}

.map-style-control > span {
  padding: 0 0.35rem 0 0.18rem;
  color: rgba(16, 46, 38, 0.68);
  font: 800 0.58rem/1 "DM Sans", sans-serif;
}

.map-more-controls .map-style-control button {
  min-height: 44px;
  padding-inline: 0.58rem;
}

.map-more-controls .map-route-builder {
  grid-column: 1 / -1;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  border-color: var(--map-forest);
  border-radius: 17px;
  background: var(--map-forest);
  color: #fff;
  padding: 0.55rem 0.7rem;
  text-align: left;
  white-space: normal;
}

.map-route-builder strong,
.map-route-builder small {
  display: block;
}

.map-route-builder strong {
  align-self: end;
  font-size: 0.72rem;
}

.map-route-builder small {
  align-self: start;
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.56rem;
  font-weight: 700;
}

.map-more-controls .map-route-builder.active {
  background: var(--map-lime);
  color: var(--map-forest);
}

.map-more-controls .map-route-builder.active small {
  color: rgba(16, 46, 38, 0.68);
}

.map-stage {
  position: relative;
  height: min(78dvh, 780px);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(16, 46, 38, 0.2);
  border-radius: 32px;
  background: var(--map-sea);
  box-shadow: 0 24px 60px rgba(7, 27, 21, 0.18);
  isolation: isolate;
}

#moen-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.map-stage.map-is-zoomed #moen-map {
  touch-action: none;
  cursor: grab;
}

.map-stage.map-is-dragging #moen-map {
  cursor: grabbing;
}

.map-stage.map-route-editing:not(.map-is-dragging) #moen-map {
  cursor: crosshair;
}

#moen-map .map-water-fill {
  fill: var(--map-sea);
}

#moen-map .map-coast-shadow {
  fill: none;
  stroke: rgba(7, 27, 21, 0.22);
  stroke-width: 14;
  vector-effect: non-scaling-stroke;
}

#moen-map .island-shape {
  fill: #eee9dc;
  stroke: rgba(16, 46, 38, 0.68);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

#moen-map .map-water,
#moen-map .map-land,
#moen-map .map-roads,
#moen-map .map-official-routes,
#moen-map .map-labels {
  pointer-events: none;
}

#moen-map .map-tiles,
#moen-map .map-tiles * {
  pointer-events: none;
}

#moen-map .map-tile {
  opacity: 1;
}

#moen-map .map-tile-set {
  opacity: 0;
  transition: opacity 0.18s ease;
}

#moen-map .map-tile-set.is-active {
  opacity: 1;
}

.map-stage.map-live-basemap #moen-map .map-context-road,
.map-stage.map-live-basemap #moen-map .map-context-trail {
  display: none;
}

.map-stage.map-live-basemap #moen-map .map-place-label {
  opacity: 0 !important;
}

.map-stage.map-live-basemap #moen-map .map-cluster-label-v2 {
  display: none;
}

.map-stage.map-live-basemap #moen-map .map-route-network:not(.is-active) {
  display: none;
}

#moen-map .map-context-road {
  fill: none;
  stroke: #d1c4a8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#moen-map .map-context-road.major {
  stroke: #c4b28f;
  stroke-width: 3.2;
}

#moen-map .map-context-road.minor {
  stroke-width: 1.65;
}

#moen-map .map-context-trail {
  fill: none;
  stroke: rgba(141, 53, 31, 0.5);
  stroke-width: 1.35;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

#moen-map .map-route-network {
  fill: none;
  stroke: rgba(16, 46, 38, 0.38);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#moen-map .map-route-network.is-active {
  stroke: var(--map-rust);
  stroke-width: 2.4;
  stroke-dasharray: 5 4;
}

#moen-map .map-custom-route-shadow,
#moen-map .map-custom-route-line,
#moen-map .map-hike-track-shadow,
#moen-map .map-hike-track-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

#moen-map .map-hike-track-shadow {
  stroke: rgba(255, 254, 247, 0.94);
  stroke-width: 7.5;
}

#moen-map .map-hike-track-line {
  stroke: var(--map-rust);
  stroke-width: 3.5;
  stroke-dasharray: 4 5;
}

#moen-map .map-custom-route-shadow {
  stroke: rgba(16, 46, 38, 0.88);
  stroke-width: 9;
}

#moen-map .map-custom-route-line {
  stroke: var(--map-lime);
  stroke-width: 5;
}

#moen-map .map-custom-route-line.has-fallback {
  stroke-dasharray: 10 7;
}

#moen-map .map-route-stop {
  pointer-events: none;
  outline: none;
  filter: drop-shadow(0 3px 4px rgba(7, 27, 21, 0.35));
}

.map-stage.map-route-editing #moen-map .map-route-stop {
  cursor: pointer;
  pointer-events: all;
}

#moen-map .map-route-stop-hit {
  fill: transparent;
  stroke: transparent;
}

#moen-map .map-route-stop-disc {
  fill: var(--map-forest);
  stroke: var(--map-lime);
  stroke-width: 5;
}

#moen-map .map-route-stop:focus-visible .map-route-stop-disc {
  fill: #fff;
  stroke: var(--map-rust);
}

#moen-map .map-route-stop-number {
  fill: #fff;
  font: 900 12px/1 "DM Sans", sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

#moen-map .map-route-stop:focus-visible .map-route-stop-number {
  fill: var(--map-forest);
}

#moen-map .map-route-recovery-target {
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(7, 27, 21, 0.38));
}

#moen-map .map-route-recovery-pulse {
  fill: rgba(217, 240, 68, 0.2);
  stroke: var(--map-forest);
  stroke-width: 2.5;
  animation: map-user-breathe 2.2s ease-in-out infinite;
}

#moen-map .map-route-recovery-disc {
  fill: var(--map-forest);
  stroke: #fff;
  stroke-width: 3;
}

#moen-map .map-route-recovery-core {
  fill: var(--map-lime);
}

#moen-map .map-place-label {
  fill: rgba(16, 46, 38, 0.78);
  paint-order: stroke;
  stroke: rgba(244, 240, 229, 0.88);
  stroke-width: 4px;
  font: 800 13px/1 "DM Sans", sans-serif;
  letter-spacing: 0.09em;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.16s ease;
}

.map-stage[data-map-zoom-band="overview"] #moen-map .map-place-label {
  opacity: 0;
}

#moen-map .map-pin,
#moen-map .map-cluster-v2 {
  color: var(--map-forest);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#moen-map .map-pin-hit,
#moen-map .map-cluster-hit-v2 {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

#moen-map .map-pin-shadow,
#moen-map .map-cluster-shadow-v2 {
  fill: rgba(7, 27, 21, 0.2);
}

#moen-map .map-pin-body {
  fill: #fff;
  stroke: var(--map-forest);
  stroke-width: 2.4;
}

#moen-map .map-pin-core {
  fill: var(--pin-color, var(--map-lime));
}

#moen-map .map-pin-glyph {
  fill: var(--map-forest);
  font: 900 12px/1 "DM Sans", sans-serif;
  pointer-events: none;
}

#moen-map .map-pin-symbol {
  fill: none;
  stroke: var(--map-forest);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transform: translateY(-4px);
}

#moen-map .map-pin-symbol text {
  fill: var(--map-forest);
  stroke: none;
  font: 900 7px/1 "DM Sans", sans-serif;
  dominant-baseline: middle;
}

#moen-map .map-pin-symbol-experience path {
  fill: var(--map-forest);
  stroke: none;
}

#moen-map .map-pin-callout {
  pointer-events: all;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(7, 27, 21, 0.22));
}

#moen-map .map-pin-callout * {
  pointer-events: all;
}

#moen-map .map-pin-callout rect {
  fill: rgba(255, 255, 255, 0.98);
  stroke: rgba(16, 46, 38, 0.18);
  stroke-width: 1;
}

#moen-map .map-pin-callout text {
  fill: var(--map-forest);
  font: 900 12px/1 "DM Sans", sans-serif;
  dominant-baseline: middle;
}

#moen-map .map-pin.is-featured .map-pin-body {
  fill: var(--map-forest);
  stroke: #fff;
  stroke-width: 3;
}

#moen-map .map-pin.is-featured .map-pin-glyph {
  fill: #fff;
}

#moen-map .map-pin.is-featured .map-pin-core {
  fill: var(--map-forest);
}

#moen-map .map-pin.is-featured .map-pin-symbol {
  stroke: #fff;
}

#moen-map .map-pin.is-featured .map-pin-symbol text,
#moen-map .map-pin.is-featured .map-pin-symbol-experience path {
  fill: #fff;
}

#moen-map .map-pin[data-access-tone="blocked"] .map-pin-body {
  fill: #e8dfd4;
  stroke: var(--map-rust);
  stroke-dasharray: 3 2;
}

#moen-map .map-pin[data-access-tone="check"] .map-pin-body {
  stroke: #a56b1e;
}

#moen-map .map-pin.is-selected .map-pin-body,
#moen-map .map-pin:focus-visible .map-pin-body {
  fill: var(--map-lime);
  stroke-width: 3.4;
}

#moen-map .map-direction-target {
  pointer-events: none;
  filter: drop-shadow(0 3px 7px rgba(7, 27, 21, 0.34));
}

#moen-map .map-direction-target-pulse {
  fill: rgba(217, 240, 68, 0.18);
  stroke: var(--map-lime);
  stroke-width: 5;
}

#moen-map .map-direction-target-ring {
  fill: rgba(217, 240, 68, 0.3);
  stroke: var(--map-forest);
  stroke-width: 3;
  stroke-dasharray: 5 3;
}

#moen-map .map-direction-target-dot {
  fill: var(--map-rust);
  stroke: #fff;
  stroke-width: 2;
}

#moen-map .map-direction-target-line {
  stroke: var(--map-forest);
  stroke-width: 3;
  stroke-linecap: round;
}

#moen-map .map-direction-target-label rect {
  fill: var(--map-forest);
  stroke: var(--map-lime);
  stroke-width: 2;
}

#moen-map .map-direction-target-label text {
  fill: #fff;
  font: 900 11px/1 "DM Sans", sans-serif;
  letter-spacing: 0.035em;
  text-anchor: middle;
  dominant-baseline: middle;
}

#moen-map .map-explore-target {
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(7, 27, 21, 0.32));
}

#moen-map .map-explore-target-halo {
  fill: rgba(217, 240, 68, 0.2);
  stroke: rgba(16, 46, 38, 0.62);
  stroke-width: 2;
  stroke-dasharray: 4 3;
}

#moen-map .map-explore-target-ring {
  fill: rgba(255, 255, 255, 0.94);
  stroke: var(--map-forest);
  stroke-width: 3;
}

#moen-map .map-explore-target-dot {
  fill: var(--map-lime);
  stroke: var(--map-forest);
  stroke-width: 2;
}

#moen-map .map-explore-target-label rect {
  fill: var(--map-forest);
  stroke: var(--map-lime);
  stroke-width: 2;
}

#moen-map .map-explore-target-label text {
  fill: #fff;
  font: 900 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  text-anchor: middle;
  dominant-baseline: middle;
}

#moen-map .map-cluster-disc-v2 {
  fill: var(--map-lime);
  stroke: var(--map-forest);
  stroke-width: 2.5;
}

#moen-map .map-cluster-count-v2 {
  fill: var(--map-forest);
  font: 900 13px/1 "DM Sans", sans-serif;
  pointer-events: none;
}

#moen-map .map-cluster-label-v2 {
  fill: var(--map-forest);
  paint-order: stroke;
  stroke: rgba(244, 240, 229, 0.92);
  stroke-width: 4px;
  font: 800 12px/1 "DM Sans", sans-serif;
  pointer-events: none;
}

.map-stage[data-map-zoom-band="detail"] #moen-map .map-cluster-label-v2 {
  opacity: 0;
}

#moen-map .map-cluster-v2:focus-visible .map-cluster-disc-v2 {
  fill: #fff;
  stroke-width: 3.5;
}

#moen-map .map-user-accuracy {
  fill: rgba(217, 240, 68, 0.15);
  stroke: rgba(16, 46, 38, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

#moen-map .map-user-accuracy.is-searching,
#moen-map .map-user-accuracy.is-recent,
#moen-map .map-user-accuracy.is-last {
  fill: rgba(244, 240, 229, 0.14);
  stroke-dasharray: 7 5;
  opacity: 0.7;
}

.map-stage.map-is-street-level #moen-map .map-user-accuracy {
  fill: transparent;
  stroke-width: 2;
  opacity: 0.58;
}

#moen-map .map-user-current {
  filter: drop-shadow(0 3px 5px rgba(7, 27, 21, 0.42));
}

#moen-map .map-user-pulse {
  fill: rgba(217, 240, 68, 0.18);
  stroke: var(--map-forest);
  stroke-width: 3;
}

#moen-map .map-user-halo {
  fill: rgba(255, 255, 255, 0.97);
  stroke: var(--map-forest);
  stroke-width: 3;
}

#moen-map .map-user-core {
  fill: var(--map-lime);
  stroke: var(--map-forest);
  stroke-width: 2;
}

#moen-map .map-user-dot {
  fill: var(--map-forest);
}

#moen-map .map-user-heading {
  fill: var(--map-forest);
  stroke: none;
}

#moen-map .map-user-heading,
#moen-map .map-user-direction-cone {
  transform: rotate(var(--map-heading, 0deg));
  transform-origin: 0 0;
  transition: transform 0.14s linear;
}

#moen-map .map-user-direction-cone {
  fill: rgba(217, 240, 68, 0.56);
  stroke: rgba(16, 46, 38, 0.72);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

#moen-map .map-user-badge-bg,
#moen-map .map-user-badge-tail {
  fill: var(--map-lime);
  stroke: var(--map-forest);
  stroke-width: 2;
}

#moen-map .map-user-badge-tail {
  stroke-linejoin: round;
}

#moen-map .map-user-badge-text {
  fill: var(--map-forest);
  font: 900 11px/1 "DM Sans", sans-serif;
  letter-spacing: 0.075em;
  text-anchor: middle;
  dominant-baseline: middle;
}

#moen-map .map-user-current.is-searching .map-user-badge-bg,
#moen-map .map-user-current.is-searching .map-user-badge-tail,
#moen-map .map-user-current.is-recent .map-user-badge-bg,
#moen-map .map-user-current.is-recent .map-user-badge-tail,
#moen-map .map-user-current.is-last .map-user-badge-bg,
#moen-map .map-user-current.is-last .map-user-badge-tail,
#moen-map .map-user-current.is-manual .map-user-badge-bg,
#moen-map .map-user-current.is-manual .map-user-badge-tail {
  fill: var(--map-paper);
}

#moen-map .map-user-current.is-searching .map-user-pulse,
#moen-map .map-user-current.is-recent .map-user-pulse,
#moen-map .map-user-current.is-last .map-user-pulse,
#moen-map .map-user-current.is-manual .map-user-pulse {
  stroke-dasharray: 5 4;
}

#moen-map .map-user-current.is-live .map-user-pulse {
  animation: map-user-breathe 2.8s ease-in-out infinite;
}

#moen-map .map-user,
#moen-map .map-user * {
  pointer-events: none;
}

@keyframes map-user-breathe {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  #moen-map .map-user-current.is-live .map-user-pulse,
  #moen-map .map-route-recovery-pulse {
    animation: none;
  }
}

.map-gps-state {
  position: absolute;
  z-index: 6;
  top: 145px;
  left: 14px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(16, 46, 38, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  padding: 0 0.72rem;
  color: var(--map-forest);
  box-shadow: 0 7px 18px rgba(7, 27, 21, 0.13);
  font: 800 0.6rem/1 "DM Sans", sans-serif;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.map-gps-state span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9b9b8f;
}

.map-gps-state.is-live span {
  background: var(--map-lime);
  box-shadow: 0 0 0 4px rgba(217, 240, 68, 0.25);
}

.map-gps-state.is-waiting span {
  background: #e0a43f;
}

.map-gps-state.is-action-needed {
  border-color: rgba(141, 53, 31, 0.62);
  box-shadow:
    0 7px 18px rgba(7, 27, 21, 0.13),
    0 0 0 3px rgba(217, 240, 68, 0.5);
}

.map-gps-state.is-picking {
  border-color: var(--map-forest);
  background: var(--map-lime);
  box-shadow:
    0 8px 22px rgba(7, 27, 21, 0.2),
    0 0 0 3px rgba(217, 240, 68, 0.35);
}

.map-gps-state.is-picking span {
  background: var(--map-forest);
}

.map-manual-location-prompt {
  position: absolute;
  z-index: 8;
  top: 191px;
  left: 14px;
  width: min(330px, calc(100% - 90px));
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--map-forest);
  border-radius: 17px;
  background: rgba(244, 240, 229, 0.97);
  padding: 0.55rem 0.6rem 0.55rem 0.75rem;
  color: var(--map-forest);
  box-shadow: 0 10px 28px rgba(7, 27, 21, 0.22);
}

.map-manual-location-prompt[hidden] {
  display: none;
}

.map-manual-location-prompt strong,
.map-manual-location-prompt small {
  display: block;
}

.map-manual-location-prompt strong {
  font-size: 0.74rem;
}

.map-manual-location-prompt small {
  margin-top: 0.12rem;
  color: rgba(16, 46, 38, 0.7);
  font-size: 0.6rem;
  line-height: 1.3;
}

.map-manual-location-prompt button {
  min-width: 48px;
  min-height: 44px;
  border: 1px solid rgba(16, 46, 38, 0.22);
  border-radius: 999px;
  background: #fff;
  padding: 0 0.65rem;
  color: var(--map-forest);
  font: 800 0.61rem/1 "DM Sans", sans-serif;
}

.map-stage.map-manual-location-picking #moen-map {
  cursor: crosshair;
}

.map-stage.map-manual-location-picking #moen-map:focus-visible {
  outline: 3px solid var(--map-lime);
  outline-offset: -4px;
}

.map-zoom-actions {
  position: absolute;
  z-index: 6;
  top: 145px;
  right: 14px;
  display: grid;
  gap: 0.38rem;
}

.map-zoom-actions button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 46, 38, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0;
  color: var(--map-forest);
  box-shadow: 0 8px 20px rgba(7, 27, 21, 0.16);
  font: 700 1.35rem/1 "DM Sans", sans-serif;
}

.map-zoom-actions button[data-map-zoom-reset] {
  font-size: 0.8rem;
}

.map-zoom-actions button:disabled {
  opacity: 0.42;
}

.map-zoom-actions .map-compass {
  position: relative;
  overflow: visible;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.map-compass-face {
  position: relative;
  width: 32px;
  height: 32px;
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.map-compass-north {
  position: absolute;
  z-index: 1;
  top: 1px;
  left: 50%;
  color: currentColor;
  font: 900 7px/1 "DM Sans", sans-serif;
  transform: translateX(-50%);
}

.map-stage .map-compass-needle {
  position: absolute;
  inset: 0;
  width: 32px;
  height: 32px;
  min-height: 0;
  transform: rotate(var(--map-heading, 0deg));
  transform-origin: 50% 50%;
  transition: transform 0.14s linear;
}

.map-stage .map-compass-needle path {
  fill: currentColor;
}

.map-stage .map-compass-needle circle {
  fill: var(--map-lime);
  stroke: currentColor;
  stroke-width: 1.2;
}

.map-compass::after {
  position: absolute;
  right: calc(100% + 7px);
  top: 50%;
  min-width: 34px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 46, 38, 0.18);
  border-radius: 999px;
  padding: 0 0.48rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--map-forest);
  box-shadow: 0 5px 14px rgba(7, 27, 21, 0.14);
  content: "";
  font: 900 0.52rem/1 "DM Sans", sans-serif;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}

.map-compass.is-needs-tap {
  border-color: var(--map-forest);
  background: var(--map-lime);
  box-shadow:
    0 8px 20px rgba(7, 27, 21, 0.18),
    0 0 0 3px rgba(217, 240, 68, 0.32);
}

.map-compass.is-needs-tap::after {
  content: "RETNING";
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.map-compass.is-waiting::after {
  content: "FINDER";
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.map-compass.is-live {
  border-color: var(--map-forest);
  background: var(--map-forest);
  color: #fff;
}

.map-compass.is-live::after {
  border-color: var(--map-forest);
  background: var(--map-forest);
  color: #fff;
  content: attr(data-cardinal);
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.map-compass.is-error {
  border-color: #8d351f;
  color: #8d351f;
}

.map-compass.is-error::after {
  border-color: #8d351f;
  color: #8d351f;
  content: "PRØV IGEN";
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.map-locate {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 184px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--map-forest);
  border-radius: 999px;
  background: var(--map-lime);
  padding: 0 0.9rem;
  color: var(--map-forest);
  box-shadow: 0 10px 24px rgba(7, 27, 21, 0.22);
  font: 900 0.66rem/1 "DM Sans", sans-serif;
}

.map-locate svg {
  width: 19px;
  height: 19px;
  min-height: 0;
  max-height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.map-locate.is-following {
  background: var(--map-forest);
  color: #fff;
}

.map-sheet {
  position: absolute;
  z-index: 7;
  contain: layout paint style;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 148px;
  max-height: min(48%, 350px);
  overflow: auto;
  overscroll-behavior-x: auto;
  overscroll-behavior-y: contain;
  border: 1px solid rgba(16, 46, 38, 0.18);
  border-radius: 24px;
  background: rgba(244, 240, 229, 0.98);
  padding: 0.55rem 0.85rem 0.85rem;
  box-shadow: 0 18px 48px rgba(7, 27, 21, 0.28);
  -webkit-overflow-scrolling: touch;
  transform: translateY(0);
  transition: transform 0.18s ease;
}

.map-sheet.is-dragging {
  transition: none;
}

.map-sheet-handle {
  position: relative;
  width: 64px;
  height: 28px;
  margin: -0.4rem auto 0.05rem;
  background: transparent;
  touch-action: none;
  cursor: grab;
}

.map-sheet-handle::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 13px;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(16, 46, 38, 0.25);
}

.map-sheet-head,
.map-selected-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.map-sheet-kicker {
  display: block;
  margin-bottom: 0.14rem;
  color: #5f8b18;
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-sheet h3 {
  margin: 0;
  color: var(--map-forest);
  font: 400 clamp(1.35rem, 4vw, 1.85rem)/1 "Instrument Serif", serif;
}

.map-sheet-summary {
  margin: 0.25rem 0 0;
  color: rgba(16, 46, 38, 0.68);
  font-size: 0.64rem;
  line-height: 1.35;
}

.map-sheet-close {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 46, 38, 0.19);
  border-radius: 50%;
  background: #fff;
  padding: 0;
  color: var(--map-forest);
  font: 400 1.35rem/1 "DM Sans", sans-serif;
}

.map-nearby-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.map-nearby-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--map-line);
  border-radius: 15px;
  background: #fff;
  padding: 0.52rem 0.6rem;
  color: var(--map-forest);
  text-align: left;
}

.map-nearby-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--row-color, var(--map-lime));
  color: var(--map-forest);
  font-size: 0.65rem;
  font-weight: 900;
}

.map-nearby-copy {
  min-width: 0;
}

.map-nearby-copy strong,
.map-nearby-copy small {
  display: block;
}

.map-nearby-copy strong {
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-nearby-copy small {
  margin-top: 0.18rem;
  color: rgba(16, 46, 38, 0.62);
  font-size: 0.55rem;
}

.map-nearby-distance {
  color: var(--map-rust);
  font-size: 0.6rem;
  font-weight: 900;
  white-space: nowrap;
}

.map-selected-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.72fr);
  align-items: start;
  gap: 0.5rem 0.85rem;
}

.map-selected-info {
  min-width: 0;
}

.map-selected-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.28rem;
}

.map-selected-side > .map-sheet-close {
  justify-self: end;
}

.map-selected-distance {
  margin: 0.35rem 0 0;
  color: rgba(16, 46, 38, 0.72);
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1.3;
}

.map-selected-copy {
  display: -webkit-box;
  margin: 0.36rem 0 0;
  overflow: hidden;
  color: rgba(16, 46, 38, 0.64);
  font-size: 0.64rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-selected-context {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid rgba(16, 46, 38, 0.1);
  padding-top: 0.45rem;
}

.map-selected-context > p {
  margin: 0 0 0.38rem;
  color: rgba(16, 46, 38, 0.62);
  font: 900 0.57rem/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-selected-essentials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
}

.map-selected-essentials button {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 0.38rem;
  border: 1px solid var(--map-line);
  border-radius: 13px;
  background: #fff;
  padding: 0.35rem 0.42rem;
  color: var(--map-forest);
  font-family: "DM Sans", sans-serif;
  text-align: left;
}

.map-selected-essentials button > span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--shortcut-color, var(--map-lime));
  font-size: 0.55rem;
  font-weight: 900;
}

.map-selected-essentials button > span:last-child {
  min-width: 0;
}

.map-selected-essentials strong,
.map-selected-essentials small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-selected-essentials strong {
  font-size: 0.62rem;
  line-height: 1.08;
  white-space: nowrap;
}

.map-selected-essentials small {
  margin-top: 0.2rem;
  color: rgba(16, 46, 38, 0.64);
  font-size: 0.54rem;
  line-height: 1.12;
  white-space: nowrap;
}

.map-selected-essentials button:hover,
.map-selected-essentials button:focus-visible {
  border-color: var(--map-forest);
  background: rgba(217, 240, 68, 0.22);
}

.map-direction-glance {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 0.72rem;
  margin-top: 0.65rem;
  border-radius: 18px;
  background: rgba(217, 240, 68, 0.34);
  padding: 0.62rem 0.72rem;
}

.map-direction-glance > span:last-child {
  grid-column: 2;
  min-width: 0;
}

.map-route-recovery-glance {
  border: 1px solid rgba(16, 46, 38, 0.12);
  background: rgba(217, 240, 68, 0.42);
}

.map-route-recovery-glance.is-waiting {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-block: 0.52rem;
}

.map-route-recovery-glance.is-waiting > span:last-child {
  grid-column: 1;
}

.map-direction-glance.is-arrived {
  background: rgba(217, 240, 68, 0.72);
}

.map-direction-arrow {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--map-forest);
  border-radius: 50%;
  background: var(--map-lime);
  color: var(--map-forest);
  font: 900 1.9rem/1 "DM Sans", sans-serif;
  transform-origin: center;
  transition: transform 120ms linear;
}

.map-direction-glance.is-arrived .map-direction-arrow {
  border-color: var(--map-lime);
  background: var(--map-forest);
  color: #fff;
}

.map-direction-glance strong,
.map-direction-glance small {
  display: block;
}

.map-direction-glance strong {
  color: var(--map-forest);
  font-size: 1.18rem;
  line-height: 1;
}

.map-direction-glance small {
  margin-top: 0.28rem;
  color: rgba(16, 46, 38, 0.7);
  font-size: 0.63rem;
  font-weight: 760;
  line-height: 1.3;
}

.map-selected-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.08rem;
  margin: 0;
}

.map-selected-actions button,
.map-selected-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--map-forest);
  border-radius: 16px;
  background: var(--map-forest);
  padding: 0 0.75rem;
  color: #fff;
  font: 900 0.64rem/1 "DM Sans", sans-serif;
  text-align: center;
  text-decoration: none;
}

.map-selected-actions button.is-direction {
  border-color: var(--map-forest);
  background: var(--map-forest);
  color: #fff;
  box-shadow: none;
}

.map-selected-actions a.is-navigation {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  color: rgba(16, 46, 38, 0.76);
  font-size: 0.6rem;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.map-selected-layout.is-directing .map-selected-actions button.is-direction {
  border-color: rgba(16, 46, 38, 0.24);
  background: #fff;
  color: var(--map-forest);
}

.map-selected-actions a[aria-disabled="true"] {
  opacity: 0.46;
  pointer-events: none;
}

.map-selected-route-add {
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0 0.5rem;
  color: rgba(16, 46, 38, 0.68);
  font: 800 0.6rem/1.2 "DM Sans", sans-serif;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.map-selected-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  border-top: 1px solid rgba(16, 46, 38, 0.1);
  padding-top: 0.15rem;
}

.map-selected-dismiss,
.map-selected-info-open {
  min-width: 64px;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0 0.5rem;
  color: var(--map-forest);
  font: 850 0.66rem/1 "DM Sans", sans-serif;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.map-selected-shell {
  min-width: 0;
  position: relative;
}

.map-selected-shell-head {
  min-width: 0;
  position: relative;
  padding-right: 58px;
}

.map-selected-shell-head > .map-sheet-close {
  position: absolute;
  top: 0;
  right: 0;
}

.map-selected-access {
  margin: 0.42rem 0 0;
  border-left: 3px solid #b86b29;
  border-radius: 8px;
  background: rgba(184, 107, 41, 0.09);
  padding: 0.38rem 0.52rem;
  color: #71401d;
  font: 750 0.64rem/1.3 "DM Sans", sans-serif;
}

.map-selected-access.is-blocked {
  border-left-color: #9f493f;
  background: rgba(159, 73, 63, 0.09);
  color: #6f302b;
}

.map-selected-shell-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
  margin-top: 0.5rem;
}

.map-selected-shell-actions > button,
.map-selected-shell-actions > .map-selected-info-open,
.map-selected-shell-actions > .map-selected-route-add {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 46, 38, 0.18);
  border-radius: 15px;
  background: #fff;
  padding: 0.35rem 0.45rem;
  color: var(--map-forest);
  font: 850 0.64rem/1.12 "DM Sans", sans-serif;
  text-align: center;
  text-decoration: none;
}

.map-selected-shell-actions > .map-selected-shell-direction {
  border-color: var(--map-forest);
  background: var(--map-forest);
  color: #fff;
}

.map-selected-shell-actions > .map-selected-shell-direction.is-active {
  border-color: rgba(16, 46, 38, 0.22);
  background: #fff;
  color: var(--map-forest);
}

.map-selected-shell-actions > :only-child {
  grid-column: 1 / -1;
}

.map-selected-expand {
  width: 100%;
  min-height: 48px;
  margin-top: 0.34rem;
  border: 0;
  border-radius: 14px;
  background: rgba(16, 46, 38, 0.06);
  padding: 0 0.7rem;
  color: rgba(16, 46, 38, 0.78);
  font: 850 0.64rem/1 "DM Sans", sans-serif;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.map-selected-details[hidden] {
  display: none;
}

.map-selected-details-inner {
  min-width: 0;
  margin-top: 0.45rem;
  border-top: 1px solid rgba(16, 46, 38, 0.1);
  padding-top: 0.45rem;
}

.map-selected-detail-copy .map-sheet-kicker {
  margin-bottom: 0;
}

.map-selected-details-navigation {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  border: 1px solid rgba(16, 46, 38, 0.16);
  border-radius: 15px;
  background: #fff;
  color: var(--map-forest);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.map-selected-context-load {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.4rem;
  border: 1px solid rgba(16, 46, 38, 0.16);
  border-radius: 15px;
  background: rgba(16, 46, 38, 0.06);
  padding: 0.45rem 0.6rem;
  color: var(--map-forest);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.map-selected-context-load:disabled {
  color: rgba(16, 46, 38, 0.68);
  text-decoration: none;
}

.map-selected-details .map-selected-footer,
.map-selected-details .map-selected-context {
  margin-top: 0.45rem;
}

.map-route-progress {
  display: grid;
  grid-template-columns: 34px minmax(36px, 1fr) 34px minmax(92px, auto);
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.map-route-progress span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(16, 46, 38, 0.28);
  border-radius: 50%;
  background: #fff;
  font-size: 0.65rem;
  font-weight: 900;
}

.map-route-progress span.is-ready {
  border-color: var(--map-forest);
  background: var(--map-lime);
}

.map-route-progress i {
  height: 3px;
  border-radius: 999px;
  background: rgba(16, 46, 38, 0.2);
}

.map-route-progress small {
  color: rgba(16, 46, 38, 0.66);
  font-size: 0.58rem;
  font-weight: 800;
}

.map-route-counts {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.map-route-counts::-webkit-scrollbar {
  display: none;
}

.map-route-counts span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(16, 46, 38, 0.08);
  padding: 0 0.58rem;
  color: rgba(16, 46, 38, 0.8);
  font-size: 0.56rem;
  font-weight: 800;
}

.map-route-counts b {
  color: var(--map-rust);
}

.map-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.68rem;
}

.map-route-actions button,
.map-route-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 112px;
  border: 1px solid rgba(16, 46, 38, 0.24);
  border-radius: 999px;
  background: #fff;
  padding: 0 0.72rem;
  color: var(--map-forest);
  font: 900 0.62rem/1 "DM Sans", sans-serif;
  text-align: center;
  text-decoration: none;
}

.map-route-actions button.is-primary {
  border-color: var(--map-forest);
  background: var(--map-lime);
}

.map-route-actions button.is-stop-action {
  border-color: rgba(147, 64, 45, 0.62);
  background: rgba(147, 64, 45, 0.08);
  color: #743326;
}

.map-route-actions a.is-navigation {
  border-color: var(--map-forest);
  background: var(--map-forest);
  color: #fff;
}

.map-route-actions button:disabled {
  opacity: 0.62;
}

.map-sheet-summary.map-route-feedback {
  color: var(--map-rust);
  font-weight: 800;
}

.map-route-navigation-note {
  margin-top: 0.55rem;
}

.map-route-navigation-note small {
  color: rgba(16, 46, 38, 0.56);
  font-size: 0.53rem;
  line-height: 1.35;
}

.map-route-relevant {
  margin-top: 0.75rem;
}

.map-route-featured {
  margin-top: 0.55rem;
}

.map-route-category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.26rem;
  margin-top: 0.52rem;
}

.map-route-category-strip button {
  min-width: 0;
  min-height: 44px;
  display: grid;
  place-content: center;
  gap: 0.06rem;
  border: 1px solid rgba(16, 46, 38, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(16, 46, 38, 0.78);
  padding: 0.2rem 0.08rem;
  font: 900 0.54rem/1.05 "DM Sans", sans-serif;
  text-align: center;
}

.map-route-category-strip button small {
  color: rgba(16, 46, 38, 0.54);
  font-size: 0.47rem;
  font-weight: 800;
}

.map-route-category-strip button.active {
  border-color: var(--map-forest);
  background: var(--map-forest);
  color: #fff;
}

.map-route-category-strip button.active small {
  color: rgba(255, 255, 255, 0.78);
}

.map-route-featured > strong {
  display: block;
  color: var(--map-rust);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-route-featured .map-nearby-list {
  grid-template-columns: 1fr;
  margin-top: 0.28rem;
  padding: 0;
}

.map-route-featured .map-nearby-row {
  min-height: 52px;
  margin-top: 0;
}

.map-route-featured .map-nearby-distance,
.map-route-relevant .map-nearby-distance {
  max-width: 8.5rem;
  line-height: 1.15;
  text-align: right;
  white-space: normal;
}

.map-route-filter-results {
  margin-top: 0.68rem;
}

.map-route-filter-results > strong {
  display: block;
  color: rgba(16, 46, 38, 0.72);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.map-route-filter-results .map-nearby-list {
  grid-template-columns: 1fr;
  margin-top: 0.28rem;
  padding: 0;
}

.map-route-filter-results .map-nearby-row {
  min-height: 52px;
}

.map-route-filter-results .map-nearby-distance {
  max-width: 8.5rem;
  line-height: 1.15;
  text-align: right;
  white-space: normal;
}

.map-route-show-more {
  width: 100%;
  min-height: 44px;
  margin-top: 0.45rem;
  border: 1px solid rgba(16, 46, 38, 0.24);
  border-radius: 999px;
  background: rgba(217, 240, 68, 0.2);
  color: var(--map-forest);
  font: 900 0.62rem/1 "DM Sans", sans-serif;
}

.map-route-empty {
  margin-top: 0.55rem;
  border: 1px solid var(--map-line);
  border-radius: 14px;
  background: #f4f0e5;
  padding: 0.8rem;
}

.map-route-empty > strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
}

.map-route-empty > p {
  margin: 0.3rem 0 0.65rem;
  color: #132f27bd;
  font-size: 0.68rem;
  line-height: 1.4;
}

.map-route-empty .map-nearby-list {
  grid-template-columns: minmax(0, 1fr);
}

.map-route-empty .map-nearby-distance {
  max-width: 8.5rem;
  line-height: 1.15;
  text-align: right;
  white-space: normal;
}

.map-route-empty > button {
  min-height: 44px;
  margin-top: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--map-forest);
  padding: 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.map-route-essentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.48rem;
}

.map-route-essentials > button {
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--map-line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--map-forest);
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 0.48rem;
  padding: 0.38rem 0.55rem;
  text-align: left;
}

.map-route-essential-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--essential-color, var(--map-lime));
  display: grid;
  place-items: center;
  color: var(--map-forest);
  font-size: 0.6rem;
  font-weight: 900;
}

.map-route-essential-copy {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.map-route-essential-copy strong {
  font-size: 0.69rem;
  line-height: 1.05;
}

.map-route-essential-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(16, 46, 38, 0.62);
  font-size: 0.55rem;
  line-height: 1.15;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-route-relevant > strong {
  display: block;
  color: var(--map-forest);
  font-size: 0.62rem;
}

.map-route-relevant .map-nearby-list {
  margin-top: 0.42rem;
}

.map-text-index {
  width: min(920px, calc(100% - 2rem));
  margin: 0.85rem auto 0;
  border: 1px solid var(--map-line);
  border-radius: 18px;
  background: #fff;
  padding: 0 0.8rem;
}

.map-text-index summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--map-forest);
  font-size: 0.68rem;
  font-weight: 800;
}

#map-text-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding-bottom: 0.8rem;
}

#map-text-list button {
  min-height: 64px;
  border: 1px solid var(--map-line);
  border-radius: 13px;
  background: var(--map-paper);
  padding: 0.65rem;
  color: var(--map-forest);
  text-align: left;
}

#map-text-list button span,
#map-text-list button strong {
  display: block;
}

#map-text-list button span {
  color: var(--map-rust);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#map-text-list button strong {
  margin-top: 0.2rem;
  font-size: 0.7rem;
}

.map-credit {
  width: min(920px, calc(100% - 2rem));
  margin: 0.65rem auto 0;
  color: rgba(16, 46, 38, 0.58);
  font-size: 0.54rem;
  line-height: 1.45;
}

.map-app button:focus-visible,
.map-app a:focus-visible,
#moen-map [role="button"]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--map-rust);
}

body.mobile-map-visible .hike-mini-hud,
body.mobile-map-visible > .location-hud,
body.mobile-map-visible > .saved-hud {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

body.mobile-map-visible .field-dock-state {
  display: none;
}

@media (max-width: 760px), (max-width:940px) and (max-height:500px) and (orientation: landscape) {
  body.mobile-map-hash {
    overflow: hidden;
  }

  body.mobile-map-hash .island-map-section.map-app {
    display: block;
    position: fixed;
    z-index: 40;
    top: calc(68px + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: auto;
    left: 0;
    margin: 0;
  }

  .island-map-section.map-app {
    --map-safe-left: max(10px, env(safe-area-inset-left));
    --map-safe-right: max(10px, env(safe-area-inset-right));
    width: 100%;
    margin: 0;
    scroll-margin-top: 0;
  }

  .map-stage {
    height: calc(
      100dvh - 68px - env(safe-area-inset-top, 0px) - 75px -
        env(safe-area-inset-bottom, 0px)
    );
    min-height: 0;
    max-height: none;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .map-app-head {
    top: 10px;
    left: var(--map-safe-left);
    right: var(--map-safe-right);
  }

  .map-app-head .eyebrow {
    display: none;
  }

  .map-search-trigger {
    font-size: 0.75rem;
  }

  .map-primary-controls {
    top: 80px;
    left: var(--map-safe-left);
    right: var(--map-safe-right);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .map-primary-controls button {
    min-width: 0;
    padding-inline: 0.25rem;
    font-size: 0.75rem;
  }

  .map-more-controls {
    top: 134px;
    left: var(--map-safe-left);
    width: min(
      330px,
      calc(100% - var(--map-safe-left) - var(--map-safe-right))
    );
  }

  .map-gps-state {
    top: 139px;
    left: var(--map-safe-left);
    min-height: 44px;
    font-size: 0.75rem;
  }

  .map-zoom-actions {
    top: 139px;
    right: var(--map-safe-right);
  }

  .map-locate {
    right: var(--map-safe-right);
    bottom: 245px;
    font-size: 0.75rem;
  }

  .map-locate.is-following {
    visibility: hidden;
    pointer-events: none;
  }

  .map-sheet {
    left: var(--map-safe-left);
    right: var(--map-safe-right);
    bottom: 10px;
  }

  .map-stage.map-panel-open .map-locate {
    display: none;
  }

  .map-sheet-kicker,
  .map-nearby-copy small,
  .map-nearby-distance {
    font-size: 0.75rem;
  }

  .map-sheet-summary,
  .map-nearby-copy strong,
  .map-selected-copy {
    font-size: 0.78rem;
  }

  .map-nearby-copy strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: clip;
    white-space: normal;
  }

  .map-nearby-list {
    grid-template-columns: 1fr 1fr;
  }

  .map-text-index,
  .map-credit {
    display: none;
  }

  #map-text-list {
    grid-template-columns: 1fr;
    max-height: 52dvh;
    overflow: auto;
  }
}

@media (max-width: 360px) {
  .map-search-trigger {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .map-search-trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .map-app-head h2 {
    font-size: 1.25rem;
  }

  .map-primary-controls button {
    font-size: 0.7rem;
  }

  .map-primary-controls .map-route-filter span {
    font-size: 0;
  }

  .map-primary-controls .map-route-filter span::after {
    content: "Rute";
    font-size: 0.7rem;
  }

  .map-nearby-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .map-nearby-row {
    min-height: 70px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0.45rem;
  }

  .map-nearby-icon {
    width: 30px;
    height: 30px;
    grid-row: 1 / 3;
  }

  .map-nearby-distance {
    grid-column: 2;
  }

  .map-sheet {
    max-height: 44%;
  }

  .map-locate {
    bottom: 245px;
  }

  .map-stage.map-panel-open .map-locate {
    display: none;
  }
}

@media (max-width: 760px) and (max-height: 620px) and (orientation: portrait) {
  .map-gps-state {
    max-width: 96px;
  }

  .map-stage.map-route-active .map-gps-state {
    display: none;
  }

  .map-stage.map-route-editing .map-sheet {
    min-height: 0;
    padding-top: 0.4rem;
  }

  .map-stage.map-route-active:not(.map-route-editing) .map-sheet {
    max-height: 55%;
  }

  .map-stage.map-route-editing .map-route-progress {
    display: none;
  }

  .map-gps-state strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-zoom-actions {
    top: 139px;
    grid-template-columns: 44px;
    gap: 4px;
  }

  .map-zoom-actions button {
    width: 44px;
    height: 44px;
  }

  .map-zoom-actions button[data-map-zoom-reset] {
    display: none;
  }

  .map-locate {
    z-index: 9;
    top: calc(56% + 6px);
    right: calc(var(--map-safe-right) + 12px);
    bottom: auto;
    left: auto;
    width: 48px;
    max-width: 48px;
    padding: 0;
    justify-content: center;
  }

  .map-locate span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .map-stage.map-panel-open .map-locate {
    display: none;
  }
}

@media (max-width:940px) and (max-height:500px) and (orientation: landscape) {
  body.mobile-map-hash .island-map-section.map-app {
    top: calc(60px + env(safe-area-inset-top, 0px));
  }

  .map-stage {
    height: calc(
      100dvh - 60px - env(safe-area-inset-top, 0px) - 69px -
        env(safe-area-inset-bottom, 0px)
    );
    min-height: 0;
  }

  .map-app-head {
    right: auto;
    width: 198px;
    min-height: 46px;
    border-radius: 15px;
  }

  .map-app-head .eyebrow {
    display: none;
  }

  .map-app-head h2 {
    font-size: 1.2rem;
  }

  .map-search-trigger {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .map-search-trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .map-primary-controls {
    top: 10px;
    left: 218px;
  }

  .map-primary-controls button {
    min-height: 48px;
  }

  .map-primary-controls button span {
    display: inline;
    margin: 0 0.25rem 0 0;
  }

  .map-more-controls {
    top: 64px;
    left: auto;
    right: var(--map-safe-right);
  }

  .map-gps-state {
    top: 86px;
    left: calc(var(--map-safe-left) + 56px);
  }

  .map-zoom-actions {
    top: 86px;
    right: auto;
    left: var(--map-safe-left);
    grid-template-columns: 44px;
  }

  .map-zoom-actions button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .map-sheet {
    top: 66px;
    left: auto;
    right: var(--map-safe-right);
    bottom: 10px;
    width: min(330px, 39vw);
    min-height: 0;
    max-height: none;
    border-radius: 20px;
  }

  .map-nearby-list {
    grid-template-columns: 1fr;
  }

  .map-nearby-row {
    min-height: 56px;
  }

  .map-locate {
    z-index: 9;
    top: 78px;
    right: calc(var(--map-safe-right) + 12px);
    bottom: auto;
    left: auto;
    width: 48px;
    max-width: 48px;
    padding: 0;
    justify-content: center;
  }

  .map-locate span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .map-text-index,
  .map-credit {
    display: none;
  }
}

.app-status {
  pointer-events: none;
}

@media (max-width:760px) and (orientation: portrait) {
  body.mobile-map-visible.map-sheet-view-peek .app-status {
    bottom: calc(284px + env(safe-area-inset-bottom));
  }

  body.mobile-map-visible.map-sheet-view-selected .app-status,
  body.mobile-map-visible.map-sheet-view-chooser .app-status {
    bottom: calc(376px + env(safe-area-inset-bottom));
  }

  body.mobile-map-visible.map-sheet-view-selected-direction .app-status {
    bottom: calc(412px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-sheet {
    transition: none;
  }
}

/* Map-first field experience */
.map-peek {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.map-peek-main {
  min-width: 0;
  min-height: 68px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--map-forest);
  text-align: left;
}

.map-peek-main h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-peek-main p {
  margin: 0.25rem 0 0;
  overflow: hidden;
  color: rgba(16, 46, 38, 0.64);
  font-size: 0.64rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-peek-route {
  min-width: 104px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--map-forest);
  border-radius: 15px;
  background: var(--map-forest);
  padding: 0 0.9rem;
  color: #fff;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
}

.map-peek-more {
  border-top: 1px solid var(--map-line);
  margin-top: 0.65rem;
  padding-top: 0.15rem;
}

.map-horizon-group + .map-horizon-group {
  border-top: 1px solid var(--map-line);
  margin-top: 0.55rem;
  padding-top: 0.45rem;
}

.map-horizon-label {
  margin: 0.32rem 0 0.1rem;
  color: rgba(16, 46, 38, 0.62);
  font: 900 0.57rem/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-context-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  margin-top: 0.48rem;
}

.map-context-shortcuts:not(.has-more) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-context-shortcuts button {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 0.35rem;
  border: 1px solid var(--map-line);
  border-radius: 14px;
  background: #fff;
  padding: 0.35rem 0.45rem;
  color: var(--map-forest);
  font-family: "DM Sans", sans-serif;
  text-align: left;
}

.map-context-shortcuts button > span {
  width: 22px;
  height: 22px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--shortcut-color, var(--map-lime));
  font-size: 0.55rem;
  font-weight: 900;
}

.map-context-shortcuts button > strong,
.map-context-shortcuts button > small {
  display: block;
  min-width: 0;
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-context-shortcuts button > strong {
  display: -webkit-box;
  align-self: end;
  line-height: 1.05;
  font-size: 0.65rem;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-context-shortcuts button > small {
  align-self: start;
  margin-top: 0.15rem;
  color: rgba(16, 46, 38, 0.65);
  font-size: 0.58rem;
}

.map-context-shortcuts button.is-more > span {
  background: rgba(16, 46, 38, 0.1);
  font-size: 0.9rem;
}

.map-context-shortcuts button:hover,
.map-context-shortcuts button:focus-visible {
  border-color: var(--map-forest);
  background: rgba(217, 240, 68, 0.22);
}

.map-sheet:not(.is-expanded) .map-peek-more,
.map-sheet:not(.is-expanded) .map-route-more {
  display: none;
}

.map-route-more {
  border-top: 1px solid var(--map-line);
  margin-top: 0.65rem;
}

.map-route-more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: rgba(16, 46, 38, 0.72);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 900;
  list-style: none;
}

.map-route-more summary::-webkit-details-marker {
  display: none;
}

.map-route-more summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1rem;
}

.map-route-more[open] summary::after {
  content: "−";
}

.map-route-point-editor {
  padding: 0.1rem 0 0.32rem;
}

.map-route-point-editor > strong {
  display: block;
  color: rgba(16, 46, 38, 0.68);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-route-point-editor ol {
  display: grid;
  gap: 0.42rem;
  margin: 0.42rem 0 0;
  padding: 0;
  list-style: none;
}

.map-route-point-editor li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  border-top: 1px solid rgba(16, 46, 38, 0.12);
  padding-top: 0.42rem;
}

.map-route-point-name {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

.map-route-point-name > b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--map-forest);
  color: #fff;
  font-size: 0.62rem;
}

.map-route-point-name strong,
.map-route-point-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-route-point-name strong {
  color: var(--map-forest);
  font-size: 0.65rem;
}

.map-route-point-name small {
  margin-top: 0.12rem;
  color: rgba(16, 46, 38, 0.58);
  font-size: 0.54rem;
  font-weight: 800;
}

.map-route-point-actions {
  display: flex;
  gap: 0.28rem;
}

.map-route-point-actions button {
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 46, 38, 0.22);
  border-radius: 14px;
  background: #fff;
  padding: 0 0.55rem;
  color: var(--map-forest);
  font: 900 0.74rem/1 "DM Sans", sans-serif;
}

.map-route-point-actions button.is-remove {
  color: var(--map-rust);
  font-size: 0.56rem;
}

.map-route-point-actions button:disabled {
  opacity: 0.32;
}

@media (max-width: 760px), (max-width:940px) and (max-height:500px) and (orientation: landscape) {
  .radar-art i:nth-child(3),
  .pulse-dot,
  .map-user-marker circle:first-child {
    animation: none;
  }

  #moen-map .map-user-current,
  #moen-map .map-route-stop,
  #moen-map .map-route-recovery-target,
  #moen-map .map-direction-target,
  #moen-map .map-explore-target,
  #moen-map .map-pin-callout {
    filter: none;
  }

  #moen-map .map-user-current.is-live .map-user-pulse,
  #moen-map .map-route-recovery-pulse {
    animation: none;
    opacity: 0.62;
  }

  .map-app-head {
    display: none;
  }

  .map-stage {
    height: calc(
      100dvh - 68px - env(safe-area-inset-top, 0px) - 75px -
        env(safe-area-inset-bottom, 0px)
    );
    background: #d9e7e6;
  }

  #moen-map .map-place-label {
    display: none;
  }

  .map-primary-controls {
    top: 9px;
    left: 0;
    right: 0;
    display: flex;
    grid-template-columns: none;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: auto;
    padding: 0 var(--map-safe-right) 4px var(--map-safe-left);
    scroll-padding-inline: var(--map-safe-left);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .map-primary-controls::-webkit-scrollbar {
    display: none;
  }

  .map-primary-controls button,
  .map-primary-controls .map-route-filter {
    min-width: auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    border-color: rgba(16, 46, 38, 0.14);
    border-radius: 14px;
    padding: 0 6px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(7, 27, 21, 0.11);
  }

  .map-primary-controls button[hidden] {
    display: none;
  }

  .map-primary-controls button span {
    display: inline;
    min-height: 0;
    margin: 0;
    color: inherit;
    font-size: inherit;
  }

  .map-primary-controls button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    stroke: currentColor;
  }

  .map-primary-controls button[data-mobile-map-filter="more"] svg {
    fill: currentColor;
  }

  .map-primary-controls button.active {
    color: var(--map-forest);
    box-shadow: 0 5px 14px rgba(7, 27, 21, 0.15);
  }

  .map-primary-controls .map-route-filter.active {
    border-color: var(--map-forest);
    background: var(--map-forest);
    color: #fff;
  }

  .map-primary-controls .map-route-filter.is-saved-route {
    border-color: var(--map-forest);
    background: var(--map-lime);
    color: var(--map-forest);
  }

  .map-more-controls {
    top: 61px;
    left: var(--map-safe-left);
    width: min(
      338px,
      calc(100% - var(--map-safe-left) - var(--map-safe-right))
    );
    border-radius: 18px;
  }

  .map-gps-state {
    top: 61px;
    left: var(--map-safe-left);
    min-height: 44px;
    padding: 0 0.58rem;
    font-size: 0.68rem;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .map-gps-state.is-live:not(.is-waiting) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
  }

  .map-manual-location-prompt {
    top: 111px;
    left: var(--map-safe-left);
    width: min(
      330px,
      calc(100% - var(--map-safe-left) - var(--map-safe-right) - 58px)
    );
  }

  .map-zoom-actions {
    z-index: 7;
    top: 61px;
    right: var(--map-safe-right);
    bottom: auto;
    left: auto;
    display: grid;
    grid-template-columns: 44px;
    gap: 6px;
  }

  .map-zoom-actions button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
  }

  .map-zoom-actions button[data-map-zoom-reset] {
    display: none;
  }

  .map-zoom-actions.map-more-occluded {
    display: none;
  }

  .map-locate,
  .map-locate.is-following {
    z-index: 7;
    top: auto;
    right: var(--map-safe-right);
    bottom: calc(var(--map-sheet-occlusion, 187px) + 10px);
    left: auto;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    min-height: 48px;
    visibility: visible;
    justify-content: center;
    border-color: rgba(16, 46, 38, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    padding: 0;
    color: var(--map-forest);
    pointer-events: auto;
  }

  .map-locate.is-following {
    border-color: var(--map-forest);
    background: var(--map-forest);
    color: #fff;
  }

  .map-locate span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .map-stage.map-panel-open .map-locate {
    display: inline-flex;
  }

  .map-stage.map-panel-open .map-locate {
    bottom: calc(var(--map-sheet-occlusion, 187px) + 10px);
  }

  .map-stage.map-route-active .map-locate {
    bottom: calc(var(--map-sheet-occlusion, 187px) + 10px);
  }

  .map-attribution-stage {
    left: var(--map-safe-left);
    bottom: 139px;
    min-height: 24px;
    border-radius: 7px;
    padding: 0 0.4rem;
    color: rgba(16, 46, 38, 0.7);
    font-size: 0.52rem;
  }

  .map-stage.map-panel-open .map-attribution-stage {
    bottom: 227px;
  }

  .map-stage.map-route-active .map-attribution-stage {
    bottom: 189px;
  }

  .map-sheet {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 0;
    max-height: 194px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 26px 26px 0 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.1rem var(--map-safe-right) 0.65rem var(--map-safe-left);
    box-shadow: 0 -9px 28px rgba(7, 27, 21, 0.16);
    transition: transform 0.18s ease;
  }

  .map-sheet.is-expanded {
    max-height: min(55dvh, 460px) !important;
    overflow-y: auto;
  }

  .map-sheet[data-map-sheet-view="selected"] {
    max-height: min(50dvh, 300px);
    overflow-y: auto;
  }

  .map-sheet[data-map-sheet-view="chooser"] {
    max-height: min(48dvh, 286px);
    overflow-y: auto;
  }

  .map-sheet[data-map-sheet-view="selected-direction"] {
    max-height: min(54dvh, 312px);
    overflow-y: auto;
  }

  .map-sheet[data-map-sheet-view="route"] {
    max-height: min(46dvh, 300px);
    overflow-y: auto;
  }

  .map-sheet[data-map-sheet-view="route-arrival"] {
    max-height: min(52dvh, 340px);
    overflow-y: auto;
  }

  .map-sheet[data-map-sheet-view="route-editing"] {
    max-height: min(42dvh, 230px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .map-sheet-handle {
    width: 72px;
    height: 44px;
    min-height: 44px;
    display: block;
    margin: -0.05rem auto 0;
    border: 0;
    padding: 0;
  }

  .map-sheet-handle::after {
    top: 19px;
    left: 14px;
    width: 44px;
    height: 4px;
    background: rgba(16, 46, 38, 0.25);
  }

  .map-sheet-kicker {
    margin-bottom: 0.18rem;
    font-size: 0.69rem;
    letter-spacing: 0.09em;
  }

  .map-sheet h3 {
    font: 850 1.08rem/1.12 "DM Sans", sans-serif;
    letter-spacing: -0.025em;
  }

  .map-sheet-summary,
  .map-nearby-copy strong,
  .map-selected-copy {
    font-size: 0.76rem;
  }

  .map-peek {
    min-height: 77px;
    gap: 0.65rem;
  }

  .map-context-shortcuts {
    margin-top: 0.34rem;
  }

  .map-peek-main {
    min-height: 64px;
  }

  .map-peek-main p {
    margin-top: 0.28rem;
    font-size: 0.73rem;
  }

  .map-peek-route {
    min-width: 92px;
    min-height: 48px;
    border-radius: 15px;
    font-size: 0.77rem;
  }

  .map-peek-more .map-nearby-list,
  .map-route-relevant .map-nearby-list,
  .map-sheet.is-expanded .map-nearby-list {
    grid-template-columns: 1fr;
  }

  .map-nearby-list {
    gap: 0.4rem;
    margin-top: 0.45rem;
  }

  .map-nearby-row {
    min-height: 58px;
  }

  .map-sheet-close {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 1.15rem;
  }

  .map-selected-layout {
    grid-template-columns: minmax(0, 1fr) minmax(138px, 0.72fr);
    gap: 0.42rem 0.7rem;
  }

  .map-selected-copy {
    display: -webkit-box;
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
  }

  .map-selected-distance {
    margin-top: 0.28rem;
    font-size: 0.7rem;
  }

  .map-selected-actions {
    margin-top: 0;
  }

  .map-selected-actions button,
  .map-selected-actions a {
    min-height: 48px;
    border-radius: 16px;
    font-size: 0.72rem;
  }

  .map-selected-footer {
    margin-top: 0.05rem;
  }

  .map-route-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 0.55rem;
  }

  .map-route-primary-actions.is-recovery-active {
    margin-top: 0.1rem;
  }

  .map-route-primary-actions.has-multiple-stages .is-text-action {
    grid-column: 1 / -1;
  }

  .map-route-primary-actions .is-stop-action {
    grid-column: 1 / -1;
  }

  .map-sheet[data-map-sheet-view="route"] #map-sheet-content {
    display: flex;
    flex-direction: column;
  }

  .map-sheet[data-map-sheet-view="route"] .map-route-summary {
    order: 1;
  }

  .map-sheet[data-map-sheet-view="route"] .map-route-category-strip {
    order: 2;
  }

  .map-sheet[data-map-sheet-view="route"]
    .map-route-summary.is-recovery-active
    .map-sheet-summary {
    display: none;
  }

  .map-sheet[data-map-sheet-view="route"] .map-route-recovery-glance {
    order: 3;
  }

  .map-sheet[data-map-sheet-view="route"] .map-route-essentials {
    order: 6;
  }

  .map-sheet[data-map-sheet-view="route"] .map-route-primary-actions {
    order: 4;
  }

  .map-sheet[data-map-sheet-view="route"] .map-route-featured {
    order: 5;
    margin-top: 0.28rem;
  }

  .map-sheet[data-map-sheet-view="route"] .map-route-empty {
    order: 5;
  }

  .map-sheet[data-map-sheet-view="route"]
    .map-route-featured
    .map-nearby-list {
    margin-top: 0.12rem;
  }

  .map-sheet[data-map-sheet-view="route"]
    .map-route-featured
    .map-nearby-row {
    min-height: 48px;
    padding-block: 0.2rem;
  }

  .map-sheet[data-map-sheet-view="route"] .map-route-more {
    order: 8;
  }

  .map-sheet[data-map-sheet-view="route"] .map-route-filter-results {
    order: 7;
  }

  .map-route-primary-actions > * {
    min-height: 46px;
  }

  .map-route-recovery-glance.is-waiting {
    margin-top: 0.42rem;
    border-radius: 14px;
    padding: 0.48rem 0.65rem;
  }

  .map-route-recovery-glance.is-waiting small {
    margin-top: 0.18rem;
  }

  .map-route-actions .is-text-action {
    border-color: transparent;
    background: transparent;
  }

  .map-route-more summary {
    font-size: 0.72rem;
  }

  #moen-map .map-pin-body {
    stroke-width: 2;
  }

  #moen-map .map-cluster-disc-v2 {
    fill: rgba(255, 255, 255, 0.96);
    r: 18px;
  }

  #moen-map .map-cluster-count-v2 {
    font-size: 12px;
  }

  #moen-map .map-user-badge {
    display: none;
  }
}

@media (max-width:940px) and (max-height:500px) and (orientation: landscape) {
  #field-dock #field-help {
    display: none !important;
  }

  .map-stage {
    height: calc(
      100dvh - 60px - env(safe-area-inset-top, 0px) - 69px -
        env(safe-area-inset-bottom, 0px)
    );
  }

  .map-primary-controls {
    right: min(340px, 40vw);
  }

  .map-sheet,
  .map-sheet[data-map-sheet-view] {
    top: 8px;
    right: var(--map-safe-right);
    bottom: 8px;
    left: auto;
    width: min(326px, 38vw);
    max-height: none;
    overflow-y: auto;
    border: 1px solid var(--map-line);
    border-radius: 20px;
    padding: 0.1rem 0.75rem 0.65rem;
  }

  .map-sheet[data-map-sheet-view="route-arrival"] #map-sheet-content {
    display: flex;
    flex-direction: column;
  }

  .map-sheet[data-map-sheet-view="route-arrival"] .map-route-summary {
    order: 1;
  }

  .map-sheet[data-map-sheet-view="route-arrival"] .map-route-arrival {
    display: contents;
  }

  .map-sheet[data-map-sheet-view="route-arrival"]
    .map-route-arrival
    .map-route-featured {
    order: 3;
  }

  .map-sheet[data-map-sheet-view="route-arrival"]
    .map-route-primary-actions {
    order: 2;
  }

  .map-sheet[data-map-sheet-view="route-arrival"]
    .map-route-arrival
    .map-route-essentials {
    order: 4;
  }

  .map-sheet[data-map-sheet-view="route-arrival"]
    .map-route-arrival
    .map-nearby-row {
    min-height: 56px;
    padding-block: 0.35rem;
  }

  .map-sheet[data-map-sheet-view="route-arrival"] .map-route-more {
    order: 5;
  }

  .map-route-primary-actions .is-stop-action {
    grid-column: auto;
    order: -1;
  }

  .map-peek {
    grid-template-columns: 1fr;
  }

  .map-peek-route {
    width: 100%;
  }

  .map-locate,
  .map-locate.is-following,
  .map-stage.map-panel-open .map-locate,
  .map-stage.map-route-active .map-locate {
    top: auto;
    right: calc(min(326px, 38vw) + var(--map-safe-right) + 10px);
    bottom: 12px;
  }

  .map-zoom-actions {
    top: 61px;
    right: calc(min(326px, 38vw) + var(--map-safe-right) + 10px);
    bottom: auto;
    left: auto;
  }

  .map-attribution-stage,
  .map-stage.map-panel-open .map-attribution-stage,
  .map-stage.map-route-active .map-attribution-stage {
    bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #moen-map .map-tile,
  #moen-map .map-tile-set,
  .map-sheet {
    transition: none;
  }
}

@media (max-width:760px), (max-width:940px) and (max-height:500px) and (orientation:landscape) {
  .map-attribution-stage,
  .map-stage.map-panel-open .map-attribution-stage,
  .map-stage.map-route-active .map-attribution-stage {
    right: calc(var(--map-safe-right) + 58px);
    bottom: 205px;
    left: auto;
    min-height: 24px;
  }

  .map-scale {
    left: var(--map-safe-left);
    bottom: 205px;
    padding: 0.32rem 0.4rem 0.28rem;
  }

  .map-stage.map-panel-open .map-scale,
  .map-stage.map-route-active .map-scale,
  .map-scale.map-more-occluded {
    opacity: 0;
    transform: translateY(4px);
  }
}

@media (max-width:940px) and (max-height:500px) and (orientation:landscape) {
  .map-attribution-stage,
  .map-stage.map-panel-open .map-attribution-stage,
  .map-stage.map-route-active .map-attribution-stage {
    right: auto;
    bottom: 8px;
    left: var(--map-safe-left);
  }

  .map-scale {
    bottom: 40px;
  }
}

@media (max-width:430px) and (orientation:portrait) {
  .map-primary-controls {
    gap: 3px;
    overflow-x: hidden;
    padding-right: max(3px, env(safe-area-inset-right, 0px));
    padding-left: max(3px, env(safe-area-inset-left, 0px));
  }

  .map-primary-controls button,
  .map-primary-controls .map-route-filter {
    min-width: 0;
    flex: 1 1 0;
    gap: 3px;
    padding-right: 3px;
    padding-left: 3px;
    font-size: 12px;
  }

  .map-primary-controls button svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

}

/* Field-map mobile hardening: keep every visible control and label actionable. */
@media (max-width:760px), (max-width:940px) and (max-height:500px) and (orientation:landscape) {
  #moen-map .map-pin-callout {
    display: none;
  }

  .map-gps-state,
  .map-sheet-kicker,
  .map-selected-copy,
  .map-selected-distance,
  .map-selected-actions button,
  .map-selected-actions a,
  .map-selected-actions a.is-navigation,
  .map-selected-route-add,
  .map-selected-dismiss,
  .map-selected-info-open {
    font-size: 12px;
  }

  .map-context-shortcuts button > strong {
    font-size: 12px;
  }

  .map-context-shortcuts button > small {
    font-size: 11px;
  }

  .map-selected-copy {
    display: block;
    overflow: visible;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }
}

@media (max-width:760px) and (max-height:620px) and (orientation:portrait) {
  .map-sheet[data-map-sheet-view="selected"] {
    max-height: min(62dvh, 340px);
  }

  .map-locate,
  .map-locate.is-following,
  .map-stage.map-panel-open .map-locate,
  .map-stage.map-route-active .map-locate {
    top: 61px;
    right: auto;
    bottom: auto;
    left: calc(var(--map-safe-left) + 104px);
  }
}

@media (max-width:940px) and (max-height:500px) and (orientation:landscape) {
  .map-locate,
  .map-locate.is-following,
  .map-stage.map-panel-open .map-locate,
  .map-stage.map-route-active .map-locate {
    transform: translateX(-54px);
  }
}

@media (max-width:760px) {
  .map-sheet.is-expanded[data-map-sheet-view="selected"] {
    max-height: min(50dvh, 300px) !important;
  }

  .map-sheet.is-expanded[data-map-sheet-view="selected-direction"] {
    max-height: min(54dvh, 312px) !important;
  }

  .map-selected-shell {
    min-height: 0;
  }

  .map-selected-details:not([hidden]) {
    contain: layout paint style;
  }

  .map-selected-context {
    content-visibility: auto;
    contain-intrinsic-size: auto 140px;
  }

  .map-selected-essentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:420px) {
  /* Keep long area names readable beside result artwork and the save button.
     `overflow-wrap:anywhere` can otherwise collapse this column to a single
     character at 390 px. */
  .global-search-result .global-search-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 0.16rem;
  }

  .global-search-result .global-search-meta span {
    width: 100%;
    margin-top: 0;
    text-align: left;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }

  .atlas-card-meta,
  .map-nearby-copy small,
  .map-selected-distance {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }
}

/* Keep the live-map controls forgiving on both mobile platforms. The existing
   overview button stays out of compact layouts, but gives roomy portrait maps
   a one-tap way home once the user reaches the detail zoom band. */
@media (max-width:760px),
  (max-width:940px) and (max-height:500px) and (orientation:landscape) {
  .map-zoom-actions {
    grid-template-columns: 48px;
  }

  .map-zoom-actions > button {
    width: 48px;
    height: 48px;
  }
}

@media (max-width:760px) and (min-height:700px) and (orientation:portrait) {
  .map-stage[data-map-zoom-band="detail"]:not(.map-panel-open)
    .map-zoom-actions:not(.map-more-occluded)
    > button[data-map-zoom-reset] {
    display: grid;
  }
}
