* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: -apple-system, "PingFang SC", "Noto Sans SC", sans-serif; color: #222; }
body { display: flex; flex-direction: column; }
header { padding: 10px 16px 4px; }
h1 { font-size: 18px; font-weight: 500; margin: 0; }
.sub { font-size: 12px; color: #777; margin-top: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 6px 16px 10px; font-size: 13px; border-bottom: 1px solid #eee; align-items: center; }
.filters label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.filters .range input { width: 140px; }
main { flex: 1; display: flex; min-height: 0; }
#map { flex: 1; min-height: 300px; }
aside { width: 380px; overflow-y: auto; border-left: 1px solid #eee; }
#count { font-size: 12px; color: #777; padding: 8px 12px; border-bottom: 1px solid #f2f2f2; position: sticky; top: 0; background: #fff; z-index: 1; }
#list { list-style: none; margin: 0; padding: 0; }
#list li { padding: 9px 12px; border-bottom: 1px solid #f2f2f2; cursor: pointer; font-size: 13px; line-height: 1.45; }
#list li:hover, #list li.active { background: #f7f6fd; }
#list li.sold { opacity: .5; }
.row1 { display: flex; justify-content: space-between; gap: 8px; }
.name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font-weight: 500; white-space: nowrap; }
.meta { color: #777; font-size: 12px; }
.tags { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 9px; white-space: nowrap; }
.t-aom { background: #E1F5EE; color: #085041; }
.t-abnb { background: #FBEAF0; color: #72243E; }
.t-free { background: #EAF3DE; color: #27500A; }
.t-zero { background: #E6F1FB; color: #0C447C; }
.t-sold { background: #F1EFE8; color: #444441; }
.t-new { background: #FAEEDA; color: #633806; }
.down { color: #3B6D11; font-size: 11px; }
.up { color: #A32D2D; font-size: 11px; }
.old { color: #999; text-decoration: line-through; font-weight: 400; font-size: 11px; margin-right: 3px; }
footer { font-size: 11px; color: #888; padding: 6px 16px; border-top: 1px solid #eee; }
.pin { border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.pin-aom { background: #1D9E75; }
.pin-abnb { background: #D4537E; }
.pin-sold { background: #B4B2A9; }
.pin-venue { background: #D85A30; }
.sq-sight { background: #EF9F27; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.sq-station { background: #378ADD; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.leaflet-tooltip.lbl { background: transparent; border: none; box-shadow: none; font-size: 11px; font-weight: 500; padding: 0; }
.lbl-sight { color: #854F0B; } .lbl-station { color: #0C447C; } .lbl-venue { color: #993C1D; font-size: 12px; }
.popup b { font-weight: 500; } .popup a { color: #534AB7; }
@media (max-width: 760px) {
  main { flex-direction: column; }
  #map { flex: none; height: 55vh; }
  aside { width: auto; border-left: none; border-top: 1px solid #eee; }
}
