/* Text first and a fresh reading position for every mobile map selection. */
@media(max-width:700px){
 .map-dialog .map-selection:not([hidden]){display:flex;flex-direction:column;overflow-anchor:none}
 .map-dialog .map-selection>.map-selection-copy{order:0;flex:none}
 .map-dialog .map-selection.has-photo>figure{order:1;float:none;flex:none;margin:16px auto 0}
 .map-dialog .map-selection>.map-selection-close{position:absolute;right:4px;top:4px}
}
/* The dedicated URL opens the map directly and closes to the referring page. */
body.map-page>header,body.map-page>main,body.map-page>footer{display:none!important}

.map-dialog .map-selection-copy>h3{display:block!important;font:700 19px/1.3 Arial,sans-serif!important}.map-dialog .map-selection-copy :is(p,ul,li){font:400 14px/1.5 Arial,sans-serif!important}.map-dialog .map-selection-copy ul{padding-left:20px}.map-dialog .map-selection-copy a{font-size:14px!important}.map-photo-fold{margin:12px 0 0;border:0}.map-photo-fold>summary{display:none}.map-photo-fold>figure{margin:12px 0 0}.map-photo-fold>figure img{max-width:100%}
@media(max-width:700px){.map-dialog .map-selection{position:relative;scroll-behavior:auto!important}.map-dialog .map-selection>.map-selection-copy{order:0;flex-shrink:0!important}.map-dialog .map-selection>.map-photo-fold{order:1;flex-shrink:0;width:100%}.map-dialog .map-photo-fold>summary{display:list-item;width:fit-content;cursor:pointer;color:#294b3e;font:400 14px/1.5 Arial,sans-serif;text-decoration:underline;text-underline-offset:4px;padding:6px 0}.map-dialog .map-photo-fold>figure{max-width:260px;margin:12px auto}.map-dialog .map-selection-copy>h3{padding-right:40px;margin-top:0!important}}

@media(max-width:700px){
 .map-dialog .map-mobile-menu-panel{max-height:none;overflow:visible;padding:4px 7px}
 .map-dialog .map-mobile-panel-heading{min-height:34px;padding:0 4px;font-size:14px}
 .map-dialog .map-mobile-menu-close{min-width:32px;min-height:32px;padding:1px;font-size:23px}
 .map-dialog .map-mobile-scroll-hint{display:none!important}
 .map-dialog .map-mobile-place{min-height:34px;padding:6px 7px;font:400 13px/1.3 Arial,sans-serif;text-align:left}
 .map-dialog #map-mobile-facilitiesGroup:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px}
 .map-dialog #map-mobile-facilitiesGroup>.map-mobile-panel-heading{grid-column:1/-1}
 .map-dialog #map-mobile-facilitiesGroup>.map-mobile-place{font-size:12px;min-height:36px;display:flex;align-items:center}
 .map-dialog.has-selection .map-body{grid-template-rows:minmax(80px,1fr) auto!important;align-items:stretch}
 .map-dialog .map-selection:not([hidden]){height:auto!important;max-height:none!important;min-height:0;overflow:auto;gap:8px;padding:10px 12px;align-self:end}
 .map-dialog .map-selection-copy{min-height:0;flex:0 0 auto;overflow:visible}
 .map-dialog .map-selection-copy :is(p,ul){margin:5px 0!important}
 .map-dialog .map-selection-copy .map-place-bullets li+li{margin-top:4px}
 .map-dialog .map-selection-copy>h3{font-size:18px!important;line-height:1.3!important;margin:0 0 6px!important}
 .map-dialog .map-selection-copy>.map-season{display:block;width:fit-content;margin:0 0 6px;font:400 12px/1.4 Arial,sans-serif;padding:3px 7px}
 .map-dialog .map-photo-fold{margin:2px 0 0}.map-dialog .map-selection:has(.map-photo-fold[open]){max-height:50dvh!important}
 .map-dialog .map-photo-fold>summary{padding:3px 0}
}

@media(max-width:700px) and (max-height:600px){.map-dialog #map-mobile-facilitiesGroup>.map-mobile-place{min-height:31px;padding:4px 5px;font-size:11px}.map-dialog .map-mobile-panel-heading{min-height:30px}.map-dialog .map-mobile-menu-close{min-height:28px;min-width:28px}}

/* Equal photo frames and compact driving directions. */
.map-dialog .map-photo-fold>figure.map-photo-default{width:100%;max-width:none}
.map-dialog .map-photo-default .map-photo-open{display:block;width:100%;aspect-ratio:4/3;overflow:hidden;background:#e3e9df}
.map-dialog .map-photo-default .map-photo-open img{display:block;position:static!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important}
.map-dialog .map-road-sign{display:grid;grid-template-columns:1.2em minmax(0,1fr);column-gap:3px;font-size:1.7cqw!important;line-height:1.15!important;padding:3px!important;min-height:0!important}
.map-road-sign>svg{width:1.15em;height:1em;align-self:center}.map-road-sign>small{grid-column:2;font-size:.78em;line-height:1.15}
@media(max-width:700px){
 .map-dialog[open]{grid-template-rows:auto auto auto auto auto!important;align-content:start;overflow-y:auto!important}
 .map-dialog .map-body,.map-dialog.has-selection .map-body{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;flex:none}
 .map-dialog .map-stage,.map-dialog.has-selection .map-stage{width:100%;height:auto!important;aspect-ratio:2000/1423;max-height:none!important;min-height:0!important}
 .map-dialog .map-selection:not([hidden]){margin-top:8px;max-height:none!important;overflow:visible!important}
 .map-dialog .map-selection:has(.map-photo-fold[open]){max-height:none!important}
 .map-dialog .map-selection[hidden]{display:none!important}
 .map-dialog .map-mobile-menus:has(.map-mobile-category[aria-expanded="true"])~.map-body .map-selection{display:none!important}
 .map-dialog .map-road-sign{font-size:1.7cqw!important;padding:2px!important;min-height:0!important}
}

.map-dialog .map-marker[data-point="aed"]{background:#ed1717!important;color:#fff!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #ed1717!important}

@media(max-width:700px){.map-dialog .map-mobile-place[data-mobile-place="aed"],.map-dialog .map-mobile-place[data-mobile-place="extinguisher"]{color:#c21d16!important;font-weight:700}.map-dialog .map-mobile-place[data-mobile-place="laundry"]{text-align:left!important;justify-content:flex-start!important}}

.map-road-sign[data-road-label="grotli"]>small{grid-column:2;grid-row:1}.map-road-sign[data-road-label="grotli"]>span{grid-column:2;grid-row:2}.map-road-sign[data-road-label="grotli"]>svg{grid-row:1/3}

.map-mobile-panel-host{display:none}
@media(max-width:700px){.map-mobile-panel-host:has(>.map-mobile-menu-panel:not([hidden])){display:block;margin-top:8px}.map-dialog .map-mobile-panel-host>.map-mobile-menu-panel{position:static;inset:auto;width:100%;box-sizing:border-box;max-height:none!important;overflow:visible!important}.map-dialog .map-mobile-panel-host>.map-mobile-menu-panel[hidden]{display:none!important}}

/* Keep driving directions visibly separate from the walking destinations. */
.map-dialog .map-road-sign[data-road-label="town"]{border:1px solid #294b3e!important;box-shadow:0 0 0 3px #bed9bf!important}
@media(max-width:700px){.map-dialog[open]{grid-template-rows:auto auto auto auto!important}.map-dialog .map-body>.map-mobile-menus{margin:10px 0 8px}}

.map-dialog .map-road-sign>span{white-space:nowrap}.map-dialog .map-road-sign[data-road-label="town"]{font-size:1.5cqw!important}.map-dialog .map-named-place:has(.map-hiker){display:flex;align-items:center;gap:.25em;justify-content:flex-start;white-space:nowrap}.map-hiker{width:1em;height:1.15em;flex:0 0 auto}.map-dialog .map-marker[data-point="waterfall"]{width:12%;height:14%;background:transparent!important}.map-dialog .map-marker[data-point="extinguisher"]{width:5%;height:6%;background:transparent!important}.map-dialog .map-zone{background:transparent!important}.map-dialog .map-pitch polygon{fill:transparent!important}.map-aed-route-line{stroke:#ed1717!important}.map-aed-route marker path{fill:#ed1717!important}
@media(max-width:700px){.map-dialog-heading h2,.map-dialog .map-dialog-heading>h2{font-size:24px!important;line-height:1.15!important}.map-dialog .map-hint{font-size:12px!important;line-height:1.3!important;margin:6px 0 12px!important;white-space:nowrap}.map-dialog .map-close,.map-dialog .map-selection-close,.map-dialog .map-mobile-menu-close{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;font-size:22px!important;line-height:1!important;background:transparent!important;color:#294b3e!important;border:1px solid #294b3e55!important;border-radius:3px!important}.map-dialog .map-dialog-heading{gap:8px!important}.map-dialog .map-zoom{font-size:14px!important;padding:9px 12px!important;min-height:36px!important}}

/* Every selected, hovered or keyboard-focused map outline has a clear interior. */
body .map-dialog .map-canvas>:is(.map-zone,.map-marker,.map-pitch):is(:hover,:focus-visible,.is-list-hover,.is-group-hover,[aria-pressed="true"]):not([data-point="aed"]){background:transparent!important;background-image:none!important}
body .map-dialog .map-canvas .map-pitch polygon{fill:transparent!important}
body .map-dialog .map-canvas .map-water-area{background:transparent!important;background-image:none!important}
/* Mobile facility menu: six left, seven right. */
@media(max-width:700px){
#map-mobile-facilitiesGroup>.map-mobile-panel-heading{grid-row:1}
#map-mobile-facilitiesGroup>[data-mobile-place="reception"]{grid-column:1;grid-row:2}
#map-mobile-facilitiesGroup>[data-mobile-place="phone-booth"]{grid-column:1;grid-row:3}
#map-mobile-facilitiesGroup>[data-mobile-place="recycling"]{grid-column:1;grid-row:4}
#map-mobile-facilitiesGroup>[data-mobile-place="sanitary"]{grid-column:1;grid-row:5}
#map-mobile-facilitiesGroup>[data-mobile-place="laundry"]{grid-column:1;grid-row:6}
#map-mobile-facilitiesGroup>[data-mobile-place="toilet-disposal"]{grid-column:1;grid-row:7}
#map-mobile-facilitiesGroup>[data-mobile-place="grey-water"]{grid-column:2;grid-row:2}
#map-mobile-facilitiesGroup>[data-mobile-place="drinking-water"]{grid-column:2;grid-row:3}
#map-mobile-facilitiesGroup>[data-mobile-place="electricity"]{grid-column:2;grid-row:4}
#map-mobile-facilitiesGroup>[data-mobile-place="playground"]{grid-column:2;grid-row:5}
#map-mobile-facilitiesGroup>[data-mobile-place="firepit"]{grid-column:2;grid-row:6}
#map-mobile-facilitiesGroup>[data-mobile-place="extinguisher"]{grid-column:2;grid-row:7}
#map-mobile-facilitiesGroup>[data-mobile-place="aed"]{grid-column:2;grid-row:8}
}
/* Mobile category boxes arranged as two vertical groups. */
@media(max-width:700px){.map-mobile-menus>[aria-controls="map-mobile-staysGroup"]{grid-column:1;grid-row:1}.map-mobile-menus>[aria-controls="map-mobile-pitchesGroup"]{grid-column:1;grid-row:2}.map-mobile-menus>[aria-controls="map-mobile-facilitiesGroup"]{grid-column:2;grid-row:1}.map-mobile-menus>[aria-controls="map-mobile-walksGroup"]{grid-column:2;grid-row:2}}

@media(max-width:700px){#map-mobile-facilitiesGroup>[data-mobile-place="grey-water"]{grid-column:1;grid-row:8}#map-mobile-facilitiesGroup>[data-mobile-place="drinking-water"]{grid-column:2;grid-row:2}#map-mobile-facilitiesGroup>[data-mobile-place="electricity"]{grid-column:2;grid-row:3}#map-mobile-facilitiesGroup>[data-mobile-place="playground"]{grid-column:2;grid-row:4}#map-mobile-facilitiesGroup>[data-mobile-place="firepit"]{grid-column:2;grid-row:5}#map-mobile-facilitiesGroup>[data-mobile-place="extinguisher"]{grid-column:2;grid-row:6}#map-mobile-facilitiesGroup>[data-mobile-place="aed"]{grid-column:2;grid-row:7}}
