.map-page .character::after { background-image: url("assets/standort.jpg"); }
.atlas { margin-top: 26px; }
.map-bar { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap-reverse; gap: 12px; }
.map-tabs { display: flex; gap: 4px; }
.map-tab { border: 2px solid var(--ink); border-bottom: 0; border-radius: 9px 9px 0 0; padding: 11px 16px; background: var(--soft); font-size: .94rem; font-weight: 720; }
.map-tab[aria-pressed="true"] { background: var(--ink); color: white; box-shadow: inset 0 3px var(--accent); }
.picker { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; font-size: .88rem; font-weight: 650; }
.picker select { min-width: 0; width: min(295px,50vw); }
.map-square { border: 2px solid var(--ink); border-radius: 0 4px 0 0; overflow: hidden; position: relative; width: 100%; aspect-ratio: 1.23; background: #e8e8e5; }
#pin-map, #google-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#pin-map { font-family: inherit; background: #e8e8e5; }
#pin-map :focus-visible { outline: 3px solid #a00039; outline-offset: 3px; }
.map-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 22px; min-height: 47px; border: 2px solid var(--ink); border-top: 0; padding: 10px 15px; border-radius: 0 0 5px 5px; background: var(--soft); font-size: .87rem; }
#selection { flex: 1 1 200px; font-weight: 660; }
.text-button, .map-foot a, .place-actions a, .popup-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.text-button { border: 0; padding: 4px 0; background: transparent; }
.map-foot a:hover, .place-actions a:hover, .text-button:hover, .popup-link:hover { color: #a00039; }
.map-pin { background: transparent; border: none; }
.pin-shape {
  display: grid; place-items: center; position: absolute; left: 3px; top: 1px;
  width: 26px; height: 26px; border: 2px solid #171418; border-radius: 50% 50% 50% 3px;
  background: #ec285c; box-shadow: -2px 2px 0 rgb(0 0 0 / 28%); transform: rotate(-45deg);
}
.pin-shape::after { content: ''; width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; background: white; }
.pin-count { display: grid; place-items: center; width: 37px; height: 37px; background: var(--ink); color: white; border: 3px solid #f15980; border-radius: 50%; box-shadow: 0 0 0 2px white; font: 800 17px/1 Arial,sans-serif; }
.leaflet-container .leaflet-popup-content-wrapper { border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 4px 0 var(--ink); }
.leaflet-popup-content { min-width: 170px; }
.pin-detail { display: grid; gap: 7px; color: var(--ink); font-size: .86rem; line-height: 1.4; }
.pin-detail strong { font-size: 1.04rem; }
.pin-detail small { font-size: .8rem; color: var(--muted); }
.pin-detail .popup-link { color: #9c1240; }
.leaflet-container .leaflet-control-attribution { font-size: 11px; }
.address-list { margin-top: 20px; border: 2px solid var(--ink); border-radius: 5px; }
.address-list summary { padding: 14px 18px; font-weight: 750; }
.address-list ul { margin: 0; padding: 0 18px; list-style: none; }
.place { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.place address { margin-top: 4px; font-size: .92rem; font-style: normal; }
.address-note { display: block; margin-top: 3px; max-width: 65ch; color: var(--muted); font-size: .83rem; }
.place-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; font-size: .86rem; }
.locate { border: 1.5px solid var(--ink); border-radius: 4px; padding: 7px 10px; background: white; font-weight: 650; }
.locate:hover { background: #ffd3df; }
@media (max-width: 700px) {
  .map-bar { display: grid; gap: 10px; }
  .picker { grid-row: 1; display: grid; gap: 5px; }
  .picker select { width: 100%; }
  .map-square { aspect-ratio: 1 / 1.05; min-height: 370px; }
  .map-foot { gap: 8px 18px; }
  #selection { flex-basis: 100%; }
  .place { align-items: start; flex-direction: column; gap: 9px; }
}
@media (max-width: 1100px) {
  .map-square { aspect-ratio: 1.35; max-height: 72svh; }
  .map-tab, .locate, .map-foot a, .map-foot .text-button, .place-actions a { display: inline-flex; min-height: 44px; align-items: center; }
  .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
}
@media (max-width: 700px) {
  .map-bar { grid-template-columns: minmax(0,1fr); }
  .map-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
  .map-tab { justify-content: center; }
  .map-square { aspect-ratio: 1; min-height: min(81vw,350px); max-height: 67svh; }
  .map-foot { gap: 0 16px; padding-block: 9px 3px; }
  .place, .place > div { min-width: 0; overflow-wrap: anywhere; }
}
.map-permission { display:grid; height:100%; overflow:auto; align-items:safe center; justify-items:center; background:#f4f2f3; }
.map-permission > div { max-width:42ch; margin:18px; }
.map-permission h2 { margin:0; font-size:clamp(20px,4vw,36px); font-style:italic; }
.map-permission p { line-height:1.55; }
.map-permission a { color:#89123e; margin-right:12px; }
.map-consent-button { min-height:44px; margin-block:8px; padding:6px 12px; border:2px solid #211d21; border-radius:7px; background:white; box-shadow:2px 3px #211d21; font-weight:700; }
.map-consent-button:is(:hover,:focus-visible) {background:#ffc1d6;}
