.route-map-control {
  position: absolute;
  z-index: 850;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #5f6f76;
  font-size: 1rem;
  border: 1px solid rgba(73, 91, 99, .28);
  border-radius: 12px;
  background: rgba(241, 244, 245, .94);
  box-shadow: 0 6px 18px rgba(16, 42, 67, .16);
  backdrop-filter: blur(12px);
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.route-map-control:hover {
  color: #344b55;
  background: #fff;
  transform: translateY(-1px);
}

.route-map-control:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .25);
  outline-offset: 2px;
}

.route-sidebar-toggle {
  top: 18px;
  left: 18px;
}

.route-live-location-toggle {
  top: 18px;
  right: 18px;
}

.route-live-location-toggle.is-active {
  color: #fff;
  border-color: #1d4ed8;
  background: #2563eb;
  box-shadow: 0 7px 20px rgba(37, 99, 235, .32);
}

.route-live-location-toggle.is-active:hover {
  color: #fff;
  background: #1d4ed8;
}

.route-live-location-toggle.is-locating {
  cursor: progress;
}

.shared-map-panel[data-map-context="line"] .route-map-control {
  display: none;
}

#route-pane .route-grid.is-route-sidebar-hidden {
  grid-template-columns: minmax(0, 1fr) !important;
}

#route-pane .route-grid.is-route-sidebar-hidden .route-sidebar {
  display: none !important;
}

.route-live-location-leaflet-icon {
  border: 0;
  background: transparent;
}

.route-live-location-dot {
  position: relative;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 1px 5px rgba(16, 42, 67, .42);
}

.route-live-location-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(37, 99, 235, .45);
  border-radius: 50%;
  background: rgba(37, 99, 235, .12);
  animation: routeLiveLocationPulse 1.8s infinite ease-out;
}

@keyframes routeLiveLocationPulse {
  0% { opacity: .9; transform: scale(.55); }
  70%, 100% { opacity: 0; transform: scale(1.25); }
}

@media (min-width: 1200px) {
  #route-pane .map-panel,
  #route-pane .route-live-location-toggle {
    transition: right .24s ease;
  }

  #route-pane .map-panel.has-route-stop-panel .route-live-location-toggle {
    right: 408px;
  }
}

@media (max-width: 600px) {
  .route-map-control {
    width: 38px;
    height: 38px;
  }
  .route-sidebar-toggle { top: 12px; left: 12px; }
  .route-live-location-toggle { top: 12px; right: 12px; }
}
