:root{--bg:#f6f4ef;--card:#fff;--ink:#23303a;--mute:#6b7782;--line:#e3dfd6;--accent:#1f7a8c;--accent2:#e4f1f4;--good:#2e8b57;--warn:#d98e04;--bad:#b4443a;--ebru:#7b4fb3}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg);display:flex;flex-direction:column}
h1{font-size:1.25rem;margin:0}h2{font-size:1rem;margin:0 0 .5rem}h3{font-size:.95rem;margin:1rem 0 .3rem;color:var(--accent)}
a{color:var(--accent)}
button{font:inherit;cursor:pointer}
header#top{display:flex;align-items:center;gap:.75rem;padding:.55rem 1rem;background:#fff;border-bottom:1px solid var(--line);z-index:1200}
.brand{flex:1;min-width:0}.sub{color:var(--mute);font-size:.82rem}
.hdr-right{display:flex;gap:.5rem;align-items:center}
.pill{background:var(--accent2);color:var(--accent);padding:.2rem .6rem;border-radius:99px;font-size:.82rem;font-weight:600}
.hbtn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:.35rem .7rem}
main{flex:1;display:flex;min-height:0;position:relative}
.panel{background:var(--bg);overflow:auto;padding:.8rem;z-index:1100}
#left{width:350px;border-right:1px solid var(--line);flex:none}
#right{width:440px;border-left:1px solid var(--line);flex:none;background:#fff}
#right.hidden{display:none}
#mapWrap{flex:1;position:relative;min-width:0}
#map{position:absolute;inset:0}
.hidden{display:none!important}
.mobile-only{display:none}
.link{background:none;border:0;color:var(--accent);text-decoration:underline;font-size:.8rem;margin-left:.4rem}
.frow{margin:.5rem 0}.frow label{display:block;font-size:.85rem;color:var(--mute)}
.frow input[type=range]{width:100%}
.frow select{padding:.25rem;border-radius:6px}
.checks{display:grid;grid-template-columns:1fr 1fr;gap:.25rem .5rem;font-size:.88rem}
.hint{font-size:.8rem;color:var(--mute);margin:.5rem 0 0}
.tabs{display:flex;gap:2px;margin:.8rem 0 .5rem;border-bottom:2px solid var(--line)}
.tabs button{flex:1;border:0;background:none;padding:.5rem .2rem;font-size:.85rem;color:var(--mute);border-bottom:3px solid transparent;margin-bottom:-2px}
.tabs button.on{color:var(--accent);border-color:var(--accent);font-weight:700}
.item{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:.55rem .7rem;margin:.4rem 0;cursor:pointer;display:flex;gap:.6rem;align-items:center}
.item:hover{border-color:var(--accent)}
.item .t{font-weight:600}.item .s{font-size:.8rem;color:var(--mute)}
.item .grow{flex:1;min-width:0}
.score{min-width:2rem;height:2rem;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;flex:none}
.rank{color:var(--mute);font-size:.8rem;width:1.6rem;flex:none}
.badge{display:inline-block;font-size:.74rem;font-weight:600;padding:.12rem .5rem;border-radius:99px;margin:0 .25rem .2rem 0}
.b-ok{background:#e1f3e8;color:#1d6b40}.b-warn{background:#fdf0d2;color:#8a5a00}.b-bad{background:#f6dcd9;color:#8b2c22}.b-ebru{background:#ece3f7;color:var(--ebru)}.b-star{background:#fff3c4;color:#7a5a00}
.star{border:0;background:none;font-size:1.3rem;color:#c9c3b5;line-height:1;padding:0 .2rem}.star.on{color:#f2b01e}
.card{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:.7rem 0;background:#fff}
.card.sel{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent2)}
.card.gone{opacity:.7}
.card .ph{height:150px;background:#e9e6de;display:flex;align-items:center;justify-content:center;color:var(--mute);font-size:.85rem;overflow:hidden}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card .bd{padding:.6rem .75rem}
.price{font-size:1.2rem;font-weight:700}
.specs{color:var(--mute);font-size:.88rem}
.bigbtn{display:block;text-align:center;background:var(--accent);color:#fff!important;text-decoration:none;padding:.6rem;border-radius:9px;font-weight:700;margin:.5rem 0}
.sbtn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:.3rem .6rem;font-size:.82rem}
textarea.note{width:100%;min-height:48px;border:1px solid var(--line);border-radius:8px;padding:.4rem;font:inherit;font-size:.85rem;margin-top:.3rem}
.kv{display:grid;grid-template-columns:130px 1fr;gap:.2rem .6rem;font-size:.88rem}.kv dt{color:var(--mute)}.kv dd{margin:0}
ul.tight{margin:.2rem 0;padding-left:1.1rem}ul.tight li{margin:.1rem 0}
.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:.4rem 0}
.photos img{width:100%;height:80px;object-fit:cover;border-radius:6px}
.linkrow{display:flex;gap:.5rem;flex-wrap:wrap;margin:.4rem 0}
.linkrow a{border:1px solid var(--accent);border-radius:8px;padding:.3rem .65rem;text-decoration:none;font-size:.85rem}
.navbar{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:1000;background:#fff;border-radius:99px;box-shadow:0 2px 10px rgba(0,0,0,.25);display:flex;align-items:center;gap:.4rem;padding:.25rem}
.navbar button{border:0;background:var(--accent);color:#fff;border-radius:50%;width:34px;height:34px}
.navbar span{font-size:.85rem;padding:0 .4rem;white-space:nowrap}
.legend{position:absolute;left:10px;bottom:24px;z-index:1000;background:#fff;border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.25);padding:.6rem .8rem;font-size:.82rem;max-width:260px}
.legend div{margin:.2rem 0;display:flex;align-items:center;gap:.5rem}
.sw{width:18px;height:12px;border-radius:3px;display:inline-block;flex:none}
.pin{width:22px;height:22px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.45);display:block}
.pin.act{background:var(--good)}.pin.unc{background:var(--warn)}.pin.gone{background:#999}
.pin.ebru{border-color:var(--ebru);border-width:3px}
.pin.sel{width:30px;height:30px}
.lg-pin{width:14px;height:14px}
.starmk{font-size:30px;color:#f2b01e;text-shadow:0 0 3px #000,0 0 2px #000;line-height:30px;text-align:center}
.brick{background:#23303a;color:#fff;font-weight:700;font-size:12px;padding:3px 7px;border-radius:6px;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.clabel{background:rgba(255,255,255,.85);border:0;box-shadow:none;font-size:11px;font-weight:600;padding:1px 4px;color:#23303a}
.paper details{background:#fff;border:1px solid var(--line);border-radius:10px;margin:.4rem 0;padding:.4rem .7rem}
.paper summary{font-weight:600;cursor:pointer}
.paper p,.paper li{font-size:.88rem}
.drawer-close{float:right;border:1px solid var(--line);background:#fff;border-radius:8px;padding:.2rem .6rem;margin-bottom:.4rem}
.src li{word-break:break-all;font-size:.82rem}
.lbl{font-size:.75rem;color:var(--mute)}
@media(max-width:820px){
  .mobile-only{display:inline-block}
  #left{position:fixed;top:52px;bottom:0;left:0;width:88%;max-width:380px;transform:translateX(-102%);transition:transform .2s;box-shadow:2px 0 12px rgba(0,0,0,.3)}
  #left.open{transform:none}
  #right{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;height:68vh;border-radius:14px 14px 0 0;box-shadow:0 -2px 12px rgba(0,0,0,.3)}
  .sub{display:none}
  .navbar{top:auto;bottom:12px}
  .legend{bottom:70px}
}

/* Homes-for-rent quick list at the top of the community panel */
.topHomes{background:#f1f8f3;border:1px solid #cfe6d6;border-radius:10px;padding:.2rem .8rem .6rem;margin:.6rem 0}
.homeLinks li{margin:.45rem 0;line-height:1.4}
.homeLinks a{font-weight:600}

/* Save (heart) button */
.savebtn{border:1.5px solid #e0245e;background:#fff;color:#e0245e;border-radius:99px;min-height:36px;padding:.3rem .9rem;font-weight:700;font-size:.88rem;white-space:nowrap;flex:none}
.savebtn.on{background:#e0245e;color:#fff}
.favcount{display:inline-block;background:#e0245e;color:#fff;border-radius:99px;font-size:.7rem;font-weight:700;padding:0 .4rem;min-width:1.2rem}
.head .savebtn{margin:.3rem 0}
/* Fit bullets and who lives here */
.fitbox,.whobox{border:1px solid var(--line);border-radius:10px;padding:.3rem .8rem .6rem;margin:.6rem 0;background:#fff}
.whobox{background:#f7f5fb}
.rankline{margin:.3rem 0}
.fitbox h3{margin:.5rem 0 .2rem}.fitbox .gd{color:var(--good)}.fitbox .bd2{color:var(--bad)}
ul.fit{list-style:none;margin:.2rem 0;padding:0}
ul.fit li{position:relative;padding-left:1.4rem;margin:.2rem 0;font-size:.88rem}
ul.fit li:before{position:absolute;left:0;font-weight:700}
ul.fit li.ok:before{content:"\2713";color:var(--good)}
ul.fit li.bad:before{content:"\2717";color:var(--bad)}
ul.fit li.warn:before{content:"!";color:var(--warn);left:.25rem}

/* Going out */
.gomk{display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.5);color:#fff;line-height:1}
.lg-go{width:18px;height:18px;font-size:10px;flex:none}
.lg-h{font-weight:700;margin-top:.4rem!important}
.gotip{background:#fff;border:1px solid #444;color:#23303a;font-weight:700;font-size:11px;padding:0 4px;box-shadow:none}
.gobox{border:1px solid var(--line);border-radius:10px;padding:.3rem .8rem .6rem;margin:.6rem 0;background:#fff8ef}
#dineRow{grid-column:1 / -1}
