:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#edf3f7;background:#111f2d;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:3px solid #8ae7dc;outline-offset:4px}#map{position:relative;width:100%;height:100svh;min-height:540px;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,#283d4d,#111f2d 74%)}#viewport{position:absolute;inset:0;touch-action:none}canvas{display:block;width:100%;height:100%;touch-action:none}.map-title{pointer-events:none}.eyebrow{font-size:12px;font-weight:600;letter-spacing:.16em;color:#b4c5d1}h1{font-size:clamp(28px,3vw,43px);line-height:1.03;letter-spacing:-.05em;font-weight:550;margin:13px 0 12px}.map-title p{font-size:14px;margin:0;color:#c6d2da}.view-switch{position:absolute;right:30px;top:30px;display:flex;padding:4px;background:#172b3ceb;border:1px solid #4b64716e;border-radius:30px;gap:2px}.view-switch button{border:0;background:transparent;padding:10px 21px;font-size:14px;border-radius:24px}.view-switch button.active{background:#ebeee7;color:#162632}.map-controls{position:absolute;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;border-radius:14px;border:1px solid #4b647175;overflow:hidden;box-shadow:0 6px 24px #07101925}.map-controls button{background:#172b3cf2;border:0;border-bottom:1px solid #4b647165;width:46px;height:46px;font-size:25px}.map-controls button:last-child{border:0}.map-controls button:hover{background:#314b5b}#north{height:65px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}#compass{font-size:27px;line-height:1}#north small{font-size:11px}footer{position:absolute;bottom:22px;left:36px;right:30px;pointer-events:none}.gestures{font-size:12px;color:#b4c5d1;text-align:center;margin:0 0 21px}.mobile{display:none}.bottom-row{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;color:#c3d0d7}.legend{display:flex;align-items:center;gap:8px;white-space:nowrap}.legend i{display:inline-block;background:#c58b65;width:9px;height:9px;transform:rotate(45deg);margin:0 2px 0 8px}.legend i:nth-child(2){background:#4cb6c5;border-radius:0}.bottom-row button{pointer-events:auto;background:transparent;color:#c3d0d7;border:0;font-size:12px;padding:10px 0}.bottom-row button:hover{text-decoration:underline}#labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.map-label{position:absolute;left:0;top:0;transform:translate(-50%,-100%);color:#f3f5f1;border:0;background:#12232adb;box-shadow:0 3px 10px #10202b40;border-radius:7px;padding:7px 10px;font-size:12px;line-height:1.2;white-space:nowrap;pointer-events:auto}.map-label:after{content:"";position:absolute;bottom:-12px;left:50%;height:12px;width:1px;background:#c4d7d5b3}.map-label:before{content:"";position:absolute;bottom:-16px;left:calc(50% - 3px);width:7px;height:7px;border-radius:50%;background:#f5ddac}.map-label:hover{background:#f3f1e8;color:#162632}.map-label.river{background:none;box-shadow:none;font-style:italic;color:#e3fafb;font-size:15px;text-shadow:0 1px 6px #183f46;letter-spacing:.08em;pointer-events:none}.map-label.river:before,.map-label.river:after{display:none}#status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:18px 24px;background:#142736ed;border:1px solid #52708370;border-radius:14px;font-size:15px;max-width:85%;text-align:center}#status[hidden]{display:none}.place-detail{background:#0e202cd9;border:1px solid #3f5d6b8c;padding:16px;border-radius:12px;margin-top:12px}.place-detail h2{font-size:21px;line-height:1.2;margin:10px 20px 10px 0;letter-spacing:-.02em}.place-detail p{font-size:14px;line-height:1.55;color:#c7d5db;margin:0}.place-detail>button{float:right;background:transparent;border:0;font-size:25px;padding:0 2px}dialog{background:#162b39;color:#edf3f7;border:1px solid #56717e;border-radius:18px;padding:32px;max-width:530px;width:calc(100% - 36px);box-shadow:0 30px 80px #03101890}dialog::backdrop{background:#07151cbc;backdrop-filter:blur(5px)}dialog h2{font-size:25px;letter-spacing:-.03em;margin:15px 0 20px}dialog p,dialog li{font-size:15px;line-height:1.6;color:#cdd8de}dialog a{color:#9fe5dc;text-underline-offset:3px}.dialog-close{position:absolute;right:18px;top:15px;font-size:25px;background:transparent;border:0;padding:4px 8px}.source-date{font-size:12px!important;color:#a9bdc9!important}noscript{position:absolute;top:50%;width:100%;text-align:center}@media(max-width:600px){#map{min-height:520px}.map-title{left:20px;top:24px}.eyebrow{font-size:10px;letter-spacing:.14em}h1{font-size:30px;margin-top:11px}.map-title p{font-size:12px}.view-switch{right:16px;top:25px}.view-switch button{padding:9px 13px;font-size:13px}.map-controls{right:16px;top:54%}.map-controls button{width:44px;height:44px}footer{bottom:12px;left:18px;right:18px}.gestures{margin-bottom:12px;font-size:11px}.desktop{display:none}.mobile{display:inline}.bottom-row{gap:8px;font-size:11px}.bottom-row button{font-size:11px}.legend{gap:5px}.legend i{margin-left:3px;width:7px;height:7px}.map-label{font-size:11px;padding:6px 8px}.place-detail{left:18px;bottom:91px;padding:18px}.place-detail .eyebrow{font-size:11px}dialog{padding:25px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.attribution{pointer-events:auto}.attribution a{color:inherit;text-decoration:none}.attribution a:hover{text-decoration:underline}
@media(pointer:coarse){.view-switch button{min-height:44px}.bottom-row button{min-height:44px}}
@media(max-width:600px){.eyebrow,.gestures,.bottom-row,.bottom-row button,.map-label{font-size:12px}.view-switch button{font-size:14px;padding:8px 11px}h1{font-size:28px}.map-title p{max-width:250px;line-height:1.4}}

