.atlas { padding-block: 24px; }
.atlas-title, .map-legend, .map-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.atlas-title { margin-bottom: 18px; }
.atlas-layout { display: grid; grid-template-columns: minmax(240px, 296px) minmax(0,1fr); grid-template-rows: auto 1fr; gap: 16px 22px; }
.map-sidebar, .map-results { min-width: 0; }
.map-sidebar > label, .map-sidebar legend { display: block; margin-bottom: 6px; font-weight: 650; }
#map-search { width: 100%; min-height: 44px; }
.map-sidebar fieldset { margin: 17px 0; padding: 0; border: none; }
.map-filter { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); min-height: 40px; cursor: pointer; font-size: 14px; }
.map-filter input, #street { width: 17px; height: 17px; accent-color: #325e4d; }
.map-filter small { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.key { display: inline-grid; place-items: center; border-radius: 50%; width: 22px; height: 22px; font: 700 11px Arial,sans-serif; flex: none; color: white; }
.cafe { background: #92452d; }
.toilets { background: #385a86; }
.charging_station { background: #236349; }
.map-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.map-buttons button { padding-inline: 9px; }
#map-status, .map-hint, .map-credits { color: var(--muted); font-size: 13px; line-height: 1.45; }
#map-status { margin-top: 8px; }
.map-frame { min-width: 0; grid-row: 1 / span 2; grid-column: 2; }
#map { height: clamp(395px, 69vh, 750px); position: relative; isolation: isolate; background: #cbdedc; border: 1px solid #9caeaa; border-radius: 6px; font-family: inherit; }
.map-legend { margin-top: 8px; flex-wrap: wrap; font-size: 14px; }
.map-legend label { display: flex; align-items: center; min-height: 34px; cursor: pointer; }
.map-hint { max-width: 85ch; }
.map-results { grid-row: 2; grid-column: 1; align-self: start; border-top: 1px solid var(--line); padding-top: 14px; }
.map-results h2 { margin-bottom: 8px; font-size: 19px; }
#map-list { max-height: clamp(165px, 31vh, 400px); overflow-y: auto; }
.map-choice { width: 100%; padding: 8px 4px; min-height: 42px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; justify-content: flex-start; }
.map-choice:hover { background: var(--hover); }
.map-choice strong, .map-choice small { display: block; overflow-wrap: anywhere; }
.map-choice small { color: var(--muted); font-size: 12px; }
.map-choice strong { font-size: 14px; font-weight: 600; }
.map-credits { padding-top: 17px; margin-top: 16px; border-top: 1px solid var(--line); }
.map-credits a, .place-card a { text-decoration: underline; }
.map-count, .map-pin { border-radius: 50%; border: 2px solid white; box-shadow: 0 1px 4px #15271f40; color: white; display: grid; place-items: center; font-weight: 700; }
.map-count { background: #2c5146; font-size: 12px; }
.map-count.tesla, .charging_station.tesla { background: #b62338; }
.map-count.mixed::after { content: 'T'; position: absolute; top: -5px; right: -6px; display: grid; place-items: center; width: 14px; height: 14px; background: #b62338; color: white; border: 1px solid white; border-radius: 50%; font: bold 10px Arial,sans-serif; }
.map-operators { display: inline-flex; gap: 12px; align-items: center; }
.map-operators > span { display: inline-flex; gap: 5px; align-items: center; }
.map-operators .key { width: 17px; height: 17px; }
.map-pin { font-size: 11px; }
.location-dot { border: 3px solid white; border-radius: 50%; background: #1c69b2; box-shadow: 0 0 0 5px #2372b344; }
.city-label { white-space: nowrap; pointer-events: none; color: #393f37; font-weight: 650; font-size: 13px; text-shadow: 0 1px 2px white, 0 -1px 2px white, 1px 0 2px white; }
.leaflet-container .leaflet-bar a { height: 38px; width: 38px; line-height: 38px; }
.leaflet-container .leaflet-control-attribution { color: #263e37; background: #fffffff0; font-size: 10px; }
.place-card { color: #202b24; min-width: 145px; max-width: 230px; }
.place-card strong, .place-card small, .place-card a { display: block; }
.place-card strong { margin: 3px 0; font-size: 17px; }
.place-card p { margin: 4px 0; }
.place-card a { margin-top: 8px; min-height: 24px; }
.leaflet-container a.leaflet-popup-close-button { font-size: 21px; width: 30px; height: 30px; }
@media (max-width: 760px) {
  .atlas { padding-top: 16px; }
  .atlas-layout { display: flex; flex-direction: column; gap: 12px; }
  .atlas-title { margin-bottom: 10px; }
  .map-sidebar fieldset { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 7px 0; }
  .map-sidebar legend { position: absolute; clip-path: inset(50%); height: 1px; overflow: hidden; }
  .map-filter { border: none; font-size: 13px; gap: 2px; min-height: 35px; }
  .map-filter small { display: none; }
  .map-filter .key { width: 18px; height: 18px; font-size: 9px; }
  .map-frame, .map-results { width: 100%; }
  #map { height: clamp(320px, 52vh, 550px); }
  #map-list { max-height: 300px; }
}
@media (max-height: 600px) and (min-width: 761px) {
  #map { height: 68vh; min-height: 260px; }
}

@media (max-width: 760px) {
  .choosing .map-results { order: 1; }
  .choosing .map-frame { order: 2; }
}

.map-sidebar fieldset { margin-bottom: 4px; }
.map-sidebar > .map-hint { margin-bottom: 12px; }
.place-card .facility { padding-block: 3px; }
