:root{--navy:#0d1b2a;--gold:#c8a45c;--ink:#1b2430;--muted:#6b7480;--card:#fff}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--navy)}
#bg{position:fixed;inset:0;z-index:-1}.bgimg{position:absolute;inset:0;background-size:cover;background-position:center;transition:opacity 2s;opacity:0}
.bgimg.on{opacity:1}.shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,16,28,.18),rgba(8,16,28,.5))}
.hidden{display:none!important}.glass{background:rgba(255,255,255,.94);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.brand{font-family:'Playfair Display',serif;font-weight:700;color:#fff;font-size:22px;letter-spacing:.5px}.brand span{color:var(--gold)}
#login{min-height:100vh;display:flex;align-items:center;justify-content:center}.login{width:380px;padding:36px;text-align:center}
.login .brand{color:var(--navy);font-size:34px}.sub{color:var(--muted);font-size:12px;letter-spacing:2px;text-transform:uppercase;margin:6px 0 18px}
.lead{color:#3a4450;font-size:14px}.msg{color:#b03030;font-size:13px;min-height:18px}.note{font-size:11px;color:var(--muted);margin-top:8px}
input,select{width:100%;padding:10px 12px;border:1px solid #d6dbe1;border-radius:10px;font:inherit;font-size:14px;margin:5px 0;background:#fff}
button{width:100%;padding:11px;border:0;border-radius:10px;background:var(--navy);color:#fff;font-weight:600;cursor:pointer;margin:5px 0}
button.ghost{background:transparent;color:var(--navy);border:1px solid #cfd5dc}
header{display:flex;align-items:center;gap:30px;padding:16px 32px;background:rgba(8,16,28,.6);backdrop-filter:blur(8px);position:sticky;top:0;z-index:1000}
nav a{color:#dfe5ec;margin-right:20px;cursor:pointer;font-weight:500;padding-bottom:4px}nav a.on{color:#fff;border-bottom:2px solid var(--gold)}
.who{margin-left:auto;color:#cfd6de;font-size:13px}.who a{color:var(--gold);margin-left:12px;cursor:pointer}
.hero{padding:40px 32px 20px;color:#fff}.hero h1{font-family:'Playfair Display',serif;font-size:40px;margin:0}.hero p{color:#cfd6de}
#app{display:grid;grid-template-columns:300px 1fr;grid-template-areas:"h h" "hero hero" "f m" "ft ft"}header{grid-area:h}.hero{grid-area:hero}
#filters{grid-area:f;margin:0 0 30px 32px;padding:18px;align-self:start;position:sticky;top:80px}main{grid-area:m;padding:0 32px 30px 24px}
footer{grid-area:ft;color:#9aa5b1;font-size:11px;padding:16px 32px}footer a{color:var(--gold)}
.row{display:flex;gap:8px;align-items:center}.chk{font-size:13px;white-space:nowrap;display:flex;gap:6px;align-items:center}.chk input{width:auto}
details{margin:6px 0;font-size:13px}summary{cursor:pointer;font-weight:600;padding:6px 0}.agrp{font-size:11px;text-transform:uppercase;color:var(--muted);margin-top:6px}
.count{color:#fff;margin-bottom:12px;font-size:14px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.card{background:var(--card);border-radius:14px;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:6px}
.card .rent{font-size:24px;font-weight:700;color:var(--navy)}.card .bld{font-weight:600}.card .meta{color:var(--muted);font-size:13px}
.tag{display:inline-block;font-size:11px;padding:3px 8px;border-radius:20px;background:#eef1f5;margin:2px 3px 0 0}.tag.op{background:#e8f5ec;color:#1f7a3f}.tag.pop{background:#fff4dc;color:#8a6110}.tag.inc{background:#f6ecdc;color:#7a5520}
.card .co{font-size:12px;border-top:1px solid #eef0f3;padding-top:8px;margin-top:auto}.card a{color:#1d4e89}
#map{height:70vh;border-radius:14px}.pad{padding:24px}table{width:100%;border-collapse:collapse;font-size:13px}td,th{border-bottom:1px solid #eee;padding:6px;text-align:left}
td button{width:auto;padding:4px 10px;font-size:12px;margin:0 2px}#more{width:200px;margin:20px auto;display:block;color:#fff;border-color:#fff6}
.logo{width:100%;max-width:320px;margin:0 auto 18px;display:block}.hlogo{height:30px;background:#fff;padding:4px 10px;border-radius:8px}.login{width:420px}
.title{font-family:'Playfair Display',serif;color:var(--navy);font-size:26px;margin:0 0 6px}.lead{font-weight:600}.login .brand.big{font-size:22px;margin-top:10px}

.credit{margin-top:6px;color:#c8a45c;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
footer b{color:#c8a45c}
#filters .fh{font-family:'Playfair Display',serif;font-size:20px;color:#0d1b2a;margin-bottom:6px;border-bottom:2px solid #c8a45c;padding-bottom:6px}
#filters .fl{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6b7280;margin:10px 0 3px;font-weight:600}
.notice{background:linear-gradient(90deg,#c8a45c,#e3c98a);color:#0d1b2a;font-weight:600;padding:10px 16px;border-radius:10px;margin-bottom:12px;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.card.lc{padding:0;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.card.lc:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.35)}
.card.lc .ph{height:110px;background-size:cover;background-position:center;position:relative}
.card.lc .ph:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,27,42,.1),rgba(13,27,42,.75))}
.rentb{position:absolute;left:14px;bottom:10px;z-index:1;color:#fff;font:700 24px 'Playfair Display',serif}.rentb small{font:400 12px Inter;opacity:.8;margin-left:3px}
.srcb{position:absolute;right:10px;top:10px;z-index:1;background:rgba(13,27,42,.8);color:#c8a45c;font-size:11px;padding:3px 8px;border-radius:20px;border:1px solid #c8a45c}
.card.lc .cb{padding:14px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.warn{margin-top:auto;font-size:12px;font-weight:700;color:#0d1b2a;background:linear-gradient(90deg,#c8a45c,#e3c98a);padding:6px 10px;border-radius:6px;text-align:center}
.own{font-size:12px;background:#eef3fb;padding:5px 8px;border-radius:4px}
nav{flex-wrap:nowrap}nav a{white-space:nowrap;font-size:13.5px;padding:6px 9px!important}header .brand{white-space:nowrap;font-size:20px}.who{white-space:nowrap;font-size:12px}
html,body{overflow-x:hidden;max-width:100vw}header{gap:10px}header nav{flex:1;justify-content:center;min-width:0}

.fbtn,.fclose{display:none}
@media (max-width:820px){
 body{font-size:15px}
 header{flex-wrap:wrap;padding:8px 10px!important;gap:6px}
 header .hlogo{height:26px}header .brand{font-size:17px}.who{order:2;margin-left:auto;font-size:11px}
 header nav{order:3;flex:1 1 100%;overflow-x:auto;-webkit-overflow-scrolling:touch;justify-content:flex-start;scrollbar-width:none}
 header nav::-webkit-scrollbar{display:none}
 .hero{padding:12px 14px!important}.hero h1{font-size:22px!important}
 #app{display:block!important}
 main{padding:0 10px 20px!important;width:auto!important;margin:0!important}
 .cards{grid-template-columns:1fr!important}
 .fbtn{display:block;position:sticky;top:6px;z-index:40;margin:8px 10px;width:calc(100% - 20px);padding:12px;border-radius:10px;border:0;background:#c8a45c;color:#0d1b2a;font-weight:700;font-size:16px}
 #filters{position:fixed!important;left:0;right:0;bottom:0;top:auto!important;max-height:85vh;overflow-y:auto;z-index:1000;border-radius:16px 16px 0 0;transform:translateY(105%);transition:transform .25s;width:auto!important;margin:0!important}
 #filters.open{transform:none}
 .fclose{display:block;width:100%;margin-bottom:8px;padding:10px;border:0;border-radius:8px;background:#0d1b2a;color:#c8a45c;font-weight:700}
 #filters input,#filters select{font-size:16px;min-height:42px}
 #map{height:70vh!important}
 table{display:block;overflow-x:auto}
 .login{width:auto!important;margin:20px 12px!important;padding:22px!important}.title{font-size:24px!important}.logo{max-width:100%}
 footer{font-size:11px;padding:10px}
 .co a,.own a{display:inline-block;padding:3px 0}
}#who{display:inline-block;max-width:170px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}header nav{overflow-x:auto;scrollbar-width:none}.who{flex:0 0 auto;position:relative;z-index:2}

/* Home view */
.homelink{display:flex;align-items:center;gap:12px;cursor:pointer;text-decoration:none}
#homeView{display:none;grid-column:1/-1;min-height:calc(100vh - 70px);padding:40px 16px;align-items:center;justify-content:center}
body.home #homeView{display:flex}
body.home #app>:not(header):not(#homeView){display:none!important}
.hcard{max-width:760px;width:100%;text-align:center;color:#fff;background:rgba(8,16,28,.55);backdrop-filter:blur(6px);border-radius:20px;padding:36px 28px;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.hcard .hl{max-width:340px;width:80%;background:#fff;border-radius:10px;padding:8px 14px;margin-bottom:18px}
.hcard h1{font-family:'Playfair Display',serif;font-size:40px;line-height:1.15;margin:0 0 10px}
.hsub{font-size:17px;color:#dfe5ec;margin:0 0 18px}.hbrand{font-family:'Playfair Display',serif;font-size:30px;font-weight:700}.hbrand span{color:#d4b06a}
.hest{letter-spacing:.25em;font-size:12px;color:#c9d2dc;margin-top:4px}.hcred{letter-spacing:.12em;text-transform:uppercase;font-size:12px;color:#d4b06a;margin-top:8px}
.hgo{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:26px}
.hgo button{background:#fff;color:#0e1a2b;border:0;border-radius:12px;padding:16px 10px;font:600 15px Inter,sans-serif;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px}
.hgo button small{font-weight:500;font-size:11px;color:#7a6a40;margin-top:2px}.hgo button:hover{background:#d4b06a}.hgo button.adm{background:#d4b06a}
.hcount{margin-top:16px;font-size:13px;color:#c9d2dc}
@media(max-width:760px){.hcard{padding:24px 16px}.hcard h1{font-size:28px}.hsub{font-size:15px}.hbrand{font-size:24px}.hgo{grid-template-columns:1fr 1fr;gap:10px}#homeView{padding:18px 10px;min-height:auto}}
/* review batch 10/23 */
header{flex-wrap:wrap;row-gap:6px}header nav{display:flex;flex:1 1 420px;overflow-x:auto;min-width:0}.who{margin-left:auto;flex:0 0 auto}
.hero h1,.hero p,.count,.cocon,#coDetail h2,#coDetail h3{text-shadow:0 2px 8px rgba(0,0,0,.85)}
.count{background:rgba(8,16,28,.6);display:inline-block;padding:4px 10px;border-radius:8px}
#coDetail h3{background:rgba(8,16,28,.6);padding:6px 10px;border-radius:8px}
.fgo{background:#c8a45c;color:#0d1b2a;font-size:16px;font-weight:700;margin-top:10px}
.bnote{font-size:12px;font-weight:700;color:#8a1c1c;background:#fde8e8;border:1px solid #f3b5b5;padding:6px 8px;border-radius:6px;margin:4px 0}
.tag.noam{background:#fff4dc;color:#7a5520}
.costrip{padding:10px 14px;margin-bottom:14px}#coNames{display:flex;gap:6px;overflow-x:auto;padding:6px 0 8px;-webkit-overflow-scrolling:touch}
#coNames a{flex:0 0 auto;white-space:nowrap;background:#0d1b2a;color:#fff;padding:7px 12px;border-radius:18px;font-size:13px;cursor:pointer}#coNames a:hover{background:#c8a45c;color:#0d1b2a}
#coUpd{margin:10px 0 16px;max-height:none}#coUpd details{border-top:1px solid #e5e8ec;padding:4px 0}.updt{white-space:pre-wrap;font-size:12px;max-height:480px;overflow:auto;background:#f7f8fa;padding:10px;border-radius:8px}
.cocon{color:#fff}.cocon a{color:#e3c98a}
@media (max-width:820px){body{padding-bottom:84px}main,footer{padding-bottom:84px!important}#filters{padding-bottom:90px!important}#more{margin-bottom:40px}}
.vl{display:block;text-align:center;background:#0d1b2a;color:#fff!important;font-weight:700;font-size:14px;padding:10px;border-radius:8px;text-decoration:none;margin-top:4px}.vl:hover{background:#c8a45c;color:#0d1b2a!important}
/* brighter backgrounds (10/23 v2) */
.bgimg{filter:brightness(1.18) saturate(1.08)}.shade{background:linear-gradient(180deg,rgba(8,16,28,.05),rgba(8,16,28,.22))!important}
header{background:rgba(8,16,28,.78)}.hcard{background:rgba(8,16,28,.62)}
.hero{background:rgba(8,16,28,.55);border-radius:14px;margin:14px 32px 10px;padding:16px 22px!important}
.count,.cocon,#coDetail h2,#coDetail h3{background:rgba(8,16,28,.72);padding:6px 12px;border-radius:8px;display:inline-block}
footer{background:rgba(8,16,28,.75);color:#dfe5ec}
@media (max-width:820px){.hero{margin:8px 10px}}
/* independent filter scroll (desktop/tablet) */
@media (min-width:821px){#filters{position:sticky!important;top:var(--hh,72px);max-height:calc(100vh - var(--hh,72px) - 16px);overflow-y:auto;overscroll-behavior:contain}}
.leaflet-control-zoom a{width:40px!important;height:40px!important;line-height:40px!important;font-size:22px!important}
/* sticky fix: hidden overflow on html/body made them scroll containers */
html,body{overflow-x:clip!important;overflow-y:visible!important}
#app{overflow:visible!important}
@media (min-width:821px){#filters{position:sticky!important;top:var(--hh,72px)!important;max-height:calc(100vh - var(--hh,72px) - 12px)!important;overflow-y:auto!important;overscroll-behavior:contain;align-self:start}}
/* two-pane search view >=600px */
@media (min-width:600px){
 html:has(body.sv:not(.home)),body.sv:not(.home){height:100dvh!important;overflow:hidden!important;padding-bottom:0!important}
 body.sv:not(.home) #app{display:grid!important;height:100dvh!important;overflow:hidden!important;grid-template-columns:minmax(240px,300px) 1fr!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;grid-template-areas:"h h" "hero hero" "f m" "ft ft"!important}
 body.sv:not(.home) #filters,body.sv:not(.home) main{min-height:0!important;height:100%!important;max-height:none!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
 body.sv:not(.home) #filters{position:static!important;transform:none!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;width:auto!important;z-index:auto;border-radius:12px;margin:0 0 8px 12px!important;padding-bottom:18px!important;align-self:stretch;box-sizing:border-box}
 body.sv:not(.home) main{padding:0 16px 16px 16px!important;align-self:stretch}
 body.sv:not(.home) footer{padding:6px 16px!important;font-size:11px}
 body.sv:not(.home) .fbtn,body.sv:not(.home) #fclose{display:none!important}
}
@media (min-width:600px){body.sv:not(.home) .hero{padding:10px 16px 6px!important}body.sv:not(.home) .hero h1{font-size:24px!important}}
/* v3 independent filter scroll: always-visible scrollbar + full-height phone drawer */
#filters{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#c8a45c rgba(0,0,0,.08)}
#filters::-webkit-scrollbar{width:8px;-webkit-appearance:none}#filters::-webkit-scrollbar-thumb{background:#c8a45c;border-radius:8px}#filters::-webkit-scrollbar-track{background:rgba(0,0,0,.06)}
@media (max-width:599px){
 #filters{top:0!important;bottom:0!important;height:100vh!important;height:100dvh!important;max-height:none!important;border-radius:0!important;overflow-y:scroll!important;touch-action:pan-y;padding-bottom:calc(40px + env(safe-area-inset-bottom))!important;box-sizing:border-box}
 #fclose{position:sticky;top:0;z-index:5}
 html.fopen,body.fopen{overflow:hidden!important;height:100%!important}
}
/* v4: Search Now always reachable + extra bottom room (window may extend under Windows taskbar) */
@media (min-width:600px){
 body.sv:not(.home) #filters{touch-action:pan-y!important;pointer-events:auto!important;padding-bottom:160px!important}
 body.sv:not(.home) #filters .fgo{position:sticky;bottom:8px;z-index:6;box-shadow:0 -6px 16px rgba(255,255,255,.9)}
 #fgoTop{display:block!important;position:sticky;top:0;z-index:7;width:100%;margin:0 0 10px}
}
#fgoTop{display:none}
/* v5 phone pass (<600px only; desktop untouched) */
#mbar{display:none}
@media (max-width:599px){
 html,body{-webkit-text-size-adjust:100%}
 body.sv .hero,body.mp .hero{padding:8px 12px!important;margin:6px 8px!important}body.sv .hero h1,body.mp .hero h1{font-size:18px!important;margin:0}body.sv .hero p,body.mp .hero p{font-size:12px;margin:2px 0 0}
 #fbtn{display:none!important}
 #mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:900;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(13,27,42,.96);box-shadow:0 -4px 14px rgba(0,0,0,.25)}
 body.home #mbar{display:none}
 #mbar button{flex:1;min-height:48px;border:0;border-radius:12px;font:700 16px Inter,sans-serif;background:#c8a45c;color:#0d1b2a}
 #mbar button.alt{background:#fff}
 .card.lc{font-size:15px}.card.lc a[href^="tel:"],.card.lc a[href^="mailto:"]{display:inline-block;min-height:40px;line-height:40px;padding:0 4px;word-break:break-all}
 .card.lc button,.card.lc a.btn,#cards .ghost,#more{min-height:48px;font-size:16px}
 .card.lc .ph{height:150px}
 #cards img{max-width:100%;height:auto}
 #map{height:calc(100dvh - 190px)!important;min-height:360px;border-radius:10px}
 .leaflet-popup-content{font-size:15px;line-height:1.4;max-width:78vw!important;max-height:55vh;overflow:auto}
 .leaflet-popup-content a{display:inline-block;min-height:36px;line-height:36px}
 #filters .fgo{position:sticky;bottom:0;z-index:6;min-height:52px;font-size:17px;box-shadow:0 -8px 16px rgba(255,255,255,.95)}
 #filters{padding-bottom:calc(16px + env(safe-area-inset-bottom))!important}
 #filters.open~#mbar,body.fopen #mbar{display:none}
 table{font-size:13px}#v-admin input,#v-admin button{min-height:44px;font-size:16px}#v-admin .row{flex-wrap:wrap}
 .login input,.login button{min-height:48px;font-size:16px!important}
}
/* v6: single Search Now, normal button at the very end of the panel */
#filters .fgo,body.sv:not(.home) #filters .fgo{position:static!important;bottom:auto!important;box-shadow:none!important;margin-top:16px;z-index:auto}
@media (min-width:600px){body.sv:not(.home) #filters{padding-bottom:20px!important}}
/* v7: OP / incentive highlight */
.opbadge{display:inline-block;background:#16a34a;color:#fff;font-weight:800;letter-spacing:.04em;padding:4px 10px;border-radius:999px;font-size:12px}
#fop{border:2px solid #16a34a!important;font-weight:700;color:#0f5132}
#fop.hi{background:#16a34a!important;color:#fff!important}
#fop option{color:#111;background:#fff}
.tag.op,.tag.pop{background:#16a34a!important;color:#fff!important;font-weight:800!important;border:0!important;padding:3px 10px!important;border-radius:999px!important}
.tag.pop{background:#22c55e!important}
.tag.inc{background:#f97316!important;color:#fff!important;font-weight:800!important;border:0!important;padding:3px 10px!important;border-radius:999px!important}
.tag.inc a{color:#fff!important}
.leaflet-popup-content .tag{font-size:12px;margin-left:2px}
.tag.nnote{background:#eef2f7!important;color:#334155!important;font-weight:500;white-space:normal}
#filters{background:#fff!important;backdrop-filter:none!important}

/* Management tab: vertical searchable index, no horizontal scroll */
.mgidx{margin-bottom:16px}.mgh{margin:0 0 10px;font-family:Playfair Display;color:#0d1b2a}
#coQ{width:100%;box-sizing:border-box;font-size:16px;padding:12px 14px;border:1px solid #cfd6de;border-radius:10px;margin-bottom:6px}
#coIdx{margin-top:10px;column-width:340px;column-gap:22px}
.mgco{break-inside:avoid;padding:10px 0;border-top:1px solid #e5e8ec}
.mgn{font-weight:700;font-size:16px;color:#0d1b2a;cursor:pointer;text-decoration:underline;text-decoration-color:#c8a45c;text-underline-offset:3px}.mgn:hover{color:#8a6a1f}
.mgb{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.mgb a{background:#eef2f6;color:#0d1b2a;padding:5px 10px;border-radius:14px;font-size:13px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.mgb a i{font-style:normal;color:#8a6a1f;font-weight:700}.mgb a:hover{background:#c8a45c}
.mghead{margin-bottom:14px}.mghead h2{margin:8px 0 2px;font-family:Playfair Display;color:#0d1b2a;overflow-wrap:anywhere}
.mgback{width:auto!important;color:#0d1b2a!important;margin-right:8px}
.mgbh{color:#fff;overflow-wrap:anywhere}.mgbh span{color:#c8a45c;font-size:13px}
.ukind{display:inline-block;font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px;margin:0 4px}
.ukind.lf{background:#dbeafe;color:#1e3a8a}.ukind.mu{background:#ede9fe;color:#5b21b6}
#coUpd summary{cursor:pointer;overflow-wrap:anywhere}
@media(max-width:700px){#coIdx{column-width:auto;columns:1}.updt{font-size:11px}}
