/* Map workspace uses the existing LeaseHub palette. */
.property-map{background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden;position:relative;isolation:isolate}
.property-map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line)}
.property-map-toolbar>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.property-map-toolbar strong{font-size:15px;color:var(--ink)}
.property-map-toolbar [data-map-count]{font-size:12px;color:var(--muted)}
.property-map-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.property-map button[hidden],.property-map [hidden]{display:none!important}
.property-map-status{padding:9px 16px;margin:0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.5;color:var(--muted);min-height:36px}
.property-map-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;height:620px;min-height:0}
.property-map-canvas{height:100%;min-width:0;min-height:0;background:var(--cream);z-index:0}
.property-map-sidebar{min-width:0;min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--line);background:var(--white)}
.property-map-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;position:relative;flex:1}
.property-map-row{display:flex;flex-direction:column;gap:4px;padding:14px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-left:3px solid transparent;background:var(--white);color:var(--ink);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.property-map-row>strong{font-size:13px;font-weight:650}
.property-map-row>span:not(.property-map-row-top){color:var(--muted);font-size:11px}
.property-map-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:3px}
.property-map-row-top>strong{font-size:17px;font-variant-numeric:tabular-nums}
.property-map-row-top>span{font-size:10px;color:var(--muted)}
.property-map-row:hover,.property-map-row.is-selected{background:var(--cream);border-left-color:var(--purple)}
.property-map-selection{padding:14px;border-bottom:1px solid var(--line);background:var(--cream);display:flex;flex-direction:column;gap:5px;max-height:270px;overflow-y:auto;flex-shrink:0}
.property-map-selection>strong{font-size:14px;overflow-wrap:anywhere}
.property-map-selection>span{color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.property-map-selection>p{font-size:12px;line-height:1.5;color:var(--ink);margin:4px 0 0}
.property-map-selected-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.property-map-selected-actions .btn{font-size:11px;padding:7px 9px;min-height:34px}
.property-price-pin{border:0;background:none;overflow:visible}
.property-price-pin>span{display:flex;align-items:center;justify-content:center;height:34px;border:2px solid var(--forest);background:#fff;color:var(--forest);font-size:12px;font-weight:750;white-space:nowrap;border-radius:18px;box-shadow:var(--shadow);font-family:inherit;font-variant-numeric:tabular-nums}
.property-price-pin:after{content:'';position:absolute;left:calc(50% - 5px);top:28px;width:10px;height:10px;transform:rotate(45deg);border-right:2px solid var(--forest);border-bottom:2px solid var(--forest);background:#fff;z-index:-1}
.property-price-pin.is-selected>span,.property-price-pin:hover>span{background:var(--forest);color:#fff}
.property-price-pin.is-selected:after,.property-price-pin:hover:after{background:var(--forest)}
.property-map-canvas.is-placing{cursor:crosshair;outline:3px solid var(--purple);outline-offset:-3px}
.property-map .leaflet-popup-content{margin:13px;font:12px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.property-map .leaflet-popup-content-wrapper,.property-map .leaflet-popup-tip{background:var(--white);color:var(--ink)}
.property-map-popup>strong{display:block;margin-bottom:7px}
.property-map-popup .map-listing-link{min-height:38px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.property-map .leaflet-control-zoom a{color:var(--forest);background:var(--white);width:36px;height:36px;line-height:36px}
.property-map .leaflet-control-attribution{font-size:10px}
.property-map.is-expanded{position:fixed;inset:12px;z-index:45;display:flex;flex-direction:column;box-shadow:0 0 0 30px var(--cream)}
.property-map.is-expanded .property-map-grid{flex:1;height:auto;min-height:0}
.property-map :is(button,[tabindex]):focus-visible{outline:3px solid var(--purple);outline-offset:-3px}
@media(max-width:800px){
 .property-map-grid{grid-template-columns:minmax(0,1fr) 245px;height:570px}
 .property-map-toolbar{align-items:flex-start;flex-direction:column;gap:10px}
 .property-map-tools{justify-content:flex-start}
}
@media(max-width:590px){
 .property-map-grid{display:flex;flex-direction:column;height:auto}
 .property-map-canvas{height:52svh;min-height:320px;max-height:520px;flex:none}
 .property-map-sidebar{border-left:0;border-top:1px solid var(--line);max-height:340px}
 .property-map-list{max-height:260px;flex:0 1 auto}
 .property-map-selection{max-height:230px}
 .property-map-tools{gap:6px}
 .property-map-tools .btn{font-size:11px;padding:7px 9px;min-height:36px}
 .property-map-toolbar{padding:12px}
 .property-map-status{padding:8px 12px;font-size:11px}
 .property-map.is-expanded{inset:7px}
 .property-map.is-expanded .property-map-canvas{height:auto;flex:1;min-height:180px;max-height:none}
 .property-map.is-expanded .property-map-sidebar{max-height:30dvh}
 .property-map.is-expanded .property-map-selection{max-height:20dvh}
 .property-map-row{padding:11px 13px}
}

/* Browsing and personal showing tours share a responsive workspace. */
.property-map-grid{grid-template-columns:minmax(0,1fr) 360px;height:min(76dvh,780px);min-height:560px}
.map-legend{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;padding:9px 16px;background:var(--cream);border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}
.map-legend>span{display:inline-flex;align-items:center;gap:5px}.map-legend i{width:8px;height:8px;border-radius:50%;background:#25945d}.map-legend .legend-pending{background:#f3a63b}.map-legend .legend-area{background:transparent;border:2px dashed #686cc2;width:11px;height:11px}
.map-tools-menu{position:relative;font-size:12px}.map-tools-menu summary{cursor:pointer;border:1px solid var(--border);border-radius:6px;padding:8px 10px;font-weight:650;color:var(--ink)}.map-tools-menu>div{position:absolute;right:0;top:calc(100% + 8px);z-index:2000;width:230px;max-width:70vw;display:grid;gap:7px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--white);box-shadow:var(--shadow)}
[data-tour-count]{display:inline-grid;place-items:center;background:#ffffff33;border-radius:10px;min-width:20px;padding:1px 5px;font-variant-numeric:tabular-nums}.map-panel-tabs{display:flex;flex-shrink:0;border-bottom:1px solid var(--line)}.map-panel-tabs>button{flex:1;min-height:46px;background:var(--white);color:var(--muted);font-size:12px;font-weight:700;border-bottom:3px solid transparent}.map-panel-tabs>button[aria-selected="true"]{color:#514bb1;border-color:#6259c5;background:var(--cream)}
.map-listings-panel{display:flex;flex-direction:column;min-height:0;flex:1}.map-local-filters{padding:12px;display:grid;gap:9px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);flex-shrink:0}.map-local-filters>input{min-height:36px;border:1px solid var(--border);border-radius:7px;padding:7px 10px;background:var(--white);color:var(--ink);width:100%}.map-local-filters>div{display:flex;gap:12px;flex-wrap:wrap}.map-local-filters label{display:flex;align-items:center;gap:4px}.map-list-empty{padding:18px;font-size:12px;color:var(--muted);line-height:1.6}
.property-map-row{display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;padding:12px}.map-row-image{height:62px;background:var(--cream);display:grid;place-items:center;border-radius:6px;overflow:hidden;font-size:28px;color:var(--muted)}.map-row-image img{width:100%;height:100%;object-fit:cover}.map-row-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.map-row-copy>strong{font-size:12px;color:var(--ink)}.map-row-copy>span{font-size:10px;color:var(--muted)}.map-row-copy .property-map-row-top>strong{font-size:16px;color:var(--ink)}.property-map-row.is-pending{background:#fff7ed}.property-map-row.is-selected{border-left-color:#6259c5;background:#efedff}.property-map-row.is-selected.is-pending{background:#ffedd5}
.property-map-selection{max-height:335px;gap:6px;padding:14px}.map-preview-head{display:flex;gap:12px}.map-preview-photo{width:85px;height:85px;display:grid;place-items:center;border-radius:7px;background:var(--white);overflow:hidden;font-size:35px;color:var(--muted);flex:none}.map-preview-photo img{width:100%;height:100%;object-fit:cover}.map-preview-head>div:last-child{display:grid;gap:6px;align-content:start;min-width:0}.map-preview-head strong{font-size:14px;overflow-wrap:anywhere}.map-preview-head small{font-size:11px;font-weight:500;color:var(--muted)}.map-preview-head .badge{font-size:10px;width:fit-content}.map-pin-tools{font-size:11px;color:var(--muted);margin-top:5px}.map-pin-tools summary{cursor:pointer}
.property-price-pin.is-cluster>span{background:#514ba4;color:#fff;border-color:#fff;box-shadow:0 0 0 2px #6259c5,0 4px 12px #24204440}.property-price-pin.is-cluster:after{display:none}.property-price-pin.pin-pending>span{background:#ffedd5;color:#92400e;border-color:#e9a43e}.property-price-pin.pin-pending:after{background:#ffedd5;border-color:#e9a43e}.property-price-pin.pin-inactive>span{background:#e8eaf0;color:#697187;border-color:#8e96a6}.property-price-pin.pin-inactive:after{background:#e8eaf0;border-color:#8e96a6}.property-price-pin.is-selected>span{outline:3px solid #7468d4;outline-offset:3px}
.tour-stop-pin>span{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:3px solid #fff;border-radius:50%;background:#514ba4;color:#fff;box-shadow:0 3px 9px #201a5140;font-size:12px;font-weight:800}
.map-tour-panel{padding:14px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;color:var(--ink)}.map-tour-panel label{display:grid;gap:5px;font-size:11px;font-weight:650;color:var(--muted)}.map-tour-panel input,.map-tour-panel select{min-width:0;width:100%;height:36px;border:1px solid var(--border);border-radius:6px;padding:6px 8px;background:var(--white);color:var(--ink);font-size:12px}.tour-library{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}.tour-inline-actions{display:flex;gap:14px;margin-top:7px}.map-tour-panel button:not(.btn){font-size:11px;color:#534eac;background:transparent;padding:6px 3px;border-radius:4px;min-height:30px}.map-tour-panel button:not(.btn):hover{background:var(--cream)}.tour-form{display:grid;gap:12px}.tour-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px}.tour-help,.tour-message{font-size:11px;color:var(--muted);line-height:1.5;margin:0}.tour-order-tools{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:12px}.tour-stops{list-style:none;padding:0;margin:0;display:grid;gap:10px}.tour-stop{padding:11px;border:1px solid var(--line);border-radius:8px;background:var(--white);min-width:0}.tour-stop-title{display:flex;gap:9px;align-items:flex-start}.tour-number{display:grid;place-items:center;width:25px;height:25px;background:#efedff;color:#514ba4;border-radius:50%;font-size:11px;font-weight:750;flex:none}.tour-stop-title>div{min-width:0}.tour-stop-title strong{font-size:12px;display:block;overflow-wrap:anywhere}.tour-stop-title div>span{font-size:10px;color:var(--muted);display:block;margin-top:4px}.tour-stop-actions{display:flex;gap:7px;flex-wrap:wrap;margin:6px 0}.tour-stop-actions button:first-child{margin-right:auto}.tour-stop-fields{display:grid;gap:8px}.tour-stop-fields input[type="time"]{max-width:140px}.tour-save-actions{display:flex;gap:8px;flex-wrap:wrap}.tour-save-actions .btn{font-size:12px;min-height:38px}.tour-empty{padding:22px 12px;background:var(--cream);border:1px dashed var(--border);border-radius:8px;text-align:center;font-size:13px}.tour-empty p{font-size:12px;line-height:1.6;color:var(--muted);margin:7px 0}.tour-warning{padding:9px;background:#fff7ed;color:#92400e;border:1px solid #fed7aa;border-radius:7px;font-size:11px;line-height:1.5;margin:0}.tour-directions{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.tour-directions h3{font-size:13px;margin:0 0 6px}.tour-directions p{font-size:11px;line-height:1.5;color:var(--muted)}.tour-directions a{display:block;border:1px solid var(--border);border-radius:6px;padding:10px;margin-top:7px;font-size:12px;text-decoration:none;color:#514ba4}.tour-stop.is-unavailable{border-style:dashed}
[data-theme="dark"] .property-map-row.is-pending{background:#382b22}[data-theme="dark"] .property-map-row.is-selected{background:#333051}[data-theme="dark"] .property-map-row.is-selected.is-pending{background:#493526}[data-theme="dark"] .tour-directions a,[data-theme="dark"] .map-tour-panel button:not(.btn),[data-theme="dark"] .map-panel-tabs>button[aria-selected="true"]{color:#c2b9ff}[data-theme="dark"] .tour-warning{background:#382b22;color:#fed7aa;border-color:#805b36}
@media(max-width:1000px){.property-map-grid{grid-template-columns:minmax(0,1fr) 310px}.property-map-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.property-map-tools{justify-content:flex-start}}
@media(max-width:700px){.property-map-grid{display:flex;flex-direction:column;height:auto;min-height:0}.property-map-canvas{height:42svh;min-height:260px;max-height:420px;flex:none}.property-map-sidebar{border-left:0;border-top:1px solid var(--line);height:520px;max-height:none}.property-map-list{flex:1;max-height:none}.property-map-selection{max-height:240px}.property-map-toolbar{padding:12px}.property-map-tools{gap:6px}.property-map-tools .btn,.map-tools-menu summary{font-size:11px;padding:8px;min-height:36px}.map-legend{padding:9px 12px;gap:7px 12px}.property-map.is-expanded{inset:5px}.property-map.is-expanded .property-map-grid{flex:1;min-height:0}.property-map.is-expanded .property-map-canvas{flex:0 0 40%;height:40%;min-height:150px;max-height:none}.property-map.is-expanded .property-map-sidebar{flex:1;height:auto;min-height:0;max-height:none}.property-map.is-expanded .property-map-selection{max-height:180px}.property-map-status{font-size:11px;padding:8px 12px}}

@media(max-width:700px){.property-map-toolbar [data-map-action="tour-tab"]{display:none}}
@media(max-width:700px) and (max-height:560px){.property-map.is-expanded{display:block;overflow-y:auto;overscroll-behavior:contain}.property-map.is-expanded .property-map-toolbar{position:sticky;top:0;background:var(--white);z-index:2001}.property-map.is-expanded .property-map-grid{flex:none}.property-map.is-expanded .property-map-canvas{height:180px;min-height:180px;flex:none}.property-map.is-expanded .property-map-sidebar{height:420px;flex:none}}
