.map-shell {
  position: relative;
  margin: 28px 0;
}
.map-shell .map-frame {
  margin: 0;
}
.map-frame {
  isolation: isolate;
}
.map-dark .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}
.map-instructions {
  margin: 16px 0 30px;
  padding: 16px 18px;
  border-left: 3px solid #c69a35;
  color: #d9e1db;
  background: #1b2822;
  font-size: 14px;
}
.map-instructions strong {
  color: #f2d78c;
}
.map-open-button {
  width: 100%;
  border: 1px solid var(--coral);
  border-top: 0;
  padding: 13px 17px;
  color: #fff;
  background: #25352f;
  font:
    700 13px Manrope,
    sans-serif;
  cursor: pointer;
  text-align: left;
}
.map-open-button:hover {
  background: #31473f;
}
.map-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: #0d1512;
  color: #fff;
}
.map-modal::backdrop {
  background: rgba(0, 0, 0, 0.82);
}
.map-modal-bar {
  height: 64px;
  padding: 10px max(16px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #101b17;
}
.map-modal-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font:
    600 16px Fraunces,
    serif;
}
.map-modal-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}
.map-modal-icon-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #61756b;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.map-modal-icon-button:hover,
.map-modal-icon-button:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
}
.map-modal-icon-button.is-active {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(207, 111, 82, 0.16);
}
.map-fabs {
  position: absolute;
  right: 14px;
  bottom: 54px;
  z-index: 610;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.map-fab {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #1b1b1b;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.map-fab-panel {
  width: 46px;
  height: 46px;
  padding: 0;
}
.map-fab-guide {
  color: #fff;
  background: #25352f;
}
.map-fab:hover,
.map-fab:focus-visible {
  color: var(--coral);
}
.map-fab.map-fab-accent {
  color: #fff;
  background: var(--coral);
}
.map-fab.map-fab-accent:hover,
.map-fab.map-fab-accent:focus-visible {
  color: #fff;
  filter: brightness(1.08);
}
.map-fab.is-active {
  color: #fff;
  background: var(--coral);
}
.map-elevation {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 605;
  color: #fff;
  background: rgba(13, 21, 18, 0.94);
  transform: translateY(calc(100% - 38px));
  transition: transform 0.25s ease;
}
.map-elevation.is-open {
  transform: translateY(0);
}
.map-elevation-toggle {
  width: 100%;
  height: 38px;
  border: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font:
    700 12px Manrope,
    sans-serif;
}
.map-elevation-toggle i {
  transition: transform 0.2s ease;
}
.map-elevation.is-open .map-elevation-toggle i:last-child {
  transform: rotate(180deg);
}
.map-elevation-chart {
  padding: 0 16px 16px;
}
.map-elevation-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-bottom: 6px;
  color: #c9d3cd;
  font-size: 12px;
}
.map-elevation-chart svg {
  display: block;
  width: 100%;
  height: 120px;
}
.user-location-icon {
  position: relative;
}
.user-location-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2f7bff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
}
[data-map-modal-host] {
  height: calc(100dvh - 64px);
}
[data-map-modal-host] .map-frame {
  height: 100%;
  margin: 0;
  border: 0;
}
.leaflet-tooltip.station-label {
  padding: 4px 7px;
  border: 1px solid #f2d78c;
  border-radius: 2px;
  color: #1b1508;
  background: #c69a35;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  font:
    700 11px/1.2 Manrope,
    sans-serif;
  white-space: nowrap;
}
.leaflet-tooltip.station-label:hover,
.leaflet-tooltip.station-label:focus {
  outline: 2px solid #fff4c7;
  outline-offset: 2px;
  cursor: pointer;
}
.leaflet-tooltip-top.station-label::before {
  border-top-color: #c69a35;
}
@media (max-width: 720px) {
  .map-modal-bar {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
  }
  .map-modal-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .map-modal-icon-button {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .map-fabs {
    right: 10px;
    bottom: 46px;
    gap: 8px;
  }
  .map-fab {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .map-fab-panel {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }
  .map-fab-panel span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .map-elevation-chart svg {
    height: 90px;
  }
  [data-map-modal-host] {
    height: calc(100dvh - 74px);
  }
}

.map-instructions {
  color: #eadfae;
  background: #211c0d;
}
.map-open-button {
  border-color: #8b7026;
  color: #f5e8bb;
  background: #27200e;
}
.map-open-button:hover {
  background: #3a3014;
}
.map-modal {
  background: #141109;
}
.map-modal-bar {
  background: #1b170b;
}
.map-modal-icon-button {
  border-color: #806923;
  color: #f5e8bb;
}
.map-modal-icon-button:hover {
  border-color: #f2d78c;
  color: #f2d78c;
}
.map-modal-icon-button.is-active {
  border-color: #f2d78c;
  color: #f2d78c;
  background: rgba(242, 215, 140, 0.16);
}
