/* Trova Casa 2026 — selezione Comuni, quartieri e raggio. Isolato alla pagina. */
.find-home-body .find-home-shell{max-width:1190px}
.find-home-body .find-home-form{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:20px}
.find-home-body .find-home-fields--geo{display:flex;flex-direction:column;align-items:stretch;gap:15px}
.find-home-body .find-home-fields--geo>*{min-width:0}
.find-home-body .fh-geo-entry{position:relative;isolation:isolate;z-index:10}
.find-home-body .fh-suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:50;background:#fff;border:1px solid #dce7f0;border-radius:14px;box-shadow:0 16px 35px rgba(15,38,65,.17);max-height:250px;overflow-y:auto;padding:5px}
.find-home-body .fh-suggestions[hidden]{display:none}
.find-home-body .fh-suggestions>button{appearance:none;display:block;width:100%;padding:11px 13px;border:0;border-radius:9px;background:#fff;text-align:left;color:#133451;font-family:inherit;font-size:14px;font-weight:600;line-height:1.35;cursor:pointer}
.find-home-body .fh-suggestions>button:is(:hover,:focus-visible){background:#edf6fc;color:#0e70b1}
.find-home-body .fh-map-open{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:12px 14px;border-radius:12px;border:1px solid #aed6ef;background:#eff8ff;color:#096da9;font-family:inherit;font-size:13px;font-weight:800;line-height:1.35;cursor:pointer}
.find-home-body .fh-map-open:hover{border-color:#0e8ccc;background:#e3f3fd}
.find-home-body .fh-map-open svg,.find-home-body .fh-generate-description svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.find-home-body .fh-selected-places{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.find-home-body .fh-empty-places{font-size:12px;color:#6a7b8e;margin:0}
.find-home-body .fh-place-chip{display:inline-flex;align-items:center;gap:7px;background:#eef5fa;border:1px solid #cee3f2;border-radius:999px;padding:5px 6px 5px 11px;color:#173d5e;font-size:12px;font-weight:750}
.find-home-body .fh-place-chip button{border:0;color:#3b6483;border-radius:50%;width:21px;height:21px;display:grid;place-items:center;background:#fff;cursor:pointer;font-size:16px;line-height:1}
.find-home-body .fh-radius-field .fh-radius-note{color:#647990;line-height:1.5;font-weight:500;font-size:12px}
.find-home-body .fh-contract{min-width:0;min-inline-size:0;padding:0;margin:0;border:0}
.find-home-body .fh-contract>legend{font-size:13px;font-weight:850;color:#334b68;margin-bottom:8px;padding:0}
.find-home-body .fh-contract-buttons{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.find-home-body .fh-contract-option{position:relative;cursor:pointer}
.find-home-body .fh-contract-option input{position:absolute;opacity:0;pointer-events:none}
.find-home-body .fh-contract-option>span{display:flex;gap:8px;align-items:center;justify-content:center;background:#fff;border:1px solid #d6e1eb;border-radius:13px;padding:13px 7px;color:#2e4961;font-size:14px;font-weight:850;transition:background .15s,border .15s}
.find-home-body .fh-contract-option svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.find-home-body .fh-contract-option input:checked+span{border-color:#e76a18;background:#fff0e6;color:#cc5412;box-shadow:inset 0 0 0 1px #e76a18}
.find-home-body .fh-contract-option input:focus-visible+span{outline:3px solid #65bcf3;outline-offset:3px}
.find-home-body .fh-category-types,.find-home-body .fh-surface-rooms{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.find-home-body .find-home-fields--geo .find-home-field>span:first-child{font-size:13px;font-weight:850}
.find-home-body .find-home-control--textarea textarea{min-height:110px}
.find-home-body .fh-generate-description{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;border:0;background:none;color:#0674b9;font-size:12px;font-weight:800;cursor:pointer;padding:2px 1px}
.find-home-body .fh-generate-description:hover{text-decoration:underline}
.find-home-body .find-home-hero{background:linear-gradient(125deg,#e5661a,#f18a44)}
.find-home-body .find-home-hero p{max-width:67ch}
/* Modale mappa: UI dedicata, riusa API poligoni locali di Quadrilocale.it */
.fh-map-open{overflow:hidden}
.find-home-body .fh-map-overlay{position:fixed;inset:0;z-index:1500;background:rgba(5,22,38,.72);padding:20px;display:flex;align-items:center;justify-content:center}
.find-home-body .fh-map-overlay[hidden]{display:none!important}
.find-home-body .fh-map-dialog{width:min(1160px,100%);height:min(780px,calc(100dvh - 40px));border-radius:22px;background:#fff;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 22px 80px rgba(0,0,0,.23)}
.find-home-body .fh-map-header{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid #e8edf2;gap:15px}
.find-home-body .fh-map-header h2{font-size:19px;line-height:1.2;color:#103450;margin:0 0 4px;font-weight:900}
.find-home-body .fh-map-header p{font-size:12px;color:#6a8193;margin:0;line-height:1.4}
.find-home-body .fh-map-close{font-size:27px;background:#eef4f7;color:#15344a;border:0;border-radius:11px;width:38px;height:38px;display:grid;place-items:center;cursor:pointer}
.find-home-body .fh-map-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px}
.find-home-body .fh-map-canvas{width:100%;min-height:100%;background:#dcecf6}
.find-home-body .fh-map-side{padding:15px;min-width:0;overflow:auto;border-left:1px solid #e5ebef}
.find-home-body .fh-map-side h3{font-size:14px;font-weight:900;margin:0 0 10px}
.find-home-body .fh-map-cities{display:grid;gap:6px}
.find-home-body .fh-map-city{display:flex;border:1px solid #dbe6ef;border-radius:11px;align-items:stretch;overflow:hidden;background:#fff}
.find-home-body .fh-map-city.is-focused{border-color:#e56a20;background:#fff6f0}
.find-home-body .fh-map-city button{background:none;border:0;cursor:pointer;color:#2b4d68}
.find-home-body .fh-map-city button:first-child{text-align:left;padding:10px;flex:1;font-size:12px;font-weight:800}
.find-home-body .fh-map-city button:last-child{font-size:19px;width:29px}
.find-home-body .fh-map-tip{font-size:11px;color:#75899b;line-height:1.4;margin:12px 0}
.find-home-body .fh-map-areas{display:grid;gap:6px;margin:10px 0 20px;max-height:42vh;overflow:auto}
.find-home-body .fh-map-areas strong{font-size:13px;padding-bottom:4px}
.find-home-body .fh-map-areas p{font-size:12px;line-height:1.4;color:#748698}
.find-home-body .fh-map-select-all{border:0;border-radius:9px;background:#fff1e7;color:#d65815;padding:9px 10px;text-align:left;font-size:12px;font-weight:850;cursor:pointer}
.find-home-body .fh-map-area-line{display:flex;gap:8px;align-items:center;padding:7px 5px;font-size:12px;color:#294e68;cursor:pointer}
.find-home-body .fh-map-area-line--quarter{margin-left:16px;font-size:11px}
.find-home-body .fh-map-area-line input{accent-color:#e76b18;width:16px;height:16px}
.find-home-body .fh-map-status{font-size:11px;color:#536d85;line-height:1.4;margin-top:8px}
.find-home-body .fh-map-footer{padding:13px 18px;display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #e8edf2;background:#fff}
.find-home-body .fh-map-footer button{padding:12px 18px;border-radius:11px;cursor:pointer;font-size:13px;font-weight:850}
.find-home-body .fh-map-secondary{border:1px solid #d6e3eb;background:#fff;color:#29445d}
.find-home-body .fh-map-confirm{border:1px solid #e2691c;background:#e96c1b;color:#fff}
.find-home-body .find-home-submit{border-radius:13px}
@media(max-width:760px){
  .find-home-body .find-home-form{display:flex;flex-direction:column;gap:14px}
  .find-home-body .find-home-form>.find-home-section{width:100%;margin:0}
  .find-home-body .find-home-fields--geo{gap:13px}
  .find-home-body .fh-map-overlay{padding:0}
  .find-home-body .fh-map-dialog{width:100%;height:100dvh;max-height:none;border-radius:0}
  .find-home-body .fh-map-layout{display:flex;flex-direction:column}
  .find-home-body .fh-map-canvas{min-height:44dvh;flex:1}
  .find-home-body .fh-map-side{border-left:0;border-top:1px solid #e5ebef;max-height:34dvh;flex:0 0 auto}
  .find-home-body .fh-map-areas{max-height:17dvh}
  .find-home-body .fh-map-header{padding:12px 15px}
  .find-home-body .fh-map-footer{padding:11px}
  .find-home-body .fh-map-footer button{flex:1}
}
@media(max-width:380px){
  .find-home-body .fh-category-types,.find-home-body .fh-surface-rooms{grid-template-columns:1fr 1fr;gap:8px}
  .find-home-body .fh-category-types .find-home-control{padding:0 8px;gap:4px}
  .find-home-body .fh-category-types .find-home-control svg{display:none}
  .find-home-body .fh-category-types select{font-size:12px}
  .find-home-body .fh-map-open{font-size:12px}
}

/* Refinement 2026-11-04: compact macrozone and clearly outlined municipalities */
.find-home-body .fh-map-areas{gap:4px;max-height:48vh}
.find-home-body .fh-map-zone{border:1px solid #e5edf3;border-radius:9px;overflow:hidden;background:#fff}
.find-home-body .fh-map-zone-header{display:flex;align-items:center;gap:4px;min-width:0}
.find-home-body .fh-map-zone-header>.fh-map-area-line{flex:1;min-width:0;padding:6px 7px;font-weight:700;font-size:11px;margin:0}
.find-home-body .fh-map-zone-expand{flex:0 0 auto;max-width:92px;border:0;background:#edf6fc;color:#2375a8;border-radius:7px;padding:6px;font-size:10px;font-weight:750;cursor:pointer}
.find-home-body .fh-map-zone-quarters{padding:3px 0 5px;background:#f8fbfe;border-top:1px solid #edf1f5;max-height:180px;overflow-y:auto}
.find-home-body .fh-map-zone-quarters[hidden]{display:none!important}
.find-home-body .fh-map-zone-quarters .fh-map-area-line{padding:5px 8px 5px 13px;margin-left:0;font-size:10.5px}
.find-home-body .fh-map-zone input{width:14px;height:14px;flex-shrink:0}
.find-home-body .fh-map-status{border-radius:8px;background:#eaf5fc;padding:8px;color:#194d70;font-size:11px}
.find-home-body .fh-map-canvas .leaflet-overlay-pane path{vector-effect:non-scaling-stroke}
@media(max-width:760px){.find-home-body .fh-map-areas{max-height:20dvh}}

/* 04/11/2026: pannello preferenze facoltative e mappa Canvas come ricerca risultati */
.find-home-body .fh-extra-details{width:100%;border:1px solid #d9e5ef;border-radius:15px;background:#fbfdff;overflow:hidden}
.find-home-body .fh-extra-details>summary{display:flex;align-items:center;gap:11px;padding:15px 16px;cursor:pointer;list-style:none;color:#133750;background:#f2f8fc}
.find-home-body .fh-extra-details>summary::-webkit-details-marker{display:none}
.find-home-body .fh-extra-details>summary>svg{width:23px;height:23px;flex:0 0 23px;color:#167bb3;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.find-home-body .fh-extra-details>summary span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.find-home-body .fh-extra-details>summary strong{font-size:15px;font-weight:850}
.find-home-body .fh-extra-details>summary small{font-size:11px;line-height:1.3;color:#637d90;font-weight:500}
.find-home-body .fh-extra-chevron{font-size:25px;font-weight:700;transition:transform .16s}
.find-home-body .fh-extra-details[open] .fh-extra-chevron{transform:rotate(180deg)}
.find-home-body .fh-extra-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:15px 15px 4px}
.find-home-body .fh-extra-fields>.find-home-field{margin:0;min-width:0}
.find-home-body .fh-extra-fields>.fh-extra-fields--wide{grid-column:1/-1}
.find-home-body .fh-extra-fields .find-home-control{padding:0 11px;min-height:42px}
.find-home-body .fh-extra-fields select{width:100%;font-size:12px;min-width:0}
.find-home-body .fh-extra-fields .find-home-field>span:first-child{font-size:12px}
.find-home-body .fh-extra-note{margin:0;padding:10px 15px 15px;font-size:11px;color:#657f94;line-height:1.4}
.find-home-body .fh-map-canvas .leaflet-fhMunicipalPane-pane canvas{pointer-events:none!important}
@media(max-width:420px){.find-home-body .fh-extra-fields{grid-template-columns:1fr;gap:10px}.find-home-body .fh-extra-fields>.fh-extra-fields--wide{grid-column:auto}}


/* Trova casa 05-11-2026 — Risultati dopo l'invio e scelta esplicita di salvataggio */
.fh-matches{max-width:1380px;margin:30px auto 70px;padding:0 16px;color:#173047}
.fh-matches[hidden],.fh-save-overlay[hidden],.fh-matches-more[hidden],.fh-saved-lookup[hidden]{display:none!important}
.fh-matches-confirmation{display:flex;align-items:flex-start;gap:14px;padding:20px 24px;border:1px solid #dce9d9;background:#f2faf2;border-radius:19px;margin-bottom:27px}
.fh-matches-confirmation strong{display:block;font-size:20px;font-weight:850;color:#14422c;margin:0 0 4px}
.fh-matches-confirmation p{margin:0;color:#526a5d;line-height:1.5}
.fh-matches-check{display:grid;place-items:center;background:#d8f3de;border-radius:50%;flex:0 0 44px;width:44px;height:44px;color:#1f8b48}
.fh-matches-check svg{width:26px;height:26px;stroke:currentColor;stroke-width:2;fill:none}
.fh-matches-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:21px}
.fh-matches-heading h2{font-size:29px;letter-spacing:-.025em;line-height:1.13;margin:0 0 6px;color:#112c44}
.fh-matches-heading p{color:#61758b;margin:0;font-size:14px}
.fh-matches-refine{display:inline-flex;align-items:center;border:1px solid #d4e1ed;border-radius:11px;padding:11px 14px;text-decoration:none;color:#116bab;background:#fff;font-weight:800;white-space:nowrap}
.fh-matches-status{font-size:14px;color:#5a7186;padding:12px 2px}
/* Schede Trova casa complete: riferimento visivo alle card della ricerca mobile. */
.fh-matches-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
.fh-match-card{min-width:0;border:1px solid #dee6ed;border-radius:21px;overflow:hidden;background:#fff;box-shadow:0 7px 22px rgba(24,52,84,.08);color:#142c44;display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}
.fh-match-card:hover{transform:translateY(-2px);box-shadow:0 13px 31px rgba(24,52,84,.13)}
.fh-match-media{position:relative;width:100%;background:#edf3f8;overflow:hidden;aspect-ratio:1.65}
.fh-match-photo-link{display:block;width:100%;height:100%;overflow:hidden}
.fh-match-media .fh-match-image{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:auto;background:#eaf1f6}
.fh-match-badge-new,.fh-match-badge-level,.fh-match-photo-count{position:absolute;pointer-events:none;color:#fff;font-size:12px;font-weight:900;line-height:1;padding:9px 11px;border-radius:10px}
.fh-match-badge-new{top:14px;left:14px;background:#087dd0}
.fh-match-badge-level{left:14px;bottom:13px;background:rgba(40,55,76,.72);backdrop-filter:blur(4px)}
.fh-match-photo-count{right:14px;bottom:13px;background:rgba(17,37,58,.72)}
.fh-match-card-content{padding:19px 20px 20px;display:flex;flex-direction:column;gap:13px;flex:1}
.fh-match-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:33px}
.fh-match-price{font-weight:950;color:#122c45;font-size:25px;letter-spacing:-.025em;line-height:1.2}
.fh-match-topline .fh-match-agency-logo{width:auto;height:auto;max-width:112px;max-height:35px;object-fit:contain;aspect-ratio:auto;background:none;flex:0 1 auto}
.fh-match-agency-name{font-size:11px;font-weight:800;color:#536b80;text-align:right;max-width:135px}
.fh-match-name{font-size:20px;font-weight:850;line-height:1.28;letter-spacing:-.015em;margin:0;min-height:2.55em}
.fh-match-name a{color:#172b42;text-decoration:none}
.fh-match-name a:hover{text-decoration:underline;text-underline-offset:3px}
.fh-match-location{font-size:12px;color:#6b8191;margin-top:-6px}
.fh-match-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px;row-gap:14px;color:#263c54;padding:8px 0 3px;font-size:13px}
.fh-match-fact{display:flex;align-items:center;gap:7px;min-width:0;line-height:1.3}
.fh-match-fact>span:last-child{overflow-wrap:anywhere}
.fh-match-icon{width:23px;height:23px;flex:0 0 23px;display:inline-grid;place-items:center;color:#475c72}
.fh-match-icon svg{display:block;width:23px!important;height:23px!important;max-width:none!important;max-height:none!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fh-match-actions{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);gap:9px;margin-top:auto;padding-top:8px}
.fh-match-actions:has(> :first-child:nth-last-child(2)){grid-template-columns:1fr 1fr}
.fh-match-action{min-width:0;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;border:1px solid #c9d8e6;border-radius:11px;background:#fff;color:#0876c3;text-decoration:none;font-family:inherit;font-size:14px;font-weight:800;line-height:1.2;padding:9px 12px;transition:background .16s,border-color .16s}
.fh-match-action:hover{background:#edf7fe;border-color:#8cc3e5}
.fh-match-action--phone{padding-inline:11px}
.fh-match-action--phone>.fh-match-icon{width:22px;flex-basis:22px}
.fh-match-action .fh-match-icon,.fh-match-action .fh-match-icon svg{width:20px!important;height:20px!important;flex-basis:20px}
.fh-match-action:focus-visible,.fh-match-name a:focus-visible,.fh-match-photo-link:focus-visible{outline:3px solid #59b1ec;outline-offset:2px}
.fh-match-dialog-open{overflow:hidden}
.fh-match-contact-dialog .result-contact-dialog__status.is-success{color:#17854c;font-weight:800}
.fh-match-contact-dialog .result-contact-dialog__status.is-error{color:#bd352a;font-weight:700}
.fh-match-contact-dialog .result-contact-honeypot{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;opacity:0!important}
.fh-match-contact-dialog .result-contact-dialog__backdrop{position:absolute;inset:0}
.fh-match-contact-dialog .result-contact-dialog__panel{z-index:1}
.fh-matches-more{display:block;margin:25px auto 0;background:#fff;border:1px solid #c7d9e8;border-radius:12px;padding:13px 28px;color:#006cb0;font-weight:800;cursor:pointer}
.fh-matches-more:disabled{opacity:.65;cursor:wait}
.fh-matches-disclaimer{display:block;color:#8492a1;margin-top:17px;line-height:1.5}
.fh-save-overlay{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,37,55,.44)}
.fh-save-card{width:min(440px,100%);padding:28px 27px 25px;border-radius:24px;background:#fff;text-align:center;box-shadow:0 22px 65px rgba(10,30,50,.29)}
.fh-save-symbol{display:grid;place-items:center;margin:0 auto 13px;background:#fff1e8;color:#eb711b;width:54px;height:54px;border-radius:50%}
.fh-save-symbol svg{height:26px;width:26px;stroke:currentColor;stroke-width:1.9;fill:none}
.fh-save-card h2{font-size:22px;font-weight:900;line-height:1.2;margin:0 0 9px;color:#122c43}
.fh-save-card p{font-size:14px;line-height:1.5;margin:0 0 19px;color:#5d7285}
.fh-save-actions{display:grid;gap:9px}
.fh-save-actions button{padding:13px 15px;border-radius:11px;cursor:pointer;font-weight:850}
.fh-save-now{background:#ed6f1d;color:#fff;border:1px solid #ed6f1d}
.fh-save-later{background:#fff;color:#1e5679;border:1px solid #d2e0ed}
.fh-save-status{padding:8px 0 0!important;margin:0!important;color:#b23e2c!important}
.fh-saved-lookup{max-width:760px;margin:16px auto 0;border-radius:15px;border:1px solid #cce0f1;background:#f3f9fd;padding:14px 19px}
.fh-saved-lookup strong{display:block;margin-bottom:8px}
.fh-saved-lookup a{display:inline-block;margin:2px 12px 4px 0;color:#1269a7;font-weight:750}
@media(max-width:860px){.fh-matches-grid{grid-template-columns:1fr;max-width:660px;margin-inline:auto}.fh-match-media{aspect-ratio:1.55}}
@media(max-width:560px){.fh-matches{padding:0 13px;margin:18px auto 50px}.fh-matches-grid{gap:17px}.fh-matches-heading{align-items:flex-start;flex-direction:column}.fh-matches-heading h2{font-size:24px}.fh-matches-confirmation{padding:17px;gap:11px}.fh-matches-confirmation strong{font-size:17px}.fh-matches-check{flex-basis:37px;width:37px;height:37px}.fh-match-card-content{padding:15px 16px 17px;gap:11px}.fh-match-media{aspect-ratio:1.45}.fh-match-price{font-size:23px}.fh-match-name{font-size:19px}.fh-match-facts{font-size:12px;gap:13px 6px}.fh-match-fact{gap:5px}.fh-match-icon,.fh-match-icon svg{width:21px!important;height:21px!important;flex-basis:21px}.fh-match-action{font-size:13px;min-height:46px;gap:6px;padding:8px}.fh-match-actions{gap:7px}}
@media(max-width:340px){.fh-match-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.fh-match-action--phone>span:last-child{display:none}}

.fh-saved-search-link{display:inline-flex;margin:4px 8px 4px 0;background:#fff;border:1px solid #c3dbef;border-radius:10px;padding:8px 12px;color:#11649f;cursor:pointer;font-weight:700}

/* 05/11/2026: dialogo mappa a schermo pieno, navbar mobile nascosta. */
body.fh-map-open{overflow:hidden!important;overscroll-behavior:none}
body.fh-map-open .mobile-bottom-nav,
body.fh-map-open .bottom-nav,
body.fh-map-open .app-bottom-nav,
body.fh-map-open .logged-bottom-nav,
body.fh-map-open .professional-bottom-nav,
body.fh-map-open .public-account-bottom-nav,
body.fh-map-open .home-public-bottom-nav,
body.fh-map-open .results-public-bottom-nav,
body.fh-map-open .logged-nav-host,
body.fh-map-open .results-authenticated-nav,
body.fh-map-open .home-authenticated-nav{display:none!important;visibility:hidden!important}
.find-home-body .fh-place-chip{max-width:100%;white-space:normal;text-align:left;border-radius:13px}
.find-home-body .fh-place-chip span{min-width:0;overflow-wrap:anywhere}
.find-home-body .fh-map-city button:first-child{overflow-wrap:anywhere}
@media(max-width:760px){
 .find-home-body .fh-map-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;padding:0!important}
 .find-home-body .fh-map-dialog{position:relative;height:100dvh!important;max-height:100dvh!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
 .find-home-body .fh-map-header{flex:0 0 auto}
 .find-home-body .fh-map-layout{display:flex!important;flex:1 1 auto!important;flex-direction:column;min-height:0!important;overflow:hidden}
 .find-home-body .fh-map-canvas{height:auto!important;min-height:0!important;flex:1 1 38%!important}
 .find-home-body .fh-map-side{min-height:0!important;max-height:none!important;flex:1 1 54%!important;overflow:auto!important;-webkit-overflow-scrolling:touch}
 .find-home-body .fh-map-areas{max-height:none!important;overflow:visible!important}
 .find-home-body .fh-map-footer{display:flex!important;position:relative!important;z-index:5!important;flex:0 0 auto!important;bottom:auto!important;min-height:66px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;box-shadow:0 -4px 16px rgba(17,42,60,.09)}
 .find-home-body .fh-map-footer button{min-height:44px}
}

/* 05/11/2026 - contorni delle macrozone e dei quartieri del Trova casa */
.find-home-body .fh-map-canvas .leaflet-fhAreaPane-pane{z-index:470!important;pointer-events:auto}
.find-home-body .fh-map-canvas .leaflet-fhAreaPane-pane svg{overflow:visible}
.find-home-body .fh-map-canvas .leaflet-fhAreaPane-pane path{vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.find-home-body .find-home-hero h2{margin-top:0}

/* Trova casa: descrizione completa, senza testo troncato. */
.find-home-body .find-home-control--textarea{align-items:flex-start!important}
.find-home-body .find-home-control--textarea textarea{
  display:block!important;min-height:145px!important;height:auto;
  max-height:none!important;overflow-y:hidden!important;
  box-sizing:border-box!important;resize:vertical;line-height:1.55;
}
/* Il menu di Roma lascia spazio ai livelli Leaflet interattivi. */
.find-home-body .fh-map-canvas .leaflet-fhAreaPane-pane{
  z-index:630!important;pointer-events:auto!important;
}
.find-home-body .fh-map-canvas .leaflet-fhAreaPane-pane svg,
.find-home-body .fh-map-canvas .leaflet-fhAreaPane-pane path{
  pointer-events:auto!important;cursor:pointer;
}
.find-home-body .fh-map-areas[hidden],
.find-home-body .fh-map-tip[hidden]{display:none!important}
.find-home-body .fh-map-geometry-loading{font-size:11px;color:#647f93;margin:6px 0}

/* Trova casa: zone/quarter bounds in SVG pane ABOVE municipality Canvas and primary outline.
   The same published boundaries are used by the standard results map. */
.find-home-body .fh-map-canvas .leaflet-fhAreaPane-pane{
  z-index:630!important;
  pointer-events:auto!important;
}
.find-home-body .fh-map-canvas .leaflet-fhAreaPane-pane svg,
.find-home-body .fh-map-canvas .leaflet-fhAreaPane-pane path{
  pointer-events:auto;
}

/* 05/11/2026 - renderer SVG esclusivo di Trova casa sopra i confini comunali.
   Il renderer e' esplicitamente creato in assets/js/find_home.js. */
.find-home-body #fh-map-canvas .leaflet-fhAreaPane-pane{
  z-index:630!important;pointer-events:auto!important;visibility:visible!important;
}
.find-home-body #fh-map-canvas .leaflet-fhAreaPane-pane svg{
  pointer-events:auto;overflow:visible;
}
.find-home-body #fh-map-canvas .leaflet-fhAreaPane-pane path{
  pointer-events:visiblePainted!important;cursor:pointer;vector-effect:non-scaling-stroke;
  stroke-linecap:round;stroke-linejoin:round;
}
.find-home-body .fh-map-retry-geometry{
  border:1px solid #d7e5ef;border-radius:9px;background:#edf7ff;color:#075f98;
  cursor:pointer;padding:9px 12px;font-size:12px;font-weight:800;
}

/* 05/11/2026 - Fix dimensionamento SVG Leaflet per Trova casa.
   app.css contiene svg { width:100%; height:100%; } che sovrascrive
   gli attributi width/height impostati dinamicamente da Leaflet.
   Il renderer SVG, con viewBox e offset definiti da Leaflet, deve
   mantenere le proprie dimensioni intrinseche per allineare i confini
   geografici alla mappa. Selettore limitato al solo pane delle aree. */
.find-home-body #fh-map-canvas .leaflet-fhAreaPane-pane > svg {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

/* 05/11/2026 v4: il renderer delle zone e dei quartieri ora usa Canvas,
   esattamente come il renderer dei Comuni ma su un pane superiore.
   A differenza del Canvas dei Comuni, deve ricevere i click. */
.find-home-body #fh-map-canvas .leaflet-fhAreaPane-pane {
  z-index: 630 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.find-home-body #fh-map-canvas .leaflet-fhAreaPane-pane canvas {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  cursor: pointer;
}

/* Trova Casa V7: carousel fotografico e preferiti delle card. */
.fh-match-favorite{position:absolute;z-index:5;top:14px;right:14px;width:45px;height:45px;border:0;border-radius:50%;display:grid;place-items:center;color:#e34259;background:rgba(255,255,255,.96);box-shadow:0 3px 13px #17324b38;cursor:pointer}
.fh-match-favorite .fh-match-icon,.fh-match-favorite .fh-match-icon svg{width:24px!important;height:24px!important;flex-basis:24px}
.fh-match-favorite.is-saved{color:#db2851;background:#fff1f3}
.fh-match-favorite.is-saved svg{fill:currentColor;stroke:currentColor}
.fh-match-favorite:disabled{opacity:.5;cursor:wait}
.fh-match-photo-arrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:39px;height:39px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#1d3e58;background:rgba(255,255,255,.94);box-shadow:0 3px 12px #13354f40}
.fh-match-photo-arrow--prev{left:11px}.fh-match-photo-arrow--next{right:11px}
.fh-match-photo-arrow .fh-match-icon,.fh-match-photo-arrow .fh-match-icon svg{width:22px!important;height:22px!important;flex-basis:22px}
.fh-match-photo-arrow:hover,.fh-match-favorite:hover{background:#f0f8ff}
.fh-match-photo-arrow:focus-visible,.fh-match-favorite:focus-visible{outline:3px solid #168bdb;outline-offset:3px}
@media(max-width:560px){.fh-match-favorite{width:42px;height:42px;right:11px;top:11px}.fh-match-photo-arrow{width:36px;height:36px}}

.fh-match-favorite .fh-match-icon{color:inherit}
.fh-match-favorite.is-saved .fh-match-icon svg{fill:currentColor;stroke:currentColor}

/* Trova Casa 06-11-2026: selettore stile home, modalita geografiche esclusive */
.find-home-body .find-home-hero p{max-width:95ch;line-height:1.52}
.find-home-body .fh-geo-entry{z-index:80}
.find-home-body .fh-geo-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:90;background:#fff;border:1px solid #d5e3ee;box-shadow:0 18px 45px rgba(20,46,74,.19);border-radius:14px;padding:9px;max-height:min(460px,66vh);overflow:auto}
.find-home-body .fh-geo-dropdown[hidden],.find-home-body [data-fh-radius-container][hidden],.find-home-body [data-fh-geo-mode-label][hidden]{display:none!important}
.find-home-body .fh-geo-dropdown-title{font-weight:850;font-size:12px;color:#526d85;margin:6px 8px 11px}
.find-home-body .fh-geo-dropdown .fh-suggestions{position:static;max-height:180px;overflow:auto;box-shadow:none;border:0;border-bottom:1px solid #e2ecf3;margin:0 0 8px;border-radius:0;padding:0 0 8px}
.find-home-body .fh-geo-choice{display:flex;align-items:center;gap:12px;background:#fff;border:0;border-radius:10px;padding:12px 10px;color:#133750;font-size:13px;font-weight:750;text-align:left;cursor:pointer;width:100%;font-family:inherit}
.find-home-body .fh-geo-choice:hover,.find-home-body .fh-geo-choice.is-active{background:#f0f8ff;color:#0674bb}
.find-home-body .fh-geo-choice svg{width:22px!important;height:22px!important;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.9}
.find-home-body .fh-city-control{display:flex;align-items:center}
.find-home-body .fh-city-control input{flex:1;min-width:0}
.find-home-body .fh-geo-caret{appearance:none;flex:0 0 36px;height:35px;border:0;background:transparent;color:#235b7e;font-weight:900;font-size:20px;cursor:pointer}
.find-home-body .fh-geo-selection-note{color:#215e86;background:#f0f8fe;border:1px solid #d5ebfa;border-radius:10px;padding:10px 12px;font-size:12px;line-height:1.4}
.find-home-body .fh-range-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.find-home-body .fh-range-fields .find-home-field{min-width:0}
.find-home-body .fh-range-fields .find-home-field>span:first-child{font-size:12px;white-space:normal}
.find-home-body .fh-range-fields em{font-size:10px;color:#748a9c;font-weight:500;font-style:normal}
.find-home-body .fh-place-chip--draw{background:#fff4eb;border-color:#f0c69f;color:#9b480e}
.find-home-body .fh-map-location-search{position:relative;display:flex;align-items:center;gap:9px;padding:10px 14px;background:#f5f9fc;border-bottom:1px solid #dfebf4;z-index:100}
.find-home-body .fh-map-location-search>span>svg{width:20px;height:20px;fill:none;stroke:#227ab0;stroke-width:1.9}
.find-home-body .fh-map-location-search input{width:100%;min-width:0;background:#fff;border:1px solid #d1e0ed;border-radius:10px;outline:0;padding:11px;color:#163f5e;font-size:14px}
.find-home-body .fh-map-location-search input:focus{border-color:#0e86d2}
.find-home-body .fh-map-suggestions{position:absolute;top:calc(100% - 7px);left:40px;right:14px;z-index:105;background:#fff;border:1px solid #d5e2ee;box-shadow:0 11px 28px rgba(24,54,85,.17);max-height:240px;overflow:auto;border-radius:0 0 12px 12px}
.find-home-body .fh-map-suggestions[hidden],.find-home-body .fh-draw-tools[hidden],.find-home-body .fh-map-side[hidden]{display:none!important}
.find-home-body .fh-map-suggestions button{display:block;width:100%;background:#fff;border:0;border-bottom:1px solid #f0f4f7;color:#235a80;font-size:13px;text-align:left;padding:11px 14px;cursor:pointer}
.find-home-body .fh-map-suggestions button:hover{background:#f0f8ff}
.find-home-body .fh-draw-tools{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:10px 16px;background:#fff7f1;border-bottom:1px solid #f2d6c1;color:#8b4218;font-size:12px;line-height:1.4}
.find-home-body .fh-draw-tools>span{flex:1}
.find-home-body .fh-draw-tools button{border:1px solid #e56c1b;background:#e76c1b;color:white;white-space:nowrap;border-radius:8px;padding:9px 12px;font-size:12px;font-weight:800;cursor:pointer}
.find-home-body .fh-draw-tools button[data-fh-draw-reset]{background:white;color:#d26016}
.find-home-body .fh-map-layout--draw{display:block;min-height:0}
.find-home-body .fh-map-layout--draw .fh-map-canvas{height:100%;min-height:0}
.find-home-body .fh-map-canvas.fh-drawing{cursor:crosshair!important;touch-action:none!important}
.find-home-body .fh-map-canvas.fh-drawing *{cursor:crosshair!important}
@media(max-width:760px){
  .find-home-body .fh-draw-tools{align-items:stretch;flex-wrap:wrap}
  .find-home-body .fh-draw-tools>span{flex-basis:100%}
  .find-home-body .fh-map-layout--draw{flex:1;display:block}
  .find-home-body .fh-map-layout--draw .fh-map-canvas{height:100%;min-height:0}
}
@media(max-width:400px){.find-home-body .fh-range-fields{gap:8px}.find-home-body .fh-range-fields .find-home-control{padding:0 7px;gap:3px}.find-home-body .fh-range-fields .find-home-control svg{display:none}.find-home-body .fh-range-fields input{font-size:13px}}

.find-home-body .fh-drawn-preview{display:flex;align-items:center;gap:14px;flex:1 0 100%;min-width:0;border:1px solid #d7e4ef;border-radius:13px;background:#f5fafd;padding:10px 13px}
.find-home-body .fh-drawn-preview svg{display:block;flex:0 0 145px;max-width:145px;height:83px;border-radius:9px;background:repeating-linear-gradient(0deg,transparent 0 23px,#e2ecf4 24px),repeating-linear-gradient(90deg,transparent 0 23px,#e2ecf4 24px),#fff;border:1px solid #e1eaf2}
.find-home-body .fh-drawn-preview-meta{display:flex;align-items:flex-start;flex-direction:column;gap:6px;min-width:0}
.find-home-body .fh-drawn-preview-meta strong{font-size:13px;color:#1e3c53}
.find-home-body .fh-drawn-preview-meta small{font-size:11px;color:#657e93}
.find-home-body .fh-drawn-preview-meta button{border:1px solid #c3dcec;background:#fff;color:#1076b5;font-size:12px;font-weight:850;cursor:pointer;border-radius:9px;padding:7px 11px}
@media(max-width:420px){.find-home-body .fh-drawn-preview svg{flex-basis:105px;max-width:105px;height:80px}.find-home-body .fh-drawn-preview{gap:9px;padding:8px}.find-home-body .fh-drawn-preview-meta strong{font-size:12px}}
.find-home-body .fh-geo-entry>[data-error-for="locations"]{display:block;color:#c33131;font-size:12px;font-weight:750;margin-top:5px}

/* V9: anteprima su vera mappa (tile + Canvas), invece del solo SVG schematico. */
.find-home-body .fh-drawn-preview-map{position:relative;flex:1 1 210px;min-width:150px;height:145px;border-radius:11px;background:#d8e9ef;overflow:hidden;border:1px solid #d1e4ed}
.find-home-body .fh-drawn-preview{align-items:stretch;flex-wrap:wrap}
.find-home-body .fh-drawn-preview-meta{flex:1 1 130px;justify-content:center}
.find-home-body .fh-drawn-preview-map .leaflet-container{width:100%;height:100%}
.find-home-body .fh-drawn-preview-map .leaflet-control-attribution{display:none}
.find-home-body .fh-radius-selection{display:flex;gap:9px;flex-wrap:wrap;align-items:center;background:#edf7fe;border:1px solid #c9e5f6;padding:10px 12px;border-radius:10px;font-size:12px;font-weight:800;color:#16476d}
.find-home-body .fh-radius-selection span{flex:1;min-width:150px}
.find-home-body .fh-radius-selection button{border:1px solid #bedbea;background:#fff;color:#0073bb;padding:7px 9px;border-radius:8px;font:inherit;cursor:pointer}
.find-home-body .fh-radius-overlay{position:fixed;inset:0;z-index:2147483100;background:rgba(8,27,47,.65);display:flex;align-items:center;justify-content:center;padding:18px}
.find-home-body .fh-radius-overlay[hidden]{display:none!important}
.find-home-body .fh-radius-dialog{background:#fff;border-radius:18px;width:min(100%,570px);max-height:min(92dvh,800px);overflow-y:auto;box-shadow:0 24px 65px #12263b3b}
.find-home-body .fh-radius-header{display:flex;justify-content:space-between;align-items:flex-start;padding:21px 22px 15px;border-bottom:1px solid #e0eaf2;gap:18px}
.find-home-body .fh-radius-header h2{font-size:20px;line-height:1.25;color:#153751;margin:0 0 5px;font-weight:900}
.find-home-body .fh-radius-header p{font-size:13px;color:#627b91;line-height:1.45;margin:0}
.find-home-body .fh-radius-header button{border:0;background:#edf3f8;border-radius:10px;font-size:21px;line-height:1;width:36px;height:36px;cursor:pointer;color:#174460;flex:none}
.find-home-body .fh-radius-body{padding:19px 22px 14px;display:flex;flex-direction:column;gap:13px}
.find-home-body .fh-radius-body .find-home-field{margin:0}
.find-home-body .fh-radius-search-wrap{position:relative}
.find-home-body .fh-radius-results{border:1px solid #d4e4f0;border-radius:12px;background:#fff;max-height:225px;overflow:auto;display:flex;flex-direction:column;box-shadow:0 8px 20px #0e37501a}
.find-home-body .fh-radius-results[hidden],.find-home-body .fh-radius-selected[hidden],.find-home-body .fh-radius-error[hidden]{display:none!important}
.find-home-body .fh-radius-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:0;border-bottom:1px solid #edf1f5;text-align:left;background:white;color:#163c58;font-family:inherit;cursor:pointer}
.find-home-body .fh-radius-result:hover{background:#edf7fe}
.find-home-body .fh-radius-result strong{font-weight:750;font-size:13px}
.find-home-body .fh-radius-result small{color:#6b8498;font-size:11px}
.find-home-body .fh-radius-selected{border:1px solid #bfe5ce;border-radius:9px;background:#f0fbf3;padding:10px 13px;color:#225e3e;font-size:13px;font-weight:750}
.find-home-body .fh-radius-help{font-size:12px;color:#667f91;line-height:1.45;margin:0}
.find-home-body .fh-radius-error{font-size:12px;color:#ac2731;margin:0;font-weight:700}
.find-home-body .fh-radius-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e1eaf2;padding:15px 22px 20px}
.find-home-body .fh-radius-footer button{border:1px solid #ccdfeb;background:white;color:#244963;border-radius:10px;font-weight:800;padding:12px 15px;cursor:pointer;font-family:inherit}
.find-home-body .fh-radius-footer [data-fh-radius-confirm]{border-color:#e97119;background:#ec701b;color:white}
.find-home-body .fh-radius-footer button:disabled{opacity:.6;cursor:wait}
body.fh-radius-open{overflow:hidden}
@media(max-width:600px){.find-home-body .fh-radius-overlay{padding:8px}.find-home-body .fh-radius-dialog{width:100%;max-height:94dvh}.find-home-body .fh-radius-body{padding:15px}.find-home-body .fh-radius-footer{padding:12px 15px}.find-home-body .fh-drawn-preview-map{flex-basis:100%;height:160px}}

.find-home-body .fh-radius-clear{flex:0 0 26px;width:26px;height:26px;border:0;border-radius:50%;background:#edf3f7;color:#4a6379;cursor:pointer;font-family:inherit;font-weight:850;font-size:17px;line-height:1;display:grid;place-items:center}
.find-home-body .fh-radius-clear[hidden]{display:none!important}


/* Trova casa V10 — 3 filtri rapidi (Locali, Superficie, Prezzo), con Da/A e valori veloci. */
.find-home-body .fh-quick-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;position:relative;isolation:isolate;overflow:visible}
.find-home-body .fh-quick-filter{position:relative;min-width:0;z-index:1}
.find-home-body .fh-quick-filter.is-open{z-index:20}
.find-home-body .fh-quick-trigger{font-family:inherit;width:100%;min-height:61px;display:flex;align-items:center;gap:7px;text-align:left;border:1px solid #cbdce9;background:#fff;color:#194266;border-radius:12px;padding:9px 9px;cursor:pointer;transition:background .16s,border .16s;}
.find-home-body .fh-quick-trigger:hover,.find-home-body .fh-quick-filter.is-open .fh-quick-trigger{background:#eff8ff;border-color:#58a9df}
.find-home-body .fh-quick-trigger:focus-visible{outline:3px solid #8fd1fa;outline-offset:2px}
.find-home-body .fh-quick-trigger>svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:#1179b4;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.find-home-body .fh-quick-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:4px}
.find-home-body .fh-quick-copy strong{display:block;font-size:12px;line-height:1.15;white-space:nowrap;color:#133a5b;font-weight:850}
.find-home-body .fh-quick-copy strong span{color:#e76a1b}
.find-home-body .fh-quick-copy small{font-size:10px;color:#647f91;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.find-home-body .fh-quick-filter.has-value .fh-quick-copy small{color:#075f9a}
.find-home-body .fh-quick-chevron{font-size:14px;color:#557b96;transition:transform .16s}
.find-home-body .fh-quick-filter.is-open .fh-quick-chevron{transform:rotate(180deg)}
.find-home-body .fh-quick-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:50;width:min(360px,calc(100vw - 50px));max-width:none;background:#fff;border:1px solid #d7e5ef;border-radius:16px;box-shadow:0 15px 48px rgba(19,46,71,.22);padding:15px;display:flex;flex-direction:column;gap:12px}
.find-home-body .fh-quick-panel[hidden]{display:none!important}
.find-home-body .fh-quick-filter:nth-child(2) .fh-quick-panel{left:50%;transform:translateX(-50%)}
.find-home-body .fh-quick-filter:last-child .fh-quick-panel{left:auto;right:0}
.find-home-body .fh-quick-heading{color:#1b3a52;font-weight:850;font-size:13px}
.find-home-body .fh-quick-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.find-home-body .fh-quick-input{display:flex;flex-direction:column;gap:6px;min-width:0;color:#48627a;font-size:12px;font-weight:750}
.find-home-body .fh-quick-input input{background:#fff;border:1px solid #d4e0e9!important;border-radius:10px;width:100%;height:47px;padding:0 10px!important;min-width:0;font:inherit;font-size:14px!important;color:#173f60;outline:0;box-shadow:none!important;}
.find-home-body .fh-quick-input.is-active input,.find-home-body .fh-quick-input input:focus{border-color:#e96c1b!important;box-shadow:0 0 0 3px #fbe6d7!important}
.find-home-body .fh-quick-hint{font-size:11px;color:#668196;line-height:1.4}
.find-home-body .fh-quick-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:192px;overflow:auto;align-content:start;padding:2px 2px 3px}
.find-home-body .fh-quick-presets button{border:1px solid #dbe6ef;border-radius:8px;background:#f7fafc;color:#274963;min-height:35px;padding:6px 3px;font-family:inherit;font-size:11px;font-weight:730;cursor:pointer}
.find-home-body .fh-quick-presets button:hover,.find-home-body .fh-quick-presets button:focus-visible{border-color:#8fc4e6;background:#eaf6ff}
.find-home-body .fh-quick-presets button.is-picked{color:#bd5716;background:#fff2e9;border-color:#ef9e65}
.find-home-body .fh-quick-actions{display:flex;justify-content:space-between;gap:9px;border-top:1px solid #edf1f5;padding-top:11px}
.find-home-body .fh-quick-actions button{font-family:inherit;font-size:12px;font-weight:850;cursor:pointer;padding:10px 15px;border-radius:10px}
.find-home-body .fh-quick-clear{border:1px solid #d9e4ec;background:#fff;color:#355976}
.find-home-body .fh-quick-apply{border:1px solid #e46a1e;background:#e96c1b;color:#fff;flex:1}
.find-home-body .fh-quick-error{display:block;font-size:11px;line-height:1.3;color:#ba2e2e;font-weight:700;margin:3px 0 0}
.find-home-body .fh-quick-error:empty{display:none}
.find-home-body .fh-quick-filter.is-error .fh-quick-trigger{border-color:#d74b4b}
@media(max-width:500px){
 .find-home-body .fh-quick-filters{gap:6px}
 .find-home-body .fh-quick-trigger{min-height:59px;padding:8px 6px;gap:4px}
 .find-home-body .fh-quick-trigger>svg{width:16px;height:16px;flex-basis:16px}
 .find-home-body .fh-quick-copy strong{font-size:11px}
 .find-home-body .fh-quick-copy small{font-size:9px}
 .find-home-body .fh-quick-chevron{font-size:11px}
 .find-home-body .fh-quick-panel{padding:13px;width: min(330px,calc(100vw - 45px))}
}
@media(max-width:350px){
 .find-home-body .fh-quick-trigger>svg{display:none}
 .find-home-body .fh-quick-copy strong{font-size:10.5px}
}
/* Le dimensioni devono includere padding e bordi anche dove il CSS globale non usa border-box. */
.find-home-body .fh-quick-filters,.find-home-body .fh-quick-filters *{box-sizing:border-box}
/* Non allargare la colonna del form sui dispositivi stretti. */
.find-home-body .find-home-form>.find-home-section{box-sizing:border-box;min-width:0}

/* V11 - Selettore Dove cerchi? e ricerca diretta Comuni/zone/quartieri. */
.find-home-body [data-fh-city-wrap][hidden],.find-home-body [data-fh-geo-dropdown][hidden],.find-home-body [data-fh-suggest][hidden]{display:none!important}
.find-home-body .fh-location-launch{width:100%;min-height:49px;display:flex;align-items:center;gap:10px;text-align:left;padding:10px 12px;border:1px solid #ccdeeb;border-radius:12px;background:#fff;cursor:pointer;color:#1c4767;font-family:inherit;font-size:13px;font-weight:700}
.find-home-body .fh-location-launch:hover,.find-home-body .fh-location-launch[aria-expanded="true"]{border-color:#e76e25;background:#fff8f2}
.find-home-body .fh-location-launch>svg{flex:0 0 20px;width:20px!important;height:20px!important;fill:none;stroke:#1679b5;stroke-width:2}
.find-home-body .fh-location-launch>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.find-home-body .fh-location-arrow{font-weight:850;color:#246a98;font-size:18px}
.find-home-body .fh-geo-city-search{position:relative;margin-top:8px}
.find-home-body .fh-geo-city-search>label{display:block;font-size:11px;font-weight:750;color:#526c81;margin:0 0 5px}
.find-home-body .fh-geo-city-search>.fh-suggestions{position:absolute;z-index:120;top:calc(100% + 4px);left:0;right:0;border:1px solid #d3e2ed;box-shadow:0 12px 30px #1b405025;max-height:265px;background:#fff;border-radius:11px;overflow:auto}
.find-home-body .fh-geo-city-search>.fh-suggestions>button{display:flex;align-items:center;justify-content:space-between;gap:7px}
.find-home-body .fh-geo-city-search>.fh-suggestions>button strong{font-size:12px;font-weight:700}
.find-home-body .fh-geo-city-search>.fh-suggestions>button small{font-size:10px;color:#67839a}
.find-home-body .fh-geo-dropdown{top:calc(100% + 3px);z-index:130}
.find-home-body .fh-geo-choice{padding:13px 11px;font-size:12.5px}
.find-home-body .fh-selected-places:empty{display:none}
/* V11 - Filtri come nella ricerca annunci: Da/A sopra, opzioni a lista sotto. */
.find-home-body .fh-quick-backdrop[hidden]{display:none!important}
.find-home-body .fh-quick-backdrop{position:fixed;inset:0;background:rgba(11,27,44,.12);z-index:1490}
.find-home-body .fh-quick-filter.is-open{z-index:1510}
.find-home-body .fh-quick-panel{padding:0!important;width:330px;max-width:calc(100vw - 25px);gap:0;overflow:hidden;border-radius:14px;background:#fff;z-index:1520;box-shadow:0 16px 45px rgba(17,43,67,.24)}
.find-home-body .fh-quick-filter:nth-child(2) .fh-quick-panel{left:50%;right:auto;transform:translateX(-50%)}
.find-home-body .fh-quick-panel-title{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #e3ebf1;color:#183a55;font-size:14px}
.find-home-body .fh-quick-panel-title button{display:none;background:none;border:0;color:#34566f;font-size:23px;cursor:pointer}
.find-home-body .fh-quick-inputs{padding:14px 16px;gap:12px;border-bottom:1px solid #e5edf3}
.find-home-body .fh-quick-input{gap:5px;color:#465e76;font-size:12px}
.find-home-body .fh-quick-input input{height:48px!important;font-size:14px!important}
.find-home-body .fh-quick-presets{display:flex;flex-direction:column;gap:0;max-height:290px;overflow-y:auto;padding:5px 9px 7px;align-content:unset}
.find-home-body .fh-quick-presets button.fh-quick-option{background:#fff;border:0;border-radius:8px;text-align:left;min-height:44px;flex:0 0 auto;padding:10px 13px;font-family:inherit;font-size:13px;font-weight:500;color:#2d485d;cursor:pointer}
.find-home-body .fh-quick-presets button.fh-quick-option:hover,.find-home-body .fh-quick-presets button.fh-quick-option:focus-visible{background:#f2f8fd;color:#006fb6}
.find-home-body .fh-quick-presets button.fh-quick-option.is-picked{background:#eaf5fc;color:#0677bb;font-weight:750}
.find-home-body .fh-quick-presets button.fh-quick-option:disabled{color:#a0acb7;cursor:not-allowed}
.find-home-body .fh-quick-actions{padding:12px 14px;gap:10px;border-top:1px solid #e7edf3;background:#fff}
.find-home-body .fh-quick-actions button{min-height:43px;font-size:12px}
.find-home-body .fh-quick-actions .fh-quick-apply{flex:1}
@media(max-width:600px){
  body.fh-quick-mobile-open{overflow:hidden}
  .find-home-body .fh-quick-filter.is-open{z-index:auto}
  .find-home-body .fh-quick-backdrop{z-index:2998;background:rgba(4,22,37,.55)}
  .find-home-body .fh-quick-panel,.find-home-body .fh-quick-filter:nth-child(2) .fh-quick-panel,.find-home-body .fh-quick-filter:last-child .fh-quick-panel{position:fixed;inset:0!important;left:0!important;top:0!important;right:0!important;bottom:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;border-radius:0!important;transform:none!important;z-index:3000!important;display:flex;flex-direction:column;padding:0!important}
  .find-home-body .fh-quick-panel-title{min-height:58px;padding:9px 17px}
  .find-home-body .fh-quick-panel-title button{display:block;min-width:36px}
  .find-home-body .fh-quick-inputs{padding:17px 16px}
  .find-home-body .fh-quick-presets{flex:1;max-height:none;min-height:0;overflow-y:auto;padding:10px 15px}
  .find-home-body .fh-quick-presets button.fh-quick-option{font-size:15px;min-height:49px;padding:12px}
  .find-home-body .fh-quick-actions{margin-top:auto;flex-shrink:0;padding:12px 16px max(14px,env(safe-area-inset-bottom));box-shadow:0 -3px 11px rgba(10,28,45,.05)}
  .find-home-body .fh-quick-actions button{font-size:14px;min-height:49px}
}

.find-home-body .fh-quick-filters:has(.fh-quick-filter.is-open){z-index:3200;isolation:auto}
@media(max-width:600px){.find-home-body .fh-quick-filters:has(.fh-quick-filter.is-open){z-index:3200;isolation:auto}}

/* Trova Casa V14 — dropdown ancorato al campo, sempre sopra l'anteprima Leaflet. */
.find-home-body .fh-geo-entry{position:relative;z-index:120!important;isolation:isolate}
.find-home-body .fh-geo-dropdown:not([hidden]){position:absolute!important;z-index:3000!important;bottom:auto!important;overflow-y:auto!important;max-height:min(330px,55dvh)!important}
.find-home-body .fh-drawn-preview-map,.find-home-body .fh-radius-confirmed-map{z-index:0;isolation:isolate}
/* Portal dei suggerimenti fuori dal dialogo Leaflet per evitare clipping/z-index. */
.find-home-body .fh-map-overlay>.fh-map-suggestions:not([hidden]){position:fixed!important;right:auto!important;bottom:auto!important;z-index:2147483500!important;box-sizing:border-box;max-width:calc(100vw - 24px);background:#fff;box-shadow:0 18px 32px rgba(9,37,61,.28);border-radius:10px;overflow-y:auto}
.find-home-body .fh-radius-map-preview{display:flex;flex-direction:column;gap:8px;border:1px solid #cfe2ef;background:#f4fafe;padding:9px;border-radius:12px}
.find-home-body .fh-radius-map-preview[hidden]{display:none!important}
.find-home-body .fh-radius-map-canvas{height:190px;width:100%;min-height:190px;position:relative;background:#cfe4ed;border-radius:9px;overflow:hidden;isolation:isolate}
.find-home-body .fh-radius-map-preview small{display:block;font-size:12px;color:#235675;font-weight:750;line-height:1.45}
.find-home-body .fh-radius-confirmed{display:flex;gap:13px;align-items:stretch;flex:1 0 100%;min-width:0;border:1px solid #cfe2ef;background:#f2f9fe;padding:10px;border-radius:12px;flex-wrap:wrap}
.find-home-body .fh-radius-confirmed-map{position:relative;flex:1 1 210px;min-width:160px;height:145px;border-radius:9px;overflow:hidden;background:#d5e7f0}
.find-home-body .fh-radius-confirmed-info{flex:1 1 130px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px}
.find-home-body .fh-radius-confirmed-info strong{font-size:13px;color:#123b57}
.find-home-body .fh-radius-confirmed-info small{font-size:11px;color:#5e788f}
.find-home-body .fh-radius-confirmed-info button{border:1px solid #b9d5e9;color:#0a74b6;border-radius:8px;background:#fff;font-size:12px;padding:8px 12px;font-weight:800;cursor:pointer}
@media(max-width:500px){.find-home-body .fh-radius-map-canvas{height:170px;min-height:170px}.find-home-body .fh-radius-confirmed-map{height:155px;flex-basis:100%}}

/* V15: preview raggio with Leaflet initialized only once visible. */
.find-home-body [data-fh-radius-map]{display:block!important;position:relative!important;width:100%!important;height:190px!important;min-height:190px!important;background:#e7f0f6!important;overflow:hidden!important}
.find-home-body [data-fh-radius-map] .leaflet-pane,
.find-home-body [data-fh-radius-map] .leaflet-map-pane{visibility:visible!important}
.find-home-body [data-fh-radius-map] .leaflet-tile-pane{z-index:200!important}
.find-home-body [data-fh-radius-map] .leaflet-overlay-pane{z-index:400!important}
@media(max-width:500px){.find-home-body [data-fh-radius-map]{height:170px!important;min-height:170px!important}}

/* V16 - anteprime raggio: tessere dirette e cerchio Canvas, non SVG Leaflet */
.find-home-body .fh-radius-static-map{display:block;position:relative;overflow:hidden;isolation:isolate;background:#dbeaf0!important}
.find-home-body .fh-radius-static-tiles{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.find-home-body .fh-radius-static-tile{display:block!important;position:absolute!important;width:256px!important;min-width:256px!important;max-width:none!important;height:256px!important;min-height:256px!important;max-height:none!important;object-fit:fill!important;border:0!important;transform:none!important;pointer-events:none}
.find-home-body .fh-radius-static-overlay{display:block!important;position:absolute!important;inset:0!important;z-index:1!important;width:100%!important;height:100%!important;background:transparent!important;pointer-events:none}
.find-home-body .fh-radius-static-label{position:absolute;left:8px;top:8px;max-width:calc(100% - 16px);z-index:2;padding:4px 7px;border-radius:6px;background:rgba(255,255,255,.92);color:#16405e;font-size:11px;font-weight:800;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;pointer-events:none}
