.wl-map-page{padding:2.5rem 0 4rem}.wl-map-page .container{max-width:1120px;margin:0 auto;padding:0 1.25rem}.wl-map-page h1{margin:.5rem 0 1rem}.wl-kicker{color:#a32d2d;font-size:.8rem;letter-spacing:.12em;font-weight:700}.wl-map-note{max-width:880px;color:#566373;line-height:1.6}#map{width:100%;height:min(68vh,650px);min-height:380px;border:1px solid #d9e1e7;border-radius:12px;background:#dcecf6;z-index:0}#status{font-size:.92rem;color:#586675;margin:1rem 0}#stops{line-height:1.9;padding-left:1.75rem}.wl-pin{background:transparent;border:0}.wl-pin span{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:#a32d2d;color:white;border:2px solid white;border-radius:50%;font:700 12px system-ui;box-shadow:0 1px 5px #0006}.leaflet-popup-content{font:14px/1.5 system-ui}.leaflet-container{font-family:inherit}.wl-admin-page{max-width:1050px;margin:2.5rem auto;padding:0 1.25rem}.wl-admin-page h1{margin:.5rem 0 1rem}.wl-admin-nav{display:flex;gap:.6rem;flex-wrap:wrap;margin:1.5rem 0}.wl-admin-nav a{display:inline-block;background:#a32d2d;color:white;text-decoration:none;padding:.7rem 1rem;border-radius:7px;font-weight:600}.wl-admin-nav a:hover{background:#812222}.wl-admin-nav a[aria-current="page"]{background:#721c1c}.wl-admin-page .wl-map-note{margin:1rem 0 1.5rem}

/* Leaflet must retain its own pane, tile and marker positioning. */
#map.leaflet-container { position:relative; overflow:hidden; isolation:isolate; }
#map .leaflet-pane, #map .leaflet-tile, #map .leaflet-marker-icon,
#map .leaflet-marker-shadow, #map .leaflet-tile-container,
#map .leaflet-pane > svg, #map .leaflet-pane > canvas { max-width:none !important; max-height:none !important; }
#map .leaflet-tile { width:256px; height:256px; margin:0; padding:0; border:0; border-radius:0; }
#map .leaflet-marker-icon.wl-pin { width:30px; height:30px; }

.wl-map-detail{margin-top:8px;max-width:320px}.wl-map-detail img{width:92px;height:72px;object-fit:cover;border-radius:5px;margin:6px 6px 0 0}.wl-map-detail button{margin-top:8px;background:#a32d2d;color:#fff;border:0;border-radius:5px;padding:6px 9px;cursor:pointer}.wl-map-story{white-space:pre-wrap;max-height:260px;overflow:auto;line-height:1.5}

/* Identische Popup- und Geschichtendarstellung für Admin und öffentliche Karte. */
.wl-map-popup{font:14px/1.55 system-ui,sans-serif;min-width:230px;max-width:330px}
.wl-map-popup-title{display:block;font-size:16px;margin-bottom:9px;color:#20252d}
.wl-map-field{margin:4px 0;overflow-wrap:anywhere}
.wl-map-photo-link{display:block;margin:12px 0 6px}
.wl-map-photo-link img{display:block;width:100%;max-height:165px;object-fit:cover;border-radius:8px}
.wl-map-story-button{display:block;width:100%;margin-top:12px;border:0;border-radius:7px;background:#a32d2d;color:white;padding:10px 14px;cursor:pointer;font-weight:600}
.wl-map-story-button:hover{background:#812222}
.wl-story-modal[hidden]{display:none!important}
.wl-story-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px}
.wl-story-backdrop{position:absolute;inset:0;background:rgba(15,22,31,.7)}
.wl-story-panel{position:relative;z-index:1;background:white;color:#20252d;border-radius:12px;width:min(760px,100%);max-height:min(85vh,900px);overflow:auto;padding:30px 28px;box-shadow:0 15px 55px #0005}
.wl-story-panel h2{font-size:1.4rem;line-height:1.3;margin:0 35px 20px 0}
.wl-story-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}
.wl-story-close{position:absolute;top:10px;right:12px;border:0;background:#f0f2f5;border-radius:6px;width:36px;height:36px;font-size:26px;cursor:pointer}
body.wl-story-open{overflow:hidden}

.wl-map-photos{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.wl-map-photos a{display:inline-flex;cursor:zoom-in}.wl-map-photos img{width:92px;height:72px;object-fit:cover;border-radius:6px;margin:0}.wl-photo-modal[hidden]{display:none!important}.wl-photo-modal{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;padding:30px}.wl-photo-shade{position:absolute;inset:0;background:rgba(0,0,0,.82)}.wl-photo-panel{position:relative;z-index:1;max-width:96vw;max-height:92vh}.wl-photo-panel img{display:block;max-width:94vw;max-height:88vh;object-fit:contain;border-radius:6px}.wl-photo-close{position:absolute;right:-12px;top:-15px;background:#fff;color:#222;border:0;border-radius:50%;font-size:27px;width:38px;height:38px;cursor:pointer;box-shadow:0 2px 12px #0005}

/* Zusammengefasste Hafenaufenthalte: alle Reisetage direkt im Marker. */
#map .leaflet-marker-icon.wl-pin {  background:transparent; border:0; }
#map .wl-pin .wl-pin-bubble { box-sizing:border-box; display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:100%; padding:3px; background:#a32d2d; color:#fff; border:2px solid #fff; border-radius:50%; box-shadow:0 1px 5px #0006; font:700 12px/1.2 system-ui,sans-serif; white-space:nowrap; }
#map .wl-pin .wl-pin-line { display:block; width:auto; height:auto; background:transparent; border:0; border-radius:0; box-shadow:none; color:inherit; font:inherit; }
#map .wl-pin-days-2 .wl-pin-bubble { font-size:11px; }
#map .wl-pin-days-3 .wl-pin-bubble, #map .wl-pin-days-4 .wl-pin-bubble { font-size:11px; line-height:1.35; }
