/* Neighbourhood map styles copied from the live site (assets/style.css, phone.css, theme.css) for the clean preview, 21 Nov 2026.
   Scoped tweaks at the bottom stop the clean page's own .chips/.btn/.seg rules from changing the map. */
:root{--panel:#1A1726;--hover:#2A2540;--muted:#A8A2BD;--sunk:#221E31;--accent:#7B5CFF;--f-body:Inter,system-ui,sans-serif;--f-display:Inter,system-ui,sans-serif;--f-mono:ui-monospace,monospace}
/* ===== Neighbourhood map ===== */
.nmap{display:grid;grid-template-columns:1fr 320px;gap:10px}
.nmap-canvas{position:relative;border-radius:22px;overflow:hidden;background:#0e0e10;min-height:520px}
.nmap-el{position:absolute;inset:0;background:#0e0e10}
.nmap-tools{position:absolute;top:12px;right:12px;z-index:500;display:flex;gap:6px}
.nmap-tools .seg{background:rgba(20,20,22,.88);backdrop-filter:blur(10px)}
.nmap-tools .seg button{padding:7px 13px;font-size:13px}
.nmap-tools .icon-btn{background:rgba(20,20,22,.88);backdrop-filter:blur(10px)}
.nmap-filter{position:absolute;left:12px;bottom:12px;right:60px;z-index:500;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.nmap-filter::-webkit-scrollbar{display:none}
.nmap-filter .chip{flex:none;background:rgba(20,20,22,.88);backdrop-filter:blur(10px);font-size:13px;padding:7px 12px}
.nmap-filter .chip[aria-pressed="true"]{background:#fff;color:#000}
.nmap-list{display:grid;gap:6px;align-content:start;max-height:520px;overflow:auto;scrollbar-width:thin}
.nl-item{display:flex;align-items:center;gap:12px;border:0;background:var(--panel);border-radius:16px;padding:10px 12px;text-align:left;cursor:pointer;transition:background .15s;width:100%}
.nl-item:hover:not(:disabled){background:var(--hover)}
.nl-item:disabled{opacity:.6;cursor:default}
.nl-item b{display:block;font-size:14px}
.nl-item small{display:block;font-size:12px;color:var(--muted)}
.nl-item .ic{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--c) 18%,transparent);font-size:15px}
.nl-item.nl-proj img{width:42px;height:42px;border-radius:12px;object-fit:cover;flex:none}
.nl-item.nl-proj{background:#211d31}
/* pins */
.ppin{display:flex;align-items:center;gap:7px;background:#fff;color:#000;border-radius:999px;padding:3px 12px 3px 3px;box-shadow:0 8px 22px rgba(0,0,0,.55);white-space:nowrap;transform:translate(-20px,-50%);font:600 13px var(--f-display)}
.ppin img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.ppin.main{background:var(--grad);color:#fff;padding:4px 14px 4px 4px;font-size:14px;box-shadow:0 0 0 4px rgba(123,92,255,.3),0 10px 26px rgba(0,0,0,.6)}
.ppin.main img{width:36px;height:36px;border:2px solid #fff}
.ppin.dim{opacity:.85}
.apin{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:14px;background:#17171a;border:2px solid var(--c);box-shadow:0 4px 14px rgba(0,0,0,.6)}
/* popups */
.pop-wrap .leaflet-popup-content-wrapper{background:#18181b;color:var(--ink);border-radius:18px;box-shadow:0 18px 40px rgba(0,0,0,.6);padding:0}
.pop-wrap .leaflet-popup-content{margin:0;font:13.5px/1.45 var(--f-body)}
.pop-wrap .leaflet-popup-tip{background:#18181b}
.pop-wrap a.leaflet-popup-close-button{color:#aaa;top:6px;right:6px}
.pop{display:grid;gap:4px;padding:14px 16px}
.pop b{font:600 16px var(--f-display)}
.pop small{color:var(--muted);font-size:12px}
.pop-cat{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.pop-note{color:#C7B8FF!important}
.pop-act{display:flex;gap:6px;margin-top:8px}
.pop-act .btn{padding:7px 12px;font-size:12.5px}
.pop-act .btn.primary{color:#000}
.pop-p{grid-template-columns:1fr;padding:0;overflow:hidden;border-radius:18px}
.pop-p>img{width:100%;height:110px;object-fit:cover}
.pop-p>div{padding:12px 14px 14px;display:grid;gap:3px}
.pop-price .num{font-size:17px}
.leaflet-container{font-family:var(--f-body);background:#0e0e10}
.leaflet-control-attribution{background:rgba(0,0,0,.55)!important;color:#888!important;font-size:10px}
.leaflet-control-attribution a{color:#aaa!important}
.leaflet-bar a{background:#1b1b1e!important;color:#fff!important;border-color:#2b2b30!important}
@media (max-width:900px){.nmap{grid-template-columns:1fr}.nmap-canvas{min-height:420px}.nmap-list{max-height:none;display:flex;overflow-x:auto;scrollbar-width:none}.nl-item{flex:0 0 240px}}
@media (max-width:600px){.nmap-canvas{min-height:380px;border-radius:18px}.nmap-list{margin:0 -14px;padding:0 14px}.nl-item{flex-basis:220px}}
.nmap-list{display:flex;flex-direction:column}
.nmap-list .nl-item{flex:none}
@media (max-width:900px){.nmap-list{flex-direction:row}}
.pj-sec .nmap{grid-template-columns:1fr}
.pj-sec .nmap-canvas{min-height:460px}
.pj-sec .nmap-list{flex-direction:row;overflow-x:auto;max-height:none;scrollbar-width:none;padding-bottom:2px}
.pj-sec .nmap-list::-webkit-scrollbar{display:none}
.pj-sec .nl-item{flex:0 0 250px}
/* rail legend */
.nmap-legend{position:absolute;top:12px;left:12px;z-index:510;max-width:min(300px,calc(100% - 150px))}
.nl-toggle{display:flex;align-items:center;gap:8px;border:0;cursor:pointer;background:rgba(20,20,22,.9);backdrop-filter:blur(10px);color:#fff;font-weight:600;font-size:13px;padding:8px 12px;border-radius:999px}
.sw-stack{display:flex}
.sw-stack i{width:10px;height:10px;border-radius:50%;margin-left:-3px;border:1.5px solid #141416}
.sw-stack i:first-child{margin-left:0}
.nl-panel{margin-top:6px;background:rgba(20,20,22,.95);backdrop-filter:blur(14px);border-radius:16px;padding:8px;display:grid;gap:2px;max-height:300px;overflow:auto}
.nl-panel[hidden]{display:none}
.nl-show{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--muted);padding:6px 8px 8px;cursor:pointer}
.nl-show input{accent-color:var(--accent)}
.nl-line{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--ink);font-size:13px;padding:7px 8px;border-radius:10px;cursor:pointer;text-align:left}
.nl-line:hover,.nl-line.on{background:var(--sunk)}
.nl-line i{width:22px;height:5px;border-radius:3px;flex:none}
.nl-panel .src{padding:6px 8px 2px;font-size:10.5px}
.rail-tip{background:#18181b;color:#fff;border:0;border-radius:8px;font:600 12px var(--f-body);box-shadow:0 6px 16px rgba(0,0,0,.5)}
.rail-tip::before{display:none}
.pop-lines{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 2px}
.pop-lines span{font-size:11.5px;font-weight:600;padding:3px 8px;border-radius:999px;background:color-mix(in srgb,var(--c) 22%,transparent);border:1px solid var(--c)}
@media (max-width:600px){.nmap-legend{top:10px;left:10px}.nl-toggle{padding:7px 10px;font-size:12px}}
.nl-all{border:0;background:#fff;color:#000;font-weight:600;font-size:12.5px;padding:8px 10px;border-radius:10px;cursor:pointer;margin:0 0 6px;text-align:left}

/* ===== 3D view ===== */
.nmap-3d{background:var(--grad)!important;color:#fff;border:0}
.mo-3d{position:absolute;left:14px;bottom:14px;background:var(--grad);color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.m3d{position:fixed;inset:0;z-index:80;background:#0b0b0c}
.m3d[hidden]{display:none}
.m3d-map{position:absolute;inset:0}
.m3d-top{position:absolute;top:max(12px,env(safe-area-inset-top));left:12px;right:60px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;pointer-events:none}
.m3d-top>*{pointer-events:auto}
.m3d-title{background:rgba(20,20,22,.88);backdrop-filter:blur(12px);border-radius:16px;padding:10px 14px}
.m3d-title b{display:block;font:600 16px var(--f-display)}
.m3d-title small{color:var(--muted);font-size:12px}
.m3d-close{position:fixed;top:max(12px,env(safe-area-inset-top));right:12px;z-index:2;width:44px;height:44px;font-size:22px;background:#fff;color:#000}
.m3d .maplibregl-ctrl-top-right{top:64px}
.m3d-bottom{position:absolute;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));display:grid;gap:8px;justify-items:start}
.m3d-proj{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}
.m3d-proj::-webkit-scrollbar{display:none}
.m3d-proj .chip{flex:none;background:rgba(20,20,22,.9);backdrop-filter:blur(10px)}
.m3d-proj .chip[aria-pressed="true"]{background:#fff;color:#000}
.m3d-ctl{display:flex;gap:6px}
.m3d-ctl .btn{background:rgba(20,20,22,.9);backdrop-filter:blur(10px)}
.m3d-ctl .btn[aria-pressed="true"]{background:var(--grad)}
.m3d-note{font-size:11px;color:rgba(255,255,255,.6);background:rgba(0,0,0,.5);padding:5px 9px;border-radius:8px;max-width:560px}
.m3d-load{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:14px;color:var(--muted);font-size:14px;background:#0b0b0c}
.m3d-load[hidden]{display:none}
.m3d-load span{width:34px;height:34px;border-radius:50%;border:3px solid var(--sunk);border-top-color:#C7B8FF;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.m3d-pin{transform:none}
.m3d-pop .maplibregl-popup-content{background:#18181b;color:var(--ink);border-radius:18px;padding:0;box-shadow:0 18px 40px rgba(0,0,0,.6);overflow:hidden;min-width:220px}
.m3d-pop .maplibregl-popup-tip{border-top-color:#18181b;border-bottom-color:#18181b}
.m3d-pop .maplibregl-popup-close-button{color:#aaa;font-size:18px;right:6px;top:4px}
.m3d .maplibregl-ctrl-group{background:#1b1b1e}
.m3d .maplibregl-ctrl-group button .maplibregl-ctrl-icon{filter:invert(1)}
.m3d .maplibregl-ctrl-attrib{background:rgba(0,0,0,.5);color:#888}
.m3d .maplibregl-ctrl-attrib a{color:#aaa}
@media (max-width:600px){.m3d-title small{display:none}.m3d-note{font-size:10px}.nmap-3d{padding:7px 10px;font-size:12px}}
.m3d .m3d-map{position:absolute!important;inset:0;width:100%;height:100%}
/* coming-soon rail */
.soon{display:inline-block;align-self:flex-start;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:var(--tag);color:var(--tag-ink);padding:2px 7px;border-radius:6px;margin-bottom:2px}
.nl-line i{background:var(--c)}
.nl-line.future i{background:repeating-linear-gradient(90deg,var(--c) 0 4px,transparent 4px 7px)}
.nl-line .soon{margin:0 0 0 auto}
.apin.future{border-style:dashed}
.nl-panel{max-height:min(440px,62vh)}
.nmap-canvas{isolation:isolate;z-index:0}
.m3d{z-index:1000}
/* MRT 3: glowing running line */
.mrt3-glow{filter:blur(4px);animation:mrt3pulse 2.4s ease-in-out infinite}
.mrt3-run{animation:mrt3run 1.1s linear infinite;filter:drop-shadow(0 0 3px #B9AEFF) drop-shadow(0 0 6px #7B5CFF)}
@keyframes mrt3run{to{stroke-dashoffset:-24}}
@keyframes mrt3pulse{0%,100%{opacity:.18}50%{opacity:.45}}
.mrt3-tag{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;transform:translate(10px,-50%);font:700 11px var(--f-body);letter-spacing:.04em;text-transform:uppercase;color:#fff;background:linear-gradient(135deg,#7B5CFF,#655DC6);padding:5px 10px 5px 8px;border-radius:999px;box-shadow:0 0 0 1px rgba(255,255,255,.25),0 0 18px rgba(123,92,255,.75)}
.mrt3-tag i{width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff;animation:mrt3pulse 1.4s ease-in-out infinite}
.soon{background:linear-gradient(135deg,#7B5CFF,#655DC6);color:#fff;box-shadow:0 0 12px rgba(123,92,255,.6)}
.nl-line.future i{height:6px;background:repeating-linear-gradient(90deg,#fff 0 5px,#9C8CFF 5px 10px);box-shadow:0 0 8px #7B5CFF}
@media (prefers-reduced-motion:reduce){.mrt3-run,.mrt3-glow,.mrt3-tag i{animation:none}}
/* project selection: rings + nearby list */
.ring-tag{transform:translate(-50%,-50%);white-space:nowrap;font:600 11px var(--f-body);color:#fff;background:rgba(20,20,22,.85);border:1px solid rgba(199,184,255,.5);padding:3px 8px;border-radius:999px}
.ring-pulse{animation:ringpulse 2.6s ease-in-out infinite}
@keyframes ringpulse{0%,100%{stroke-opacity:.8}50%{stroke-opacity:.3}}
.ppin{transition:opacity .25s,filter .25s}
.ppin.dim{opacity:.55;filter:grayscale(.6)}
.leaflet-marker-icon .apin{transition:opacity .25s}
.nl-head{display:flex;align-items:center;gap:12px;background:var(--grad);border-radius:18px;padding:10px 10px 10px 10px;flex:none}
.nl-head img{width:46px;height:46px;border-radius:13px;object-fit:cover;flex:none}
.nl-head div{flex:1;min-width:0}
.nl-head small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.8)}
.nl-head b{display:block;font:600 18px var(--f-display)}
.nl-head span{font-size:12.5px;color:rgba(255,255,255,.9)}
.nl-head .icon-btn{background:rgba(0,0,0,.25);color:#fff}
.nl-hint{font-size:13px;color:var(--muted);padding:4px 6px 2px}
.nl-item .d{margin-left:auto;font-size:12px;color:var(--muted);flex:none}
.nl-item.in1 .d{color:#C7B8FF;font-weight:600}
.nl-item small{display:block}
.nl-item>span:nth-child(2){min-width:0}
.nl-item>span:nth-child(2) small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:900px){.nl-head{flex:0 0 260px}}
@media (prefers-reduced-motion:reduce){.ring-pulse{animation:none}}
/* 3D: "Around …" panel */
.m3d-near{position:absolute;top:84px;right:58px;width:300px;max-height:calc(100% - 200px);display:flex;flex-direction:column;gap:6px;background:rgba(20,20,22,.9);backdrop-filter:blur(16px);border-radius:20px;padding:8px;box-shadow:0 18px 40px rgba(0,0,0,.5)}
.m3d-near[hidden]{display:none}
.m3d-near-list{display:flex;flex-direction:column;gap:5px;overflow:auto;scrollbar-width:thin}
.m3d-near .nl-item{flex:none;background:rgba(40,40,46,.8)}
.m3d-near.min .m3d-near-list{display:none}
@media (max-width:700px){
  .m3d-near{top:auto;right:8px;left:8px;width:auto;bottom:132px;max-height:34vh}
  .m3d-near .nl-head{flex:none}
  .m3d-near-list{flex-direction:row;overflow-x:auto}
  .m3d-near .nl-item{flex:0 0 210px}
}
@media (max-width:700px){.m3d-near{bottom:158px}}
@media (max-width:600px){
  .nmap-filter .chip{min-height:38px}
  .nmap-tools{top:10px;right:10px;gap:4px}
  .nmap-tools .seg button{padding:8px 11px;font-size:12px;min-height:36px}
  .nmap-3d{padding:7px 10px!important;font-size:12px!important}
  .nmap-legend{top:52px;left:10px}
  .nl-toggle{padding:7px 10px;font-size:12px}
  .ppin{font-size:11.5px;padding:2px 10px 2px 2px;gap:5px}
  .ppin img{width:24px;height:24px}
  .ppin.main{font-size:12px;padding:3px 11px 3px 3px}
  .ppin.main img{width:28px;height:28px}
  .mrt3-tag{font-size:9.5px;padding:4px 8px 4px 6px}
  .nmap-list .nl-hint{display:none}
  .nmap-canvas{min-height:400px}
}
@media (max-width:600px){
  :is(.nmap,.is-full) .ppin{padding:2px;gap:0;transform:translate(-50%,-50%)}
  :is(.nmap,.is-full) .ppin b{display:none}
  :is(.nmap,.is-full) .ppin.sel{padding:3px 11px 3px 3px;gap:6px;transform:translate(-18px,-50%)}
  :is(.nmap,.is-full) .ppin.sel b{display:inline}
  :is(.nmap,.is-full) .ppin img{width:30px;height:30px}
}
@media (max-width:1000px){.nmap{grid-template-columns:minmax(0,1fr)!important}}
.nl-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 4px;margin:0 0 2px;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.nl-chips::-webkit-scrollbar{display:none}
.nl-chip{flex:none;scroll-snap-align:start;display:inline-flex;align-items:center;gap:8px;border-radius:999px;border:1px solid rgba(185,166,255,.18);background:rgba(26,23,38,.9);color:#fff;
  padding:4px 12px 4px 4px;font:inherit;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .15s}
.nl-chip:active{transform:scale(.96)}
.nl-chip img{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:none}
.nl-chip .n{font-size:12px;font-weight:800;color:#C7B8FF;background:rgba(140,112,255,.18);border-radius:999px;padding:1px 7px}
.nl-chip[aria-pressed="true"]{background:linear-gradient(135deg,#7B5CFF,#D257C4);border-color:transparent;box-shadow:0 0 0 1px rgba(255,255,255,.16),0 0 14px rgba(140,112,255,.5)}
.nl-chip[aria-pressed="true"] .n{color:#fff;background:rgba(255,255,255,.2)}
.nmap-list .nl-sub{display:block!important;font-size:12.5px;color:#A8A2BD;margin:2px 4px 4px}
/* clean-page clashes */
:is(.nmap,.is-full) .chips{display:flex;gap:6px;grid-template-columns:none}
:is(.nmap,.is-full) .btn{min-height:0;animation:none;padding:7px 13px;font-size:13px;border-radius:999px}
:is(.nmap,.is-full) .seg{margin-left:0;padding:3px}:is(.nmap,.is-full) .seg button{color:#ccc}:is(.nmap,.is-full) .seg [aria-pressed=true]{background:var(--grad);color:#fff}
:is(.nmap,.is-full) .icon-btn{width:38px;height:38px;border-radius:50%;border:0;color:#fff;font-size:18px;cursor:pointer;display:grid;place-items:center}
:is(.nmap,.is-full) .chip{border:0;color:#fff;box-shadow:none}.nmap-filter .chip[aria-pressed="true"]{background:var(--grad);color:#fff}
.nmap-canvas{box-shadow:0 0 0 1px #2A2640,0 30px 60px -30px rgba(0,0,0,.9),0 0 50px -28px rgba(123,92,255,.4)}
.nl-item{color:var(--ink)}
/* tidy map controls on the clean page */
:is(.nmap,.is-full) .seg button{padding:6px 12px!important;font-size:12.5px!important;min-height:0!important}
:is(.nmap,.is-full) .chip{padding:6px 11px!important;font-size:12.5px!important;min-height:0!important;font-weight:600}
:is(.nmap,.is-full) .nmap-3d{padding:6px 12px!important;font-size:12.5px!important}
:is(.nmap,.is-full) .icon-btn{width:34px;height:34px;font-size:16px}
.nmap-list{flex-direction:column!important;gap:8px}
.nmap-list .nl-sub{margin:0 2px}
@media(max-width:600px){.nmap-legend{top:50px}:is(.nmap,.is-full) .nl-toggle{padding:5px 9px;font-size:11.5px}}
/* HOME: "Glow frame" map (Design 6, 21 Nov 2026): large rounded-square map, project tabs above, 4 nearest places floating top-left */
.gm-tabs{display:flex;justify-content:center;margin-bottom:16px}
.gm-tabs .tabs{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px var(--line)}
.gm-tabs button{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;font-weight:600;font-size:14.5px;color:#cfcfd4}
.gm-tabs img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.gm-tabs [aria-pressed=true]{background:var(--grad);color:#fff;box-shadow:0 0 22px -4px rgba(123,92,255,.8)}
.glowmap{position:relative;width:100%;aspect-ratio:16/9;min-height:520px}
.glowmap #hood{position:absolute;inset:0}.glowmap .nmap{height:100%;grid-template-columns:1fr!important}.glowmap .nmap-canvas{height:100%;min-height:0!important;border-radius:36px!important;box-shadow:0 0 0 1.5px rgba(199,184,255,.35),0 0 0 12px rgba(123,92,255,.07),0 0 90px -10px rgba(123,92,255,.7)!important}
.glowmap .nmap-list,.glowmap .nmap-legend,.glowmap .nmap-filter{display:none!important}.glowmap .leaflet-control-attribution{font-size:8px}
.gm-near{position:absolute;left:18px;top:18px;z-index:700;display:grid;gap:8px;pointer-events:none}
.gm-near .bub{display:flex;align-items:center;gap:10px;padding:8px 16px 8px 8px;border-radius:18px;background:rgba(20,18,30,.8);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px rgba(199,184,255,.22),0 0 24px -8px rgba(123,92,255,.9);font-size:13.5px;white-space:nowrap}
.gm-near .ic{display:grid;place-items:center;width:34px;height:34px;font-size:15px;border-radius:12px;flex:none;background:color-mix(in srgb,var(--c) 20%,transparent)}
.gm-near small{display:block;color:var(--sub);font-size:12px}.gm-near b{display:block;font-size:20px;letter-spacing:-.02em;text-shadow:0 0 18px rgba(155,123,255,.6)}
@media(max-width:700px){.glowmap{aspect-ratio:4/5;min-height:0}.glowmap .nmap-canvas{border-radius:28px!important}
  .gm-near{position:static;display:flex;overflow-x:auto;scrollbar-width:none;margin:12px -20px 0;padding:0 20px 4px;pointer-events:auto}.gm-near::-webkit-scrollbar{display:none}.gm-near .bub{flex:none}
  .gm-tabs .tabs button{padding:5px 11px 5px 5px;font-size:13.5px}.gm-tabs img{width:24px;height:24px}}
/* phone: map first, the 4 nearest places as a swipe row under it (so they don't cover the map buttons) */
@media(max-width:700px){.glowmap{aspect-ratio:auto;display:flex;flex-direction:column}.glowmap #hood{position:relative;inset:auto;height:118vw;max-height:560px}.gm-near{order:2;margin:14px -20px 0}}
/* compact map pop-ups, copied from live assets/theme.css (8 Nov rules) for the clean preview, 21 Nov 2026; fonts -> Inter, price white (no green) to match Space Black */
.pop-mini .leaflet-popup-content-wrapper,.m3d-pop .maplibregl-popup-content{background:#18171f!important;border:1px solid rgba(185,166,255,.3);border-radius:16px!important;padding:0!important;box-shadow:0 0 16px rgba(140,112,255,.3),0 10px 24px rgba(0,0,0,.5)!important}
.pop-mini .leaflet-popup-tip{background:#18171f!important}
.pop-mini .leaflet-popup-content{margin:0!important;min-width:0!important;max-width:none!important}
.pop-mini .pop{gap:0;padding:0}
.pop-1{display:flex!important;align-items:center;gap:7px!important;padding:7px 13px!important;white-space:nowrap}
.pop-1 .pop-ic{font-size:14px}
.pop-1 b{font:700 13.5px/1.2 Inter,system-ui,sans-serif!important;color:#fff}
.pop i.num{font:700 13.5px Inter,system-ui,sans-serif;font-style:normal;color:#C7B8FF;white-space:nowrap}
.pop-r{display:grid!important;gap:1px!important;padding:7px 13px 8px!important}
.pop-type{display:flex;align-items:center;gap:5px;font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#E3DCF7;white-space:nowrap}
.pop-type i{width:8px;height:8px;border-radius:50%;flex:none}
.pop-type em{font-style:normal;font-size:9.5px;color:#fff;background:#655DC6;border-radius:999px;padding:1px 6px;letter-spacing:.04em}
.pop-l2{display:flex;align-items:baseline;gap:7px;white-space:nowrap}
.pop-l2 b{font:700 14.5px/1.2 Inter,system-ui,sans-serif!important;color:#fff}
.pop-p2{display:flex!important;align-items:center;gap:10px!important;padding:8px 10px 8px 8px!important}
.pop-p2>img{width:54px;height:54px;border-radius:10px;object-fit:cover;flex:none}
.pop-p2>div{display:grid;gap:1px;min-width:0}
.pop-p2 b{font:700 15px/1.15 Inter,system-ui,sans-serif!important;color:#fff}
.pop-p2 small{font-size:11.5px;color:#B9B2CC;white-space:nowrap}
.pop-p2 .pop-note{font-size:10.5px}
.pop-pr{white-space:nowrap}
.pop-pr small{font-size:10px!important;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#B9B2CC}
.pop-pr .num{font:700 16px Inter,system-ui,sans-serif;color:#fff;text-shadow:0 0 12px rgba(155,123,255,.6)}
.pop-go{flex:none;align-self:center;display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:999px;background:linear-gradient(135deg,#7B5CFF,#D257C4);box-shadow:0 0 0 1px rgba(255,255,255,.16),0 0 14px rgba(140,112,255,.5);color:#fff!important;font:700 12.5px Inter,system-ui,sans-serif;text-decoration:none}
/* rail pop-up on one line too (Leon, 8 Nov 2026): 🚆 [LRT] Sri Rampai 930 m */
.pop-r1 .pop-tp{font-size:10.5px;font-weight:800;letter-spacing:.06em;color:#fff;background:color-mix(in srgb,var(--c) 35%,transparent);border:1px solid var(--c);border-radius:999px;padding:1px 7px;white-space:nowrap}
.pop-r1 .pop-soon{font-style:normal;font-size:9.5px;font-weight:800;color:#fff;background:#655DC6;border-radius:999px;padding:1px 6px;white-space:nowrap}
/* map pop-up fix (Leon, 8 Nov 2026): Leaflet measured the bubble too narrow on phones, so "View ›" sat on the text.
   The bubble now sizes to its own content (never wider than the screen) and the text never shrinks under the button. */
.pop-mini .leaflet-popup-content{width:max-content!important;max-width:calc(100vw - 48px)!important}
.pop-p2>div{flex:1 1 auto;min-width:0}
.pop-p2 b,.pop-p2 small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pop-p2 .pop-go{margin-left:2px}
/* project pop-up = option 1 (Leon, 8 Nov 2026): small round › button inside the box on the right; arrow under the box points to the pin */
.pop-p2 .pop-go{width:30px;height:30px;padding:0;justify-content:center;font-size:16px;line-height:1;margin-left:2px}
.pop-mini a.leaflet-popup-close-button{display:none}
/* full screen (map.js moves the canvas to <body> and adds .is-full) - copied from style.css, plus this page's own bars hidden */
.nmap-canvas.is-full{position:fixed!important;inset:0;z-index:2000;border-radius:0!important;min-height:0!important;height:100vh;height:100dvh;box-shadow:none!important}
html.map-full,html.map-full body{overflow:hidden}
html.map-full .top,html.map-full .ctray,html.map-full .fab,html.map-full .aic-launch,html.map-full .aic-tease{visibility:hidden}
.nmap-canvas.is-full .nmap-tools{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}
.nmap-canvas.is-full .nmap-legend{top:calc(max(12px,env(safe-area-inset-top)) + 46px)}
.nmap-canvas.is-full .nmap-filter{bottom:max(14px,env(safe-area-inset-bottom))}
.nmap-canvas.is-full .leaflet-bottom{bottom:env(safe-area-inset-bottom)}
@media (max-width:600px){.nmap-canvas.is-full .nmap-filter{bottom:calc(max(14px,env(safe-area-inset-bottom)) + 18px)!important}}
/* full screen: small chips in one scrolling row (never stretched bars), and a big easy close button */
.nmap-canvas.is-full .nmap-filter{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;gap:6px!important;left:12px!important;right:60px!important;width:auto!important;overflow-x:auto!important}
.nmap-canvas.is-full .nmap-filter .chip{flex:0 0 auto!important;width:auto!important;min-width:0!important;padding:6px 11px!important;font-size:12.5px!important;min-height:0!important;border-radius:999px!important;justify-content:center}
.nmap-canvas.is-full .nmap-full{width:46px!important;height:46px!important;font-size:22px!important;font-weight:700;background:#fff!important;color:#0B0B0D!important;box-shadow:0 6px 20px -6px rgba(0,0,0,.7)!important}

/* 3D view styles copied from the live style.css (22 Nov 2026): the swipe cards, compact phone bottom, nearby panel.
   Without these the project photos in the 3D view showed full size and covered the 3D model. */
/* 3D view: ‹ › on the "Around" card to switch project (map3d.js goProj) */
.m3d-go{display:flex;gap:4px;margin-left:auto}
.m3d-go .icon-btn{width:40px;height:40px;font-size:22px;line-height:1;background:rgba(0,0,0,.28);color:#fff}
.m3d-near .nl-head{touch-action:pan-y}

.m3d-ind{display:none}
@media (max-width:600px){

  /* 3D view: compact bottom area */
  .m3d-title{padding:8px 12px}
  .m3d-title .m3d-ind{display:block;font-size:11px;color:rgba(255,255,255,.62)}
  .m3d-note{display:none!important}
  .m3d-bottom{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 26px);display:flex!important;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:6px;left:8px;right:8px;align-items:center}
  .m3d-bottom::-webkit-scrollbar{display:none}
  .m3d-proj{flex:none;overflow:visible!important;flex-wrap:nowrap}
  .m3d-ctl{flex:none}
  .m3d-proj .chip,.m3d-ctl .btn{min-height:40px;padding:8px 14px;font-size:14px}
  .m3d-near{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 76px)!important;left:8px!important;right:8px!important;max-height:42vh}
  .m3d-near .nl-head{padding:8px 8px 8px 10px;gap:10px;cursor:pointer}
  .m3d-near .nl-head img{width:40px;height:40px;border-radius:11px}
  .m3d-near .nl-head small{font-size:10px}
  .m3d-near .nl-head b{font-size:17px;line-height:1.15}
  .m3d-near .nl-head > div > span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px}
  .m3d-go{display:flex!important}
  .m3d-go .icon-btn,.m3d-near-x{width:38px!important;height:38px!important}
  .m3d .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib{font-size:9px;max-width:calc(100vw - 20px)}
}
@media (max-width:600px){.m3d-go{flex:none;flex-wrap:nowrap}.m3d-near .nl-head > div{min-width:0}}

/* 3D view: swipeable project cards (map3d.js select3d), replaces the ‹ › buttons (Leon, 7 Nov 2026) */
.m3d-cards{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 10%;scroll-padding:0 10%}
.m3d-cards::-webkit-scrollbar{display:none}
.m3d-card{flex:0 0 80%;scroll-snap-align:center;display:flex;align-items:center;gap:10px;border:0;border-radius:16px;padding:8px 10px;background:rgba(60,60,70,.85);color:#fff;text-align:left;cursor:pointer;opacity:.55;transition:opacity .2s}
.m3d-card.on{background:var(--grad);opacity:1}
.m3d-card img{width:40px;height:40px;border-radius:11px;object-fit:cover;flex:none}
.m3d-card-t{flex:1;min-width:0}
.m3d-card-t small{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.8)}
.m3d-card-t b{display:block;font:600 17px var(--f-display);line-height:1.15}
.m3d-card-t span{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:rgba(255,255,255,.9)}
.m3d-card-more{flex:none;font-style:normal;font-size:16px;opacity:0;transition:transform .2s}
.m3d-card.on .m3d-card-more{opacity:.9}
.m3d-near.min .m3d-card.on .m3d-card-more{transform:none}
.m3d-near:not(.min) .m3d-card.on .m3d-card-more{transform:rotate(180deg)}
.m3d-dots{display:flex;justify-content:center;gap:6px;padding:2px 0}
.m3d-dots button{width:7px;height:7px;padding:0;border:0;border-radius:99px;background:rgba(255,255,255,.35);cursor:pointer;transition:width .2s}
.m3d-dots button.on{width:20px;background:#fff}
.m3d-near{padding:8px 0!important}
.m3d-near .m3d-near-list{padding:0 8px}

/* 3D view in the clean theme (22 Nov 2026): project chips in ONE row (the page's own .chips grid was splitting them into 2 rows
   and pushing Orbit / Top view under the panel), glass round close button like the plan pop-up */
.m3d .m3d-proj{display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;gap:6px!important;margin:0!important;padding:0!important;border:0!important}
.m3d .m3d-proj .chip{flex:none;white-space:nowrap;border:0;background:rgba(20,17,32,.78);color:#fff;box-shadow:inset 0 0 0 1px rgba(199,184,255,.35);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.m3d .m3d-proj .chip[aria-pressed=true]{background:var(--grad);box-shadow:0 6px 18px -6px rgba(170,90,230,.9)}
.m3d .m3d-ctl .btn{white-space:nowrap;background:rgba(20,17,32,.78);color:#fff;box-shadow:inset 0 0 0 1px rgba(199,184,255,.35)}
.m3d .m3d-close{width:44px!important;height:44px!important;border-radius:50%!important;border:0;font-size:20px;color:#fff!important;background:rgba(20,17,32,.72)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px rgba(199,184,255,.45),0 8px 22px -8px rgba(0,0,0,.8)!important}
.m3d .m3d-close:hover{background:var(--grad)!important}
.m3d .m3d-title{background:rgba(20,17,32,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px rgba(199,184,255,.25);border-radius:16px}
.m3d .m3d-card.on{box-shadow:0 8px 24px -10px rgba(170,90,230,.9)}
.m3d .m3d-near{background:rgba(20,17,32,.82)!important;box-shadow:inset 0 0 0 1px rgba(155,123,255,.3),0 18px 40px rgba(0,0,0,.5)!important}
@media (max-width:600px){
  .m3d .m3d-proj .chip,.m3d .m3d-ctl .btn{min-height:38px!important;padding:7px 14px!important;font-size:14px!important}
  .m3d .m3d-bottom{align-items:center}
  .m3d .m3d-near{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 84px)!important;max-height:38vh}
}
/* 3D view, Leon's way (22 Nov 2026): the bottom card panel is gone; each project card floats above its own tower,
   with one thin glowing line down to the roof and a small dot where it touches */
.m3d .m3d-near{display:none!important}
.m3d .m3d-pin{position:relative;display:flex!important;align-items:center;gap:9px;margin-bottom:54px;padding:6px 12px 6px 6px!important;border-radius:16px!important;background:rgba(20,17,32,.86)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px rgba(199,184,255,.5),0 10px 26px -8px rgba(0,0,0,.85),0 0 26px -8px rgba(123,92,255,.8)!important;color:#fff;white-space:nowrap;cursor:pointer}
.m3d .m3d-pin:before{content:"";position:absolute;left:50%;top:100%;width:2px;height:54px;transform:translateX(-50%);background:linear-gradient(#C7B8FF,rgba(210,87,196,.85));box-shadow:0 0 8px rgba(155,123,255,.9);pointer-events:none}
.m3d .m3d-pin:after{content:"";position:absolute;left:50%;top:calc(100% + 50px);width:9px;height:9px;transform:translateX(-50%);border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(123,92,255,.6),0 0 12px rgba(210,87,196,.9);pointer-events:none}
.m3d .m3d-pin img{width:40px!important;height:40px!important;border-radius:11px!important;object-fit:cover;flex:none;border:0!important}
.m3c-t{display:flex;flex-direction:column;line-height:1.15}
.m3c-t b{font-size:15px;font-weight:800}
.m3c-t small{font-size:11.5px;color:rgba(255,255,255,.75);margin-top:2px}
.m3c-t em{font-style:normal;font-weight:800;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
@media (max-width:600px){.m3d .m3d-pin{gap:7px;padding:5px 10px 5px 5px!important;margin-bottom:44px}.m3d .m3d-pin:before{height:44px}.m3d .m3d-pin:after{top:calc(100% + 40px)}.m3d .m3d-pin img{width:34px!important;height:34px!important}.m3c-t b{font-size:13.5px}.m3c-t small{font-size:10.5px}}
/* the project in focus: small place bubbles under its floating card (22 Nov 2026) */
.m3d .m3d-pin{flex-wrap:wrap;max-width:300px}
.m3c-near{display:none;flex-basis:100%;flex-wrap:wrap;gap:4px;padding:2px 0 2px 1px}
.m3d .m3d-pin.sel .m3c-near{display:flex}
.m3d .m3d-pin.sel{z-index:3}
.m3c-near i{display:inline-flex;align-items:center;gap:4px;font-style:normal;font-size:11px;font-weight:600;color:#fff;padding:3px 8px 3px 4px;border-radius:999px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.m3c-near u{text-decoration:none;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;font-size:9.5px;background:color-mix(in srgb,var(--c) 30%,transparent)}
.m3c-near b{font-weight:800;color:var(--c);margin-left:2px}
@media (max-width:600px){.m3d .m3d-pin{max-width:250px}.m3c-near i{font-size:10px;padding:2px 7px 2px 3px}.m3c-near u{width:15px;height:15px;font-size:8.5px}}
/* places as sub-points (22 Nov 2026, Leon): not inside the project card. The focused tower gets a longer line; each place
   is its own small bubble branching off that line (2 left, 2 right), like a tree */
.m3d .m3d-pin{max-width:none}
.m3c-near{position:absolute;left:50%;top:100%;width:0;height:96px;display:block!important;padding:0;pointer-events:none;visibility:hidden}
.m3d .m3d-pin.sel .m3c-near{visibility:visible}
.m3d .m3d-pin.sel{margin-bottom:104px}
.m3d .m3d-pin.sel:before{height:104px}.m3d .m3d-pin.sel:after{top:calc(100% + 100px)}
.m3c-near i{position:absolute;white-space:nowrap;max-width:150px;background:rgba(20,17,32,.88)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 55%,transparent),0 6px 16px -6px rgba(0,0,0,.8)!important;overflow:visible;opacity:0;transform:scale(.8);transition:opacity .3s,transform .3s}
.m3d .m3d-pin.sel .m3c-near i{opacity:1;transform:none}
.m3c-near i:nth-child(2){transition-delay:.06s}.m3c-near i:nth-child(3){transition-delay:.12s}.m3c-near i:nth-child(4){transition-delay:.18s}
.m3c-near i>span{overflow:hidden;text-overflow:ellipsis;min-width:0}
/* odd = left of the line, even = right; first pair higher, second pair lower */
.m3c-near i:nth-child(odd){right:22px}.m3c-near i:nth-child(even){left:22px}
.m3c-near i:nth-child(1),.m3c-near i:nth-child(2){top:16px}
.m3c-near i:nth-child(3),.m3c-near i:nth-child(4){top:56px}
/* the branch: a short line from each bubble back to the main line, with a tiny dot where it joins */
.m3c-near i:before{content:"";position:absolute;top:50%;width:22px;height:1.5px;background:color-mix(in srgb,var(--c) 70%,#C7B8FF);opacity:.85}
.m3c-near i:nth-child(odd):before{left:100%}.m3c-near i:nth-child(even):before{right:100%}
.m3c-near i:after{content:"";position:absolute;top:calc(50% - 2.5px);width:5px;height:5px;border-radius:50%;background:#C7B8FF}
.m3c-near i:nth-child(odd):after{left:calc(100% + 20px)}.m3c-near i:nth-child(even):after{right:calc(100% + 20px)}
@media (max-width:600px){.m3c-near i{max-width:150px}.m3c-near i:nth-child(odd){right:16px}.m3c-near i:nth-child(even){left:16px}.m3c-near i:before{width:16px}.m3c-near i:nth-child(odd):after{left:calc(100% + 14px)}.m3c-near i:nth-child(even):after{right:calc(100% + 14px)}}
/* places hang off the 3D TOWER (22 Nov 2026, Leon: "not from the line, from the 3D model"): the main line stays roof -> card;
   each place bubble sits beside the building and its own line runs into the building's side */
.m3d .m3d-pin.sel{margin-bottom:54px}
.m3d .m3d-pin.sel:before{height:54px}.m3d .m3d-pin.sel:after{top:calc(100% + 50px)}
.m3d .m3c-near{top:calc(100% + 54px);height:var(--bh,120px)}
.m3d .m3c-near i:nth-child(1),.m3d .m3c-near i:nth-child(2){top:calc(var(--bh,120px) * .28 - 11px)}
.m3d .m3c-near i:nth-child(3),.m3d .m3c-near i:nth-child(4){top:calc(var(--bh,120px) * .62 - 11px)}
.m3d .m3c-near i:nth-child(odd){right:calc(var(--bw,30px) + 26px)}.m3d .m3c-near i:nth-child(even){left:calc(var(--bw,30px) + 26px)}
.m3d .m3c-near i:before{width:calc(var(--bw,30px) + 26px)}
.m3d .m3c-near i:nth-child(odd):after{left:calc(100% + var(--bw,30px) + 23px)}.m3d .m3c-near i:nth-child(even):after{right:calc(100% + var(--bw,30px) + 23px)}
.m3d .m3c-near i:after{width:7px;height:7px;top:calc(50% - 3.5px);background:#fff;box-shadow:0 0 0 2px color-mix(in srgb,var(--c) 70%,transparent),0 0 8px var(--c)}
@media (max-width:600px){.m3d .m3c-near i:nth-child(odd){right:calc(var(--bw,30px) + 18px)}.m3d .m3c-near i:nth-child(even){left:calc(var(--bw,30px) + 18px)}
  .m3d .m3c-near i:before{width:calc(var(--bw,30px) + 18px)}
  .m3d .m3c-near i:nth-child(odd):after{left:calc(100% + var(--bw,30px) + 15px)}.m3d .m3c-near i:nth-child(even):after{right:calc(100% + var(--bw,30px) + 15px)}}
/* the floating label grows into a bigger card when tapped (22 Nov 2026) */
.m3c-more{display:none;flex-basis:100%;flex-direction:column;gap:8px;padding:6px 2px 2px}
.m3d .m3d-pin.open .m3c-more{display:flex;animation:m3cIn .25s ease}
@keyframes m3cIn{from{opacity:0;transform:translateY(4px)}}
.m3d .m3d-pin.open{z-index:5;padding:8px 10px 10px 8px!important}
.m3d .m3d-pin.open img{width:52px!important;height:52px!important}
.m3c-sp{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.m3c-sp i{font-style:normal;font-size:11.5px;font-weight:600;padding:5px 8px;border-radius:10px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.m3c-act{display:flex;gap:6px}
.m3c-act .btn{flex:1;min-height:36px!important;padding:6px 12px!important;font-size:13px!important;pointer-events:auto}
.m3c-act .btn.wa{flex:none;width:36px;padding:0!important;border-radius:50%}
/* keep the place bubbles on screen on phones */
@media (max-width:600px){.m3d .m3c-near i{max-width:118px;font-size:9.5px}}
.m3d .m3d-pin.open{display:grid!important;grid-template-columns:auto 1fr;align-items:center;column-gap:10px;min-width:240px}
.m3d .m3d-pin.open .m3c-more{grid-column:1 / -1}
@media (max-width:600px){.m3d .m3c-near i{max-width:136px}}
.m3d .m3d-pin.open img{min-width:52px;max-width:52px;aspect-ratio:1;object-fit:cover}
/* all places within 2 km as sub-points down the tower, left/right in turn (22 Nov 2026) */
.m3d .m3c-near i{top:calc(var(--row) * var(--step,30px) + 4px)!important}
/* project cards always above every other map sign (stations, malls, schools...); the open / focused one on top */
.maplibregl-marker:has(.m3d-pin){z-index:4}
.maplibregl-marker:has(.m3d-pin.sel){z-index:6}
.maplibregl-marker:has(.m3d-pin.open){z-index:8}
.maplibregl-marker:has(.apin){z-index:1}
/* sub-points only appear when the project's big card is open (22 Nov 2026) */
.m3d .m3d-pin .m3c-near,.m3d .m3d-pin.sel .m3c-near{visibility:hidden}
.m3d .m3d-pin .m3c-near i,.m3d .m3d-pin.sel .m3c-near i{opacity:0;transform:scale(.8)}
.m3d .m3d-pin.open .m3c-near{visibility:visible}
.m3d .m3d-pin.open .m3c-near i{opacity:1;transform:none}
