:root {
  color-scheme: light;
  color: #152746;
  background: #fff;
  font-family: system-ui, -apple-system, sans-serif;
}
body { margin: 0; }
.map-embed { max-width: 1200px; margin: 0 auto; }
.map-shell {
  position: relative;
  min-height: 300px;
  height: calc(100dvh - 84px);
  max-height: 700px;
  border-radius: 24px;
  overflow: clip;
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px #dbe6f6;
}
#map { position: absolute; inset: 0; }
.map-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #f2f7ff;
  text-align: center;
  color: #40516f;
}
[hidden] { display: none !important; }
.places {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.places a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  color: #1345bc;
  background: #f2f7ff;
  font-size: 14px;
  text-decoration: none;
}
.places a:hover, .map-popup a:hover { text-decoration: underline; }
.map-pin {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 8px;
  border: 3px solid #fff;
  border-radius: 21px;
  background: #0878ed;
  color: #fff;
  font: 700 13px/1.2 system-ui, -apple-system, sans-serif;
  box-shadow: 0 2px 7px #102f5850;
  cursor: pointer;
}
.map-pin[data-kind="station"] { background: #183c6a; }
.map-popup { max-width: 230px; padding: 6px 8px; }
.map-popup p { margin: 5px 0 8px; line-height: 1.4; }
.map-popup a { color: #1345bc; font-weight: 600; }
.map-popup h2 { margin: 0; font-size: 16px; }
:focus-visible { outline: 3px solid #093d8a; outline-offset: 2px; }
.no-script { font-size: 14px; padding: 0 8px; }
@media (max-width: 365px) {
  .places { gap: 4px; }
  .places a { padding-inline: 8px; font-size: 13px; }
}
