:root{font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#173f35}*{box-sizing:border-box}body{margin:0}main,#map{width:100%;height:100dvh}main{position:relative}#map{background:#e9eddf;z-index:0}button,input{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:#fffefa;border:1px solid #e1e5db;border-radius:10px;padding:9px 12px}button:hover{background:#edf3e8}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #c38942;outline-offset:2px}a{color:#25634e}button:disabled{opacity:.5} .map-tools{position:absolute;left:22px;top:max(22px,env(safe-area-inset-top));width:365px;max-width:calc(100% - 85px);z-index:600}.search-box{display:flex;align-items:center;gap:10px;padding:10px 15px;border:1px solid #e4e7dd;background:#fffefaf5;border-radius:14px;box-shadow:0 3px 18px #173f3520}.search-box>span{font-size:24px}.search-box input{width:100%;border:0;background:none;min-width:0;color:#173f35;padding:3px 0}.search-box button{padding:0 7px;border:0;background:transparent;font-size:20px}.anchors{display:flex;gap:5px;margin-top:9px;flex-wrap:wrap}.anchors button{font-size:11px;box-shadow:0 3px 15px #173f3518;padding:7px 9px}.anchors i{display:inline-grid;place-items:center;width:18px;height:18px;color:white;border-radius:50%;font-style:normal;margin-right:5px}#results{background:#fffefa;border-radius:12px;margin-top:5px;max-height:45dvh;overflow:auto;box-shadow:0 8px 25px #173f3525;padding:4px}#results button{display:block;text-align:left;width:100%;border:0;background:none}.names strong{display:block;font-size:14px}.names small{display:block;color:#66736c;font-weight:400;font-size:10px}.names .chinese{font-size:11px}#imagery-status{position:absolute;left:22px;bottom:24px;z-index:400;border-radius:7px;padding:5px 9px;background:#fffefad9;font-size:10px;color:#526358;pointer-events:none}.leaflet-control-zoom{margin:22px 20px 0 0!important}.leaflet-control-attribution{font-size:9px!important}.city-pin{border:0;background:transparent}.pin-core{display:grid;place-items:center;width:100%;height:100%;border:2px solid white;border-radius:50%;background:var(--color);box-shadow:0 2px 8px #0005;color:white;font-size:12px;overflow:hidden}.pin-core img{width:100%;height:100%;object-fit:cover}.photo-pin .pin-core{border:3px solid var(--color);outline:2px solid white;border-radius:9px}.important-pin .pin-core{font-size:21px;border-width:3px}.city-pin.selected .pin-core{outline:4px solid #ecae45}.place-label{border:0;box-shadow:0 1px 7px #183c2922;background:#fffefae8;border-radius:7px;padding:4px 8px;white-space:normal;min-width:110px;max-width:195px}.place-label strong{font-size:11px}.place-label small{font-size:9px}.important-label strong{font-weight:750}.leaflet-tooltip:before{display:none}#detail{position:absolute;right:22px;top:22px;width:340px;max-height:calc(100dvh - 75px);overflow:auto;background:#fffefa;border:1px solid #e4e7dd;border-radius:18px;z-index:700;box-shadow:0 10px 50px #173f3530}#detail .close{position:absolute;right:9px;top:9px;z-index:1;background:#fffefaf5;border-radius:50%;font-size:20px;line-height:25px;width:34px;height:34px;padding:0}.hero{width:100%;height:205px;object-fit:cover;display:block}.detail-body{padding:18px}.category{font-size:9px;text-transform:uppercase;letter-spacing:1.4px;color:#788273}h1{font-size:24px;line-height:1.2;margin:7px 28px 6px 0}.pinyin{font-size:13px;color:#65756a}.chinese{font-size:14px;color:#65756a}.detail-body p{font-size:12px;margin:12px 0;color:#526358}.photo-credit{font-size:9px;display:block;margin:8px 0}.detail-links{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.detail-links a{display:block;padding:8px 10px;background:#edf2e9;border-radius:8px;text-decoration:none;font-size:11px}.no-photo{padding:24px 18px 10px;color:#8345b5;background:#f1eaf5;font-size:12px}.photo-missing{font-size:11px;color:#788273}#street-hint{position:absolute;bottom:45px;left:22px;width:320px;max-width:calc(100% - 44px);z-index:450;background:#fffefaf5;border-radius:12px;padding:13px 32px 13px 15px;box-shadow:0 4px 25px #173f3520}#street-hint b,#street-hint span{display:block}#street-hint b{font-size:12px}#street-hint span{font-size:11px;color:#65756a;margin:4px 0 8px}#street-hint a{font-size:12px}#dismiss-street{position:absolute;top:5px;right:5px;border:0;background:none;padding:1px 6px;font-size:18px}#tile-error{position:absolute;bottom:45px;left:22px;z-index:800;background:#fff0d5;border-radius:8px;padding:10px;font-size:12px}[hidden]{display:none!important}
@media(max-width:760px){.map-tools{left:12px;top:max(12px,env(safe-area-inset-top));max-width:calc(100% - 65px);width:365px}.search-box{padding:8px 12px}.anchors{gap:4px;margin-top:6px}.anchors button{padding:5px 7px;font-size:10px}.anchors i{width:15px;height:15px;margin-right:3px}.leaflet-control-zoom{margin:12px 10px 0 0!important}#detail{left:10px;right:10px;top:auto;bottom:24px;width:auto;max-height:56dvh;border-radius:16px}.hero{height:155px}.detail-body{padding:13px 16px}h1{font-size:22px}.detail-body p{font-size:11px;margin:9px 0}.place-label{min-width:88px;max-width:145px;padding:3px 6px}.place-label strong{font-size:10px}.place-label small{font-size:8px}#imagery-status{left:12px;bottom:22px;font-size:9px}.leaflet-control-attribution{max-width:80vw;font-size:8px!important}#street-hint{left:12px;bottom:45px;max-width:calc(100% - 24px)}}

/* Place navigation only: no planner or layer controls. */
@media(min-width:761px){#map{position:absolute;left:340px;top:0;width:calc(100% - 340px)}main{background:#f4f6f0}.map-tools{left:16px;top:18px;width:308px;max-width:none}#imagery-status{left:358px}#street-hint{left:358px}#tile-error{left:358px}}
.map-tools{display:flex;flex-direction:column;max-height:calc(100dvh - 50px)}.search-box{flex-shrink:0}.anchors{flex-shrink:0}.anchors button{font-size:11px}#places-panel{margin-top:12px;background:#fffefaf5;border:1px solid #e1e5db;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-height:0}#places-panel summary{cursor:pointer;padding:12px 14px;font-weight:700;flex-shrink:0}#place-count{font-weight:400;font-size:11px;color:#66736c;margin-left:5px}#place-list{overflow:auto;overscroll-behavior:contain;padding:0 5px 8px;max-height:calc(100dvh - 245px)}.list-group{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:12px 10px 6px;color:#687a6d}.place-row{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;border-radius:9px;background:transparent;padding:9px}.place-row .names{flex:1;min-width:0}.place-row .names strong{font-size:13px}.place-row[aria-current]{background:#e7efdf;box-shadow:inset 3px 0 #286847}.list-dot{background:var(--color);width:12px;height:12px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;color:white;font-size:16px}.key-place .list-dot{width:30px;height:30px;box-shadow:0 0 0 3px #e6e9df}.go{color:#748773}.empty-results{padding:10px}.important-pin{isolation:isolate}.important-pin .pin-core{font-size:28px;border:4px solid white;box-shadow:0 0 0 7px color-mix(in srgb,var(--color) 28%,transparent),0 4px 14px #0006}.important-label{border-left:4px solid #173f35;background:#fffefa;box-shadow:0 2px 12px #173f3540;padding:7px 10px;min-width:140px}.important-label strong{font-size:13px}.important-label small{font-size:10px}
@media(max-width:760px){.map-tools{max-height:48dvh}.anchors button{font-size:10px}#places-panel{margin-top:7px}#places-panel summary{padding:8px 12px}#place-list{max-height:23dvh}.place-row{padding:7px}.place-row .names strong{font-size:12px}.important-label{min-width:105px;max-width:155px}.important-label strong{font-size:11px}.important-label small{font-size:9px}#detail{max-height:52dvh}}
