#main:has(.map-layout){padding:24px 26px 38px}.map-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;margin:18px 0}.map-toolbar label,.map-zone-form label,.map-zones label{display:grid;gap:6px;min-width:0;font-size:11px;color:var(--muted)}.map-toolbar select,.map-toolbar input,.map-zones input,.map-zones select{width:100%;min-width:0;height:40px}.map-layout{display:grid;grid-template-columns:minmax(275px,350px) minmax(0,1fr);gap:16px;min-height:680px}.map-sidebar{padding:17px;min-width:0;display:flex;flex-direction:column;max-height:780px;overflow:auto}.map-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.map-sidebar-heading h2{font-size:17px;margin:0}.map-sidebar-heading .eyebrow{font-size:9px;margin:0 0 4px}.map-results{margin:12px -5px 0}.map-result{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:10px;width:100%;padding:12px 6px;border-bottom:1px solid var(--line);text-align:left;border-radius:5px}.map-result:hover,.map-result.selected{background:var(--surface2)}.map-result-pin{width:28px;height:28px;display:grid;place-items:center;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);background:#8794a3;color:white;font-size:13px}.map-result-pin::first-letter{transform:rotate(45deg)}.map-result-pin.properties.in-vendita,.prime-map-marker.properties.in-vendita{background:#b32f30}.map-result-pin.properties.in-trattativa,.prime-map-marker.properties.in-trattativa{background:#c5792b}.map-result-pin.properties.opportunità,.prime-map-marker.properties.opportunità{background:#815ab3}.map-result-pin.properties.altra-agenzia,.prime-map-marker.properties.altra-agenzia{background:#df7c33}.map-result-pin.hot,.prime-map-marker.hot{box-shadow:0 0 0 3px #f2bb44}.map-result-copy{display:grid;gap:5px;min-width:0}.map-result-copy strong{font-size:12px;font-weight:600}.map-result-copy small{font-size:10px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}.map-result-badges{display:flex;flex-wrap:wrap;gap:5px}.map-result-badges i{font-style:normal;font-size:9px;border:1px solid var(--line);border-radius:20px;padding:3px 7px;color:var(--muted)}.map-result-badges .hot-badge{color:#805d12;border-color:#d8b44b;background:#fff6dc}.map-result-arrow{font-size:14px;color:var(--muted)}.map-empty,.map-note{font-size:11px;line-height:1.55;color:var(--muted)}.map-zones{border-top:1px solid var(--line);margin-top:auto;padding-top:16px}.map-zones>div[hidden]{display:none}.map-zones label{margin:10px 0}.map-zones .primary,.map-zones .secondary{font-size:11px;padding:8px 11px}.map-zone-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 2px;border-top:1px solid var(--line)}.map-zone-row>span{display:grid;gap:4px}.map-zone-row strong{font-size:11px}.map-zone-row small{font-size:10px;color:var(--muted)}.map-stage{position:relative;min-width:0;min-height:640px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface2)}#prime-map{position:absolute;inset:0;min-height:640px;z-index:1}.map-actions{position:absolute;z-index:500;top:12px;left:54px;right:12px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;pointer-events:none}.map-actions>*{pointer-events:auto}.map-actions button{padding:8px 12px;font-size:11px;box-shadow:0 3px 12px #0002}.map-actions span{padding:7px 10px;border-radius:6px;background:var(--surface);font-size:11px;box-shadow:0 3px 12px #0002}.map-attribution{position:absolute;z-index:400;bottom:0;left:0;right:0;margin:0;padding:4px 8px;background:color-mix(in srgb,var(--surface) 92%,transparent);font-size:9px;color:var(--muted);text-align:center}.map-attribution a{color:inherit}.prime-map-marker{display:grid;place-items:center;width:32px;height:32px;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);border:2px solid white;box-shadow:0 2px 8px #0006;background:#63768a;color:white;font-size:13px}.prime-map-marker.properties{background:#b2915a}.prime-map-marker.territory{background:#617786}.prime-map-marker.properties.in-vendita{background:#b32f30}.prime-map-marker.properties.in-trattativa{background:#c5792b}.prime-map-marker.properties.opportunità{background:#815ab3}.prime-map-marker.properties.altra-agenzia{background:#df7c33}.prime-map-marker-wrap{background:none;border:0}.map-stage .leaflet-container{font:inherit}.map-stage .leaflet-control-attribution{display:none}.map-stage .leaflet-popup-content-wrapper,.map-stage .leaflet-popup-tip{background:var(--surface);color:var(--text)}.map-stage .leaflet-popup-content{font-size:12px}.map-stage .leaflet-tooltip{border:0;box-shadow:0 2px 8px #0002}.map-stage #prime-map.placing,.map-stage #prime-map.drawing{cursor:crosshair}.map-stage .drawing{cursor:crosshair}@media(max-width:1050px){.map-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.map-layout{grid-template-columns:minmax(240px,300px) minmax(0,1fr)}}@media(max-width:720px){#main:has(.map-layout){padding:16px 12px 30px}.map-toolbar{grid-template-columns:1fr 1fr;padding:12px}.map-toolbar .map-search-label{grid-column:1/-1}.map-layout{grid-template-columns:1fr;min-height:0}.map-sidebar{max-height:none;order:2}.map-stage{min-height:520px;order:1}#prime-map{min-height:520px}.map-actions{left:50px}.map-attribution{font-size:8px}.map-zones{margin-top:18px}}
.map-result-badges .map-unplaced-badge{color:#966a2d;border-color:#d6ae70;background:#fff8e8}
.map-result-card{border-bottom:1px solid var(--line);padding-bottom:8px}.map-result-card .map-result{border-bottom:0}.map-geocode-note{font-size:10px;line-height:1.5;color:var(--muted);padding:9px 10px;background:var(--surface2);border-radius:6px}.map-geocode-button{margin:0 0 2px 50px;padding:6px 9px;border:1px solid var(--line);border-radius:5px;font-size:10px;color:var(--text)}.map-geocode-button:hover{border-color:#be9c63;color:var(--text)}.map-geocode-button:disabled{opacity:.65;cursor:wait}
.map-geocode-options{margin:8px 0 2px 50px;padding:9px;border:1px solid var(--line);border-radius:6px;background:var(--surface2)}.map-geocode-options[hidden]{display:none}.map-geocode-options label{display:grid;gap:5px;font-size:10px;color:var(--muted)}.map-geocode-options select{width:100%;min-height:38px;font-size:11px}.map-geocode-options select option{white-space:normal}.map-geocode-save{margin-top:8px;padding:7px 10px;border-radius:5px;background:var(--text);color:var(--surface);font-size:10px}.map-geocode-status{font-size:10px;line-height:1.5;color:var(--muted);margin:0}
.map-actions #map-zone-finish{background:#d7b16b;color:#171717;border-color:#d7b16b}.map-stage #prime-map.drawing{cursor:crosshair}.map-geocode-note{border-left:2px solid #be9c63}
.map-actions button[hidden]{display:none!important}
/* Leaflet sets SVG width/height attributes to match the viewport. Override the
   global 20px icon sizing so polygons and vertices cover the map at full size. */
.map-stage .leaflet-overlay-pane>svg{width:auto;height:auto;max-width:none;max-height:none}
.map-zone-row .map-zone-swatch{width:20px;height:20px;flex:0 0 20px}.map-zone-row>span{flex:1;min-width:0}.map-stage .map-zone-label{max-width:220px;white-space:normal;text-align:center;font-size:11px;font-weight:600;padding:5px 8px;background:#fffffff0;color:#202323;border-radius:5px;box-shadow:0 1px 6px #0003;pointer-events:none}
.agents-layout{display:grid;grid-template-columns:minmax(260px,380px) minmax(0,1fr);gap:20px;margin-top:24px}.agent-create-panel,.agent-list-panel{padding:24px}.agent-create-panel{display:grid;align-content:start;gap:14px}.agents-layout label:not(.checkbox-label){display:grid;gap:8px;font-size:13px;color:var(--muted)}.agents-layout input:not([type=checkbox]){width:100%;min-width:0}.agent-list-panel>label{margin:20px 0}.agent-account-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line)}.agent-account-row strong{font-size:13px;overflow-wrap:anywhere}.map-zone-assignment{width:100%;min-width:0;font-size:11px;margin-top:6px}@media(max-width:800px){.agents-layout{grid-template-columns:1fr}.agent-create-panel,.agent-list-panel{padding:18px}}
.map-zones button[hidden]{display:none!important}
