/* SIMSAR MAP V2 -- limited to the independent map root */
#simsar-map-v1{--smv2-blue:#FF7A00;--smv2-border:#e3e9f0;color:#192b40;background:#fff;min-width:0;width:100%;box-sizing:border-box;font:inherit}
#simsar-map-v1 *,#simsar-map-v1 *:before,#simsar-map-v1 *:after{box-sizing:border-box}
#simsar-map-v1 button{cursor:pointer;font:inherit}
#simsar-map-v1 .smv2-shell{display:flex;flex-direction:column;gap:10px;min-width:0;width:100%}
#simsar-map-v1 .smv2-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 3px}
#simsar-map-v1 .smv2-search{flex:1 1 220px}
#simsar-map-v1 .smv2-search input{width:100%;height:43px;min-width:0;border:1px solid var(--smv2-border);border-radius:13px;padding:0 14px;background:#fff;font-size:16px}
#simsar-map-v1 .smv2-chips{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
#simsar-map-v1 .smv2-chips button{border:1px solid var(--smv2-border);border-radius:999px;padding:10px 15px;background:#fff;color:#29415d}
#simsar-map-v1 .smv2-chips button[aria-pressed=true]{background:var(--smv2-blue);color:#fff;border-color:var(--smv2-blue)}
#simsar-map-v1 .smv2-layout{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;height:clamp(540px,72dvh,900px)}
#simsar-map-v1 .smv2-map-area{min-width:0;min-height:0;position:relative;overflow:hidden;border-radius:16px;border:1px solid var(--smv2-border)}
#simsar-map-v1 #smv2Map{width:100%;height:100%;background:#eef2f6}
#simsar-map-v1 .smv2-panel{display:flex;flex-direction:column;overflow:hidden;min-width:0;min-height:0;background:#fff;border:1px solid var(--smv2-border);border-radius:16px}
#simsar-map-v1 .smv2-panel-head{padding:14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--smv2-border)}
#simsar-map-v1 #smv2Close{display:none;border:0;background:none;font-size:28px}
#simsar-map-v1 .smv2-results{padding:10px;overflow:auto;overscroll-behavior:contain;flex:1}
#simsar-map-v1 .smv2-card{display:flex;gap:11px;padding:9px;margin-bottom:8px;border:1px solid var(--smv2-border);border-radius:13px;cursor:pointer;min-width:0}
#simsar-map-v1 .smv2-card:hover{border-color:#FF7A00}
#simsar-map-v1 .smv2-photo{flex:0 0 94px;width:94px;height:92px;border-radius:9px;background:#ecf1f5;overflow:hidden}
#simsar-map-v1 .smv2-photo img{width:100%;height:100%;object-fit:cover}
#simsar-map-v1 .smv2-card-copy{min-width:0;display:flex;flex-direction:column;gap:4px;font-size:12px}
#simsar-map-v1 .smv2-card-copy strong{font-size:13px;line-height:1.3}
#simsar-map-v1 .smv2-card-copy small{color:#6a7786}
#simsar-map-v1 .smv2-card-copy b{color:#B85300}
#simsar-map-v1 .smv2-pills{display:flex;gap:4px}
#simsar-map-v1 .smv2-pills span{font-size:10px;border-radius:6px;padding:3px 6px;background:#FFF1E6;color:#B85300}
#simsar-map-v1 .smv2-pills .smv2-freehold{background:#e4f5ec;color:#116e46}
#simsar-map-v1 .smv2-show{display:none}
#simsar-map-v1 .smv2-status{margin:0;font-size:12px;color:#64748b;padding:1px 5px}
#simsar-map-v1 .smv2-empty{padding:14px;color:#64748b}
@media(max-width:900px){
 #simsar-map-v1 .smv2-toolbar{padding:7px 9px;gap:8px}
 #simsar-map-v1 .smv2-search{flex-basis:100%}
 #simsar-map-v1 .smv2-chips{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:3px}
 #simsar-map-v1 .smv2-chips button{flex-shrink:0;padding:8px 12px}
 #simsar-map-v1 .smv2-layout{display:block;height:calc(100dvh - 230px);min-height:380px;position:relative}
 #simsar-map-v1 .smv2-map-area{height:100%;border-radius:12px}
 #simsar-map-v1 .smv2-show{display:block;position:absolute;bottom:calc(18px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);background:#FF7A00;color:#fff;border:0;border-radius:999px;padding:12px 20px;white-space:nowrap;box-shadow:0 6px 20px #0003;z-index:5}
 #simsar-map-v1 .smv2-panel{display:none;position:fixed;bottom:calc(65px + env(safe-area-inset-bottom,0px));left:0;right:0;height:min(66dvh,600px);border-radius:18px 18px 0 0;z-index:1400;box-shadow:0 -8px 25px #0002}
 #simsar-map-v1.smv2-sheet-open .smv2-panel{display:flex}
 #simsar-map-v1 #smv2Close{display:block}
 #simsar-map-v1 .smv2-results{padding-bottom:18px}
}
@media(max-width:420px){#simsar-map-v1 .smv2-layout{height:calc(100dvh - 215px);min-height:330px}#simsar-map-v1 .smv2-photo{width:80px;flex-basis:80px;height:82px}}


/* SIMSAR_MAP_THEME_ALIGNMENT_V1 */
#simsar-map-v1 {
  --smv2-blue:#FF7A00;
  --smv2-border:#e4e9f1;
  --smv2-orange:var(--orange,#FF7A00);
}

#simsar-map-v1 .smv2-chips button[aria-pressed="true"] {
  background:#FF7A00;
  border-color:#FF7A00;
  color:#fff;
}

#simsar-map-v1 .smv2-search input:focus {
  outline:2px solid var(--orange,#FF7A00);
  outline-offset:1px;
}

#simsar-map-v1 .smv2-card:hover,
#simsar-map-v1 .smv2-card:focus-visible {
  border-color:#FF7A00;
}

#simsar-map-v1 .smv2-card-copy b {
  color:#B85300;
}

#simsar-map-v1 .smv2-pills .smv2-freehold {
  background:#e4f5ec;
  color:#116e46;
}

#simsar-map-v1 .smv2-show {
  background:var(--orange,#FF7A00);
  color:#fff;
}

/* SIMSAR_MAP_COLOR_ONLY_V3: CSS only; JS and map logic unchanged */

/* SIMSAR_FREEHOLD_TOP_CHIP_V6: gold pill, independent of Buy/Rent */
#simsar-map-v1 .smv2-chips button.smv2-freehold-chip {
  background:#fff !important;
  border-color:#D4A017 !important;
  color:#8B6508 !important;
}
#simsar-map-v1 .smv2-chips button.smv2-freehold-chip[aria-pressed="true"] {
  background:#D4A017 !important;
  border-color:#D4A017 !important;
  color:#fff !important;
}
#simsar-map-v1 .smv2-chips button.smv2-freehold-chip:focus-visible {
  outline:2px solid #D4A017;
  outline-offset:2px;
}
