
.map-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#amenities-toggle{margin-left:auto;display:flex;gap:9px;align-items:center;border:1px solid #788e7d;border-radius:30px;padding:7px 12px;background:#f6f7f2;color:#293c35;font:600 12px sans-serif;min-height:36px}
#amenities-toggle span{border-radius:20px;background:#777f78;color:white;padding:3px 8px}
#amenities-toggle[aria-checked=true]{background:#293c35;color:white}
#amenities-toggle[aria-checked=true] span{background:#e6ab71;color:#293c35}
#amenities-toggle:focus-visible{outline:3px solid #d98f50;outline-offset:3px}
#amenities-status{margin:2px 4px;font-size:11px;color:#425449}
#amenities-layer{pointer-events:none}#amenities-layer text{font:600 15px sans-serif;paint-order:stroke;stroke:white;stroke-width:4px;fill:#293c35}
@media(hover:hover) and (pointer:fine){.map-panel,.map-panel svg,.map-panel .parcel,.map-panel .parcel *{cursor:url('/assets/rensheng-head-cursor-v1.png') 24 24,pointer}.editing-labels .draggable-name,.editing-labels .draggable-name *{cursor:grab!important}}

.parcel[data-id="shenghan"]:not(.active):not(:focus-visible) .top polygon{fill:#999b97}

@media(pointer:fine),(any-pointer:fine){html,body,.map-panel,.map-panel svg,.map-panel svg *{cursor:url('/assets/rensheng-head-cursor-v2.cur') 16 16,url('/assets/rensheng-head-cursor-v2.png') 16 16,auto!important}.editing-labels .draggable-name,.editing-labels .draggable-name *{cursor:grab!important}}

/* Suppress only the road label touching each selected raised parcel. */
svg[data-selected-parcel="wenxin"] .road-label[data-id="road-sixing71"],
svg[data-selected-parcel="xinjianzhu"] .road-label[data-id="road-shunde-n"],
svg[data-selected-parcel="onehouse"] .road-label[data-id="road-heji"],
svg[data-selected-parcel="jin-hua"] .road-label[data-id="road-rijian"]{visibility:hidden}

/* Keep the touch toolbar above the map, but below the information card. */
.map-panel .map-note{position:relative;z-index:3;pointer-events:none}
#amenities-toggle{pointer-events:auto;touch-action:manipulation;flex-shrink:0}
@media(max-width:700px),(orientation:landscape) and (max-height:600px) and (pointer:coarse){
 .map-panel .map-note{display:flex;position:absolute;top:8px;left:8px;right:auto;width:auto;margin:0;padding:0}
 .map-panel .map-note>:not(.amenity-switches){display:none}
 #amenities-toggle{margin:0;min-height:44px;min-width:104px;padding:9px 14px;background:#fffdf5;box-shadow:0 2px 8px #293c351a}
}
@media(pointer:coarse){#amenities-toggle{min-height:44px;min-width:104px}}

/* Reserve a toolbar above the information rail, outside the map's drawing area. */
.amenities-toolbar{display:none}
.amenity-switches{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;pointer-events:auto}
.amenity-switches #amenities-toggle{margin-left:0;white-space:nowrap}
@media(min-width:701px){
 .layout{position:relative}
 .amenities-toolbar{display:flex;position:absolute;top:0;right:0;width:clamp(240px,20vw,360px);min-width:max-content;height:40px;align-items:center;justify-content:flex-end;z-index:3}
 .amenities-toolbar #amenities-toggle{margin:0;min-height:32px;min-width:0;padding:4px 10px;font-size:11px;gap:6px;box-shadow:none}
 .amenities-toolbar #amenities-toggle span{padding:2px 7px}
 .inline-details{margin-top:40px;max-height:calc(100% - 40px)}
}
@media(min-width:701px) and (min-height:601px){
 .amenities-toolbar{width:clamp(240px,16.6vw,340px)}
}
@media(min-width:701px) and (max-height:600px){
 .amenities-toolbar{right:6px;width:min(440px,52%)}
 .inline-details{top:44px;margin-top:0;max-height:calc(100% - 50px)}
}
@media(min-width:701px) and (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 .map-panel svg{top:40px;height:calc(100% - 40px)}
}

/* Independent bicycle station switch beside the amenities switch. */
#youbike-toggle{display:flex!important;align-items:center;gap:6px;margin:0;border:1px solid #788e7d;border-radius:30px;padding:4px 10px;background:#f6f7f2;color:#293c35;font:600 11px sans-serif;min-height:32px;pointer-events:auto;touch-action:manipulation;flex-shrink:0;white-space:nowrap}
#youbike-toggle span{border-radius:20px;background:#777f78;color:white;padding:2px 7px}
#youbike-toggle[aria-checked=true]{background:#293c35;color:white}
#youbike-toggle[aria-checked=true] span{background:#f4b63e;color:#293c35}
#youbike-toggle:focus-visible{outline:3px solid #d98f50;outline-offset:3px}
.editing-amenities #amenities-layer [data-amenity-id],.editing-amenities #amenities-layer [data-amenity-id] *{cursor:grab!important}
@media(pointer:coarse){#youbike-toggle{min-height:44px;padding:8px 12px}}
@media(max-width:700px){.map-panel .map-note{right:8px;gap:6px;flex-wrap:wrap}}
@media(max-width:700px){#youbike-toggle{min-height:44px;padding:9px 12px;background:#fffdf5}}
@media(min-width:701px) and (pointer:coarse){
 .amenities-toolbar{height:48px}
 .amenities-toolbar #amenities-toggle,.amenities-toolbar #youbike-toggle{min-height:44px;padding:8px 12px}
 .inline-details{margin-top:48px;max-height:calc(100% - 48px)}
}
@media(min-width:701px) and (max-height:600px) and (pointer:coarse){.inline-details{top:52px;margin-top:0;max-height:calc(100% - 58px)}}

/* The legend belongs to the overview; selecting a building hides its parent. */
.shop-legend{position:static;clear:both;margin:20px 0 0;padding:16px 0 0;border-top:1px solid #293c3530}
.shop-legend h3{font-size:14px;line-height:1.5;margin:0 0 12px;letter-spacing:.05em}
.shop-legend ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.shop-legend li{display:flex;align-items:center;gap:10px;min-width:0}
.shop-legend svg{display:block;flex:0 0 44px;width:44px;height:44px;min-height:0;max-height:none;margin:0;aspect-ratio:1;overflow:hidden}
.inline-details .shop-legend p{min-width:0;margin:0;font-size:12px;line-height:1.6;color:#293c35;white-space:pre-wrap;overflow-wrap:anywhere}
.inline-details:has(#empty:not([hidden]) .shop-legend:not([hidden])){scrollbar-gutter:stable;scroll-padding-top:12px}
@media(min-width:1200px) and (min-height:601px) and (pointer:fine){.inline-details .shop-legend p{font-size:13px}.shop-legend h3{font-size:16px}.shop-legend svg{width:48px;height:48px;flex-basis:48px}}

/* Also expose the overview legend in compact touch layouts. */
@media(max-width:700px),(orientation:landscape) and (max-height:600px) and (pointer:coarse){
 body:not(.has-map-selection) .inline-details:not([hidden]):has(#empty:not([hidden]) .shop-legend:not([hidden])){display:block}
}
