/* Diseño común de mapas La Mochila Sabia: referencia Budapest */
:root{--map-ink:#1b254d;--map-muted:#a8afd0;--map-paper:#f1e3bf;--map-navy:#171f49;--map-line:#303b75;--map-pink:#d82b91}
html,body{background:var(--map-navy)!important;color:#f4f2ff!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important}
.wrap{max-width:820px!important;margin:0 auto!important;padding:18px 14px 120px!important}
.banner,.head{background:transparent!important;color:#f4f2ff!important;border:0!important;border-radius:0!important;padding:8px 2px 16px!important;margin:0!important}
.banner h1,.head h1{font-size:clamp(1.45rem,5vw,2rem)!important;font-weight:750!important;line-height:1.2!important;color:#f4f2ff!important}
.banner span,.head p{font-size:.96rem!important;color:#b9bfdf!important;opacity:1!important}
.wrap>p,.intro{color:#b9bfdf!important}
.mapbox,.map-frame{border:4px solid #303b75!important;border-radius:34px!important;overflow:hidden!important;background:#f1e3bf!important;box-shadow:none!important;aspect-ratio:740/1100!important;max-height:none!important}
#map{background:#f1e3bf!important;min-height:0!important}
.mapbox>svg{background:#f1e3bf!important}
.panel{background:#1b244f!important;border:2px solid #303b75!important;border-radius:26px!important;margin-top:18px!important;overflow:hidden!important;color:#f4f2ff!important}
.panel h2{background:transparent!important;color:#f4f2ff!important;font-size:1.18rem!important;font-weight:750!important;padding:16px 18px 10px!important}
.row,.item{background:transparent!important;color:#f4f2ff!important;border-color:#303b75!important;padding:13px 16px!important}
.row .t,.item span{color:#f4f2ff!important}.row .tm,.sub{color:#b9bfdf!important}
.leg,.legend{background:transparent!important;color:#e5e7fa!important;padding:12px 18px 18px!important}
.leg p,.legend p{color:#b9bfdf!important}
.sheet{background:#1b244f!important;color:#f4f2ff!important;border:2px solid #303b75!important;border-radius:30px 30px 0 0!important;box-shadow:0 -8px 28px #080d2b99!important}
.sheet h2,.sheet h3{color:#f4f2ff!important}.sheet .tags,.sheet .meta{color:#b9bfdf!important}.sheet p{color:#f4f2ff!important;line-height:1.55!important}
.close{background:#202b5b!important;color:#f4f2ff!important;border-color:#39477f!important}
.btn,.actions a{background:#303d7d!important;border-color:#5363a2!important;color:#fff!important}
.btn.alt,.actions a.secondary{background:transparent!important;color:#e5e7fa!important}
.photo{background:#151d46!important;border-color:#39477f!important}
/* Los nombres permanecen visibles en el mapa de inicio y al abrirlo, también en móvil. */
.place .nm{display:block!important;background:var(--c)!important;color:var(--tc,#fff)!important;border-radius:8px!important;font-size:11px!important;max-width:130px!important;white-space:normal!important;box-shadow:0 2px 5px #10163866!important}
.place{z-index:3!important}.place.on{z-index:7!important}.place.on .nm{outline:3px solid #fff!important}
.bd{background:#fff8e8!important;color:#9a285f!important;border-color:var(--c)!important}
@media(max-width:520px){.wrap{padding:14px 10px 100px!important}.mapbox,.map-frame{border-radius:28px!important}.place .nm{display:block!important;font-size:10px!important;max-width:100px!important;padding:3px 6px!important}.place .ic{width:28px!important;height:28px!important}.hub .ic{width:42px!important;height:42px!important}}
#map img{display:block;width:100%;height:100%;object-fit:contain}

/* Reparto sin solapes: el icono queda fijo en su punto y el nombre se coloca alrededor (lo decide map-layout.js). */
.place{display:block!important;width:auto!important;height:auto!important}
.place .ic{display:grid!important;margin:0!important}
.place .nm{position:absolute!important;left:50%!important;top:calc(100% + 3px)!important;bottom:auto!important;right:auto!important;transform:translateX(-50%)!important;width:max-content!important;text-align:center!important}
.script{white-space:nowrap!important;left:auto!important;right:12px!important;top:auto!important;bottom:8px!important;transform:rotate(-4deg)!important}
.bd{z-index:5!important}

/* Sin fotos en los mapas: la ficha muestra solo la información y la lista usa el emoticono de cada lugar. */
.photo{display:none!important}
.row .th{display:grid!important;place-items:center;font-size:18px;line-height:1;background-image:none!important;background-color:var(--line)}
