*{box-sizing:border-box}html,body,.workspace{height:100%;width:100%;margin:0}body{font-family:system-ui,-apple-system,sans-serif;color:#24352d;background:#dce3d8}.workspace{position:relative;overflow:hidden}#map{position:absolute;inset:0;background:#dce3d8}.sidebar{position:absolute;z-index:500;top:12px;bottom:12px;left:12px;width:300px;display:flex;flex-direction:column;background:#fbfcf8f5;border:1px solid #d5ddd2;border-radius:7px;box-shadow:0 4px 18px #152b2840;overflow:hidden}.side-head{padding:17px 17px 12px;border-bottom:1px solid #e3e9df}.brand{font-size:.66rem;letter-spacing:.1em;font-weight:800;color:#a05c3c;text-decoration:none}.side-head h1{font:700 1.45rem/1.1 Georgia,serif;margin:8px 0 5px;color:#1b352c}.side-head p{font-size:.78rem;margin:0 0 9px;color:#68796b}.badge{font-size:.61rem;font-weight:700;letter-spacing:.04em;color:#8d694c}.side-controls{padding:12px 15px 0}.side-controls label{font-size:.67rem;font-weight:700;color:#5e6d60}.side-controls input{width:100%;margin:6px 0 10px;border:1px solid #d3ded2;border-radius:4px;padding:9px;font:inherit;font-size:.85rem}.filters{display:flex;gap:6px;flex-wrap:wrap}.filters button{border:1px solid #cfdad0;border-radius:20px;background:white;padding:6px 10px;cursor:pointer;font-size:.72rem}.filters button.active{background:#24523e;color:white;border-color:#24523e}.count{font-size:.7rem;color:#768277;margin:13px 0 4px}.list{overflow:auto;flex:1;min-height:0;padding:0 15px}.place{width:100%;display:flex;text-align:left;align-items:center;gap:10px;border:0;border-top:1px solid #e7ebe7;background:transparent;padding:12px 0;cursor:pointer;color:#24352d}.place:hover,.place.selected{color:#a15332}.place-icon{color:#b2503a}.place strong,.place small{display:block}.place small{color:#839086;font-size:.63rem;letter-spacing:.05em;margin-top:4px}.arrow{margin-left:auto}.empty{font-size:.82rem;color:#68796b}.footnote{padding:10px 15px;border-top:1px solid #e5e9e3;color:#778478;font-size:.66rem;line-height:1.4}.sidebar-toggle{position:absolute;z-index:501;top:12px;left:322px;border:1px solid #d5ddd2;background:#fff;border-radius:5px;width:36px;height:36px;font-size:1.1rem;color:#234535;cursor:pointer;box-shadow:0 2px 9px #0002}.sidebar-hidden .sidebar{display:none}.sidebar-hidden .sidebar-toggle{left:12px}.map-picker{position:absolute;z-index:500;top:12px;right:12px;background:#fbfcf8f5;padding:12px;border-radius:6px;box-shadow:0 4px 18px #152b2840;width:210px}.map-picker label{display:block;font-size:.65rem;letter-spacing:.1em;font-weight:bold;color:#66796a}.map-picker select{width:100%;border:1px solid #d4ddd4;border-radius:3px;background:white;color:#24352d;padding:8px;margin-top:7px;font:inherit;font-size:.8rem}.map-picker p{font-size:.68rem;color:#718075;margin:8px 0 0}.map-error{position:absolute;z-index:700;top:60px;left:50%;transform:translateX(-50%);background:#fff2d5;padding:12px;border-radius:5px}.map-legend{position:absolute;bottom:24px;left:322px;z-index:400;background:#fffffff0;border-radius:5px;box-shadow:0 2px 8px #0002;padding:10px 12px;font-size:.7rem;color:#617064}.map-legend strong{display:block;font-size:.6rem;letter-spacing:.12em;margin-bottom:5px}.map-legend span{color:#b2503a}.map-legend i{font-style:normal;padding:0 4px}.sidebar-hidden .map-legend{left:12px}.map-pin{display:grid;place-items:center;background:#244f3d;border:2px solid white;border-radius:50%;color:white;box-shadow:0 2px 7px #0006}.popup span{font-size:.65rem;letter-spacing:.12em;color:#758176}.popup h3{font:normal 1.6rem Georgia;margin:.4rem 0}.popup p{margin:.5rem 0!important}.popup a{color:#315d45!important;font-weight:700}.leaflet-control-attribution{font-size:10px!important}.leaflet-bottom.leaflet-right{margin-bottom:22px}@media(max-width:650px){.sidebar{top:auto;bottom:8px;left:8px;width:calc(100% - 16px);height:min(42vh,310px)}.side-head{padding:10px 12px 7px}.side-head h1{font-size:1.15rem;margin:4px 0}.side-head p{margin:0 0 3px}.side-controls{padding:7px 12px 0}.side-controls input{padding:7px;margin:3px 0 6px}.count{margin:6px 0 2px}.list{padding:0 12px}.place{padding:8px 0}.footnote{padding:6px 12px}.sidebar-toggle,.sidebar-hidden .sidebar-toggle{left:8px;top:8px}.map-picker{top:8px;right:8px;width:185px;padding:8px}.map-legend{display:none}.leaflet-bottom.leaflet-right{bottom:min(42vh,310px);margin-bottom:12px}.sidebar-hidden .leaflet-bottom.leaflet-right{bottom:0}}

.extent-toggle{display:flex!important;align-items:center;gap:6px;margin-top:10px;font-size:.72rem!important;letter-spacing:0!important}.extent-toggle input{width:auto;margin:0}.extent-button{width:100%;margin-top:8px;padding:7px;border:1px solid #bacbbc;background:#f3f7f1;color:#284c39;border-radius:3px;cursor:pointer}.map-legend b{color:#ae4934}

.side-controls select{width:100%;margin:5px 0 0;border:1px solid #d3ded2;border-radius:4px;padding:8px;background:#fff;color:#24352d;font:inherit;font-size:.8rem}.region-status{color:#997053;font-size:.66rem;margin:4px 0 9px;line-height:1.25}@media(max-width:650px){.region-status{margin:2px 0 4px}.side-controls select{padding:5px}}

.peak-card{min-width:230px;max-width:320px;color:#263934}.peak-card-head{border-bottom:1px solid #e0e8e1;padding-bottom:12px}.peak-card-head>span:first-child{color:#708078;font-size:.65rem;font-weight:800;letter-spacing:.12em}.peak-card-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.peak-card .peak-card-title h3{font:700 1.45rem/1.1 Georgia,serif;margin:7px 0}.peak-card-title strong{font-size:1.2rem;color:#a64e37;white-space:nowrap}.peak-card-title small{font-size:.68rem}.peak-card .peak-card-badge{display:inline-block;padding:4px 8px;border-radius:12px;background:#eaf1e9;color:#42614f;font-size:.65rem;letter-spacing:0}.peak-card-body{font-size:.79rem;line-height:1.45}.peak-card-coords{padding:9px;background:#f3f6f2;border-radius:5px;color:#5b6d61;font-size:.72rem}.peak-card section{border-top:1px solid #e1e8e2;margin-top:12px;padding-top:5px}.peak-card h4{font-size:.62rem;letter-spacing:.12em;color:#738279;margin:5px 0}.peak-card section a{display:block;padding:4px 0}.peak-card .peak-source{display:inline-block;margin-top:10px;font-size:.7rem}.peak-card .peak-disclaimer{border-top:1px solid #e1e8e2;margin-top:12px!important;padding-top:8px;color:#79867e;font-size:.67rem;font-weight:400}

.peak-card{max-width:370px}.peak-photo-link{display:block;position:relative;margin:-13px -19px 12px;overflow:hidden;border-radius:10px 10px 0 0}.peak-photo{display:block;width:100%;height:120px;object-fit:cover}.peak-photo-link span{position:absolute;right:6px;bottom:5px;padding:2px 5px;background:#14251fbb;color:white!important;font-size:.57rem;letter-spacing:0}.peak-card section{margin-top:7px;padding-top:3px}.peak-card section a{padding:2px 0}.peak-card .peak-disclaimer{margin-top:7px!important;padding-top:5px}@media(max-height:760px){.peak-photo{height:75px}.peak-card-body{font-size:.72rem;line-height:1.3}.peak-card-head{padding-bottom:5px}.peak-card section{margin-top:4px}.peak-card-coords{padding:5px}.peak-card .peak-card-title h3{font-size:1.2rem}}

/* Estudio visual aislado: legibilidad, ficha adaptable y controles de exploración. */
.sidebar,.map-picker{background:rgba(251,252,248,.97);box-shadow:0 8px 30px #132a2450;border:1px solid #fff9;border-radius:12px}
.side-head{padding:20px 18px 15px}.side-head h1{font-size:1.65rem;line-height:1.08}.side-head p{font-size:.88rem}.brand{font-size:.72rem}
.side-controls label,.region-status,.footnote{font-size:.75rem}.side-controls input,.side-controls select{font-size:.9rem;min-height:40px}.filters button{font-size:.8rem;min-height:36px}.place{padding:13px 0}.place strong{font-size:.93rem}.place small{font-size:.72rem}
.map-picker label,.map-picker p,.map-legend{font-size:.74rem}.map-picker select,.extent-button{min-height:40px}.sidebar-toggle{width:40px;height:40px}
.map-pin{width:30px!important;height:30px!important;background:#a44731;border:2px solid white;box-shadow:0 2px 7px #0008}
.leaflet-popup-content-wrapper{border-radius:12px;overflow:hidden;box-shadow:0 8px 32px #14251f66}.leaflet-popup-content{max-height:min(72vh,620px);overflow-y:auto;overscroll-behavior:contain}.peak-card{max-width:370px}.peak-photo{height:150px}.peak-card-body{font-size:.88rem;line-height:1.45}.peak-card-coords{font-size:.8rem}.peak-card .peak-disclaimer{font-size:.73rem}.peak-card section a{padding:5px 0}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #d88746;outline-offset:2px}
@media(max-width:650px){.sidebar{height:min(38vh,300px)}.side-head{padding:9px 12px}.side-head h1{font-size:1.15rem}.side-head p{font-size:.78rem}.sidebar-toggle{top:8px}.map-picker{width:175px}.map-picker p{font-size:.7rem}.leaflet-bottom.leaflet-right{bottom:min(38vh,300px)}.leaflet-popup-content{max-height:38vh}.peak-photo{height:85px}.peak-card-body{font-size:.8rem}}

/* Presentar la ficha como panel centrado, independiente del punto del mapa. */
.workspace>.peak-panel{position:absolute!important;left:calc(50% + 150px)!important;top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;margin:0!important;z-index:600}
.leaflet-popup-tip-container{display:none}.leaflet-popup-content{overflow-x:hidden;max-width:calc(100vw - 70px)}
@media(max-width:650px){.workspace>.peak-panel{left:50%!important;top:calc((100% - min(38vh, 300px))/2)!important}.leaflet-popup-content{max-height:calc(62vh - 60px)}}
.workspace>.peak-panel .leaflet-popup-close-button{position:absolute;top:7px;right:7px;width:36px;height:36px;display:grid;place-items:center;background:#182a24;color:#fff;text-decoration:none;font:24px/1 sans-serif;border-radius:50%;z-index:2}
@media(max-width:650px){.sidebar{overflow-y:auto}.sidebar .list{flex:0 0 160px;min-height:160px}.sidebar .footnote{flex-shrink:0}}
.summit-label.leaflet-tooltip{border:0;border-radius:4px;background:#fffdf3ee;color:#273b30;box-shadow:0 1px 5px #15251f55;font-size:12px;font-weight:700;padding:3px 6px;white-space:nowrap}
.summit-label.leaflet-tooltip:before{display:none}
/* Nombres compactos para dejar más espacio al relieve y al listado. */
.summit-label.leaflet-tooltip{font-size:10px;line-height:1.15;padding:2px 4px}
.place{padding:8px 0;gap:8px}.place strong{font-size:.84rem}.place small{font-size:.67rem;margin-top:2px}
.relief-control{border-top:1px solid #dce5dc;margin-top:10px;padding-top:8px}.relief-control .relief-toggle{display:flex;align-items:center;gap:6px;font-size:.75rem;letter-spacing:0}.relief-control .relief-opacity{margin-top:9px;font-size:.7rem;letter-spacing:0}.relief-control output{float:right}.relief-control input[type=range]{display:block;width:100%;margin:6px 0;accent-color:#315f47}.relief-control .relief-note{font-size:.67rem;line-height:1.3}
@media(max-width:650px){.map-picker{max-height:48vh;overflow-y:auto}}
.map-picker{max-height:calc(100vh - 24px);overflow-y:auto}.weather-control{border-top:1px solid #dce5dc;margin-top:10px;padding-top:8px}.weather-toggle{width:100%;min-height:40px;border:0;border-radius:6px;background:#264d3e;color:white;font-weight:700;cursor:pointer}.weather-control .weather-region{font-weight:700;color:#345749}.weather-items a{display:block;padding:5px 0;color:#285f54;font-size:.78rem;font-weight:600}.weather-control p{font-size:.7rem;line-height:1.35}
/* Meteorología experimental: observación radar y estimaciones modelizadas. */
.weather-control button.weather-point,.weather-control button.weather-refresh,.weather-control button.weather-radar-refresh{width:100%;margin:7px 0;padding:8px;border:1px solid #bacbbc;border-radius:5px;background:#edf5ef;color:#244a38;cursor:pointer;font-weight:600}
.weather-control .weather-wind-label{display:flex;align-items:center;gap:6px;margin:9px 0 0;font-size:.75rem;letter-spacing:0;color:#304f3e}.weather-control .weather-wind-label input{flex:none}.weather-control .weather-result{background:#eef4ed;border-radius:6px;padding:2px 7px}.weather-control .weather-result:empty{display:none}.weather-control .weather-result p{color:#30473a}.weather-control .weather-status,.weather-control .weather-radar-status{color:#825733}.weather-wind-icon{background:#fffdf4e8;border:1px solid #54776a;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:2px;color:#204b4a;box-shadow:0 1px 5px #0004}.weather-wind-icon span{display:inline-block;font-size:22px;line-height:1}.weather-wind-icon b{font-size:11px}
.weather-control button.weather-aemet,.weather-control button.weather-mountain{width:100%;margin:7px 0;padding:8px;border:1px solid #bacbbc;border-radius:5px;background:#edf5ef;color:#244a38;cursor:pointer;font-weight:600}.weather-gusts-legend{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;font-size:.62rem;margin:5px 0}.weather-gusts-legend[hidden]{display:none}.weather-gusts-legend strong{grid-column:1/-1}.weather-gusts-legend span{white-space:nowrap}.weather-gusts-legend i{display:inline-block;width:11px;height:11px;margin-right:3px;border:1px solid #aaa;vertical-align:middle}.weather-aemet-result:not(:empty){background:#eef4ed;padding:6px;border-radius:5px}.weather-aemet-result p{white-space:pre-line}
.weather-station-icon{display:grid;place-items:center;background:#176eab;color:white;border:2px solid white;border-radius:50%;box-shadow:0 1px 6px #0007;font-size:12px}.weather-station-icon.stale{background:#777}.weather-stations-status,.weather-gusts-status{line-height:1.35}
.aemet-forecast-panel{position:absolute;z-index:1100;top:16px;right:250px;width:min(380px,calc(100vw - 290px));max-height:calc(100vh - 32px);overflow:auto;background:#fbfcf8;border:1px solid #c9d8ce;border-radius:10px;box-shadow:0 8px 30px #132a2450;color:#294538;padding:14px;font-size:.85rem;line-height:1.5}.aemet-forecast-panel[hidden]{display:none}.aemet-forecast-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px}.aemet-forecast-panel h2{font-size:1rem;margin:0}.aemet-forecast-close{border:0;background:transparent;font-size:1.5rem;cursor:pointer;color:#294538}.aemet-forecast-panel .weather-aemet-result p{white-space:pre-line;margin:.7em 0}.aemet-forecast-panel .weather-aemet-result p:first-child{font-weight:600}@media(max-width:650px){.aemet-forecast-panel{top:8px;left:8px;right:auto;width:min(320px,calc(100vw - 32px));max-height:52vh;font-size:.8rem}}
.aemet-forecast-panel .weather-pdf{display:block;width:100%;height:280px;border:1px solid #bdcdbf;border-radius:5px;background:#fff;margin:6px 0}.aemet-forecast-panel .weather-aemet-result>a{display:block;margin:8px 0;color:#285f54;font-weight:600}
.weather-control button.weather-harmonie{width:100%;margin:7px 0;padding:8px;border:1px solid #bacbbc;border-radius:5px;background:#edf5ef;color:#244a38;cursor:pointer;font-weight:600}.weather-control button.weather-harmonie[aria-pressed=true]{background:#264d3e;color:white}.harmonie-popup{width:min(440px,75vw);font-size:.78rem;line-height:1.35}.harmonie-popup p{margin:6px 0}.harmonie-popup .harmonie-warning{padding:6px;background:#fff0d5;border-left:3px solid #bc6c11;font-weight:700}.harmonie-table-wrap{max-height:235px;overflow:auto}.harmonie-table-wrap table{border-collapse:collapse;width:100%;font-size:.7rem}.harmonie-table-wrap th,.harmonie-table-wrap td{padding:3px;border-bottom:1px solid #d6ded6;white-space:nowrap;text-align:left}.harmonie-table-wrap th{position:sticky;top:0;background:white}
.capture-control button{border:0;border-radius:6px;background:#fff;color:#24483a;box-shadow:0 1px 6px #0004;padding:9px 12px;font-weight:700;cursor:pointer}.capture-control button[aria-pressed=true]{background:#f46b26;color:white}.capture-popup{min-width:220px;max-width:290px}.capture-popup p{margin:5px 0}.capture-popup .capture-coords{font-size:1.1em;font-weight:700}.capture-actions{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.capture-actions button,.capture-actions a{border:0;border-radius:5px;background:#285b45;color:white;padding:6px 9px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}.capture-actions button:first-child,.capture-actions button:nth-child(2){background:#ef6622}.capture-popup textarea{width:100%;min-height:60px}.capture-popup small{color:#53625a}
.measure-control button{border:0;border-radius:6px;background:white;color:#24483a;box-shadow:0 1px 6px #0004;padding:9px 12px;font-weight:700;cursor:pointer}.measure-control button[aria-pressed=true]{background:#176cbc;color:white}.measure-panel{position:absolute;z-index:700;left:50%;bottom:20px;transform:translateX(-50%);width:min(480px,calc(100% - 32px));box-sizing:border-box;padding:12px;background:#fffefa;color:#244335;border-radius:10px;box-shadow:0 3px 14px #0005;font-size:13px;line-height:1.35}.measure-panel[hidden]{display:none}.measure-panel p{margin:6px 0}.measure-panel .measure-note{font-size:11px;color:#56675d}.measure-panel button{border:0;border-radius:5px;padding:7px 9px;cursor:pointer;background:#e8eee9;color:#244335;font-weight:700}.measure-panel .measure-finish{background:#dd5a20;color:white}.measure-panel button:disabled{opacity:.5;cursor:default}
/* Controles a la derecha del panel; en móvil, debajo del botón de menú. */
@media(min-width:651px){.leaflet-top.leaflet-left{left:370px}.sidebar-hidden .leaflet-top.leaflet-left{left:62px}}
@media(max-width:650px){.leaflet-top.leaflet-left{left:0;top:46px}}
.map-picker-toggle{position:absolute;z-index:502;top:12px;right:12px;width:40px;height:40px;border:1px solid #d5ddd2;border-radius:6px;background:#fff;color:#234535;font-size:1.1rem;cursor:pointer;box-shadow:0 2px 9px #0002}.map-picker{top:60px;max-height:calc(100vh - 72px)}.map-picker[hidden]{display:none}@media(max-width:650px){.map-picker-toggle{top:8px;right:8px}.map-picker{top:56px;max-height:min(48vh,calc(100vh - 64px))}}

.webcam-pin{background:#145778;border:2px solid white;border-radius:50%;box-shadow:0 1px 5px #0008;display:grid;place-items:center;font-size:17px;line-height:1}.webcam-popup p{margin:.4em 0;font-size:12px}.webcam-popup a{display:inline-block;margin:.25em 0}.webcam-toggle{margin-top:12px}

.dgt-camera-pin{display:flex;align-items:center;justify-content:center;background:#174e7c;border:2px solid white;border-radius:50%;box-shadow:0 1px 4px #555;color:white;font-size:16px}

.track-section { margin: 12px 0; padding: 12px; border-radius: 8px; background: #f2f5ef; }
.track-section h4 { margin: 0 0 8px; }
.track-section .track-toggle, .track-map-control button { border: 0; border-radius: 6px; padding: 10px 12px; background: #20533f; color: white; font-weight: 700; cursor: pointer; }
.track-section a { display: block; margin-top: 10px; }
.track-note, .track-status { font-size: 12px; line-height: 1.4; margin: 8px 0 0; }
.track-status:empty { display:none; }
.track-map-control { box-shadow: 0 2px 8px #0005; border-radius: 6px; }

.track-profile { position:absolute; z-index:800; bottom:48px; left:50%; transform:translateX(-50%); width:min(560px,calc(100% - 28px)); box-sizing:border-box; padding:12px; border-radius:12px; background:rgba(255,255,255,.97); color:#193b2d; box-shadow:0 3px 16px #0005; }
.track-profile-head,.track-profile-actions { display:flex; align-items:center; gap:9px; }
.track-profile-head { justify-content:space-between; }
.track-profile-close { border:0; background:transparent; color:#193b2d; font-size:24px; line-height:1; cursor:pointer; }
.track-profile-summary,.track-profile small { font-size:12px; }
.track-profile-chart { display:block; width:100%; height:80px; margin:4px 0; touch-action:none; background:#eef4ed; border-radius:4px; cursor:crosshair; }
.track-profile-area { fill:#b7d4ba; } .track-profile-line { fill:none; stroke:#276548; stroke-width:2; vector-effect:non-scaling-stroke; } .track-profile-cursor { stroke:#df4c27; stroke-width:2; vector-effect:non-scaling-stroke; }
.track-profile-actions input { flex:1; min-width:30px; } .track-profile-actions output { font-size:12px; white-space:nowrap; }
.track-play { border:0; border-radius:6px; background:#20533f; color:#fff; padding:8px; cursor:pointer; white-space:nowrap; }
@media(max-width:600px){.track-profile { bottom:45px; padding:9px; }.track-profile-chart {height:65px;}.track-profile-actions {gap:5px;}.track-profile-actions output {font-size:11px;} }

.summit-weather-toggle{width:100%;padding:10px;border:1px solid #9eb9aa;border-radius:7px;background:#e8f1ea;color:#214c38;font-weight:700;cursor:pointer}.summit-weather-content{margin-top:8px}.summit-weather-box{background:#354a45;color:#fff;border-radius:9px;padding:12px;font-size:.78rem;line-height:1.45}.summit-weather-box p{white-space:pre-line;margin:9px 0!important}.summit-weather-day{background:#ffffff18;padding:8px;border-radius:6px}.summit-weather-hours{max-height:230px;overflow:auto;margin-top:6px}.summit-weather-hour{padding:6px;border-bottom:1px solid #ffffff20;font-size:.72rem}.summit-weather-hour:nth-child(odd){background:#ffffff12}.summit-weather-note{font-size:.72rem;color:#e2ebe5}.peak-card .summit-weather-box a{color:#c7e9ff!important}
.summit-weather-day{margin:8px 0}.summit-weather-day summary{cursor:pointer;line-height:1.5}.summit-weather-day summary:focus-visible{outline:2px solid #c7e9ff;outline-offset:3px}
