:root {
  color-scheme: light;
  color: #142541;
  background: #fff;
  font: 15px/1.4 Inter, system-ui, sans-serif;
}

body { margin: 0; }

.map-embed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100dvh;
  max-width: 1200px;
  margin: 0 auto;
}

.map-shell {
  position: relative;
  flex: 1;
  min-height: 315px;
  max-height: 760px;
  border-radius: 24px;
  overflow: hidden;
  background: #f2f7ff;
}

#map, .map-status { position: absolute; inset: 0; }
.map-status {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f2f7ff;
  color: #405476;
  text-align: center;
}

[hidden] { display: none !important; }

.map-views, .places {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 3px 5px;
}

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

.map-views button, .places a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  background: #f2f7ff;
  color: #1047aa;
  font-weight: 650;
  text-decoration: none;
}

.map-views button {
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.map-views button[aria-pressed="true"] {
  border-color: #125ede;
  background: #125ede;
  color: #fff;
}

.places .station { color: #183c6a; }
.places .transport { color: #145449; }
.places .bus { color: #614813; }
.places a:hover, .map-popup a:hover { text-decoration: underline; }
.map-credit {
  margin: -5px 3px 6px;
  color: #405476;
  font-size: 12px;
}
.map-credit a { color: inherit; }

.map-pin, .places span {
  display: inline-grid;
  place-items: center;
  background: #125ede;
  color: #fff;
  border-radius: 999px;
  font-weight: 750;
}

.places span { min-width: 21px; min-height: 21px; font-size: 12px; }

.map-pin {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 3px solid #fff;
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 2px 9px #102f584d;
  cursor: pointer;
}

.map-pin.station { background: #183c6a; }
.map-pin.transport { background: #1b6457; }
.map-pin.bus { background: #75541b; }
.map-pin[aria-expanded="true"] { outline: 2px solid #183c6a; z-index: 1; }

.map-popup { padding: 4px 8px; }
.map-popup h2 { margin: 0; font-size: 16px; }
.map-popup p { margin: 5px 0 8px; font-size: 14px; }
.map-popup a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: #1047aa;
  font-size: 14px;
  font-weight: 650;
}

.maplibregl-popup-close-button { font-size: 19px; min-width: 26px; min-height: 26px; }
:focus-visible { outline: 3px solid #093d8a; outline-offset: 2px; }
.no-script { margin: 0 8px 8px; }

@media (max-width: 420px) {
  .map-shell { border-radius: 18px; }
  .places a, .map-views button { padding-inline: 9px; font-size: 13px; }
}
