.rt-map { isolation: isolate; overflow: hidden; }
.rt-map-scheme, .rt-map-canvas, .rt-map-markers, .rt-map-host { position: absolute; inset: 0; width: 100%; height: 100%; }
.rt-map-scheme { background: #edf3ef; }
.rt-map-host { visibility: hidden; }
.rt-map-live .rt-map-host { visibility: visible; }
.rt-map-live .rt-map-scheme, .rt-map-live .rt-map-status { visibility: hidden; }
.rt-map-pin { display: grid; place-items: center; position: relative; flex-shrink: 0; transform: translate(-50%, -50%); }
.rt-map-markers .rt-map-pin { position: absolute; }
.rt-map-2gis .rt-map-pin { transform: none; }
.rt-map-stop {
  width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: #102f28; cursor: pointer; z-index: 1;
}
.rt-map-stop::before {
  content: ''; position: absolute; inset: 6px; border: 2px solid #12846e; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px #12372d26;
}
.rt-map-stop[aria-pressed='true'] { z-index: 4; }
.rt-map-stop[aria-pressed='true']::before { inset: 3px; border: 3px solid #fff; background: #057f68; box-shadow: 0 0 0 4px #057f6830; }
.rt-map-stop:focus-visible, .rt-map-control:focus-visible, .rt-map-bus:focus-visible { outline: 2px solid #143d33; outline-offset: 2px; }
.rt-map-stop-label {
  max-width: min(125px, 27vw); width: max-content; text-align: center; padding: 5px 9px; line-height: 1.2;
  position: absolute; bottom: 27px; left: 50%; transform: translateX(-50%); pointer-events: none;
  font-size: 11px; font-weight: 700; border: 1px solid #d9e5df; border-radius: 7px;
  background: #fff; box-shadow: 0 3px 10px #163e2c15; opacity: 0;
}
.rt-map-stop[aria-pressed='true'] .rt-map-stop-label, .rt-map-stop:hover .rt-map-stop-label,
.rt-map-stop:focus-visible .rt-map-stop-label { opacity: 1; }
.rt-map-bus, .rt-map-warm {
  width: 23px; height: 23px; background: #163a32; color: #fff; border: 2px solid #fff;
  border-radius: 8px; box-shadow: 0 2px 6px #15392d36; z-index: 2;
}
.rt-map-bus { padding: 0; cursor: pointer; }
.rt-map-bus.is-current { background: #0a8b72; z-index: 6; }
.rt-map-bus-symbol { position: relative; width: 11px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.rt-map-bus-symbol::before { position: absolute; top: 4px; left: 0; right: 0; border-top: 1px solid currentColor; content: ''; }
.rt-map-bus-symbol::after { position: absolute; bottom: -3px; left: 1px; width: 2px; height: 2px; background: currentColor; box-shadow: 5px 0 currentColor; content: ''; }
.rt-map-warm { background: #be591d; font-size: 15px; font-weight: 700; pointer-events: none; }
.rt-map-status {
  position: absolute; bottom: 12px; left: 12px; padding: 6px 9px; color: #37574d;
  background: #fff; border: 1px solid #dce7df; border-radius: 7px; font-size: 11px;
  font-weight: 650; pointer-events: none; z-index: 3;
}
.rt-map-controls {
  position: absolute; top: 14px; right: 14px; display: grid; border: 1px solid #dde7e0;
  border-radius: 9px; background: #fff; box-shadow: 0 2px 12px #16372a12; z-index: 5;
}
.rt-map-control {
  width: 33px; height: 33px; border: 0; border-radius: 8px; color: #15372e;
  font: 600 17px system-ui, sans-serif; background: transparent; cursor: pointer;
}
.rt-map-control + .rt-map-control { border-top: 1px solid #edf1ee; border-radius: 0 0 8px 8px; }
.rt-map-control:hover { background: #edf5f0; }
.rt-map-control-art, .rt-map-recenter { display: none; }

.rt-map-mobile .rt-map-host, .rt-map-mobile .rt-map-scheme {
  bottom: auto;
  height: calc(100% - var(--mobile-sheet-height, 75px));
}
.rt-map-mobile .rt-map-stop[aria-pressed='true']::before {
  inset: auto auto 50% 50%; width: 28.1818px; height: 34px; transform: translateX(-50%);
  background: url('/assets/location.svg') no-repeat center; border: 0; border-radius: 0; box-shadow: none;
}
.rt-map-mobile .rt-map-stop[aria-pressed='true'] .rt-map-stop-label { bottom: 50px; }
.rt-map-mobile .rt-map-bus.is-numbered {
  width: 52.7197px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background-color: transparent; background-position: center; background-repeat: no-repeat; box-shadow: none;
  font: 750 16px/1 system-ui, sans-serif;
}
.rt-map-mobile .rt-map-bus.is-numbered[data-level='many_seats'], .rt-map-mobile .rt-map-bus.is-numbered[data-level='some_seats'] { background-image: url('/assets/pin-green.svg'); }
.rt-map-mobile .rt-map-bus.is-numbered[data-level='standing'] { background-image: url('/assets/pin-yellow.svg'); color: #241b02; }
.rt-map-mobile .rt-map-bus.is-numbered[data-level='overcrowded'] { background-image: url('/assets/pin-red.svg'); }
.rt-map-mobile .rt-map-bus.is-numbered[data-level='unknown'] { background: radial-gradient(circle, #687175 0 16px, #fff 16px 17px, transparent 17px); }
.rt-map-bus-number { pointer-events: none; margin-right: 4px; text-shadow: 0 1px 3px #0003; }
.rt-map-mobile .rt-map-bus.is-current { outline: 2px solid #723cdb; outline-offset: -4px; }
.rt-map-mobile .rt-map-bus:focus-visible { outline-offset: -1px; }
.rt-map-access {
  display: grid; place-items: center; position: absolute; right: 0; bottom: 0;
  min-width: 17px; height: 17px; padding-inline: 2px; border: 1px solid #fff; border-radius: 6px;
  background: #fff; color: #4e2e90; font: 750 12px/1 system-ui, sans-serif;
  box-shadow: 0 1px 4px #2026263d; pointer-events: none;
}
.rt-map-access[data-access='no'] { color: #4d5659; }
.rt-map-access[data-access='no']::after { content: ''; width: 12px; height: 1.5px; background: #a72c38; transform: rotate(-48deg); position: absolute; }
.rt-map-access[data-access='unknown'] { background: #f3f4f5; color: #42484a; }

.rt-map-mobile .rt-map-controls {
  top: max(64px, calc((100% - var(--mobile-sheet-height, 75px)) * .47)); right: 12px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 12px;
}
.rt-map-mobile .rt-map-control {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 16px; background: #fffffff2; box-shadow: 0 1px 10px #0003;
}
.rt-map-mobile .rt-map-control-text { display: none; }
.rt-map-mobile .rt-map-control-art { display: block; object-fit: contain; }
.rt-map-mobile .rt-map-recenter { position: absolute; right: 12px; bottom: calc(var(--mobile-sheet-height, 75px) + 27px); z-index: 5; }
.rt-map-mobile .rt-map-status { left: 12px; bottom: calc(var(--mobile-sheet-height, 75px) + 9px); }
