#r4-filters [data-filter-wrap][hidden]{display:none!important}
#r4-filters .r4-grid>[data-filter-wrap]{grid-column:auto!important}

#r4-filters .nexo-filter-wrap{font-size:11px;font-weight:700;color:#5c7a8d;text-transform:uppercase;position:relative;min-width:0}
#r4-filters select[data-filter][hidden],#r4-filters #r13-localidad[hidden]{display:none!important}
.nexo-multi{margin-top:5px;position:relative;font-size:13px;text-transform:none;font-weight:500;color:#173e55}
.nexo-multi summary{list-style:none;min-height:42px;padding:10px 12px;border:1px solid #bfd3df;border-radius:8px;background:white;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px}
.nexo-multi summary::-webkit-details-marker{display:none}.nexo-multi summary[aria-disabled="true"]{color:#82929e;cursor:default}
.nexo-multi[open]{z-index:100}.nexo-multi-body{position:absolute;top:100%;left:0;right:0;z-index:100;background:white;border:1px solid #bfd3df;border-radius:8px;padding:10px;box-shadow:0 10px 24px #163f5626}
.nexo-multi-options{max-height:160px;overflow:auto}.nexo-multi-options label{display:flex!important;align-items:center;gap:8px;padding:7px 3px;font-size:13px;text-transform:none;font-weight:400;cursor:pointer}
#r4-filters .nexo-multi-options input{width:16px!important;height:16px!important;flex:none;margin:0;padding:0}
#r4-filters .nexo-multi-all{font-size:12px;color:#16729a;background:transparent;border:0;padding:4px 0 10px;cursor:pointer}
#r4-filters .r4-grid{padding-bottom:12px}

/* Paneles a la derecha. La barra superior permanece accesible. */
#r4-card,#r4-results{left:auto!important;right:14px!important;top:76px!important;bottom:auto!important;width:min(500px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;max-height:calc(100% - 90px)!important;overflow:auto;overscroll-behavior:contain}
#r4-filters{visibility:visible!important}
#r4-card header b{overflow-wrap:anywhere}
@media(max-width:760px){
 #r4-card,#r4-results{left:auto!important;right:8px!important;top:76px!important;bottom:auto!important;width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;max-height:calc(100% - 84px)!important}
 #r4-filters{top:76px!important;right:8px!important;width:calc(100% - 16px)!important;max-height:calc(100% - 84px)!important}
 .r4-right [data-panel="filters"]{width:auto!important;padding:0 12px!important}
 .r4-right [data-panel="filters"] span{display:inline!important}
 .nexo-multi-options label{min-height:40px;box-sizing:border-box}
}

/* Fichas móviles inferiores: mapa visible y detalle ampliable. */
.nexo-sheet-actions{display:none}
@media(max-width:760px){
 #r4-card,#r4-results{top:auto!important;bottom:8px!important;left:8px!important;right:8px!important;width:auto!important;max-width:none!important;max-height:min(42%,calc(100% - 84px))!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))!important;border-radius:18px 18px 12px 12px!important;box-sizing:border-box}
 #r4-card:not(.nexo-sheet-expanded) dl{display:none}
 #r4-card header,#r4-results header{margin-bottom:8px;padding-bottom:8px}
 #r4-card header b,#r4-results header b{font-size:13px;overflow-wrap:anywhere}
 #r4-card .r4-state{margin:8px 0 0;padding:8px 12px}
 #r4-card .r4-state b{font-size:14px}
 .nexo-sheet-actions{display:flex;gap:8px;position:sticky;top:0;background:white;padding:4px 0;z-index:2}
 .nexo-sheet-actions button{min-height:40px;padding:8px 12px;border:1px solid #bcd5e4;border-radius:8px;background:#edf6fa;color:#15597f;font:inherit;font-size:13px;cursor:pointer}
 .nexo-sheet-actions button[hidden]{display:none}
 #r4-results.nexo-sheet-peek #r4-results-body{display:none}
 #r4-card.nexo-sheet-expanded,#r4-results.nexo-sheet-expanded{height:calc(100% - 84px)!important;max-height:calc(100% - 84px)!important}
 #r4-results-body .r4-result-summary{padding:8px;font-size:13px}
 #r4-results-body .r4-result-summary small{display:none}
 #r4-results-body article{padding-top:9px;padding-bottom:9px}
 #r4-results-body article button{min-height:42px}
 #r4-filters input{font-size:16px!important}
}

#r4-filters .nexo-multi-search{display:block;width:100%;min-width:0;height:40px;margin:0 0 8px;padding:8px;box-sizing:border-box;border:1px solid #bfd3df;border-radius:6px;font-size:16px;background:white;color:#173e55}

.nexo-multi-body{position:relative;top:auto;left:auto;right:auto}
