*{box-sizing:border-box}body{margin:0;background:#f2f6fd;color:#17294a;font:16px/1.5 system-ui,-apple-system,sans-serif}header.hero{background:linear-gradient(135deg,#06449e,#0769e8 68%,#02a7e6);color:#fff;padding:20px 18px 26px;box-shadow:0 5px 18px #0754ca22}.hero-inner{max-width:940px;margin:auto;display:flex;align-items:center;gap:18px}.brand{width:94px;height:94px;object-fit:cover;border-radius:22px;box-shadow:0 7px 24px #00276555}.hero h1{font-size:clamp(27px,5vw,44px);letter-spacing:-1px;margin:0;line-height:1.1}.hero h1 span{color:#ffd428}.hero p{margin:8px 0 0;color:#e8f3ff}.eyebrow{font-size:11px;font-weight:900;letter-spacing:1.6px;color:#d8eaff}.eyebrow.dark{color:#0754ca}main{max-width:940px;margin:auto;padding:20px 16px;min-height:70vh}nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}button{font:inherit;font-weight:700;background:#0754ca;color:white;border:0;border-radius:13px;padding:12px 16px;cursor:pointer}button:hover{filter:brightness(1.08)}nav button{flex:1 1 auto;font-size:14px;white-space:nowrap}button.secondary{background:#e8eef9;color:#15458c}.locate{width:100%;background:#ffd42a;color:#132957;padding:17px;font-size:17px;box-shadow:0 5px 0 #d5ad0c;margin:8px 0 13px}.section-head h2{font-size:clamp(25px,5vw,35px);margin:5px 0 0}.muted,.map-status{color:#5c6c84}.map-status{font-size:13px;margin:5px 0 10px}#map{height:390px;width:100%;border-radius:20px;border:3px solid white;box-shadow:0 12px 30px #14305d18;z-index:0;background:#dbeafa}.search-area{margin-top:27px}.search-area h3{margin-bottom:8px}input,textarea,select{width:100%;display:block;padding:13px;margin:7px 0 14px;border:1px solid #bacbe2;border-radius:12px;font:inherit;background:white;color:#17294a}input:focus,textarea:focus,select:focus{outline:2px solid #0b72df}label{font-weight:650;display:block;margin-top:13px}label.check{display:flex;align-items:center;gap:10px;margin:16px 0}input[type=checkbox]{width:20px;height:20px;margin:0}.card{background:white;border:1px solid #dce6f3;border-radius:18px;padding:18px;margin:14px 0;box-shadow:0 4px 16px #14305d0a}.card b{font-size:19px}.card p{margin:9px 0 14px;color:#50617b}.card img{width:100%;max-height:380px;object-fit:cover;border-radius:12px}.card-actions{display:flex;flex-wrap:wrap;gap:8px}.card-actions a{padding:10px 13px;background:#eef5ff;color:#0754ca;border-radius:12px;font-weight:750;text-decoration:none}#msg{color:#0754ca;font-weight:750;min-height:22px;margin:0 0 8px}#msg:empty{display:none}section[hidden]{display:none!important}section>h2{font-size:28px}section:not(#find){max-width:700px;margin:auto}footer{text-align:center;padding:26px;color:#61718a}footer img{border-radius:10px}footer p{margin:5px}img{max-width:100%}.leaflet-popup-content button{padding:7px 10px;font-size:13px}.leaflet-popup-content{line-height:1.4}@media(max-width:560px){.hero-inner{gap:12px}.brand{width:74px;height:74px;border-radius:18px}nav button{flex:1 1 42%;font-size:13px;padding:11px 7px}#map{height:370px}.hero{padding:16px 12px!important}}
/* Leaflet tiles must keep their native 256px size; the global img rule breaks them on iPad. */
#map{position:relative;overflow:hidden;isolation:isolate;}
#map .leaflet-container{width:100%;height:100%;}
#map .leaflet-container img,#map .leaflet-tile,#map .leaflet-marker-icon,#map .leaflet-marker-shadow{max-width:none!important;max-height:none!important;}
#map .leaflet-tile-pane img{border-radius:0!important;}

/* ME MEO PR 2.2 - Leaflet fallback: normas esenciales incluso si el CDN de CSS falla. */
#map, #map.leaflet-container {position:relative!important; overflow:hidden!important; width:100%; isolation:isolate;}
#map.leaflet-container {background:#dbeafa; outline:0; touch-action:pan-x pan-y; -webkit-tap-highlight-color:transparent;}
#map .leaflet-pane, #map .leaflet-tile, #map .leaflet-marker-icon, #map .leaflet-marker-shadow,
#map .leaflet-tile-container, #map .leaflet-pane > svg, #map .leaflet-pane > canvas,
#map .leaflet-zoom-box, #map .leaflet-image-layer, #map .leaflet-layer {
  position:absolute; left:0; top:0;
}
#map .leaflet-map-pane, #map .leaflet-pane, #map .leaflet-tile-container {pointer-events:none;}
#map .leaflet-marker-icon, #map .leaflet-interactive, #map .leaflet-popup {pointer-events:auto;}
#map .leaflet-tile {width:256px!important;height:256px!important;max-width:none!important;max-height:none!important;
  border:0!important; padding:0!important; margin:0!important; opacity:1; user-select:none; -webkit-user-drag:none;}
