body.mapFirst{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.mapFirst .mast{flex:none;position:relative;z-index:10}
.mapFirst .mastinner{max-width:100%;padding-inline:clamp(16px,3.2vw,60px)}
.mapFirst #main{flex:1;min-height:0;margin:0;padding:0;width:100%;max-width:none}
.mapFirst footer{display:none}
.mapDesk{position:relative;width:100%;height:100%;isolation:isolate;background:#bfd3ca}
.mapDesk [hidden]{display:none!important}
.deskSearch,.mapTopActions,.deskSettings,.mapDock,.placePopup{position:absolute;z-index:3}
.deskSearch,.deskSettings,.deskButton,.mapDock,.placePopup{background:#fffdf4;box-shadow:0 4px 19px #203c3630;border:1px solid #c3c6b6;border-radius:10px}
.deskSearch{top:16px;left:18px;width:min(335px,calc(100% - 132px));overflow:hidden}
.deskSearch label{display:flex;align-items:center;gap:12px;padding:0 13px}
.deskSearch input{width:100%;background:transparent;border:0;padding:13px 0;font-size:14px}
#suggestPlaces{max-height:min(44dvh,345px);overflow:auto;border-top:1px solid #dcdacc}
#suggestPlaces button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 12px}
#suggestPlaces button:hover,#suggestPlaces button:focus-visible{background:#e7eee4}
#suggestPlaces small{margin-left:auto;color:#63706a;font-size:10px}
#suggestPlaces p{padding:0 12px}
.mapTopActions{top:16px;right:18px;display:flex;gap:8px}
.deskButton{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 13px;font-weight:600}
.deskSettings{top:68px;right:18px;width:min(286px,calc(100% - 32px));padding:18px;z-index:6;max-height:65dvh;overflow:auto}
.deskSettings h2{font:24px Georgia,serif;margin:0 0 12px}
.deskSettings label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;font-size:13px}
.deskSettings select{width:100%;padding:8px;border:1px solid #b6bfaf;background:#fafaf1;border-radius:5px}
.deskSettings input{width:17px;height:17px;accent-color:#265b56}
.mapDock{bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:3px}
.mapDock .switch{margin:0}
.placePopup{width:300px;max-height:calc(100% - 145px);overflow-y:auto;overscroll-behavior:contain;z-index:4}
.placePopup #journal{background:transparent;border:0}
.popClose{position:sticky;float:right;top:8px;margin:8px 8px -43px 0;z-index:2;border-radius:50%;background:#fffdf4;display:grid;place-items:center;width:32px;height:32px;box-shadow:0 1px 7px #203c3633}
.popImage .imgbox{height:115px;margin:0;border-radius:0}
.popImage .imgbox img{width:100%;height:100%;object-fit:cover}
.popBody{padding:14px 15px 16px}
.popBody h2{font:27px/1.08 Georgia,serif;margin:7px 0}
.popBody p{font-size:13px;line-height:1.5;margin:8px 0 12px}
.popTag,.popButtons,.popSources{display:flex;align-items:center;gap:7px}
.popTag{color:#61756a;font-size:12px}.popTag svg{width:15px;height:15px}
.popButtons .action,.popButtons .paleBtn{margin:0;padding:7px 10px;font-size:12px;min-height:33px}
.popSources{margin-top:9px;font-size:11px}
.mapDesk .journalTools,.mapDesk .journalTop .iconBtn{visibility:hidden}
.mapDesk .mapStage .rose{top:80px}
.mapDesk .routeNav{left:50%;transform:translateX(-50%);bottom:76px;max-width:82%;z-index:4}
#map.hideNames #mapRoadNames,#map.hideNames #street-names,#map.hideNames #overview-names{display:none}
@media(max-width:680px){.mapTopActions{right:8px;gap:4px}.deskButton{padding:8px;width:40px;justify-content:center}.deskButton span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.deskSearch{left:8px;width:calc(100% - 104px)}.mapTopActions,.deskSearch{top:9px}.deskSettings{top:60px;right:8px}.placePopup{width:calc(100% - 16px);left:8px!important;top:auto!important;bottom:70px;max-height:40dvh}.popImage{float:left;width:88px;margin:12px 10px 5px 12px}.popImage .imgbox{height:82px;border-radius:5px}.popBody{padding-right:40px}.popBody h2{font-size:21px}.popButtons{clear:both}.mapDock{bottom:15px}.mapDesk .mapScale{bottom:75px}.mapDesk:has(.placePopup:not([hidden])) .routeNav{bottom:8px}.mapDesk:has(.routeNav):has(.placePopup:not([hidden])) .mapDock{display:none}.waterControl{max-width:90px}}

.landmarkCaption{font:600 12px Georgia,serif;fill:#203d3e;stroke:#faf7e6;stroke-width:3.5px;stroke-linejoin:round;paint-order:stroke;cursor:pointer}.mapDesk .mapStage .rose{right:17px;width:33px;height:46px}.wikiNotes{margin-top:16px}.wikiNotes .sourceLink{margin-right:8px}
