/* Scoped map styles preserve the existing listings, filters and details page. */
.tnd-inventory-map.map-panel{height:660px;min-height:520px;position:sticky;top:85px;background:#eef1ec;border:1px solid #e1e5e9;border-radius:16px;isolation:isolate;box-shadow:0 5px 24px #1827390a}
.tnd-map-toolbar{position:absolute;inset:0 0 auto;z-index:800;background:#fff;min-height:68px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e9ed;gap:12px}
.tnd-map-toolbar strong{display:block;font-size:15px;line-height:1.4;color:#172139}.tnd-map-toolbar span{display:block;font-size:12px;color:#5c6b81;margin-top:2px}
.tnd-map-expand{border:1px solid #e1e5eb;background:#fff;border-radius:8px;width:36px;height:36px;font-size:23px;line-height:1;flex-shrink:0}
.tnd-map-canvas{position:absolute;inset:68px 0 0;z-index:0;background:#e9ede7;font-family:inherit}
.tnd-map-fit{position:absolute;top:84px;left:14px;z-index:700;padding:10px 13px;background:#fff;border:1px solid #e0e4e8;border-radius:8px;box-shadow:0 2px 9px #12223416;font-size:12px;font-weight:600}
.tnd-map-price{display:block;white-space:nowrap;background:#fff;color:#172139;border:1px solid #b7c0cb;border-radius:20px;padding:7px 12px;font:700 12px/1.3 'DM Sans',Arial,sans-serif;box-shadow:0 2px 7px #17213926;position:relative;width:max-content}
.tnd-map-price:after{content:'';position:absolute;bottom:-5px;left:calc(50% - 4px);width:8px;height:8px;background:inherit;border-right:inherit;border-bottom:inherit;transform:rotate(45deg)}
.tnd-map-marker.is-area .tnd-map-price{border-style:dashed}.tnd-map-marker.is-selected .tnd-map-price,.tnd-map-marker:hover .tnd-map-price{background:#8b7133;color:#fff;border-color:#735c27;box-shadow:0 3px 12px #59471738}.tnd-map-marker:focus-visible{outline:2px solid #8b7133;outline-offset:7px;border-radius:16px}
.tnd-map-property{position:absolute;bottom:34px;left:14px;right:14px;z-index:700;background:#fff;display:flex;text-align:left;align-items:center;gap:12px;padding:10px;border:1px solid #e0e5e9;border-radius:12px;box-shadow:0 5px 22px #1c283a20;width:calc(100% - 28px)}
.tnd-map-property img{width:82px;height:95px;object-fit:cover;flex-shrink:0;border-radius:7px}.tnd-map-property-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.tnd-map-property-copy strong{font-size:16px;color:#816728;line-height:1.3}.tnd-map-property-title{font-size:12px;font-weight:600;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tnd-map-property-copy small{font-size:11px;color:#5a6880;line-height:1.4}.tnd-map-property-copy .tnd-map-location-type{font-size:10px;color:#766334}.tnd-map-open{font-size:20px;padding:5px;color:#8b7133}
.tnd-map-location-note{position:absolute;top:132px;left:14px;right:55px;z-index:700;width:fit-content;max-width:calc(100% - 70px);background:#fffffff0;padding:6px 9px;border-radius:6px;color:#576478;font-size:10px;line-height:1.4;pointer-events:none}
.tnd-inventory-map .leaflet-top .leaflet-control{margin-top:16px;margin-right:14px}.tnd-inventory-map .leaflet-bar{border:1px solid #d8dee5;box-shadow:0 2px 9px #12223416;border-radius:8px;overflow:hidden}.tnd-inventory-map .leaflet-bar a{width:33px;height:34px;line-height:34px;color:#26334b}.tnd-inventory-map .leaflet-control-attribution{font-size:10px;max-width:100%;background:#fffffff0}.tnd-inventory-map .leaflet-control-scale{margin-bottom:6px}.tnd-inventory-map .leaflet-tooltip{font-family:inherit;font-size:11px;padding:7px 10px;border-radius:6px}.tnd-map-group{max-width:250px;max-height:240px;overflow:auto}.tnd-map-group button{display:block;text-align:left;padding:10px 4px;border-bottom:1px solid #eceff3;font-size:12px;width:100%}
.tnd-map-state{position:absolute;inset:68px 0 0;background:#f7f8f5;z-index:750;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;text-align:center;padding:30px;font-size:13px;color:#53627a}.tnd-map-state button,.tnd-map-warning button{background:#8b7133;color:#fff;border-radius:7px;padding:9px 14px;font-size:12px}.tnd-map-spinner{width:30px;height:30px;border:2px solid #e7dfcb;border-top-color:#8b7133;border-radius:50%;animation:tnd-map-spin 1s linear infinite}.tnd-map-empty,.tnd-map-warning{position:absolute;top:190px;left:20px;right:20px;padding:18px;background:#fff;z-index:750;border-radius:10px;box-shadow:0 3px 12px #17213915;font-size:13px;line-height:1.5;text-align:center}.tnd-map-warning button{display:block;margin:10px auto 0}
@keyframes tnd-map-spin{to{transform:rotate(360deg)}}
@media(min-width:1101px){.view-List-Map .results-body{grid-template-columns:minmax(0,1.2fr) minmax(380px,1fr)}}
@media(max-width:760px){.view-Map .tnd-inventory-map.map-panel{height:calc(100dvh - 125px);min-height:520px}.tnd-map-toolbar{padding:12px}.tnd-map-property{left:10px;right:10px;width:calc(100% - 20px)}.tnd-map-property img{width:68px;height:88px}.tnd-map-property-copy strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){.tnd-map-spinner{animation:none}.tnd-inventory-map *{scroll-behavior:auto!important;transition:none!important}}

.tnd-map-fit,.tnd-map-expand{display:flex;align-items:center;justify-content:center;gap:7px}.tnd-map-expand svg{width:17px;height:17px}
.tnd-inventory-map .leaflet-tooltip.tnd-map-details-tooltip{max-width:250px;white-space:normal;padding:9px 11px;border-radius:10px;border:1px solid #d8dee7;box-shadow:0 8px 24px #17213924}