#map .leaflet-tile-loaded {visibility:inherit;}
#map .leaflet-tile-pane {z-index:200;} #map .leaflet-overlay-pane {z-index:400;}
#map .leaflet-shadow-pane {z-index:500;} #map .leaflet-marker-pane {z-index:600;}
#map .leaflet-tooltip-pane {z-index:650;} #map .leaflet-popup-pane {z-index:700;}
#map .leaflet-map-pane {position:absolute;left:0;top:0;}
#map .leaflet-zoom-animated {transform-origin:0 0;}
#map .leaflet-control-container .leaflet-top, #map .leaflet-control-container .leaflet-bottom {position:absolute;z-index:1000;pointer-events:none;}
#map .leaflet-control-container .leaflet-top {top:0;}#map .leaflet-control-container .leaflet-bottom {bottom:0;}
#map .leaflet-control-container .leaflet-left {left:0;}#map .leaflet-control-container .leaflet-right {right:0;}
#map .leaflet-control {position:relative;z-index:800;pointer-events:auto;clear:both;margin:10px;}
#map .leaflet-left .leaflet-control {float:left;}#map .leaflet-right .leaflet-control{float:right;}
#map .leaflet-control-zoom {border:2px solid rgba(0,0,0,.2);border-radius:5px;background:#fff;}
#map .leaflet-control-zoom a {display:block;width:30px;height:30px;line-height:30px;text-align:center;font:bold 20px Arial;text-decoration:none;color:#222;background:#fff;}
#map .leaflet-control-zoom a + a {border-top:1px solid #ccc;}
#map .leaflet-control-attribution {background:rgba(255,255,255,.8);font:11px/1.4 Arial,sans-serif;padding:0 5px;}
#map .leaflet-popup {position:absolute;text-align:center;margin-bottom:20px;}
#map .leaflet-popup-content-wrapper{background:#fff;color:#222;border-radius:12px;padding:1px;box-shadow:0 3px 14px #0004;}
#map .leaflet-popup-content{margin:13px 20px;line-height:1.3;min-width:140px;}
#map .leaflet-popup-tip-container{position:absolute;left:50%;width:40px;height:20px;margin-left:-20px;overflow:hidden;pointer-events:none;}
#map .leaflet-popup-tip{background:#fff;width:17px;height:17px;transform:rotate(45deg);margin:-9px auto 0;box-shadow:0 3px 14px #0004;}
#map .leaflet-popup-close-button {position:absolute;top:0;right:0;display:block;width:24px;height:24px;text-align:center;font:20px Arial;text-decoration:none;color:#757575;}
#map img {max-width:none!important;max-height:none!important;border-radius:0!important;}

#admin .danger{background:#b42332}#edit-panel{border:2px solid #1454bf}#edit-panel[hidden]{display:none}#managed button{margin:4px 6px 4px 0}
