/* Only the 3D canvas and MapLibre controls differ from the standard map. */
.mt-hike-map3d {position:relative;width:100%;font-family:inherit}
.mt-hike-map3d__canvas {width:100%;height:clamp(360px,60svh,540px);min-height:350px;border:0;border-radius:10px;overflow:hidden;isolation:isolate;background:#edf1ed}
.mt-hike-map3d__status {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:80%;color:#555;text-align:center;pointer-events:none;margin:0}
.mt-hike-map3d .maplibregl-control-container {font-family:inherit}
.mt-hike-map3d .maplibregl-ctrl-attrib a {color:#1581be}
.mt-hike-map3d .maplibregl-ctrl-top-left {top:52px}
.mt-hike-map3d .maplibregl-ctrl-group {display:grid;gap:6px;background:transparent;box-shadow:none;border:0}
.mt-hike-map3d .maplibregl-ctrl-group button {display:grid;place-items:center;box-sizing:border-box;width:36px;height:36px;border:0;border-radius:50%;background:#fff;color:#1581be;box-shadow:none;cursor:pointer}
.mt-hike-map3d .maplibregl-ctrl-group button:hover:not(:disabled),.mt-hike-map3d .maplibregl-ctrl-group button:focus-visible {background:#1581be;color:#fff}
.mt-hike-map3d .maplibregl-ctrl-group button:disabled {color:#777;background:#edf0f2}
.mt-hike-map3d .maplibregl-ctrl-group button .maplibregl-ctrl-icon {filter:none}
.mt-hike-map3d .maplibregl-ctrl-group button:hover:not(:disabled) .maplibregl-ctrl-icon {filter:brightness(0) invert(1)}
.mt-hike-map3d .maplibregl-ctrl-attrib-button:focus {box-shadow:none;outline:none}
.mt-hike-map3d .maplibregl-ctrl-attrib-button:focus-visible {outline:2px solid #444;outline-offset:1px}
.mt-hike-map3d .maplibregl-ctrl-group button:focus,
.mt-hike-map3d .maplibregl-ctrl-group button:focus:first-child,
.mt-hike-map3d .maplibregl-ctrl-group button:focus:last-child {border-radius:50%;box-shadow:none}
.mt-hike-map3d .maplibregl-ctrl-group button:focus-visible {outline:2px solid #444;outline-offset:1px}
.mt-hike-map3d__switcher {position:absolute;z-index:3;right:12px;top:12px;display:flex;gap:2px;padding:3px;border-radius:20px;background:#fff;box-shadow:0 1px 4px #0003}
.mt-hike-map3d__switcher button {box-sizing:border-box;min-width:42px;height:30px;padding:0 8px;border:0;border-radius:16px;background:transparent;color:#1581be;font-family:inherit;font-size:12px;font-weight:700;line-height:1;cursor:pointer}
.mt-hike-map3d__switcher button[aria-pressed="true"] {background:#1581be;color:#fff}
.mt-hike-map3d__switcher button:disabled {cursor:wait}
.mt-hike-map3d__switcher button:focus-visible,
.mt-hike-map3d__bearing-control button:focus-visible,
.mt-hike-map3d__bearing-panel input:focus-visible,
.mt-hike-map3d__tilt-control button:focus-visible,
.mt-hike-map3d__tilt-panel input:focus-visible {outline:2px solid #444;outline-offset:2px}
.mt-hike-map3d__navigation button {font:bold 24px/1 sans-serif;touch-action:none}
.mt-hike-map3d__bearing-control,.mt-hike-map3d__tilt-control {position:relative;display:flex;align-items:flex-start;margin:10px 0 0 10px}
.mt-hike-map3d__bearing-button,.mt-hike-map3d__tilt-button {display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#fff;color:#1581be;font:bold 23px/1 sans-serif;cursor:pointer}
.mt-hike-map3d__compass-icon {width:22px;height:22px;display:block;transform-origin:50% 50%}
.mt-hike-map3d__compass-north {fill:#1581be}
.mt-hike-map3d__compass-south {fill:#a5b2b9}
.mt-hike-map3d__bearing-button:hover .mt-hike-map3d__compass-north,.mt-hike-map3d__bearing-button[aria-expanded="true"] .mt-hike-map3d__compass-north {fill:#fff}
.mt-hike-map3d__bearing-button:hover .mt-hike-map3d__compass-south,.mt-hike-map3d__bearing-button[aria-expanded="true"] .mt-hike-map3d__compass-south {fill:#cce8f5}
.mt-hike-map3d__bearing-button:hover,.mt-hike-map3d__bearing-button[aria-expanded="true"],.mt-hike-map3d__tilt-button:hover,.mt-hike-map3d__tilt-button[aria-expanded="true"] {background:#1581be;color:#fff}
.mt-hike-map3d__bearing-panel,.mt-hike-map3d__tilt-panel {position:absolute;left:44px;top:0;display:flex;align-items:center;gap:8px;box-sizing:border-box;width:min(210px,calc(100vw - 110px));height:40px;padding:5px 8px 5px 12px;border-radius:20px;background:#fff;box-shadow:0 2px 12px #0003;color:#333;font-size:12px}
.mt-hike-map3d__bearing-panel input,.mt-hike-map3d__tilt-panel input {display:block;flex:1;min-width:0;margin:0;accent-color:#1581be;cursor:pointer}
.mt-hike-map3d__bearing-panel input[type="range"],.mt-hike-map3d__tilt-panel input[type="range"] {appearance:none;-webkit-appearance:none;height:20px;background:transparent}
.mt-hike-map3d__bearing-panel input[type="range"]::-webkit-slider-runnable-track,.mt-hike-map3d__tilt-panel input[type="range"]::-webkit-slider-runnable-track {height:4px;border-radius:4px;background:#d1e7f2}
.mt-hike-map3d__bearing-panel input[type="range"]::-moz-range-track,.mt-hike-map3d__tilt-panel input[type="range"]::-moz-range-track {height:4px;border-radius:4px;background:#d1e7f2}
.mt-hike-map3d__bearing-panel input[type="range"]::-webkit-slider-thumb,.mt-hike-map3d__tilt-panel input[type="range"]::-webkit-slider-thumb {-webkit-appearance:none;appearance:none;width:24px;height:15px;margin-top:-5.5px;border:0;border-radius:9px;background:#1581be}
.mt-hike-map3d__bearing-panel input[type="range"]::-moz-range-thumb,.mt-hike-map3d__tilt-panel input[type="range"]::-moz-range-thumb {width:24px;height:15px;border:0;border-radius:9px;background:#1581be}
.mt-hike-map3d__bearing-panel output,.mt-hike-map3d__tilt-panel output {min-width:3ch;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.mt-hike-map3d__tilt-reset {display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:#f0f4f6;color:#1581be;font:22px/1 sans-serif;cursor:pointer}
.mt-hike-map3d__tilt-reset:hover {background:#1581be;color:#fff}
.mt-hike-map3d__bearing-control[hidden],.mt-hike-map3d__bearing-panel[hidden],.mt-hike-map3d__tilt-control[hidden],.mt-hike-map3d__tilt-panel[hidden] {display:none!important}
.mt-hike-map3d__photo-toggle {position:absolute;top:12px;left:12px;z-index:2;display:grid;place-items:center;box-sizing:border-box;border:0;border-radius:50%;width:36px;height:36px;padding:0;background:#1581be;cursor:pointer;box-shadow:none}
.mt-hike-map3d__photo-toggle[aria-pressed="false"] {background:#e1e5e8}
.mt-hike-map3d__photo-toggle .mt-hike-map__camera {width:20px;height:20px;border:0;background:transparent;box-shadow:none}
.mt-hike-map3d__photo-toggle[aria-pressed="false"] .mt-hike-map__camera::before {background:#1581be}
.mt-hike-map3d__photo-toggle[aria-pressed="false"] .mt-hike-map__camera::after {background:#e1e5e8}
.mt-hike-map3d .mt-hike-map3d__popup .maplibregl-popup-content {--mt-hike-map3d-popup-radius:10px;padding:16px 8px 10px;border-radius:var(--mt-hike-map3d-popup-radius);box-shadow:0 4px 20px #0003}
.mt-hike-map3d .mt-hike-map3d__popup .maplibregl-popup-close-button {font-size:20px;line-height:20px;padding:4px 8px;color:#666}
.mt-hike-map3d__popup-content {width:min(220px,calc(100vw - 78px));text-align:center}
.mt-hike-map3d .mt-hike-map__photo-preview > img {width:auto;height:auto;border-radius:var(--mt-hike-map3d-popup-radius)}
.mt-hike-map3d .mt-hike-map__photo-date {height:18px;margin:0}
.mt-hike-map3d .mt-hike-map__photo-caption {height:auto;max-height:3em;margin-top:4px}
.mt-hike-map3d .mt-hike-map__photo-caption[hidden] {display:block;visibility:hidden}
.mt-hike-map3d .mt-hike-map__photo-actions button {font-size:0}
@media(max-width:600px) {
    .mt-hike-map3d__canvas {height:auto;aspect-ratio:9/8;min-height:0}
    .mt-hike-map3d__popup-content {width:min(180px,calc(100vw - 78px))}
    .mt-hike-map3d .mt-hike-map3d__popup .maplibregl-popup-content {padding:10px 6px 6px}
}
