.live-map-shell{position:relative;min-width:0}
.live-map-shell .live-map{margin-top:14px}
.live-map-banner{position:absolute;z-index:500;top:12px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 110px);box-sizing:border-box;margin:0;padding:7px 12px;background:var(--card);border-radius:12px;box-shadow:0 1px 4px var(--shadow);font-size:13px;line-height:1.4;text-align:center}
.live-map-banner[hidden],.live-map-directions[hidden]{display:none}
.live-map-banner{pointer-events:none}.live-popup-open .live-map-banner{visibility:hidden}
.live-popup-open .live-map-legend{visibility:hidden}
.live-popup-open .leaflet-control-zoom{visibility:hidden}
.live-map-stop-types>[hidden]{display:none}
.live-map-shell .live-map-legend{position:absolute;z-index:500;left:10px;bottom:28px;max-width:calc(100% - 20px);box-sizing:border-box;padding:4px 8px;gap:14px;align-items:center}
.live-map-shell .live-map-legend{bottom:calc(var(--map-credit-height,17px) + 12px)}
.live-map-directions,.live-map-stop-types{display:flex;align-items:center;gap:14px;white-space:nowrap}
.live-map-directions>button{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;min-height:32px;padding:4px 0;border:0;border-radius:6px;background:transparent;color:var(--text);font:inherit;cursor:pointer}
.live-map-directions>button:disabled{color:var(--muted);cursor:default}.live-map-directions>button:disabled .direction-dot{background:var(--muted)}
.live-map-stop-types>span{display:inline-flex;gap:6px;align-items:center;color:var(--muted);white-space:nowrap}
.stop-key{display:inline-block;flex:none;box-sizing:border-box;width:12px;height:12px}
.stop-key-boarding{background:var(--muted);border-radius:50% 50% 50% 0;transform:rotate(-45deg)}
.stop-key-alighting{background:var(--card);border:3px solid var(--muted);border-radius:50%}
.live-stop-icon{background:none;border:0}
.live-stop{--stop-color:var(--muted);display:block;box-sizing:border-box;box-shadow:0 1px 4px var(--shadow)}
.live-stop[data-direction=kolyvan],.stop-popup-tag[data-direction=kolyvan]{--stop-color:var(--direction-out)}
.live-stop[data-direction=city],.stop-popup-tag[data-direction=city]{--stop-color:var(--direction-in)}
.live-stop-boarding{width:30px;height:30px;border:3px solid var(--card);border-radius:50% 50% 50% 0;background:var(--stop-color);transform:rotate(-45deg)}
.live-stop-boarding i{display:block;width:10px;height:10px;background:var(--card);border-radius:50%;margin:7px}
.live-stop-alighting{width:20px;height:20px;border:4px solid var(--stop-color);border-radius:50%;background:var(--card)}
.stop-popup .leaflet-popup-content-wrapper{padding:0;border-radius:12px;overflow:hidden}
.stop-popup .leaflet-popup-content{margin:0;width:250px!important;max-width:calc(100vw - 112px);font:13px/1.45 'Golos Text',sans-serif;overflow-wrap:anywhere}
.stop-popup .leaflet-popup-content{max-height:260px;overflow:auto}
.stop-popup-body img{display:block;width:100%;height:110px;object-fit:cover}
.stop-popup-copy{padding:12px}.stop-popup-copy>strong{display:block;font-size:15px}
.stop-popup-tag{--stop-color:var(--muted);display:inline-block;margin:5px 0 0;padding:2px 8px;border-radius:999px;color:var(--stop-color);background:color-mix(in srgb,var(--stop-color) 12%,var(--card));font-size:12px;font-weight:600}
.stop-popup-copy p{margin:6px 0 0;white-space:pre-line}.stop-popup-address{color:var(--muted)}
.stop-popup a.leaflet-popup-close-button{top:2px;right:3px;width:26px;height:26px;border-radius:50%;background:var(--card);color:var(--text)}
@media(max-width:700px){.live-map-shell .live-map-legend{flex-direction:column;align-items:flex-start;gap:4px;font-size:11px}.live-map-banner{max-width:calc(100% - 56px);width:calc(100% - 56px);font-size:12px;padding:6px 8px}.live-map-directions{gap:14px}.live-map-stop-types{gap:14px;padding:0 0 4px}.live-map-directions>button{min-height:28px}}
