.station-choice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem;
  border: 1px solid #c8d7d1;
  border-radius: 7px;
  margin: 0.45rem 0;
  cursor: pointer;
  min-height: 44px;
}
.station-choice input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  min-width: 18px;
  min-height: 18px;
}
.station-choice span {
  min-width: 0;
}
.station-choice strong,
.station-choice small {
  display: block;
  overflow-wrap: anywhere;
}
.station-choice strong {
  font-size: 0.86rem;
}
.station-choice small {
  font-size: 0.76rem;
  line-height: 1.5;
  margin-top: 0.3rem;
}
.station-choice.is-shown {
  background: #edf4fa;
  border-color: #527ca3;
}
.nearby-station-choices summary {
  font-weight: 600;
}
.location-context-dialog {
  padding: 0;
  border: 1px solid #b7cbc3;
  border-radius: 12px;
  width: min(1300px, 96vw);
  max-width: 96vw;
  height: 94dvh;
  max-height: 94dvh;
  overflow: hidden;
}
.location-context-dialog[open] {
  display: flex;
  flex-direction: column;
}
.location-context-dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #cbd9d1;
  background: #f4f7f4;
}
.location-context-dialog h2 {
  font-size: 1.35rem;
  margin: 0;
}
.location-context-dialog > header p {
  font-size: 0.8rem;
  margin: 0.3rem 0 0;
}
.location-context-dialog > header button {
  flex-shrink: 0;
  white-space: nowrap;
}
.context-toolbar {
  padding: 0.7rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem 1rem;
  border-bottom: 1px solid #cbd9d1;
}
.context-toolbar > label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 240px;
  font-size: 0.8rem;
}
.context-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.context-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.context-scroll {
  overflow: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 1fr);
  gap: 1rem;
  padding: 1rem;
  overscroll-behavior: contain;
}
.context-map-column {
  min-width: 0;
  position: sticky;
  top: 0;
  align-self: start;
}
.context-map {
  height: 430px;
  min-height: 280px;
  background: #e6ece7;
  border: 1px solid #9fb4a7;
  border-radius: 9px;
  isolation: isolate;
}
.context-information {
  min-width: 0;
}
.context-information > section {
  border-top: 1px solid #ccd8d1;
  padding-top: 0.6rem;
  margin-top: 0.8rem;
}
.context-information h3 {
  font-size: 1.05rem;
  margin: 0.4rem 0;
}
.context-information .helper {
  font-size: 0.78rem;
}
.context-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.78rem;
  margin: 0.65rem 0;
}
.key-site {
  color: #17634b;
}
.key-weather {
  color: #2163ad;
}
.key-selected {
  color: #926600;
}
.key-medical {
  color: #ae3a46;
}
.context-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  border: 0;
  margin: 0 0 0.4rem;
  padding: 0;
  min-width: 0;
  font-size: 0.82rem;
}
.context-layers legend {
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
}
.context-layers label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}
.context-layers input {
  flex-shrink: 0;
  min-width: 18px;
  min-height: 18px;
}
.context-map-column > .helper {
  font-size: 0.77rem;
}
.context-medical-row {
  padding: 0.7rem 0;
  border-bottom: 1px solid #d8e2dc;
  font-size: 0.85rem;
}
.context-medical-row small {
  display: block;
  font-size: 0.75rem;
  line-height: 1.5;
}
.context-medical-row > a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.location-context-dialog > footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid #ccd8d1;
  background: #f4f7f4;
  font-size: 0.8rem;
  flex: none;
}
.location-context-dialog > footer p {
  margin: 0;
  letter-spacing: normal;
  line-height: 1.4;
}
.location-context-dialog .leaflet-popup-content {
  max-width: 230px;
  overflow-wrap: anywhere;
}
.location-context-dialog .leaflet-popup-content p {
  margin: 0.5rem 0;
}
.location-context-dialog .leaflet-control-zoom a {
  min-width: 44px;
  min-height: 44px;
  line-height: 44px;
}
html:has(.location-context-dialog[open]),
body:has(.location-context-dialog[open]) {
  overflow: hidden;
}
@media (max-width: 1000px) {
  .context-scroll {
    grid-template-columns: 1fr;
  }
  .context-map-column {
    position: static;
  }
  .context-map {
    height: 380px;
  }
}
@media (max-width: 600px) {
  .location-context-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    margin: 0;
  }
  .location-context-dialog > header {
    padding: 0.7rem;
  }
  .context-toolbar {
    padding: 0.6rem;
    gap: 0.4rem;
  }
  .context-toolbar > label {
    flex-basis: 100%;
  }
  .context-toolbar > div {
    width: 100%;
  }
  .context-toolbar > div .button {
    flex: 1;
  }
  .context-scroll {
    padding: 0.65rem;
  }
  .context-map {
    height: 320px;
  }
  .location-context-dialog > footer {
    padding: 0.6rem;
  }
  .station-choice {
    padding: 0.6rem;
  }
}
.field-mode .station-choice.is-shown {
  background: inherit;
  color: inherit;
  border: 2px solid currentColor;
}
.field-mode .location-context-dialog,
.field-mode .location-context-dialog > header,
.field-mode .location-context-dialog > footer {
  background: inherit;
  color: inherit;
}
