*{box-sizing:border-box}body.map-page{margin:0;color:#003653;font-family:Poppins,Arial,sans-serif;background:#f6f3ed}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:#006e97}.map-shell{display:grid;grid-template-columns:390px minmax(0,1fr);height:calc(100dvh - 105px);min-height:640px}.map-sidebar{overflow:auto;background:#fff;padding:22px 20px;z-index:2;box-shadow:2px 0 12px #00365312}.map-heading h1{font-size:27px;font-weight:500;line-height:1.2;margin:0 0 8px}.map-heading>a{font-size:12px;text-decoration:underline}.map-filters{margin:18px 0 12px;border-top:1px solid #e6e0d7;padding-top:12px}.map-filters>summary{font-size:14px;font-weight:600;cursor:pointer;margin-bottom:12px}#map-filters>label,.filter-grid label{display:flex;flex-direction:column;font-size:12px;font-weight:500;gap:5px}.town-add{display:flex;gap:6px;margin-top:6px}.town-add input{min-width:0;flex:1}input,select{width:100%;min-width:0;border:1px solid #ddd8d0;border-radius:2px;background:#faf9f7;color:#003653;padding:10px;font-size:12px}input:focus-visible,select:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #00bce8;outline-offset:2px}button{background:#00bce8;border:1px solid #00bce8;color:#003653;padding:9px 12px;border-radius:2px;font-size:12px;font-weight:600}.town-add button{flex:0 0 auto}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.type-options{border:1px solid #ddd8d0;padding:10px;font-size:12px}.type-options summary{cursor:pointer}#type-options{max-height:170px;overflow:auto;margin-top:8px}#type-options label{display:flex;align-items:center;gap:8px;padding:5px 0}#type-options input{width:auto}.filter-actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px}.plain{background:#fff;border-color:#ddd8d0}.map-error{color:#a42525;font-size:12px;margin:6px 0}.map-error:empty{display:none}.area-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.area-chip{padding:5px 7px;background:#eefaff;border-color:#a2e1f0;font-size:11px;text-align:left}.area-chip span{margin-left:7px;font-size:15px}.map-results-head{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e6e0d7;padding-top:13px}.map-results-head>strong{font-size:14px}.map-sort{font-size:10px;width:130px}.map-sort select{font-size:11px;padding:7px}.map-note{font-size:11px;line-height:1.6;color:#687c8d;margin:10px 0}.map-results{display:grid;gap:12px}.map-result{display:block;border:1px solid #e6e0d7;background:#fff;text-decoration:none;color:#003653;overflow:hidden}.map-result:hover{border-color:#00bce8;box-shadow:0 4px 14px #00365315}.map-result-image{height:170px;width:100%;object-fit:cover;background:#f6f3ed}.map-result-image.missing{display:flex;align-items:center;justify-content:center;font-size:12px;color:#687c8d}.map-result-text{padding:12px}.map-result-price{font-size:20px;font-weight:600}.map-result h2{font-size:14px;line-height:1.4;font-weight:500;margin:6px 0}.map-result-facts,.map-result-ref{font-size:11px;color:#687c8d;margin-top:6px}.location-estimate{display:inline-block;margin-top:7px;font-size:10px;color:#875915;background:#fff6df;padding:3px 6px}.map-result.unlocated{border-style:dashed}.map-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0;font-size:12px}.map-credit{display:block;font-size:10px;color:#687c8d;margin-top:20px}.map-panel{position:relative;min-width:0;height:100%;background:#e9efe9}#property-map{height:100%;width:100%}.map-tools{position:absolute;top:14px;left:55px;right:12px;z-index:800;display:flex;flex-wrap:wrap;gap:7px;pointer-events:none}.map-tools button{pointer-events:auto;background:white;border:1px solid #d7d8d0;box-shadow:0 2px 7px #00365320;min-height:39px}.map-tools #draw-area{background:#00bce8;border-color:#00bce8}.draw-help{position:absolute;top:68px;left:55px;right:14px;z-index:800;background:white;padding:10px;font-size:12px;box-shadow:0 2px 8px #00365330}.map-legend{position:absolute;bottom:30px;left:14px;z-index:700;background:#fffffff2;padding:8px 10px;max-width:calc(100% - 28px);font-size:10px;border-radius:2px;box-shadow:0 2px 7px #00365320}.legend-point{display:inline-block;width:9px;height:9px;background:#003653;border-radius:50%;margin:0 5px}.legend-point.approx{background:#b17b24}.price-marker{background:none;border:0}.price-marker span{display:block;white-space:nowrap;text-align:center;background:#003653;color:#fff;border:2px solid white;border-radius:18px;padding:4px 7px;font:600 11px Poppins,Arial,sans-serif;box-shadow:0 2px 5px #00365350;min-width:60px}.price-marker.town-marker span{background:#fff6df;color:#875915;border:2px dashed #b17b24}.marker-cluster-small,.marker-cluster-medium,.marker-cluster-large{background:#00bce83b}.marker-cluster-small div,.marker-cluster-medium div,.marker-cluster-large div{background:#00bce8;color:#003653;font-weight:bold}.leaflet-popup-content{min-width:200px;max-width:240px;margin:12px}.leaflet-popup-content img{width:100%;height:125px;object-fit:cover}.leaflet-popup-content h3{font-size:13px;margin:7px 0}.leaflet-popup-content a{display:block;font-size:12px;color:#00799d;margin-top:8px}.leaflet-popup-content strong{font-size:18px}.leaflet-container{font-family:Poppins,Arial,sans-serif}.map-failure{position:absolute;bottom:75px;left:20px;right:20px;z-index:900;background:white;padding:14px;font-size:13px;border:1px solid #c2984e}.map-empty{padding:25px 10px;font-size:13px;line-height:1.7;color:#687c8d}.mobile-views{display:none}.no-script{padding:25px}.leaflet-draw-tooltip{white-space:normal;max-width:260px}.map-page [hidden]{display:none!important}
@media(max-width:900px){.map-shell{grid-template-columns:330px minmax(0,1fr)}.map-sidebar{padding:16px 14px}.map-tools{left:50px}.map-tools button{font-size:11px;padding:7px}.map-legend{font-size:9px}}@media(max-width:640px){.map-shell{display:flex;flex-direction:column;height:auto;min-height:0}.map-sidebar{overflow:visible;box-shadow:none;padding:15px}.map-heading h1{font-size:24px}.map-filters{margin:12px 0}.map-panel{height:65dvh;min-height:420px}.map-results,.map-pages,.map-credit{display:none}.mobile-views{display:flex;gap:8px;margin-top:12px}.mobile-views button{flex:1;background:#fff;border-color:#ddd8d0}.mobile-views button[aria-pressed=true]{background:#00bce8;border-color:#00bce8}.show-map-list .map-results{display:grid;margin-top:15px;grid-template-columns:1fr 1fr}.show-map-list .map-pages{display:flex}.show-map-list .map-credit{display:block}.show-map-list .map-panel{display:none}.map-result-image{height:125px}.map-result-text{padding:10px}.map-result-price{font-size:17px}.map-result h2{font-size:12px}.map-tools{top:10px;left:50px;gap:5px}.map-legend{bottom:35px;left:8px}.draw-help{left:12px;top:104px}.map-results-head>strong{font-size:13px}}

/* Branded property map popup */
.leaflet-popup-content{width:260px!important;min-width:240px;max-width:280px;margin:0}.leaflet-popup-content-wrapper{padding:0;overflow:hidden;border-radius:12px}.popup-property>.map-result-image{display:block;width:100%;height:155px;object-fit:cover}.popup-property .map-result-text{padding:16px}.popup-property .map-result-price{display:block;color:#003653;font-size:21px;line-height:1.3}.popup-property h3{font-size:14px;line-height:1.45;margin:6px 0 9px}.popup-property .map-result-facts{line-height:1.6}.popup-property .map-result-ref{margin-top:7px}.popup-agency{margin-top:12px;padding-top:11px;border-top:1px solid #e4e9ec;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px}.popup-agency-label{font-size:10px;color:#687c8d;white-space:nowrap}.leaflet-popup-content .popup-agency-logo{display:block;width:145px;max-width:70%;height:42px;object-fit:contain;object-position:right center;background:white}.popup-agency-name{font-size:12px;font-weight:600;color:#003653;text-align:right}.leaflet-popup-content .popup-property-link{display:block;margin-top:12px;padding:10px 12px;background:#00bce8;color:#003653;text-align:center;border-radius:5px;font-size:12px;font-weight:600;text-decoration:none}.leaflet-popup-content .popup-property-link:hover{background:#00aaca}.leaflet-popup-close-button{z-index:2;background:#fff!important;border-radius:50%;top:6px!important;right:6px!important;box-shadow:0 1px 4px #00365330}

/* Make drawing the clear primary map action. */
.map-tools{align-items:flex-start;gap:10px}
.map-tools button:not(#draw-area){min-height:44px;margin-top:13px}
.map-tools #draw-area{display:inline-flex;align-items:center;justify-content:center;gap:13px;min-height:74px;padding:13px 20px;background:#002b4d;color:#fff;border:3px solid #00bce8;border-radius:9px;box-shadow:0 0 0 3px #fff,0 6px 20px #002b4d55;text-align:left}
.map-tools #draw-area svg{flex-shrink:0;color:#00d0ef}
.draw-button-copy{display:flex;flex-direction:column;gap:3px}
.draw-button-copy strong{font-size:18px;font-weight:700;line-height:1.2}
.draw-button-copy small{font-size:11px;font-weight:400;line-height:1.4;color:#e0f7fc}
.map-tools #draw-area:hover:not(:disabled){background:#00486d;border-color:#56e6fa}
.map-tools #draw-area:focus-visible{outline:3px solid #002b4d;outline-offset:6px}
.map-tools #draw-area:disabled{background:#31526a;opacity:1;cursor:crosshair}
.draw-help{top:108px;border-left:4px solid #00bce8;line-height:1.6}
@media(max-width:900px){.map-tools #draw-area{padding:12px 14px;min-height:70px}.draw-button-copy strong{font-size:17px}.draw-button-copy small{font-size:10px}}
@media(max-width:640px){.map-tools{right:12px;gap:8px}.map-tools #draw-area{flex-basis:100%;min-height:66px;justify-content:flex-start;padding:11px 16px}.map-tools button:not(#draw-area){margin-top:0;min-height:40px}.draw-help{top:178px;left:12px;right:12px}}

/* Area controls have their own layout, separate from property cards. */
.area-map-popup .leaflet-popup-content{width:210px!important;min-width:0;max-width:220px;margin:0}
.area-popup-body{padding:18px}
.area-map-popup .area-popup-title{display:block;padding-right:26px;margin:0 0 15px;color:#002b4d;font-size:15px;font-weight:600;line-height:1.4}
.area-map-popup .area-remove{display:block;width:100%;min-height:40px;margin:0;padding:10px 12px;border:1px solid #e9b8b4;border-radius:5px;background:#fff4f2;color:#9c3029;font:600 12px/1.4 Poppins,Arial,sans-serif;cursor:pointer;text-align:center;box-shadow:none}
.area-map-popup .area-remove:hover{background:#ffe7e2;border-color:#bc5146}
.area-map-popup .area-remove:focus-visible{outline:3px solid #00bce8;outline-offset:3px}
.area-map-popup .leaflet-popup-close-button{top:10px!important;right:10px!important;width:24px;height:24px;color:#617487}
