/*
 * v262 - sola ricerca generale desktop.
 * Mobile, annunci singoli, finestre e altre pagine restano invariati.
 */
@media(min-width:801px){
  body.map-search-page{--ccu-search-header:64px;--ccu-filter-row:58px}

  /* Intestazione essenziale: logo, localita, accesso. */
  body.map-search-page>.portal-top>.container{display:flex!important;gap:15px!important}
  body.map-search-page>.portal-top .portal-brand{flex:0 0 auto!important}
  body.map-search-page>.portal-top nav{display:none!important}
  body.map-search-page>.portal-top .ccu-search-publish-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;box-sizing:border-box!important;margin-left:auto!important;padding:0 15px!important;border:1px solid #b9cad4!important;border-radius:8px!important;background:#fff!important;color:#08709c!important;font-size:11px!important;font-weight:900!important;text-transform:uppercase!important;text-decoration:none!important;white-space:nowrap!important}
  body.map-search-page>.portal-top .login-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;margin-left:3px!important;padding:0 6px!important;color:#17283a!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important}
  body.map-search-page>.portal-top .login-link .ccu-login-icon{display:block!important;width:18px!important;height:18px!important;margin-right:5px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
  body.map-search-page>.portal-top .mobile-main-menu{display:block!important;position:relative!important;margin:0 0 0 2px!important}
  body.map-search-page>.portal-top .mobile-main-menu>summary{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;box-sizing:border-box!important;padding:0!important;border:1px solid #b9cad4!important;border-radius:8px!important;background:#fff!important;color:#08709c!important;font-size:0!important;line-height:1!important;list-style:none!important;cursor:pointer!important}
  body.map-search-page>.portal-top .mobile-main-menu>summary:before{content:"☰";font-size:21px!important}
  body.map-search-page>.portal-top .mobile-main-menu>div{top:44px!important;right:0!important}
  body.map-search-page .ccu-desktop-search-shell{display:block!important;flex:1 1 auto;min-width:260px;max-width:620px;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
  body.map-search-page .ccu-desktop-history,
  body.map-search-page .ccu-desktop-filter-button,
  body.map-search-page .ccu-desktop-alert-button,
  body.map-search-page .ccu-desktop-map-button{display:none!important}
  body.map-search-page .ccu-desktop-search-toolbar{display:block!important;margin:0!important}
  body.map-search-page .ccu-desktop-location{height:42px!important;border:1px solid #b9cad4!important;border-radius:8px!important;background:#f7fafb!important}
  body.map-search-page .ccu-desktop-location input{height:40px!important;font-size:14px!important}

  /* Il vecchio pannello rapido generava la riga Solo con foto/Planimetria/etc. */
  body.map-search-page .ccu-search-upgrade,
  body.map-search-page .ccu-search-upgrade-in-filters{display:none!important}

  /* Unica fila filtri, come nel riferimento. */
  body.map-search-page>.map-filter-dropdowns{position:relative!important;z-index:1200!important;top:auto!important;left:auto!important;right:auto!important;display:flex!important;flex:0 0 var(--ccu-filter-row)!important;align-items:center!important;gap:7px!important;width:100%!important;height:var(--ccu-filter-row)!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:8px 10px!important;overflow-x:auto!important;overflow-y:visible!important;border:0!important;border-bottom:1px solid #d5dee3!important;background:#fff!important;box-shadow:0 2px 8px #172b4310!important;scrollbar-width:thin}
  body.map-search-page>.map-filter-dropdowns>*{display:block!important}
  body.map-search-page>.map-filter-dropdowns>input[type=hidden]{display:none!important}
  body.map-search-page>.map-filter-dropdowns .filter-dropdown{position:relative!important;flex:0 0 auto!important}
  body.map-search-page>.map-filter-dropdowns .filter-dropdown>summary,
  body.map-search-page>.map-filter-dropdowns .filter-save-search{display:flex!important;align-items:center!important;justify-content:center!important;height:40px!important;box-sizing:border-box!important;padding:0 11px!important;border:1px solid #bdcbd3!important;border-radius:8px!important;background:#fff!important;color:#153249!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;text-decoration:none!important}
  body.map-search-page>.map-filter-dropdowns .filter-dropdown>summary:after{content:"⌄"!important;margin-left:6px!important;color:#087caf!important}
  body.map-search-page>.map-filter-dropdowns .filter-dropdown[open]>summary{border-color:#087caf!important;background:#edf7fb!important;color:#075f87!important}
  body.map-search-page>.map-filter-dropdowns .filter-save-search{border-color:#d70018!important;background:#d70018!important;color:#fff!important}
  body.map-search-page>.map-filter-dropdowns .filter-popover{top:125px!important;max-height:calc(100vh - 145px)!important}

  /* Disegna sulla mappa rimane un solo comando, in basso sulla mappa. */
  body.map-search-page>.map-filter-dropdowns>.map-zone-dropdown{position:fixed!important;z-index:1250!important;right:17%!important;bottom:14px!important;transform:translateX(50%)!important}
  body.map-search-page>.map-filter-dropdowns>.map-zone-dropdown>summary{height:38px!important;border-color:#c2ced5!important;background:#fff!important;box-shadow:0 4px 14px #10263830!important}
  body.map-search-page>.map-filter-dropdowns>.map-zone-dropdown[open]>.filter-popover{position:fixed!important;top:auto!important;right:18px!important;bottom:62px!important;left:auto!important;width:390px!important;transform:none!important}

  /* Risultati a sinistra e mappa a destra. */
  body.map-search-page>.map-layout{grid-template-columns:minmax(520px,41%) minmax(500px,59%)!important}
  body.map-search-page .map-pane{grid-template-rows:minmax(0,1fr)!important}
  body.map-search-page .ccu-map-load-note{display:none!important}
  body.map-search-page .map-side-head.ccug-province-head{display:flex!important;align-items:flex-end!important;gap:12px!important;padding:10px 12px 11px!important;background:#fff!important}
  body.map-search-page .desktop-results-title{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:baseline!important;gap:5px 6px!important;min-width:0!important;min-height:0!important}
  body.map-search-page .desktop-results-title>small{position:static!important;grid-column:1/-1!important;width:auto!important;height:auto!important;margin:0!important;overflow:visible!important;clip:auto!important;color:#08709c!important;font-size:10px!important;line-height:1.25!important;white-space:normal!important}
  body.map-search-page .desktop-results-title>h1{position:static!important;grid-column:2!important;grid-row:2!important;width:auto!important;height:auto!important;max-width:100%!important;margin:0!important;overflow:hidden!important;clip:auto!important;color:#17283a!important;font-size:14px!important;line-height:1.25!important;white-space:nowrap!important;text-overflow:ellipsis!important}
  body.map-search-page .desktop-results-title .map-count{grid-column:1!important;grid-row:2!important;display:flex!important;gap:4px!important;margin:0!important;color:#17283a!important;font-size:14px!important;line-height:1.25!important;white-space:nowrap!important}
  body.map-search-page .desktop-results-title .map-count b{font-size:14px!important}
  body.map-search-page .ccug-search-actions{display:block!important;margin-left:auto!important}
  body.map-search-page .ccug-province-links,
  body.map-search-page .ccu-territory-jump{display:none!important}
  body.map-search-page .ccug-search-actions>.map-sort-form{display:block!important;width:168px!important}
  body.map-search-page .map-sort-form select{height:40px!important;font-size:12px!important}

  /* Schede compatte e leggibili, senza altri blocchi sopra l'elenco. */
  body.map-search-page .map-cards{gap:12px!important;padding:10px 12px 76px!important}
  body.map-search-page .map-cards article{grid-template-columns:minmax(190px,37%) minmax(0,1fr)!important;min-height:220px!important}
  body.map-search-page .map-cards article>img,
  body.map-search-page .map-cards article>.map-no-photo{min-height:220px!important}
  body.map-search-page .map-card-body{padding:15px 16px!important}

  /* L'avviso fisso non deve coprire le schede: resta un comando basso e compatto. */
  body.map-search-page .save-map-search{left:12px!important;right:12px!important;bottom:8px!important;min-height:36px!important;margin:0!important;padding:8px 12px!important;border-radius:8px!important;font-size:12px!important;line-height:1.2!important}

  /* Finestra Salva ricerca centrata, caricata subito dal tasto rosso. */
  body.map-search-page .save-search-modal{z-index:7000!important;padding:18px!important}
  body.map-search-page .save-search-backdrop{background:#101820a8!important}
  body.map-search-page .save-search-dialog{width:min(390px,calc(100vw - 36px))!important;height:min(650px,calc(100vh - 36px))!important;border-radius:0!important;background:#f4f6f8!important;box-shadow:0 24px 70px #0007!important}
  body.map-search-page .save-search-dialog>header{height:58px!important;padding:0 18px!important}
  body.map-search-page .save-search-dialog>header h2{font-size:17px!important}
  body.map-search-page .save-search-dialog iframe{height:calc(100% - 58px)!important}
}
