.bus-panel{position:absolute;z-index:9;top:72px;right:60px;width:350px;max-width:calc(100% - 32px);max-height:calc(100% - 110px);overflow:auto;background:#fff;color:#213a32;border:1px solid #dce5df;border-radius:16px;box-shadow:0 12px 40px #102d2930;font-size:13px;overscroll-behavior:contain}.bus-panel[hidden],.bus-panel [hidden]{display:none!important}.bus-panel button,.bus-panel select,.bus-panel input{font:inherit;color:inherit}.bus-panel button{background:#f4f7f4;border:1px solid #dce5df;border-radius:8px;padding:8px 10px;cursor:pointer}.bus-panel button:hover{background:#e6f2e8}.bus-panel button:focus-visible,.bus-marker:focus-visible{outline:3px solid #2478dc;outline-offset:2px}.bus-heading{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;background:#fff;z-index:2;padding:17px 18px 12px;border-bottom:1px solid #edf1ed}.bus-eyebrow{font-size:9px;font-weight:700;letter-spacing:.16em;color:#28805b}.bus-heading h2{margin:4px 0 0;font-size:21px;letter-spacing:-.04em}.bus-heading #bus-close{border:0;background:transparent;font-size:25px;padding:2px 7px}.bus-status{padding:0 18px;font-size:12px;color:#60766d;line-height:1.6}.bus-tabs{display:flex;padding:0 12px;gap:4px}.bus-tabs button{flex:1;font-size:11px;padding:9px 4px;white-space:nowrap;border-color:transparent;background:transparent}.bus-tabs [aria-selected=true]{background:#e5f2e8;color:#216445;font-weight:700}.bus-search{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:8px;padding:16px}.bus-search label{font-size:11px}.bus-search select,.bus-search input{background:#fff;border:1px solid #d5dfd8;border-radius:7px;min-width:0;width:100%;padding:9px}.bus-search>div{display:flex;gap:6px}.bus-search button{flex-shrink:0}.bus-results{padding:6px 12px 12px}.bus-result{display:flex;align-items:stretch;border-bottom:1px solid #edf1ed;padding:5px 0;gap:4px}.bus-result .bus-result-main{display:flex;align-items:flex-start;flex-direction:column;gap:4px;flex:1;min-width:0;border:0;background:transparent;text-align:left}.bus-route-number{color:#2474c9;font-size:20px}.bus-result-main span{font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}.bus-result .bus-star{align-self:center;border:0;background:transparent;color:#7b8b83;font-size:20px}.bus-star[aria-pressed=true]{color:#b78310}.bus-empty{padding:13px 6px;color:#718079;line-height:1.8;font-size:13px}.bus-nearby-actions{display:flex;flex-direction:column;gap:9px;padding:15px 16px 8px}.bus-nearby-actions small{font-size:10px;color:#718079}.bus-stop-row{display:flex!important;flex-direction:column;gap:4px;width:100%;text-align:left;margin:5px 0}.bus-stop-row small{font-size:10px;color:#718079}.bus-detail-heading{display:flex;align-items:center;gap:10px;padding:12px 16px 6px}.bus-detail-heading h3{font-size:17px;margin:0;overflow-wrap:anywhere}.bus-panel #bus-star{margin:6px 16px;color:#98710c}.bus-vehicle-row{display:flex;flex-direction:column;gap:5px;border-bottom:1px solid #edf1ed;padding:12px 6px}.bus-vehicle-row span{font-size:12px;color:#6a7e74}.bus-footer{padding:10px 16px 14px;border-top:1px solid #edf1ed;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px}.bus-footer span{font-size:10px;color:#6a7e74}.bus-footer button{font-size:11px}.bus-footer small{font-size:9px;color:#7c8c83;width:100%;line-height:1.7}.bus-pending{margin:16px;padding:18px;background:#f1f6f1;border-radius:12px;line-height:1.8}.bus-pending p{font-size:12px;color:#687d70}.bus-pending a{color:#2c6f4e;font-size:12px}.bus-marker{border:2px solid white!important;border-radius:7px!important;box-shadow:0 2px 8px #153c383a;background:#2879d9!important;color:#fff!important;font-size:12px!important;font-weight:700;padding:5px 8px!important;cursor:pointer;white-space:nowrap}.bus-marker.stop{background:#fff!important;color:#2372c4!important;border-color:#2372c4!important;font-size:17px!important;padding:2px 5px!important}.bus-marker.route-stop{border:2px solid #2576ce!important;background:#fff!important;color:#2576ce!important;border-radius:50%!important;width:12px;height:12px;font-size:0!important;padding:0!important}.bus-marker.vehicle{z-index:8}.map-toolbar #bus-toggle[aria-pressed=true]{background:#2674c8;color:#fff;border-color:#2674c8}
@media(max-width:700px){.bus-panel{top:64px;left:12px;right:auto;width:min(350px,calc(100% - 60px));max-height:calc(100% - 90px);border-radius:12px}.bus-heading{padding:12px 14px 9px}.bus-heading h2{font-size:19px}.bus-tabs button{font-size:10px;padding:8px 2px}.bus-status{padding:0 14px}.bus-results{padding-inline:8px}.bus-footer{padding:9px 12px}.bus-search{padding:12px}.bus-marker{font-size:11px!important}}
@media(max-width:700px){.bus-panel{top:auto;bottom:34px;max-height:45%;width:calc(100% - 24px);max-width:calc(100% - 24px)}.bus-panel .bus-heading{padding-block:10px}.bus-panel .bus-status{margin-block:8px}}

.bus-detail-heading{flex-wrap:wrap}.bus-stop-info,.bus-stop-choices{flex-basis:100%;margin:4px 0;color:#64798a;font-size:12px}.bus-stop-choices{display:flex;flex-wrap:wrap;gap:5px}.bus-stop-choices small{width:100%}.bus-marker.selected{background:#1976df!important;color:white!important}.bus-detail-heading h3{color:#153d68}.bus-detail-list .bus-result-main span{color:#d54c35}

@media(pointer:coarse){.bus-marker.stop{min-width:44px;min-height:44px}.bus-marker.route-stop{position:relative}.bus-marker.route-stop::before{content:"";position:absolute;inset:-16px}.bus-stop-row{min-height:48px}}

/* Vehicle glyph stays upright; only the observed movement arrow rotates. */
.bus-marker.vehicle{position:relative;display:flex;align-items:center;justify-content:center;width:max-content;min-width:88px;height:48px;gap:6px;padding:3px 10px 3px 3px!important;border:2px solid white!important;border-radius:26px!important;background:#fff!important;box-shadow:0 2px 8px #102d2945;overflow:visible;isolation:isolate}
.bus-vehicle-icon{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border:2px solid white;border-radius:50%;background:#1765bf;box-shadow:0 2px 7px #102d2960}
.bus-vehicle-icon svg{position:relative;z-index:1;display:block}
.bus-vehicle-number{display:block;position:relative;padding:0 2px;min-width:32px;color:#123f73!important;font:800 16px/22px system-ui!important;white-space:nowrap;text-align:center}
.bus-heading-arrow{position:absolute;inset:-9px;transform:rotate(var(--bus-bearing,0deg));visibility:hidden;pointer-events:none}
.has-direction .bus-heading-arrow{visibility:visible}
.bus-heading-arrow::before{content:"";position:absolute;top:-2px;left:50%;transform:translateX(-50%);border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:9px solid #1765bf;filter:drop-shadow(0 -1px 0 white)}

.bus-marker.stop{display:flex;align-items:center;justify-content:center;width:26px;height:26px;min-width:26px;min-height:26px;padding:2px!important;border-width:1.5px!important;border-radius:50%!important;box-shadow:0 1px 3px #173e3425;line-height:1}
.bus-marker.stop svg{display:block;pointer-events:none}
.bus-marker.stop.selected{outline:3px solid #1976df40;outline-offset:3px}

.bus-heading{gap:8px;padding:10px 12px}.bus-heading>div{flex:1;min-width:0}.bus-heading h2{font-size:17px}.bus-heading #bus-collapse{font-size:11px;white-space:nowrap;padding:7px}.bus-heading #bus-close{flex-shrink:0}
.bus-pinned{display:flex;gap:6px;padding:6px 12px;overflow-x:auto;max-width:100%;scrollbar-width:thin}.bus-pinned:empty{display:none}
.bus-panel .bus-pinned-route{flex-shrink:0;border-left:5px solid var(--route-color);border-radius:8px;background:#fff;font-weight:750;color:var(--route-color);padding:5px 9px;white-space:nowrap}
.bus-panel.bus-collapsed{overflow:hidden}.bus-collapsed #bus-status,.bus-collapsed #bus-content,.bus-collapsed #bus-connect-pending,.bus-collapsed .bus-footer{display:none!important}
.bus-marker.route-stop{border-color:var(--route-color,#1765bf)!important;color:var(--route-color,#1765bf)!important}
.bus-vehicle-icon{background:var(--route-color,#1765bf)}.bus-vehicle-icon svg rect[fill="#1765bf"]{fill:var(--route-color,#1765bf)}.bus-vehicle-number{color:var(--route-color,#123f73)!important}.bus-heading-arrow::before{border-bottom-color:var(--route-color,#1765bf)}.bus-route-number{color:var(--route-color,#1765bf)}
@media(max-width:700px){.bus-panel{max-height:32%;bottom:30px}.bus-panel.bus-collapsed{max-height:110px}.bus-heading .bus-eyebrow{display:none}.bus-heading h2{font-size:15px;margin:0}.bus-heading{min-height:42px;padding:6px 10px}.bus-pinned{padding:3px 10px 7px}.bus-pinned-route{font-size:12px!important}}

/* One neutral stop symbol shared by all displayed routes. */
.bus-marker.stop.route-stop{width:26px;height:26px;min-width:26px;min-height:26px;padding:2px!important;border-radius:50%!important;border-color:#2372c4!important;color:#2372c4!important;background:white!important;display:grid;place-items:center}.bus-marker.stop.route-stop.selected{border-color:#d94c37!important;box-shadow:0 0 0 3px #d94c3733}.bus-marker.route-stop::before{inset:-7px}


/* Visible artwork and click bounds are the same element. */
.bus-marker.stop.visible-stop,.bus-marker.stop.route-stop.visible-stop{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;display:grid!important;place-items:center;padding:3px!important;border:1px solid #68777b!important;border-radius:9px!important;background:#fff!important;color:#35484e!important;box-shadow:0 2px 5px #0003!important;outline:none}.bus-marker.visible-stop::before,.bus-marker.visible-stop::after{display:none!important}.bus-marker.visible-stop.selected{border:2px solid #d34732!important;background:#fff1ec!important;color:#a92c1f!important}.bus-marker.visible-stop:focus-visible{outline:2px solid #c57819;outline-offset:2px}