.place-detail{max-height:calc(100dvh - 190px);overflow:auto}#detailPhoto{width:100%;max-height:175px;object-fit:cover;border-radius:8px;margin:10px 0 5px}#photoCredit{display:block;font-size:10px;line-height:1.5;color:#c5ceb9}#detailAltitude{font-size:11px;color:#c7d3ba}@media(max-width:600px){#detailPhoto{max-height:100px}.place-detail{max-height:52dvh}}

/* Sobrevuelo -------------------------------------------------------------- */
.tour-bar{position:absolute;left:50%;bottom:96px;transform:translateX(-50%);width:min(660px,calc(100% - 40px));display:flex;align-items:center;gap:20px;padding:16px 18px;background:#142936f2;border:1px solid #4866768c;border-radius:16px;box-shadow:0 18px 46px #0313215c}
.tour-bar[hidden]{display:none}
.tour-body{flex:1;min-width:0}
.tour-body h2{font-size:19px;line-height:1.2;letter-spacing:-.02em;margin:6px 0 5px}
.tour-body p{margin:0;font-size:13px;line-height:1.5;color:#c7d5db}
.tour-dots{display:flex;flex-direction:column;gap:6px}
.tour-dots span{width:7px;height:7px;border-radius:50%;background:#4c6675}
.tour-dots span.on{background:#f5ddac}
.tour-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}
.tour-actions button{background:#1c3547;border:1px solid #4b647175;border-radius:10px;min-width:38px;height:38px;font-size:17px;padding:0 10px}
.tour-actions button:hover{background:#31505f}
#tourExit{font-size:13px}
.map-title,.map-controls,#labels,.place-detail{transition:opacity .4s}
#map.touring .map-title,#map.touring .map-controls,#map.touring #labels,#map.touring .place-detail{opacity:0;pointer-events:none}
#map.touring .gestures{visibility:hidden}
@media(max-width:600px){.tour-bar{bottom:74px;gap:12px;padding:13px 14px}.tour-body h2{font-size:16px}.tour-body p{font-size:12px;max-height:54px;overflow:hidden}.tour-actions button{min-width:36px;height:36px}}
#viewTour .short{display:none}
@media(max-width:640px){.view-switch button{padding:9px 11px}#viewTour .long{display:none}#viewTour .short{display:inline}}


/* Guía lateral ------------------------------------------------------------- */
#panel{position:absolute;left:22px;top:22px;width:300px;max-height:calc(100% - 128px);display:flex;flex-direction:column;padding:0;background:#122633f2;border:1px solid #45636f8c;border-radius:15px;box-shadow:0 18px 46px #03132166;overflow:hidden;backdrop-filter:blur(3px)}
#panel .map-title{position:static;text-shadow:none;padding:17px 44px 15px 18px;flex-shrink:0}
#panel .eyebrow{font-size:10px;letter-spacing:.17em}
#panel h1{font-size:24px;line-height:1.05;margin:8px 0 6px}
#panel .map-title p{font-size:12px;color:#9fb2bf;margin:0}
#panelToggle{position:absolute;right:9px;top:11px;background:transparent;border:0;font-size:18px;line-height:1;width:32px;height:32px;border-radius:8px;color:#9fb2bf}
#panelToggle:hover{background:#27424f;color:#edf3f7}
#panelBody{overflow:auto;overscroll-behavior:contain;padding:0 12px 12px;border-top:1px solid #2b4553}
#panel.closed{max-height:none}
#panel.closed #panelBody{display:none}
#panel.closed .map-title{padding-bottom:16px}
#panel.closed .map-title p{display:none}
#panel.closed h1{font-size:17px;line-height:1.15;margin:6px 0 0}

#placeList{display:flex;flex-direction:column;padding-top:8px}
#placeList button{display:block;text-align:left;background:transparent;border:0;border-left:2px solid transparent;border-radius:0 9px 9px 0;padding:8px 10px;line-height:1.25}
#placeList button span{display:block;font-size:14px}
#placeList button small{display:block;font-size:11px;color:#93a8b6;margin-top:2px}
#placeList button:hover{background:#1e3846}
#placeList button.on{background:#1e3846;border-left-color:#f5ddac}
#placeList button.on small{color:#c2d2dc}

.place-detail,.tour-panel{margin:10px 6px 4px;padding:14px 0 0;border-top:1px solid #2b4553;background:none;border-radius:0}
.place-detail h2,.tour-panel h2{font-size:18px;line-height:1.22;letter-spacing:-.02em;margin:7px 24px 7px 0}
.place-detail p,.tour-panel p{font-size:13px;line-height:1.5;color:#c3d2da;margin:0}
.place-detail>button{float:right;background:transparent;border:0;font-size:20px;line-height:1;padding:0 4px;color:#9fb2bf}
#detailPhoto{width:100%;max-height:150px;object-fit:cover;border-radius:8px;margin:11px 0 4px}
#detailAltitude{font-size:11px!important;color:#9fb2bf!important;margin-top:7px!important}
#photoCredit{display:block;font-size:10px;line-height:1.5;color:#9fb2bf}

.tour-panel .tour-actions{display:flex;align-items:center;gap:5px;margin-top:14px}
.tour-actions button{background:#1c3547;border:1px solid #48606d;border-radius:9px;min-width:36px;height:36px;font-size:15px;padding:0 9px}
.tour-actions button:hover{background:#31505f}
#tourExit{font-size:12px}
.tour-dots{display:flex;gap:5px;margin-left:auto}
.tour-dots span{width:6px;height:6px;border-radius:50%;background:#48606d}
.tour-dots span.on{background:#f5ddac}

#map.touring #placeList,#map.touring .place-detail{display:none}
#map.touring .tour-panel{border-top:0;margin-top:2px;padding-top:8px}
#map.touring .map-controls{opacity:0;pointer-events:none}
#map.touring .gestures{visibility:hidden}

@media(max-width:760px){
  footer{bottom:calc(var(--panel-height,0px) + 10px);left:16px;right:16px}
  .gestures{display:none}
  #panel{left:0;right:0;bottom:0;top:auto;width:auto;max-height:52dvh;border-radius:15px 15px 0 0;border-width:1px 0 0}
  #panel .map-title{padding:13px 44px 12px 16px}
  #panel h1{font-size:19px}
  #panel.closed h1{font-size:16px}
  #panelBody{padding:0 8px 10px}
  #detailPhoto{max-height:110px}
}

/* El pie cae sobre la ortofoto, que es clara: hace falta contraste. */
footer{text-shadow:0 1px 3px #0b1a24cc,0 0 12px #0b1a2499}
.bottom-row button,.attribution{text-shadow:inherit}
