:root{--green:#0e665b;--green-dark:#08453f;--green-light:#e1f0e8;--coral:#e46747;--orange:#e59c3d;--blue:#2f82a5;--ink:#173b36;--muted:#63746f;--cream:#fffaf1;--line:#dfe7e1;--shadow:0 16px 44px rgba(15,61,55,.18);font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;color:var(--ink);background:#e7eee9}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}
.topbar{position:fixed;z-index:1000;inset:0 0 auto;height:82px;display:grid;grid-template-columns:minmax(250px,1fr) minmax(320px,520px) minmax(250px,1fr);align-items:center;gap:20px;padding:0 26px;background:rgba(255,250,241,.96);border-bottom:1px solid rgba(23,59,54,.13);box-shadow:0 4px 18px rgba(23,59,54,.08);backdrop-filter:blur(14px)}
.brand{display:inline-flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;width:max-content}.brand-mark{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;color:white;background:var(--green);font-weight:1000;box-shadow:0 7px 18px rgba(14,102,91,.25)}.brand>span:last-child{display:grid;gap:1px}.brand strong{font-size:1.08rem;letter-spacing:.04em}.brand small{color:var(--muted);font-weight:700;font-size:.73rem}
.search-wrap{position:relative}.search-box{height:48px;display:flex;align-items:center;gap:10px;padding:0 15px;border:1px solid #cddbd2;border-radius:999px;background:#f2f6f1}.search-box:focus-within{background:white;border-color:var(--green);box-shadow:0 0 0 4px rgba(14,102,91,.12)}.search-box>span{font-size:1.2rem;color:var(--green)}.search-box input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:.94rem}.search-box kbd{color:#80908a;font-size:.65rem;border:1px solid #ccd7d0;border-radius:6px;padding:3px 6px;background:white}
.search-results{position:absolute;z-index:1200;top:56px;left:0;right:0;padding:8px;border-radius:18px;background:white;box-shadow:var(--shadow);border:1px solid var(--line)}.search-result{width:100%;display:flex;justify-content:space-between;gap:10px;padding:11px 12px;border:0;border-radius:11px;background:transparent;text-align:left;cursor:pointer}.search-result:hover{background:var(--green-light)}.search-result b{font-size:.88rem}.search-result small{color:var(--muted);white-space:nowrap}.search-empty{padding:15px;color:var(--muted);text-align:center;font-size:.86rem}
.map-stats{justify-self:end;display:flex;align-items:center;gap:18px}.map-stats span{display:grid;justify-items:center;color:var(--muted);font-weight:800;font-size:.67rem}.map-stats b{color:var(--green);font-size:1.12rem}
.map-shell{position:fixed;inset:82px 0 0}#map{position:absolute;inset:0;background:#d9e7df}.leaflet-control-zoom{border:0!important;box-shadow:var(--shadow)!important}.leaflet-control-zoom a{color:var(--ink)!important;border:0!important;width:38px!important;height:38px!important;line-height:38px!important}.leaflet-control-attribution{font-size:10px}
.layer-panel{position:absolute;z-index:700;top:18px;left:18px;bottom:58px;width:298px;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.78);border-radius:24px;background:rgba(255,250,241,.96);box-shadow:var(--shadow);backdrop-filter:blur(16px)}
.panel-title{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 20px 12px}.panel-title small{color:var(--coral);font-weight:1000;letter-spacing:.16em;font-size:.66rem}.panel-title h1{margin:4px 0 0;font-size:1.55rem;letter-spacing:-.04em}.panel-title>button,.detail-close{width:32px;height:32px;border:0;border-radius:50%;background:#edf3ef;cursor:pointer;font-size:1.2rem}.panel-title>button{display:none}
.layer-category + .layer-category { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.layer-category h2 { color: var(--green); font-size: .875rem; margin: 4px 10px 2px; }
.layer-list{padding:0 11px 10px;border-bottom:1px solid var(--line)}.layer-row{width:100%;display:grid;grid-template-columns:13px 1fr auto;gap:10px;align-items:center;padding:10px;border:0;border-radius:13px;background:transparent;text-align:left;cursor:pointer}.layer-row:hover{background:#f4f7f3}.layer-row.active{background:white;box-shadow:0 5px 16px rgba(23,59,54,.08)}.layer-row>span:nth-child(2){display:grid;gap:1px}.layer-row b{font-size:.88rem}.layer-row small{color:var(--muted);font-size:.68rem}.layer-row em{min-width:26px;padding:4px 6px;border-radius:999px;color:var(--muted);background:#edf2ee;text-align:center;font-style:normal;font-size:.7rem;font-weight:900}.layer-dot{width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 4px rgba(0,0,0,.04)}.layer-dot.green{background:var(--green)}.layer-dot.orange{background:var(--orange)}.layer-dot.blue{background:var(--blue)}.layer-dot.coral{background:var(--coral)}
.area-list-head{display:flex;justify-content:space-between;align-items:center;padding:14px 19px 8px;color:var(--muted);font-size:.75rem;font-weight:900}.area-list-head button{border:0;padding:4px;color:var(--green);background:transparent;cursor:pointer;font-size:.7rem;font-weight:900}.area-list{flex:1;overflow:auto;padding:0 10px 14px;scrollbar-width:thin}.area-item{width:100%;display:grid;grid-template-columns:24px 1fr;gap:9px;align-items:center;padding:9px 10px;border:0;border-radius:11px;background:transparent;text-align:left;cursor:pointer}.area-item:hover,.area-item.active{background:var(--green-light)}.area-item i{width:23px;height:23px;display:grid;place-items:center;border-radius:8px;color:white;background:var(--green);font-style:normal;font-size:.65rem;font-weight:1000}.area-item span{display:grid}.area-item b{font-size:.78rem}.area-item small{color:var(--muted);font-size:.65rem}.layers-fab{display:none}
.profile-card{position:absolute;z-index:650;top:20px;right:20px;display:flex;align-items:center;gap:11px;padding:9px 15px 9px 9px;border:2px solid rgba(14,102,91,.5);border-radius:19px;color:var(--ink);background:rgba(255,250,241,.95);box-shadow:var(--shadow);text-decoration:none}.profile-card img{width:48px;height:48px;object-fit:cover;object-position:top;border-radius:13px;background:#dfe9e2}.profile-card span{display:grid}.profile-card b{font-size:.9rem}.profile-card small{color:var(--muted);font-size:.69rem;font-weight:700}
.detail-card{position:absolute;z-index:720;top:96px;right:20px;width:min(340px,calc(100vw - 40px));padding:21px;border-radius:22px;background:rgba(255,250,241,.98);box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.8)}.detail-close{position:absolute;top:13px;right:13px}.detail-region{display:inline-block;margin-bottom:7px;padding:5px 9px;border-radius:999px;color:var(--green);background:var(--green-light);font-size:.7rem;font-weight:1000}.detail-card h2{margin:0 35px 8px 0;font-size:1.48rem;line-height:1.25}.detail-card p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.65}.detail-tags{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 17px}.detail-tags span{padding:5px 8px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:white;font-size:.68rem;font-weight:800}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.detail-actions a{padding:10px 8px;border-radius:11px;color:var(--green);background:var(--green-light);text-align:center;text-decoration:none;font-size:.78rem;font-weight:1000}.detail-actions .line-link{color:white;background:var(--green)}
.line-float{position:absolute;z-index:750;right:20px;bottom:54px;display:flex;align-items:center;gap:9px;padding:8px 15px 8px 8px;border:3px solid rgba(255,255,255,.72);border-radius:999px;color:white;background:#0b785f;box-shadow:0 12px 30px rgba(11,84,68,.3);text-decoration:none}.line-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;color:#0b785f;background:white;font-weight:1000}.line-float>span:last-child{display:grid}.line-float small{color:rgba(255,255,255,.76);font-size:.6rem}.line-float b{font-size:.86rem}.map-note{position:absolute;z-index:600;left:330px;right:210px;bottom:10px;display:flex;gap:18px;color:#536860;font-size:.62rem;pointer-events:none}
.area-marker-wrap{background:transparent;border:0}.area-marker{display:flex;align-items:center;gap:5px;width:max-content;transform:translate(-10px,-10px);padding:5px 9px 5px 5px;border:2px solid white;border-radius:999px;color:white;background:var(--green);box-shadow:0 5px 14px rgba(17,71,62,.24);font-size:12px;font-weight:900;white-space:nowrap;transition:transform .16s ease,box-shadow .16s ease}.area-marker::before{content:"";width:9px;height:9px;border-radius:50%;background:#f8d36d;box-shadow:0 0 0 3px rgba(255,255,255,.18)}.area-marker:hover,.area-marker.selected{transform:translate(-10px,-14px) scale(1.04);background:var(--coral);box-shadow:0 9px 20px rgba(17,71,62,.28)}.area-marker.yonghe{background:#2f7d78}.area-marker.yonghe:hover,.area-marker.yonghe.selected{background:var(--coral)}
.metro-marker-wrap,.amenity-marker-wrap,.article-marker-wrap{background:transparent;border:0}.metro-marker{width:25px;height:25px;display:grid;place-items:center;border:3px solid white;border-radius:50%;color:white;background:var(--orange);box-shadow:0 4px 11px rgba(61,52,32,.25);font-size:9px;font-weight:1000}.amenity-marker,.article-marker{width:31px;height:31px;display:grid;place-items:center;border:2px solid white;border-radius:10px;color:white;background:var(--blue);box-shadow:0 5px 13px rgba(26,78,101,.25);font-size:14px}.article-marker{background:var(--coral)}.district-tooltip{padding:3px 7px;border:0;border-radius:8px;color:white;background:rgba(14,102,91,.85);box-shadow:none;font-weight:900}.district-tooltip::before{display:none}
@media(max-width:900px){.topbar{height:118px;grid-template-columns:1fr auto;grid-template-rows:58px 48px;gap:0 10px;padding:4px 12px 8px}.brand-mark{width:36px;height:36px;border-radius:11px}.brand strong{font-size:.92rem}.brand small{font-size:.63rem}.search-wrap{grid-column:1/-1;grid-row:2}.search-box{height:43px}.search-box kbd{display:none}.map-stats{grid-column:2;grid-row:1;gap:9px}.map-stats span{font-size:.55rem}.map-stats b{font-size:.9rem}.map-shell{inset-top:118px}.layer-panel{position:fixed;z-index:1300;top:128px;left:10px;right:10px;bottom:10px;width:auto;transform:translateY(calc(100% + 30px));transition:transform .3s ease}.layer-panel.open{transform:translateY(0)}.panel-title>button{display:grid;place-items:center}.layers-fab{position:absolute;z-index:800;left:12px;bottom:58px;display:flex;align-items:center;gap:6px;padding:11px 14px;border:2px solid white;border-radius:999px;color:white;background:var(--green);box-shadow:var(--shadow);font-weight:900}.profile-card{top:12px;right:12px;padding:6px 9px 6px 6px;border-radius:14px}.profile-card img{width:38px;height:38px;border-radius:10px}.profile-card b{font-size:.73rem}.profile-card small{font-size:.58rem}.detail-card{top:auto;right:8px;left:8px;bottom:10px;width:auto;padding:18px;border-radius:20px}.detail-card h2{font-size:1.28rem}.line-float{right:10px;bottom:54px}.map-note{left:8px;right:8px;bottom:4px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.map-note span:last-child{display:none}.leaflet-control-zoom{margin-top:72px!important}}
@media(max-width:520px){.map-stats span:nth-child(2),.map-stats span:nth-child(3){display:none}.profile-card span{display:none}.profile-card{border-radius:50%;padding:4px}.profile-card img{width:42px;height:42px;border-radius:50%}.line-float{padding-right:11px}.line-float small{display:none}.area-marker{font-size:11px;padding-right:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

[hidden] { display: none !important; }
#map { z-index: 0; }
.map-status {
  position: absolute; z-index: 620; top: 14px; left: max(330px, 28%); margin: 0;
  max-width: 350px; padding: 10px 14px; border-radius: 12px;
  background: white; box-shadow: var(--shadow); font-size: .875rem;
}
.leftbank-fab {
  position: absolute; z-index: 710; top: 22px; left: 334px;
  min-height: 44px; padding: 8px 16px; border: 2px solid white; border-radius: 999px;
  background: var(--green); color: white; font-weight: 800; box-shadow: var(--shadow); cursor: pointer;
}
.community-list { overflow: auto; min-height: 90px; padding: 10px 15px; }
.community-list-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0 10px; }
.community-list-head a, .community-source { font-size: .875rem; color: var(--green); text-underline-offset: 3px; }
.community-item {
  display: block; width: 100%; min-height: 42px; margin-bottom: 3px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-size: .9rem; cursor: pointer;
}
.community-item:hover, .community-item.active { border-radius: 8px; background: var(--green-light); }
.leftbank-mode .area-list, .leftbank-mode .area-list-head,
.leftbank-mode .area-marker-wrap, .leftbank-mode .article-marker-wrap,
.leftbank-mode .leaflet-areaCircles-pane { display: none; }
.community-pin {
  display: grid; place-items: center; border: 2px solid white; border-radius: 50%;
  background: #aa422e; color: white; box-shadow: 0 2px 7px #173b3680;
}
.community-pin span { display: block; width: 7px; height: 7px; border: 1px solid white; border-top-width: 2px; }
.community-pin:hover, .community-pin.selected, .community-pin:focus-visible { background: #08453f; outline: 2px solid #08453f; }
.community-tooltip { font-size: .875rem; font-weight: 750; }
.community-card { max-height: calc(100% - 180px); overflow: auto; width: min(392px, calc(100vw - 40px)); }
.community-card p { font-size: 1rem; }
.community-card h3 { margin: 14px 0 5px; font-size: 1rem; }
.community-card .community-date { font-size: .82rem; }
.community-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.community-actions a {
  display: inline-block; border-radius: 9px; padding: 10px 12px;
  color: var(--green-dark); background: var(--green-light); font-size: .875rem; font-weight: 750; text-decoration: none;
}
.community-picker { margin-top: 10px; font-size: .875rem; }
.community-picker summary { cursor: pointer; color: var(--green-dark); padding: 7px 0; }
.community-picker select { max-width: 100%; padding: 5px; font: inherit; }
.community-table-wrap { overflow-x: auto; margin: 9px 0 12px; }
.community-table { width: 100%; border-collapse: collapse; font-size: .82rem; white-space: nowrap; }
.community-table th, .community-table td { padding: 7px 5px; border-bottom: 1px solid var(--line); text-align: left; }
.community-table th { color: var(--green-dark); background: #edf4ef; }
.leaflet-bottom.leaflet-left { left: 323px; bottom: 28px; }

@media (max-width: 900px) {
  .map-shell { top: 118px; }
  .map-status { left: 12px; right: 76px; max-width: none; }
  .leftbank-fab { top: auto; left: 96px; bottom: 58px; }
  .layer-panel { visibility: hidden; }
  .layer-panel.open { visibility: visible; }
  .community-card {
    z-index: 850; width: auto; bottom: 23px; max-height: min(53dvh, 440px); overscroll-behavior: contain;
  }
  .leaflet-bottom.leaflet-left { left: 0; bottom: 120px; }
}

.layer-list { overflow-y: auto; flex: 0 1 auto; }
.layer-list { overscroll-behavior: contain; }
.area-directory { margin: 4px 0 8px; padding: 4px 3px; border-radius: 10px; background: #f2f7f4; }
.area-visibility { display: flex; align-items: center; gap: 5px; padding: 7px; font-size: .82rem; }
.area-list { max-height: 200px; padding: 0 3px 4px; }
.area-list .area-item { display: block; }
.area-list .area-item b { font-size: .875rem; }
.school-layer-options {
  margin: 8px 0 5px; padding: 7px 9px 9px; min-width: 0;
  border: 1px solid #c4d7cf; border-radius: 12px; background: #f2f7f4;
}
.school-layer-options legend { padding: 0 4px; font-size: .88rem; font-weight: 800; }
.school-layer-options legend small { color: var(--muted); font-size: .75rem; }
.school-layer-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.school-layer-buttons button {
  min-height: 42px; border: 1px solid #bdcfc5; border-radius: 8px;
  background: white; color: var(--green-dark); font-size: .875rem; font-weight: 750; cursor: pointer;
}
.school-layer-buttons button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
#schoolLayerStatus { margin: 8px 0 0; font-size: .875rem; }
.school-legend {
  position: absolute; z-index: 640; bottom: 51px; left: 385px; display: grid; gap: 5px;
  border: 1px solid #d5e2d8; border-radius: 12px; padding: 9px 12px;
  background: rgba(255,255,255,.97); box-shadow: var(--shadow); font-size: .8rem;
}
.school-legend span { display: flex; align-items: center; gap: 7px; }
.school-legend a, .school-card a { color: var(--green-dark); text-underline-offset: 3px; }
.school-swatch { width: 14px; height: 12px; background: #acd2c7; border: 1px solid #237b76; }
.school-swatch.split { background: #e5dbe5; border: 1px dashed #645063; }
.showing-school-zones .area-marker-wrap { pointer-events: none; }
.showing-school-zones .area-marker {
  pointer-events: auto; width: 16px; height: 16px; padding: 0; display: block;
  transform: translate(4px, 9px); color: transparent; font-size: 0;
}
.showing-school-zones .area-marker::before { display: none; }
.showing-school-zones .area-marker:hover, .showing-school-zones .area-marker.selected {
  transform: translate(4px, 9px) scale(1.15);
}
.leaflet-schoolZones-pane path:focus { outline: none; stroke: #173b36; stroke-width: 3; }
.school-card { max-height: calc(100% - 162px); overflow: auto; }
.school-card h2 { font-size: 1.3rem; }
.school-card ul { margin: 12px 0; padding: 0; list-style: none; }
.school-card li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.school-card li > strong, .school-card li > span { display: block; }
.school-card li > span, .school-card li > details { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.school-card summary { cursor: pointer; }
.school-card .school-sources { margin-top: 12px; }
.school-swatch.free { background: #ffdeb5; border: 2px dashed #a14408; }
.school-swatch.split { background: #e6ddf3; border-color: #634c85; }
.school-legend-links { display: flex; gap: 12px; }
.school-map-label { display: grid; place-items: center; pointer-events: none !important; }
.school-map-label span {
  display: block; width: max-content; max-width: 100%; white-space: pre-line; text-align: center;
  background: #fffefa; color: var(--label-color); border: 1px solid var(--label-color); border-radius: 6px;
  padding: 2px 5px; font-size: .75rem; line-height: 14px; font-weight: 750;
  box-shadow: 0 1px 4px #21363030;
}
.school-map-label.is-free span { background: #fff2d9; border-style: dashed; }
.school-map-label.is-split span { background: #f3ecfa; border-style: dashed; }
.school-map-label.is-basic span { border-width: 2px; font-weight: 850; }
.school-address-pin {
  display: grid; place-items: center; border: 2px solid white; border-radius: 8px;
  background: #ad382b; color: white; font-size: .85rem; font-weight: 800; box-shadow: var(--shadow);
}
.school-address-pin::after {
  content: ""; position: absolute; bottom: -6px; left: calc(50% - 5px); width: 10px; height: 10px;
  background: #ad382b; transform: rotate(45deg); border-right: 2px solid white; border-bottom: 2px solid white;
}
.school-card .school-rule-free { color: #813b0b; font-weight: 750; }
.school-card .address-school-heading { color: var(--green-dark); }
.school-card li > ul { margin: 1px 0; }
.school-card li > ul li { border: 0; padding: 5px 0; }
.map-search-submit {
  border: 0; border-radius: 999px; color: white; background: var(--green); padding: 7px 13px;
  cursor: pointer; min-height: 34px; flex: none; font-size: .875rem; font-weight: 750;
}
.search-results { max-height: min(44vh, 320px); overflow: auto; }
.detail-actions:has(> :only-child) { grid-template-columns: 1fr; }

.layer-dot.markets, .place-marker.markets { background: #08735e; }
.layer-dot.michelin, .place-marker.michelin { background: #a62342; }
.place-marker.selectedDining { background: #875028; }
.layer-dot.parking { background: #215cab; }
.layer-dot.renewal { background: #8b2a78; }
.place-marker-wrap { text-align: center; }
.place-marker, .parking-pin, .renewal-pin {
  display: inline-grid; place-items: center; min-height: 21px; border: 2px solid #fff;
  border-radius: 6px; padding: 1px 4px; color: white; white-space: nowrap;
  font-size: .72rem; line-height: 1.15; font-weight: 800; box-shadow: 0 1px 5px #10292455;
}
.parking-pin, .renewal-pin { padding: 0; }
.parking-pin.public { background: #1556a0; }
.parking-pin.private { background: #6438a0; }
.parking-pin.unknown { background: #4d5a6a; }
.parking-pin.full span { color: #fff3a6; }
.renewal-pin { background: #8b2a78; min-height: 0; }
.show-renewal-polygons .renewal-pin:not(:focus):not(:hover) {
  opacity: 0; pointer-events: none;
}
.metro-stop { display: flex; justify-content: center; align-items: center; gap: 0; }
.metro-stop span {
  display: grid; place-items: center; min-width: 30px; min-height: 22px; padding: 0 2px;
  border: 1.5px solid #363329; border-radius: 5px; color: #1d1d19;
  font-size: .7rem; font-weight: 850; line-height: 1; box-shadow: 0 1px 4px #1f282663;
}
.metro-stop .orange { background: #f39800; }
.metro-stop .yellow { background: #ffd306; }
.metro-stop .wanda { background: #e4f1c4; border-style: dashed; }
.metro-stop .gongguan { background: #ddf4f2; border-style: dotted; }
.metro-stop .taiban { background: #e6effa; border-style: dotted; }
.transit-line { width: 18px; height: 0; flex: none; }
.transit-line.operating { height: 6px; border-radius: 4px; background: linear-gradient(to bottom,#f39800 50%,#ffd306 50%); }
.transit-line.works { border-top: 4px dashed #629200; }
.transit-line.planned { border-top: 4px dotted #087e87; }
.map-popup { font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.map-popup > strong { display: block; font-size: 1rem; margin-bottom: 4px; color: #133c38; }
.map-popup small { display: block; font-size: .77rem; color: #475c60; margin-bottom: 3px; }
.map-popup p { margin: 4px 0 6px; }
.map-popup a, .parking-options a, .layer-note a {
  display: inline-block; color: #075c56; text-underline-offset: 3px; margin-right: 7px;
}
.map-popup ul { margin: 3px 0; padding-inline-start: 18px; }
.map-popup dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin: 9px 0; }
.map-popup dd { margin: 0; }
.parking-availability { background: #e9f1fb; border-radius: 6px; padding: 5px 7px; }
.parking-footnote, .layer-note { color: var(--muted); font-size: .8rem; }
.parking-options { padding: 9px; margin: 3px 0 8px; background: #edf4fa; border-radius: 9px; font-size: .8rem; }
.parking-options label { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.parking-options select, #viewParkingMap { border-radius: 5px; border: 1px solid #a8becf; background: #fff; padding: 4px; font: inherit; }
#viewParkingMap { display: none; }

@media (max-width: 900px) {
  .school-card { z-index: 850; bottom: 24px; max-height: min(49dvh, 390px); overscroll-behavior: contain; }
  .school-legend { left: 12px; top: 12px; bottom: auto; font-size: .75rem; }
  #viewParkingMap { display: inline-block; min-height: 36px; padding-inline: 10px; }
}

.layer-dot.shopping, .place-marker.shopping { background: #235e92; }
.layer-dot.bowls, .place-marker.bowls { background: #935013; }
.layer-dot.bus, .bus-pin { background: #3b676d; }
.bus-pin {
  display: grid; place-items: center; border: 2px solid white; border-radius: 6px;
  color: white; box-shadow: 0 1px 5px #10292455; font-size: 11px; font-weight: 800;
}
.renewal-pin.approved { background: #852174; }
.renewal-pin.review { background: #a45215; }
.renewal-pin.early { background: #53628f; }
.layer-view-map, #clearLayers {
  border: 1px solid #9dbdb2; border-radius: 6px; padding: 5px 8px; background: #fff;
  color: #18443c; font: inherit; min-height: 32px;
}
#clearLayers {
  display: inline-block; width: auto; height: auto; margin-left: auto; cursor: pointer;
  font-size: .78rem; font-weight: 750; white-space: nowrap;
}
#closeLayers { margin-left: 7px; }
.metro-status { padding-inline: 8px; }
.metro-completion {
  margin: 5px 0 8px; padding: 7px 9px; border-radius: 6px; background: #edf4e8; color: #1a442d;
}
.metro-completion > b { display: block; font-size: .73rem; }
.metro-completion > strong { display: block; font-size: 1rem; }
.metro-completion > small { margin-top: 3px; }
.layer-view-map { margin: 2px 4px 2px 0; cursor: pointer; }
#viewRenewalMap { display: none; }
.metro-node { display: grid !important; place-items: center; }
.metro-node-dot {
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid #202c2b;
  background: var(--route-color); box-shadow: 0 0 0 1px #fff;
}
.metro-node.is-transfer .metro-node-dot { width: 15px; height: 15px; border: 3px solid var(--route-color); background: #fff; }
.metro-node.metroWorks .metro-node-dot { border-style: dashed; }
.metro-node.metroPlan .metro-node-dot { border-style: dotted; }
.metro-node-code {
  display: none; position: absolute; bottom: 18px; white-space: nowrap; padding: 1px 3px;
  border: 1px solid #63716d; border-radius: 3px; background: #fff; color: #14231e;
  font-size: 9px; font-weight: 850; line-height: 1.1; pointer-events: none;
}
.metro-station-codes .metro-node-code, .metro-node:focus .metro-node-code { display: inline-block; }
@media (max-width: 900px) {
  #viewRenewalMap { display: inline-block; }
  .layer-view-map, #clearLayers { min-height: 40px; }
}

.bus-pin svg { display: block; }
.bus-popup .bus-eta-status { color: #486263; font-size: .75rem; }
.bus-popup .bus-route-list { padding: 0; list-style: none; }
.bus-route-row {
  display: flex; width: 100%; justify-content: space-between; gap: 10px; align-items: center;
  border: 0; border-bottom: 1px solid #e0e8e3; background: white; color: #173b36;
  padding: 7px 0; text-align: left; font: inherit; cursor: pointer;
}
.bus-route-row:hover { background: #eef5f1; }
.bus-route-row b { color: #174c60; }
.bus-route-row small { margin: 0; }
.bus-eta { white-space: nowrap; color: #1c6251; font-weight: 750; }
.bus-eta.arriving { color: #963523; }
.bus-track-banner {
  position: absolute; z-index: 640; top: 18px; left: 336px; max-width: calc(100% - 590px);
  color: #30234a; background: white; padding: 8px 12px; border: 1px solid #c2b5d6;
  border-radius: 9px; box-shadow: var(--shadow); font-size: .82rem;
}
.bus-track-banner strong { display: block; margin-bottom: 4px; }
.bus-track-banner a { color: #52348b; margin-right: 10px; }
.bus-track-banner button { color: #52348b; background: #f3eef8; border: 0; border-radius: 5px; padding: 5px 8px; cursor: pointer; }
@media (max-width: 900px) {
  .bus-track-banner { top: auto; left: 12px; bottom: 118px; max-width: calc(100% - 24px); }
}
.layer-dot.food, .place-marker.food { background: #a34b2d; }
.place-marker.food { width: 24px; height: 24px; border-radius: 50%; padding: 0; }
.food-award + .food-award { padding-top: 5px; border-top: 1px solid #eee1d6; }

@media (max-width: 900px) {
  .map-shell:has(.bus-popup) .school-legend { visibility: hidden; }
  .bus-popup { min-width: min(220px, calc(100vw - 105px)); }
}

.bus-track-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0; }
.bus-track-actions select, .bus-track-actions button {
  min-height: 32px; border-radius: 6px; padding: 5px 8px;
  color: #52348b; background: #f3eef8; border: 1px solid #e0d6ed; font: inherit;
}
.bus-route-stop { display: grid; place-items: center; }
.bus-route-stop span {
  width: 13px; height: 13px; border-radius: 50%; background: white;
  border: 2px solid #6844ab; box-shadow: 0 0 0 1px white;
}
.bus-route-stop.is-origin span { width: 17px; height: 17px; border: 3px solid white; background: #6844ab; box-shadow: 0 0 0 2px #6844ab; }
.bus-popup div.bus-route-row { cursor: default; }
@media (max-width: 900px) {
  .bus-track-actions select, .bus-track-actions button { min-height: 40px; }
}

.layer-dot.bike, .bike-pin { background: #087384; }
.bike-pin { display: grid; place-items: center; border: 2px solid white; border-radius: 50%; color: white; box-shadow: 0 1px 4px #153e5260; }
.bike-popup .bike-counts { font-weight: 750; }
.bike-popup .bike-updated { font-size: .75rem; }
.bike-popup .bike-updated:empty { display: none; }
.renewal-pin.is-public { background: #8f1760; }
.show-renewal-polygons .renewal-pin.is-public { opacity: 1; pointer-events: auto; }
.renewal-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.renewal-popup dl { grid-template-columns: max-content 1fr; }
.renewal-popup .renewal-dates { grid-template-columns: 1fr auto; }
#renewalCases { max-width: min(194px, 63%); }
#clearBusRoute { color: white; background: #60419b; border-color: #60419b; font-weight: 800; }
.layer-dot.camera, .civic-pin.camera { background: #694799; }
.layer-dot.garbage, .civic-pin.garbage { background: #897218; }
.civic-pin { display: grid; place-items: center; color: white; border: 2px solid white; border-radius: 6px; font-size: .72rem; font-weight: 800; box-shadow: 0 1px 4px #153e5260; }

.shopping-marker-wrap {
  background: #235e92;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px #10292455;
}
.shopping-marker-wrap .shopping {
  position: absolute;
  top: calc(50% + var(--shop-label-y, 0px));
  left: calc(50% + var(--shop-label-x, 0px));
  transform: translate(-50%, -50%);
  padding-inline: 5px;
}
.shopping-marker-wrap:not([data-label-side="shown"]) .shopping { display: none; }

.shopping-marker-wrap[data-label-side="shown"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--shop-leader-length, 0px);
  height: 1px;
  background: #235e92;
  transform: rotate(var(--shop-leader-angle, 0rad));
  transform-origin: left;
  pointer-events: none;
}

.bus-stop-search-heading { padding: 7px 12px 2px; text-align: left; }
.bus-stop-search-result { flex-wrap: wrap; gap: 3px 10px; align-items: baseline; }
.bus-stop-search-result small { white-space: normal; }
