*{box-sizing:border-box}
:root{--ink:#172943;--muted:#64748b;--line:#dce5ef;--bg:#f3f7fc;--green:#16a34a;--amber:#f59e0b;--red:#dc2626;--blue:#2563eb}
html{min-height:100%;background:var(--bg)}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.45 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.topbar{min-height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px clamp(13px,3vw,42px);gap:16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#124fc7,#38a0ff);color:#fff;font-weight:900}.brand-copy strong,.brand-copy small{display:block}.brand-copy strong{font-size:14px}.brand-copy small{font-size:11px;color:var(--muted);margin-top:2px}.project-meta{text-align:right}.project-meta strong,.project-meta small{display:block}.project-meta small{color:var(--muted);font-size:11px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#7b8ba2;margin:0 0 5px}
.app-shell{max-width:1900px;margin:auto;padding:18px clamp(10px,2.2vw,30px) 18px}.project-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:13px}.project-heading h1{font-size:clamp(24px,2.8vw,34px);line-height:1.1;letter-spacing:-1px;margin:0 0 7px}.subheading{margin:0;color:var(--muted)}
.phase-tabs{display:flex;gap:4px;background:#e7edf6;padding:5px;border-radius:13px}.phase-tab{font:inherit;font-weight:750;border:0;background:transparent;color:#596a80;padding:10px 15px;border-radius:9px;cursor:pointer}.phase-tab.active{background:#fff;color:var(--blue);box-shadow:0 2px 7px #13294b10}.phase-tab.disabled{opacity:.55;cursor:not-allowed}.phase-tab small{font-size:9px;text-transform:uppercase;margin-left:4px}
.status-summary{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr)) minmax(160px,.8fr);gap:9px;margin-bottom:12px}.summary-card,.summary-live{display:flex;align-items:center;gap:11px;min-height:62px;padding:9px 15px;background:#fff;border:1px solid var(--line);border-radius:13px}.summary-card{border-left:4px solid transparent}.summary-card.available{border-left-color:var(--green)}.summary-card.booked{border-left-color:var(--amber)}.summary-card.sold{border-left-color:var(--red)}.summary-card i{width:10px;height:10px;border-radius:50%;flex:none}.summary-card.available i{background:var(--green)}.summary-card.booked i{background:var(--amber)}.summary-card.sold i{background:var(--red)}.summary-card small,.summary-card strong{display:block}.summary-card small{font-size:10px;letter-spacing:1px;font-weight:800;color:var(--muted)}.summary-card strong{font-size:23px;line-height:1.2}.summary-live{justify-content:center;font-size:12px;color:#50627a}.live-pulse{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #dcfce7}
.map-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 5px 24px #16355a08}.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;min-height:58px;border-bottom:1px solid var(--line)}.map-toolbar strong,.map-toolbar small{display:block}.map-toolbar strong{font-size:15px}.map-toolbar small{font-size:11px;color:var(--muted);margin-top:2px}.map-actions{display:flex;gap:5px;flex:none}.map-actions button{height:33px;min-width:34px;padding:0 10px;background:#fff;border:1px solid var(--line);border-radius:8px;font:inherit;font-weight:750;color:#334155;cursor:pointer}.map-actions button:hover{border-color:#8cb4f5;color:var(--blue)}
.map-viewport{height:min(76vh,1050px);min-height:500px;position:relative;overflow:hidden;background:#fff;touch-action:none;cursor:grab}.map-viewport:active{cursor:grabbing}.map-canvas{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.map-canvas svg{width:100%;height:100%;display:block;user-select:none;-webkit-user-select:none}.map-loading{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:#ffffffee;color:var(--muted);font-weight:650}.map-legend{display:flex;gap:16px;flex-wrap:wrap;align-items:center;padding:11px 15px;border-top:1px solid var(--line);font-size:11px;color:#52647b}.map-legend span{display:flex;align-items:center;gap:6px}.legend{width:11px;height:11px;border-radius:3px;display:inline-block}.legend.available{background:var(--green)}.legend.booked{background:var(--amber)}.legend.sold{background:var(--red)}.legend.selected{background:#2563eb}.legend.road{background:#bfdbfe;border:1px solid #60a5fa}
/* All plot hit-areas remain clickable, including plots that share a boundary. Labels don't intercept taps. */
.map-canvas svg text,.map-canvas svg tspan{pointer-events:none!important;user-select:none}.map-canvas svg .plot-hotspot{cursor:pointer;pointer-events:all;stroke-width:1.1;transition:fill-opacity .1s,stroke-width .1s}.map-canvas svg .plot-hotspot.status-available{fill:#22c55e!important;fill-opacity:.20!important;stroke:#15803d!important;stroke-opacity:.9!important}.map-canvas svg .plot-hotspot.status-booked{fill:#f59e0b!important;fill-opacity:.48!important;stroke:#b45309!important;stroke-opacity:1!important}.map-canvas svg .plot-hotspot.status-sold{fill:#ef4444!important;fill-opacity:.42!important;stroke:#b91c1c!important;stroke-opacity:1!important}.map-canvas svg .plot-hotspot:hover,.map-canvas svg .plot-hotspot:focus{fill-opacity:.68!important;stroke:#1d4ed8!important;stroke-width:2.2!important;outline:none}.map-canvas svg .plot-hotspot.selected{fill:#3b82f6!important;fill-opacity:.75!important;stroke:#1d4ed8!important;stroke-width:2.5!important}.map-canvas svg .road-label{fill:#1d4ed8!important;stroke:#fff;stroke-width:2;paint-order:stroke;letter-spacing:.5px;font-weight:800}
.app-footer{display:flex;justify-content:space-between;gap:12px;color:#8a97a9;font-size:11px;padding:13px 3px 3px}
.modal-backdrop{position:fixed;inset:0;z-index:1000;background:#0b1b32a6;backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;padding:16px}.modal-backdrop.open{display:flex}.plot-modal{position:relative;width:min(520px,100%);max-height:min(90dvh,850px);overflow:auto;background:#fff;border-radius:19px;padding:23px;box-shadow:0 25px 80px #07152e50;animation:pop .16s ease-out}.modal-close{position:absolute;right:13px;top:12px;width:35px;height:35px;border:0;border-radius:50%;background:#edf2f8;color:#52647b;font-size:24px;cursor:pointer}.details-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:0 35px 14px 0;border-bottom:1px solid var(--line)}.details-header h2{font-size:24px;line-height:1.15;margin:0;letter-spacing:-.6px}.status-pill{border-radius:99px;padding:7px 10px;font-size:10px;font-weight:800;white-space:nowrap;background:#eef2f7;color:#64748b}.status-pill.available{background:#dcfce7;color:#166534}.status-pill.booked{background:#fef3c7;color:#92400e}.status-pill.sold{background:#fee2e2;color:#991b1b}.details-hint{margin:12px 0;color:var(--muted);font-size:12px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.detail-field{min-width:0;background:#f7f9fc;border:1px solid #eaf0f7;border-radius:10px;padding:10px 12px}.detail-field.wide{grid-column:1/-1}.detail-field>span{display:block;color:#7b8797;font-size:10px;margin-bottom:5px}.detail-field>strong{display:block;font-size:13px;overflow-wrap:anywhere}.measurements{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.measurements span{background:#fff;border:1px solid var(--line);border-radius:7px;text-align:center;padding:6px 3px;color:#7b8797;font-size:10px}.measurements b{display:block;color:var(--ink);font-size:12px;margin-top:3px}
.floating-whatsapp{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:900;display:flex;align-items:center;justify-content:center;gap:9px;padding:13px 17px;border-radius:999px;background:#16a34a;color:#fff;text-decoration:none;font-size:13px;font-weight:800;box-shadow:0 8px 25px #16a34a50;transition:transform .15s,background .15s}.floating-whatsapp:hover{background:#12843d;transform:translateY(-2px)}.floating-whatsapp svg{width:23px;height:23px;fill:currentColor}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:850px){.status-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-live{grid-column:1/-1;min-height:38px}.map-viewport{height:72vh;min-height:460px}}
@media(max-width:600px){.topbar{min-height:62px;padding:9px 12px}.brand-mark{width:35px;height:35px}.project-meta{max-width:50%}.project-meta strong{font-size:12px}.project-meta small{font-size:10px}.app-shell{padding:14px 8px}.project-heading{display:block}.phase-tabs{margin-top:13px;width:100%}.phase-tab{flex:1;padding:10px 5px;font-size:12px}.phase-tab small{display:none}.status-summary{gap:5px}.summary-card{min-height:59px;padding:8px 6px;gap:6px}.summary-card small{font-size:8px;letter-spacing:.5px}.summary-card strong{font-size:20px}.summary-card i{width:8px;height:8px}.summary-live{font-size:11px}.map-toolbar{align-items:flex-start;flex-direction:column}.map-actions{width:100%}.map-actions button{flex:1}.map-viewport{height:66vh;height:66dvh;min-height:390px}.map-legend{gap:10px;padding:10px;font-size:10px}.plot-modal{padding:20px 14px;border-radius:16px}.details-header h2{font-size:22px}.detail-grid{gap:7px}.detail-field{padding:9px}.floating-whatsapp{right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:12px 14px}.app-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* V4 compact single-row header */
.compact-topbar{min-height:58px;padding:6px clamp(8px,1.4vw,22px);gap:14px;flex-wrap:nowrap;position:relative}
.compact-topbar .brand-mark{width:34px;height:34px;border-radius:10px}
.compact-topbar .brand-copy strong{font-size:clamp(13px,1.3vw,18px)}
.header-counts{display:flex;align-items:center;gap:clamp(8px,1.6vw,24px);margin-left:auto}
.header-count{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:#40516a}
.header-count i{width:10px;height:10px;border-radius:50%;display:block}
.header-count strong{font-size:17px;color:#172943}
.header-count.available i{background:#16a34a}.header-count.booked i{background:#f59e0b}.header-count.sold i{background:#dc2626}
.compact-topbar .phase-tabs{flex:none;padding:3px;border-radius:10px}.compact-topbar .phase-tab{padding:7px 11px;font-size:12px}
.summary-status{font-size:10px;color:#718096;white-space:nowrap;max-width:90px;overflow:hidden;text-overflow:ellipsis}
.app-shell{padding-top:8px}.map-viewport{height:calc(100dvh - 130px);min-height:420px;}
.status-neutral{fill:#94a3b8!important;fill-opacity:.10!important;stroke:#64748b!important;stroke-dasharray:2 1!important}
.status-pill.neutral{background:#eef2f7;color:#475569}
@media(max-width:900px){.compact-topbar{flex-wrap:wrap;gap:7px;padding:7px 10px}.compact-topbar .brand{flex:1}.header-counts{order:3;width:100%;justify-content:space-around;margin:0;padding:4px 0}.compact-topbar .phase-tabs{order:2}.summary-status{display:none}.map-viewport{height:calc(100dvh - 155px);min-height:390px}}
@media(max-width:520px){.compact-topbar .brand-copy small{display:none}.compact-topbar .brand-mark{width:29px;height:29px}.header-count{font-size:11px;gap:5px}.header-count strong{font-size:15px}.header-count i{width:8px;height:8px}.compact-topbar .phase-tab{padding:6px 8px;font-size:11px}.app-shell{padding:5px 5px 10px}.map-toolbar{flex-direction:row;align-items:center;padding:6px 8px;min-height:40px}.map-toolbar small{display:none}.map-actions button{height:29px;min-width:28px;padding:0 6px}.map-viewport{height:calc(100dvh - 150px);min-height:340px}.map-legend{display:none}}

/* V6: improve original survey plot-number legibility while preserving the PDF geometry */
.map-canvas svg text:not(.road-label),.map-canvas svg tspan{paint-order:stroke;stroke:#fff;stroke-width:.42px;stroke-linejoin:round;fill:#111!important;font-weight:600}
.map-canvas svg .generated-label-hotspot{fill:#ffffff!important;fill-opacity:0!important;stroke:transparent!important;stroke-width:0!important}

/* V7: keep the original survey lines visible; no extra dashed boxes for unverified plots. */
.map-canvas svg .plot-hotspot.status-neutral{fill:transparent!important;fill-opacity:0!important;stroke:transparent!important;stroke-opacity:0!important;stroke-dasharray:none!important}
.map-canvas svg .plot-hotspot.status-available{fill-opacity:.08!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot.status-booked{fill-opacity:.22!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot.status-sold{fill-opacity:.20!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot:hover,.map-canvas svg .plot-hotspot:focus{fill-opacity:.42!important;stroke:#2563eb!important;stroke-opacity:.85!important;stroke-width:1.4!important}
.map-canvas svg .plot-hotspot.selected{fill-opacity:.35!important;stroke:#2563eb!important;stroke-opacity:.9!important;stroke-width:1.5!important}
.details-hint:empty{display:none}.plot-modal{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:17px;border-radius:15px}.details-header h2{font-size:21px}.detail-field{padding:8px 10px}.detail-grid{gap:6px}.measurements{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:600px){.compact-topbar{gap:5px;padding:6px 7px}.compact-topbar .brand{min-width:0;gap:6px}.compact-topbar .brand-copy strong{font-size:11px}.compact-topbar .brand-mark{width:27px;height:27px}.header-counts{gap:7px;min-width:0}.header-count{gap:3px;font-size:10px}.header-count strong{font-size:13px}.compact-topbar .phase-tabs{max-width:100%;order:4;width:100%;justify-content:stretch}.compact-topbar .phase-tab{flex:1;padding:5px 4px;font-size:10px}.map-toolbar{gap:5px}.map-toolbar>div:first-child{min-width:0;flex:1}.map-actions{width:auto;gap:3px;flex-shrink:0}.map-actions button{flex:0 1 auto;min-width:27px;height:29px;padding:0 5px;font-size:11px}.map-actions button#resetZoom,.map-actions button#fitMap{min-width:34px}.map-viewport{height:calc(100dvh - 145px);min-height:300px}.plot-modal{width:calc(100vw - 22px);padding:15px 12px;max-height:calc(100dvh - 22px)}.details-header{padding-bottom:10px}.details-header h2{font-size:19px}.details-hint{margin:6px 0}.detail-field>strong{font-size:12px}}

/* V8: stronger, distinct plot status colors; only the clicked plot area is tinted. */
.map-canvas svg .plot-hotspot.status-available{fill:#15803d!important;fill-opacity:.12!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot.status-booked{fill:#1d4ed8!important;fill-opacity:.20!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot.status-sold{fill:#7f1d1d!important;fill-opacity:.23!important;stroke:transparent!important;stroke-opacity:0!important}
.status-pill.booked{background:#dbeafe;color:#1e40af}.status-pill.sold{background:#fee2e2;color:#7f1d1d}
.header-count.booked i{background:#1d4ed8}.header-count.sold i{background:#7f1d1d}
.legend.booked{background:#1d4ed8}.legend.sold{background:#7f1d1d}
.floating-site-visit{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(82px,calc(env(safe-area-inset-bottom) + 76px));z-index:899;display:flex;align-items:center;justify-content:center;padding:12px 17px;border-radius:999px;background:#1d4ed8;color:#fff;text-decoration:none;font-size:13px;font-weight:800;box-shadow:0 8px 25px #1d4ed850;transition:transform .15s,background .15s}
.floating-site-visit:hover{background:#1e40af;transform:translateY(-2px)}.floating-site-visit[hidden]{display:none}
@media(max-width:600px){.floating-site-visit{right:12px;bottom:max(76px,calc(env(safe-area-inset-bottom) + 70px));padding:10px 13px;font-size:12px}}
/* Label-only fallback targets should never paint beyond the original plot boundary. */
.map-canvas svg .generated-label-hotspot.status-available,
.map-canvas svg .generated-label-hotspot.status-booked,
.map-canvas svg .generated-label-hotspot.status-sold{fill-opacity:0!important;stroke:transparent!important;stroke-opacity:0!important}

/* V9 production correction: distinct dark status fills, white available plots, per-cell hit targets. */
.map-canvas svg .plot-hotspot.status-available{fill:#ffffff!important;fill-opacity:.02!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot.status-booked{fill:#14532d!important;fill-opacity:.42!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot.status-sold{fill:#1e3a8a!important;fill-opacity:.42!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot.status-neutral{fill:transparent!important;fill-opacity:0!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot:hover,.map-canvas svg .plot-hotspot:focus{fill-opacity:.58!important;stroke:#0f172a!important;stroke-opacity:.75!important;stroke-width:.8!important}
.map-canvas svg .plot-hotspot.selected{fill-opacity:.58!important;stroke:#0f172a!important;stroke-opacity:.85!important;stroke-width:1!important}
.header-count.booked i,.legend.booked{background:#14532d!important}.header-count.sold i,.legend.sold{background:#1e3a8a!important}
.status-pill.booked{background:#dcfce7!important;color:#14532d!important}.status-pill.sold{background:#dbeafe!important;color:#1e3a8a!important}
/* Generated label targets now receive status tint but remain cell-size-limited by JS. */
.map-canvas svg .generated-label-hotspot.status-booked{fill:#14532d!important;fill-opacity:.42!important}
.map-canvas svg .generated-label-hotspot.status-sold{fill:#1e3a8a!important;fill-opacity:.42!important}
.map-canvas svg .generated-label-hotspot.status-available{fill:#fff!important;fill-opacity:.02!important}

/* V10 production refinements: strong status colours, compact responsive shell, visible Site Visit. */
.map-canvas svg .plot-hotspot.status-available{fill:#ffffff!important;fill-opacity:.015!important;stroke:transparent!important;stroke-opacity:0!important}
.map-canvas svg .plot-hotspot.status-booked{fill:#14532d!important;fill-opacity:.68!important;stroke:#14532d!important;stroke-opacity:.15!important}
.map-canvas svg .plot-hotspot.status-sold{fill:#1e3a8a!important;fill-opacity:.68!important;stroke:#1e3a8a!important;stroke-opacity:.15!important}
.map-canvas svg .generated-label-hotspot.status-booked{fill:#14532d!important;fill-opacity:.66!important;stroke:transparent!important}
.map-canvas svg .generated-label-hotspot.status-sold{fill:#1e3a8a!important;fill-opacity:.66!important;stroke:transparent!important}
.map-canvas svg .generated-label-hotspot.status-available{fill:#fff!important;fill-opacity:.01!important;stroke:transparent!important}
.map-canvas svg .plot-hotspot.status-neutral{fill:transparent!important;fill-opacity:0!important;stroke:transparent!important;stroke-opacity:0!important}
.header-count.booked i,.legend.booked{background:#14532d!important}
.header-count.sold i,.legend.sold{background:#1e3a8a!important}
.status-pill.booked{background:#14532d!important;color:#fff!important}
.status-pill.sold{background:#1e3a8a!important;color:#fff!important}
.status-pill.available{background:#f8fafc!important;color:#334155!important;border:1px solid #cbd5e1}
.floating-site-visit{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:calc(max(78px,env(safe-area-inset-bottom) + 70px));z-index:901;display:flex;align-items:center;justify-content:center;max-width:calc(100vw - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:11px 16px;border-radius:999px;background:#1e3a8a;color:#fff;text-decoration:none;font-size:13px;font-weight:800;box-shadow:0 7px 22px #1e3a8a45}
.floating-site-visit:hover{background:#172554}
.floating-site-visit[hidden]{display:none!important}
.floating-whatsapp{z-index:902;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px);white-space:nowrap;padding:11px 15px}
.plot-modal{width:min(410px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;border-radius:16px}
.details-header h2{font-size:20px}
.detail-grid{gap:7px}
.detail-field{padding:8px 10px}
@media(max-width:700px){
  .compact-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px;padding:7px 9px;min-height:0}
  .compact-topbar .brand{grid-column:1;grid-row:1;min-width:0;max-width:100%;gap:7px}
  .compact-topbar .brand-copy{min-width:0;overflow:hidden}
  .compact-topbar .brand-copy strong{display:block;max-width:100%;font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .compact-topbar .brand-copy small{display:none}
  .compact-topbar .brand-mark{width:30px;height:30px;flex:none;border-radius:9px}
  .compact-topbar .phase-tabs{grid-column:2;grid-row:1;width:auto;max-width:100%;margin:0;display:flex;flex-wrap:nowrap;gap:2px;padding:3px}
  .compact-topbar .phase-tab{flex:0 1 auto;min-width:0;padding:6px 7px;font-size:10px;white-space:nowrap}
  .header-counts{grid-column:1/-1;grid-row:2;order:unset;width:100%;display:flex;justify-content:space-between;gap:8px;padding:3px 2px;margin:0;min-width:0}
  .header-count{min-width:0;display:flex;align-items:center;gap:4px;font-size:10px;white-space:nowrap}
  .header-count span{overflow:hidden;text-overflow:ellipsis}
  .header-count strong{font-size:13px}
  .summary-status{display:none}
  .app-shell{padding:5px 5px 10px}
  .map-card{border-radius:12px}
  .map-toolbar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:5px;padding:7px 8px;min-height:42px}
  #mapTitle{font-size:13px;white-space:nowrap}
  .map-actions{display:flex;gap:3px;width:auto;flex-shrink:0}
  .map-actions button{flex:0 0 auto;min-width:28px;height:30px;padding:0 6px;font-size:11px}
  .map-actions button#resetZoom,.map-actions button#fitMap{min-width:35px}
  .map-viewport{height:calc(100dvh - 205px);min-height:300px;max-height:calc(100dvh - 185px)}
  .map-legend{display:none}
  .app-footer{padding:8px 4px;font-size:10px;gap:8px;flex-wrap:wrap}
  .floating-site-visit{right:12px;bottom:calc(max(72px,env(safe-area-inset-bottom) + 64px));padding:9px 12px;font-size:11px;max-width:calc(100vw - 24px)}
  .floating-whatsapp{right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:9px 12px;font-size:11px;gap:6px}
  .floating-whatsapp svg{width:19px;height:19px}
  .plot-modal{width:calc(100vw - 22px);max-height:calc(100dvh - 22px);padding:14px 12px;border-radius:14px}
  .details-header{padding:0 30px 9px 0;gap:7px}
  .details-header h2{font-size:18px}
  .eyebrow{font-size:9px;margin:0 0 3px}
  .detail-grid{gap:6px}
  .detail-field{padding:7px 8px;border-radius:8px}
  .detail-field>span{font-size:9px;margin-bottom:3px}
  .detail-field>strong{font-size:12px}
  .measurements span{padding:5px 2px;font-size:9px}
  .measurements b{font-size:11px}
}
@media(max-width:380px){
  .compact-topbar .phase-tab{padding:5px 5px;font-size:9px}
  .compact-topbar .brand-copy strong{font-size:11px}
  .header-count{font-size:9px;gap:3px}
  .header-count strong{font-size:12px}
  .map-viewport{height:calc(100dvh - 215px);min-height:280px}
  .map-actions button#resetZoom,.map-actions button#fitMap{min-width:31px}
}

/* V11: requested status palette and robust responsive layout */
:root{--green:#16a34a;--amber:#eab308;--red:#dc2626}
.header-count.available i,.legend.available{background:#16a34a!important}
.header-count.booked i,.legend.booked{background:#eab308!important}
.header-count.sold i,.legend.sold{background:#dc2626!important}
.summary-card.available{border-left-color:#16a34a!important}.summary-card.booked{border-left-color:#eab308!important}.summary-card.sold{border-left-color:#dc2626!important}
.map-canvas svg .plot-hotspot.status-available,.map-canvas svg .generated-label-hotspot.status-available{fill:#16a34a!important;fill-opacity:.42!important;stroke:#15803d!important;stroke-opacity:.7!important}
.map-canvas svg .plot-hotspot.status-booked,.map-canvas svg .generated-label-hotspot.status-booked{fill:#eab308!important;fill-opacity:.52!important;stroke:#a16207!important;stroke-opacity:.8!important}
.map-canvas svg .plot-hotspot.status-sold,.map-canvas svg .generated-label-hotspot.status-sold{fill:#dc2626!important;fill-opacity:.48!important;stroke:#991b1b!important;stroke-opacity:.8!important}
.map-canvas svg .plot-hotspot.status-neutral{fill:transparent!important;fill-opacity:0!important;stroke:transparent!important;stroke-opacity:0!important}
.status-pill.available{background:#dcfce7!important;color:#166534!important;border:1px solid #86efac!important}
.status-pill.booked{background:#fef9c3!important;color:#854d0e!important;border:1px solid #fde047!important}
.status-pill.sold{background:#fee2e2!important;color:#991b1b!important;border:1px solid #fca5a5!important}
html,body{width:100%;max-width:100%;overflow-x:hidden}body{overflow-y:auto}.topbar,.app-shell,.map-card,.map-toolbar,.header-counts,.phase-tabs{min-width:0;max-width:100%}
.floating-whatsapp{display:flex!important;visibility:visible!important;opacity:1!important;position:fixed!important;right:max(12px,env(safe-area-inset-right))!important;bottom:max(12px,env(safe-area-inset-bottom))!important;z-index:9999!important}
.floating-site-visit:not([hidden]){display:flex!important;visibility:visible!important;opacity:1!important;position:fixed!important;right:max(12px,env(safe-area-inset-right))!important;bottom:calc(max(66px,env(safe-area-inset-bottom) + 60px))!important;z-index:9998!important}
@media(max-width:700px){
 .compact-topbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;align-items:center!important;gap:7px!important;padding:8px 10px!important;width:100%!important}
 .compact-topbar .brand{grid-column:1!important;grid-row:1!important;max-width:100%!important;width:100%!important}
 .compact-topbar .phase-tabs{grid-column:1!important;grid-row:2!important;display:flex!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;justify-content:stretch!important;margin:0!important;scrollbar-width:thin}
 .compact-topbar .phase-tab{flex:1 0 auto!important;min-width:0!important;padding:7px 8px!important;font-size:11px!important}
 .compact-topbar .header-counts{grid-column:1!important;grid-row:3!important;display:flex!important;width:100%!important;justify-content:space-between!important;gap:5px!important;overflow:visible!important}
 .compact-topbar .header-count{font-size:10px!important;gap:4px!important;white-space:nowrap!important;min-width:0!important}
 .compact-topbar .header-count span{overflow:visible!important;text-overflow:clip!important}
 .compact-topbar .header-count strong{font-size:13px!important}
 .summary-status{display:none!important}
 .app-shell{padding:5px 5px 80px!important;width:100%!important}
 .map-toolbar{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;flex-wrap:nowrap!important}
 .map-toolbar>div:first-child{min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}
 #mapTitle{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .map-actions{width:auto!important;flex:0 0 auto!important;gap:3px!important}
 .map-actions button{min-width:27px!important;padding:0 5px!important;height:30px!important}
 .map-actions button#resetZoom,.map-actions button#fitMap{min-width:31px!important}
 .map-viewport{height:62dvh!important;min-height:300px!important;max-height:680px!important}
 .map-legend{display:flex!important;gap:8px!important;flex-wrap:wrap!important;padding:8px!important;font-size:10px!important}
 .floating-whatsapp{right:10px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;padding:9px 12px!important;font-size:11px!important;gap:6px!important}
 .floating-site-visit:not([hidden]){right:10px!important;bottom:calc(max(62px,env(safe-area-inset-bottom) + 58px))!important;padding:8px 11px!important;font-size:11px!important;max-width:calc(100vw - 20px)!important}
 .app-footer{padding-bottom:12px!important;flex-wrap:wrap!important}
}
@media(max-width:380px){
 .compact-topbar .brand-copy strong{font-size:11px!important}
 .compact-topbar .phase-tab{font-size:10px!important;padding:6px 5px!important}
 .compact-topbar .header-count{font-size:9px!important;gap:3px!important}
 .compact-topbar .header-count strong{font-size:12px!important}
 .map-viewport{height:58dvh!important;min-height:280px!important}
 .map-actions button{font-size:10px!important;min-width:25px!important}
}
