.map-actions #legend-mobile {display:grid}
.map-actions #layers.cm-alternar-fondo {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:2px}
.cm-alternar-fondo .icon {width:18px;height:18px;flex:none}
.cm-fondo-siguiente {font:800 8px/1.1 Manrope,system-ui,sans-serif;white-space:nowrap}
.cm-controles-leyenda {position:absolute;z-index:1;top:calc(100% + 12px);display:flex;align-items:center;gap:9px;width:max-content;padding:0;background:transparent}
.cm-controles-leyenda[hidden],.cm-controles-leyenda [hidden],#legend-help[hidden] {display:none!important}
.cm-control-opacidad {display:grid;justify-items:center;gap:5px;color:#142b38;font:750 12px/1.2 Manrope,system-ui,sans-serif}
.cm-etiqueta-opacidad,.cm-valor-opacidad {padding:3px 7px;border-radius:8px;background:#f7faf5cc}
.cm-control-opacidad #opacity {appearance:none;writing-mode:vertical-lr;direction:rtl;inline-size:clamp(128px,23dvh,188px);block-size:44px;margin:0;background:transparent;cursor:pointer;touch-action:none}
.cm-control-opacidad #opacity::-webkit-slider-runnable-track {width:9px;height:100%;border:1px solid #f0f6f7dd;border-radius:8px;background:#142b3899}
.cm-control-opacidad #opacity::-webkit-slider-thumb {appearance:none;width:24px;height:24px;margin-inline-start:-1px;margin-block-start:-8px;border:2px solid #142b38;border-radius:50%;background:#b4f65a;box-shadow:0 1px 5px #142b3859}
.cm-control-opacidad #opacity::-moz-range-track {width:9px;height:100%;border:1px solid #f0f6f7dd;border-radius:8px;background:#142b3899}
.cm-control-opacidad #opacity::-moz-range-thumb {width:20px;height:20px;border:2px solid #142b38;border-radius:50%;background:#b4f65a;box-shadow:0 1px 5px #142b3859}
.cm-valor-opacidad {font-variant-numeric:tabular-nums}
.cm-leyenda-completa {min-height:38px;padding:0 10px;border:1px solid #a6de63;border-radius:7px;background:#b4f65a;color:#142b38;font-size:12px;font-weight:800}
.explorer:has(.cm-controles-leyenda:not([hidden])) .map-dismiss-surface {display:block}

.explorer .map-header {justify-content:flex-start;gap:3px;padding-inline:10px 8px}
.explorer .map-header .brand {position:static;min-width:0;gap:7px;margin-inline-end:auto}
.map-header .cm-marca-map {position:relative}
.map-header .cm-marca-beta {position:absolute;right:-4px;bottom:-3px;z-index:1;padding:1px 3px;border-radius:3px;background:#142b38;color:#b4f65a;-webkit-text-stroke:0;font:800 7px/1 Manrope,system-ui,sans-serif;letter-spacing:0}
.explorer .map-header > :is(#saved,#language,#cm-pantalla-completa) {position:static;display:grid;place-items:center;flex:0 0 32px;width:32px;min-width:32px;height:36px;padding:4px}
.explorer .map-header > #cm-pantalla-completa[hidden] {display:none}
.map-header #language .language-flag {width:22px;height:18px;stroke:none}
.map-header #saved .saved-profile {display:block}
.map-header #saved .saved-bookmark {display:none}
#cm-pantalla-completa .icon {width:19px;height:19px}
#cm-pantalla-completa .cm-reducir,#cm-pantalla-completa.cm-pantalla-activa .cm-ampliar {display:none}
#cm-pantalla-completa.cm-pantalla-activa .cm-reducir {display:block}
@media (max-width:350px) {
  .explorer .map-header .brand > span {font-size:18px}
  .explorer .map-header .brand img {width:27px;height:27px}
  .explorer .map-header > :is(#saved,#language,#cm-pantalla-completa) {flex-basis:28px;width:28px;min-width:28px}
}
.map-header .search-wrap,#welcome #explore,.explorer .map-bottom {display:none}

.cm-busqueda-mapa {position:absolute;z-index:7;right:12px;bottom:12px;left:12px;display:flex;align-items:center;justify-content:flex-end;gap:6px;pointer-events:none}
.cm-busqueda-mapa>* {pointer-events:auto}
.cm-lupa-ficha,.cm-creditos-ficha summary {display:flex;align-items:center;justify-content:center;border:1px solid #526873;color:#142b38;background:#f7faf5ef;border-radius:10px}
.cm-lupa-ficha {width:36px;height:34px;padding:6px}
.cm-lupa-ficha[aria-expanded="true"] {background:#b4f65a}
.cm-lupa-ficha .icon {width:19px;height:19px}
#cm-buscador-ficha {flex:0 1 360px;min-width:0}
#cm-buscador-ficha[hidden] {display:none}
#cm-buscador-ficha #search-form {height:40px;padding:0 5px 0 10px;gap:6px;border:1px solid #526873;background:#f7faf5}
#cm-buscador-ficha #search {min-width:0;flex:1;font-size:16px}
#cm-buscador-ficha button[type="submit"] {padding:0 11px;min-height:30px;border-radius:7px;color:#142b38;background:#b4f65a;font-size:12px;font-weight:800}
#cm-buscador-ficha #search-results {top:auto;bottom:calc(100% + 5px);max-height:min(28dvh,250px);background:#f7faf5}
.cm-creditos-ficha {position:relative;flex:none}
.cm-creditos-ficha summary {list-style:none;cursor:pointer;gap:4px;padding:3px 7px;font:650 9px/1.2 system-ui,sans-serif}
.cm-creditos-ficha summary::-webkit-details-marker {display:none}
.cm-creditos-ficha summary .icon {width:14px;height:14px}
.cm-creditos-ficha-detalle {position:absolute;right:0;bottom:calc(100% + 5px);width:min(255px,80vw);padding:8px 10px;border:1px solid #526873;border-radius:9px;background:#f7faf5;font:500 11px/1.4 system-ui,sans-serif;color:#142b38}
.cm-creditos-ficha-detalle p {margin:0 0 5px}
.cm-creditos-ficha-detalle a {text-decoration:underline;color:inherit}
.cm-buscando .cm-creditos-ficha summary span {display:none}
.explorer:has(.cm-buscando) .map-dismiss-surface {display:block}
@media (max-width:760px) {
    .cm-busqueda-mapa {bottom:calc(var(--cm-alto-ficha,var(--sheet-peek)) + 8px)}
    .cm-busqueda-mapa .cm-lupa-ficha {position:absolute;top:calc(100% + 8px);right:6px;width:40px;height:32px;color:#d4ff9a;background:transparent;border-color:transparent}
    .cm-busqueda-mapa .cm-lupa-ficha[aria-expanded="true"] {color:#142b38;background:#b4f65a}
    .cm-busqueda-mapa .cm-lupa-ficha .icon {pointer-events:none}
    body:has(.sidebar.expanded) .cm-busqueda-mapa {display:none}
}
