/* Dark vector-map interface, inspired by the supplied directions reference. */
.osrm-theme-dark {
  color-scheme: dark;
  --osrm-sidebar-width: 360px;
  --osrm-map-control-size: 38px;
  --osrm-map-control-gap: 14px;
  --osrm-type-heading: 24px;
  --osrm-type-body: 14px;
  --osrm-type-caption: 12px;
  --osrm-panel: rgb(41 41 41 / 80%);
  --osrm-surface: #363636;
  --osrm-card: #1e1e1e;
  --osrm-text: #f1f2f3;
  --osrm-muted: #adafb3;
  --osrm-border: #505050;
  --osrm-accent: #3482ff;
  background: transparent;
}
.osrm-theme-dark body { margin: 0; }
.osrm-theme-dark .map {
  left: 0;
  width: 100%;
  direction: ltr;
  background: transparent;
}
.osrm-theme-dark .leaflet-container { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.osrm-theme-dark .leaflet-routing-container.dark {
  display: flex;
  flex-direction: column;
  font-size: var(--osrm-type-body);
  line-height: 1.5;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--osrm-sidebar-width);
  box-sizing: border-box;
  min-width: 0;
  max-width: none;
  height: 100dvh;
  margin: 0 !important;
  padding: 22px 20px 16px;
  border: 0;
  border-right: 1px solid #454545;
  border-radius: 0;
  background: var(--osrm-panel);
  color: var(--osrm-text);
  box-shadow: 6px 0 24px #00141620;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  transition: none;
}
.osrm-panel-header { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 12px; margin-bottom: 22px; }
.osrm-panel-resizer, .osrm-panel-resizer[hidden] { display: none; }
.osrm-panel-brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.osrm-panel-logo { display: block; width: 104px; height: auto; max-width: 100%; filter: brightness(0) invert(0.95); }
.osrm-panel-header h1 { margin: 0; color: var(--osrm-text); font-size: var(--osrm-type-heading); line-height: 36px; font-weight: 600; letter-spacing: -0.3px; }
.osrm-panel-actions { align-self: flex-start; display: flex; align-items: center; gap: 8px; }
.osrm-theme-dark .osrm-panel-header .leaflet-routing-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  inset: auto;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  box-sizing: border-box;
  border-radius: 50%;
  background: #4a4a4a;
  color: white;
  cursor: pointer;
}
.osrm-theme-dark .leaflet-routing-collapse-btn:after { content: ''; display: block; flex: none; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E") center / 24px 24px no-repeat; }
.osrm-theme-dark .leaflet-routing-container-hide .leaflet-routing-collapse-btn:after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 6h14M5 12h14M5 18h14'/%3E%3C/svg%3E"); }
.osrm-mode-section { flex: none; margin-bottom: 16px; }
.osrm-mode-caption { display: block; margin-bottom: 7px; color: var(--osrm-muted); font-size: var(--osrm-type-caption); font-weight: 600; letter-spacing: 0; text-transform: none; }
.osrm-theme-dark .osrm-access-legend { color: var(--osrm-muted); font-size: var(--osrm-type-caption); }
.osrm-theme-dark .leaflet-osrm-mode-selector { display: block; float: none; width: 100%; margin: 0; border: 1px solid #505050; border-radius: 12px; background: var(--osrm-surface); }
.osrm-theme-dark .leaflet-osrm-mode-selector .osrm-profile-chooser { width: 100%; height: 44px; padding: 0 12px; color: var(--osrm-text); font: inherit; font-size: var(--osrm-type-body); border-radius: 12px; }
.osrm-theme-dark .osrm-profile-chooser option { color: var(--osrm-text); background: var(--osrm-surface); }
.osrm-theme-dark .osrm-directions-inputs {
  position: relative;
  inset: auto;
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: none;
  margin: 0 0 18px;
  padding: 8px;
  border-radius: 16px;
  background: var(--osrm-surface);
  overflow: visible;
}
.osrm-theme-dark .leaflet-routing-geocoders .leaflet-routing-geocoder { min-height: 54px; padding: 2px 0; background: transparent; border-bottom: 1px solid #ffffff12; border-radius: 8px; }
.osrm-theme-dark .leaflet-routing-geocoder:focus-within { background: #444444; box-shadow: inset 2px 0 var(--osrm-accent); }
.osrm-theme-dark .osrm-directions-inputs .leaflet-routing-geocoder input { height: 48px; padding: 8px; color: var(--osrm-text); font: inherit; font-size: var(--osrm-type-body); outline: none; }
.osrm-theme-dark .osrm-directions-inputs input::placeholder { color: #a1b3b9; opacity: 1; }
.osrm-theme-dark .leaflet-routing-waypoint-pin { margin-left: 5px; }
.osrm-theme-dark .leaflet-routing-waypoint-handle { background-image: radial-gradient(circle, #9cb3bb 1.5px, transparent 2px); }
.osrm-theme-dark .leaflet-routing-remove-waypoint:after { color: #a8bdc4; }
.osrm-theme-dark .leaflet-routing-geocoders button { float: none; height: 44px; margin: 8px 0 0; border-radius: 10px; color: #c6d7de; background: #ffffff06; font: inherit; font-size: var(--osrm-type-body); }
.osrm-theme-dark .leaflet-routing-add-waypoint { display: inline-block; width: calc(100% - 48px); text-align: start; padding-inline-start: 8px; }
.osrm-theme-dark .leaflet-routing-add-waypoint:before { content: '+'; display: inline-block; margin-right: 9px; color: #85b2ff; font-size: 23px; vertical-align: -2px; }
.osrm-theme-dark .leaflet-routing-add-waypoint:after { content: none; }
.osrm-theme-dark .leaflet-routing-reverse-waypoints { width: 40px; margin-left: 8px !important; }
.osrm-theme-dark .osrm-route-preferences { margin-top: 12px; padding: 0 4px 4px; font-size: var(--osrm-type-body); }
.osrm-theme-dark .osrm-route-preferences > summary { width: fit-content; padding: 7px 12px; border: 1px solid #606060; border-radius: 18px; color: #d4e2e6; list-style-position: inside; }
.osrm-theme-dark .osrm-route-preferences[open] > summary { margin-bottom: 10px; }
.osrm-theme-dark .osrm-route-preferences label { color: #c0d0d6; }
.osrm-theme-dark .osrm-route-preferences input[type="text"] { height: 36px; margin-top: 6px; padding: 7px 9px; border: 1px solid #606060; border-radius: 7px; background: #292929; color: white; font-size: var(--osrm-type-body); }
.osrm-theme-dark .osrm-route-preferences input[type="checkbox"] { accent-color: var(--osrm-accent); margin-right: 7px; vertical-align: -2px; }
.osrm-theme-dark .osrm-route-preferences small { margin-top: 5px; color: #9aafb7; font-size: var(--osrm-type-caption); line-height: 1.5; }
.osrm-theme-dark .leaflet-routing-alternatives-container {
  position: relative;
  inset: auto;
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  max-height: none;
  height: auto;
  margin: 0 !important;
  padding: 0 0 8px;
  overflow: visible;
  transition: none;
}
.osrm-theme-dark .leaflet-routing-container-hide .leaflet-routing-alternatives-container { display: none; }
.osrm-theme-dark .leaflet-routing-alt.osrm-directions-instructions { display: block; margin: 0 0 12px; padding: 0; border: 1px solid #454545; border-radius: 16px; color: var(--osrm-text); background: var(--osrm-card); overflow: hidden; }
.osrm-theme-dark .leaflet-routing-alt:not(.leaflet-routing-alt-minimized) { border-color: #4c94ff; }
.osrm-theme-dark .osrm-directions-summary { margin: 0; padding: 20px; color: var(--osrm-text); background: none; cursor: pointer; }
.osrm-theme-dark .leaflet-routing-alt:not(.leaflet-routing-alt-minimized) .osrm-directions-summary { color: white; background: linear-gradient(135deg, #347ef5, #2469de); }
.osrm-theme-dark .osrm-route-time { margin: 0; font-size: var(--osrm-type-heading); line-height: 1.25; font-weight: 600; letter-spacing: -0.3px; }
.osrm-theme-dark .osrm-route-distance { margin: 7px 0 0; color: #b8cbd3; font-size: var(--osrm-type-body); line-height: 1.4; }
.osrm-theme-dark .leaflet-routing-alt:not(.leaflet-routing-alt-minimized) .osrm-route-distance { color: #ecf3ff; }
.osrm-theme-dark .osrm-directions-summary .osrm-route-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 7px 0 0; padding: 0; color: inherit; font-size: var(--osrm-type-body); line-height: 1.5; font-weight: 400; opacity: 0.85; }
.osrm-theme-dark .osrm-route-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.osrm-theme-dark .osrm-route-badge { display: inline-block; margin-top: 0; padding: 3px 8px; border: 1px solid #7398ad55; border-radius: 6px; color: #b8cdd8; font-size: var(--osrm-type-caption); line-height: 1.5; font-weight: 600; }
.osrm-theme-dark .leaflet-routing-alt:not(.leaflet-routing-alt-minimized) .osrm-route-badge { border-color: #ffffff55; color: white; }
.osrm-theme-dark .osrm-turn-list > summary { padding: 12px 16px; color: #c5d8df; cursor: pointer; font-size: var(--osrm-type-body); }
.osrm-theme-dark .osrm-turn-list[open] > summary { border-bottom: 1px solid #ffffff12; }
.osrm-theme-dark .leaflet-routing-alt-minimized .osrm-turn-list { display: none; }
.osrm-theme-dark .leaflet-routing-alt table { display: table; width: 100%; margin: 0; border-collapse: collapse; background: transparent; }
.osrm-theme-dark .leaflet-routing-alt table td { padding: 10px 7px; color: #c5d7df; font-size: var(--osrm-type-body); line-height: 1.5; border-bottom: 1px solid #ffffff08; }
.osrm-theme-dark .leaflet-routing-alt table td:first-child { padding-inline-start: 14px; }
.osrm-theme-dark .leaflet-routing-alt table tr:hover,
.osrm-theme-dark .leaflet-routing-alt table td:hover { background: #ffffff06; }
.osrm-theme-dark .leaflet-routing-icon { filter: grayscale(1) brightness(2.8); }
.osrm-theme-dark .leaflet-routing-icon-depart,
.osrm-theme-dark .leaflet-routing-icon-via,
.osrm-theme-dark .leaflet-routing-icon-arrive { filter: none; }
.osrm-route-empty { padding: 22px 18px; border: 1px dashed #365158; border-radius: 16px; color: #9fb5bd; }
.osrm-route-empty h2 { margin: 0 0 8px; font-size: var(--osrm-type-body); line-height: 1.4; font-weight: 550; color: #d4e2e6; }
.osrm-route-empty p { margin: 0; font-size: var(--osrm-type-body); line-height: 1.8; }
.osrm-route-label-marker { background: transparent; border: 0; }
.osrm-route-label { display: flex; flex-direction: column; align-items: center; width: max-content; transform: translate(-50%, -50%); padding: 8px 12px; border: 1px solid #7897b333; border-radius: 9px; background: #182b3ded; box-shadow: 0 3px 12px #00101a28; color: #a7c8fc; cursor: pointer; font: 14px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.osrm-route-label.selected { background: #3482ff; color: white; border-color: #81b2ff; }
.osrm-theme-dark .leaflet-bar { border: 1px solid #405a62; border-radius: 12px; box-shadow: 0 3px 16px #00151c26; overflow: hidden; }
.osrm-theme-dark .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; border-color: #ffffff14; background-color: #303030; color: #d2d2d2; }
.osrm-theme-dark .leaflet-bar a:hover { background-color: #454545; }
.osrm-theme-dark .leaflet-control-zoom { position: fixed; inset: calc(18px + 2 * (var(--osrm-map-control-size) + var(--osrm-map-control-gap))) 18px auto auto; width: var(--osrm-map-control-size); margin: 0; border: 0; }
.osrm-theme-dark .leaflet-control-zoom a { width: 100%; height: var(--osrm-map-control-size); line-height: var(--osrm-map-control-size); box-sizing: border-box; }
.osrm-theme-dark .leaflet-control-locate { border: 0; box-shadow: none; position: fixed; left: auto; right: 18px; top: calc(18px + var(--osrm-map-control-size) + var(--osrm-map-control-gap)); margin: 0; }
.osrm-theme-dark .leaflet-control-locate.leaflet-bar a { display: flex; align-items: center; justify-content: center; width: var(--osrm-map-control-size); height: var(--osrm-map-control-size); background-image: none; }
.osrm-theme-dark .leaflet-control-locate a .leaflet-control-locate-location-arrow { display: block; width: 26px; height: 26px; margin: 0; background-color: currentColor; -webkit-mask: url('../images/location.svg') center / contain no-repeat; mask: url('../images/location.svg') center / contain no-repeat; }
.osrm-theme-dark .leaflet-control-layers { background: transparent; border: 0; box-shadow: none; position: fixed; left: auto; right: 18px; top: 18px; bottom: auto; margin: 0; }
.osrm-theme-dark .leaflet-control-layers-toggle { display: flex; align-items: center; justify-content: center; width: var(--osrm-map-control-size); height: var(--osrm-map-control-size); border-radius: 12px; background: #303030; color: #d2d2d2; box-shadow: none; }
.osrm-theme-dark .leaflet-control-layers-toggle:before { content: ''; display: block; width: 26px; height: 26px; background-color: currentColor; -webkit-mask: url('../images/layers.svg') center / contain no-repeat; mask: url('../images/layers.svg') center / contain no-repeat; }
.osrm-theme-dark .leaflet-control-layers-toggle:hover { background-color: #454545; }
.osrm-theme-dark .leaflet-control-layers-expanded .leaflet-control-layers-toggle { display: none; }
.osrm-theme-dark .leaflet-control-layers-expanded { padding: 12px; border-radius: 12px; color: var(--osrm-text); background: #303030ed; }
.osrm-theme-dark .leaflet-control-attribution { border-radius: 6px 0 0; padding: 3px 8px; background: #292929d9; color: #a6bac4; font-size: 10px; max-width: calc(100vw - 24px); box-sizing: border-box; }
.osrm-theme-dark .leaflet-control-attribution a { color: #c6d8e4; }
.osrm-theme-dark .leaflet-control-scale { position: relative; inset: auto; float: right; clear: both; margin: 0 12px 8px 0; transform: none; }
.osrm-theme-dark .leaflet-control-scale-line { color: #bacfd9; border-color: #bacfd9; background: #172d36a6; text-shadow: none; }
.osrm-theme-dark .leaflet-osrm-tools-container { padding: 5px 8px; border: 1px solid #505050; border-radius: 10px; background: #292929eb; box-shadow: 0 3px 16px #00151c26; }
.osrm-panel-toolbar { flex: none; margin: -8px 0 16px; }
.osrm-theme-dark .osrm-panel-toolbar .leaflet-osrm-tools-container { position: relative; inset: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; float: none; width: 100%; height: auto; min-height: 38px; max-width: none; margin: 0 !important; box-sizing: border-box; box-shadow: none; }
/* Keep actions together and give language and units a dedicated second row. */
.osrm-theme-dark .osrm-panel-toolbar .leaflet-osrm-tools-container > div { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; height: 32px; padding: 0; box-sizing: border-box; }
.osrm-theme-dark .osrm-panel-toolbar .leaflet-osrm-tools-container > .leaflet-osrm-tools-localization { order: 1; flex: 0 0 100%; gap: 8px; height: auto; min-width: 0; padding-top: 6px; border-top: 1px solid var(--osrm-border); }
.osrm-theme-dark .osrm-panel-toolbar select { flex: 1 1 0; width: 0; min-width: 0; max-width: 100%; height: 32px; font: inherit; padding: 0 8px; border: 1px solid var(--osrm-border); border-radius: 6px; box-sizing: border-box; }
.osrm-theme-dark .osrm-panel-toolbar .osrm-localization-chooser { flex-grow: 2; }
.osrm-theme-dark .osrm-panel-toolbar .leaflet-osrm-tools-container > .leaflet-osrm-tools-version { margin-left: auto; border: 0; }
.osrm-theme-dark .osrm-panel-toolbar .leaflet-osrm-tools-share { position: static; }
.osrm-theme-dark .osrm-panel-toolbar .share-popup { top: calc(100% + 8px); bottom: auto; left: 0; right: auto; width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--osrm-border); border-radius: 14px; padding: 12px; box-shadow: 0 12px 30px #0005; background: #303030; }

.osrm-theme-dark .leaflet-osrm-tools-container .osrm-directions-icon { filter: brightness(0) invert(0.9); }
.osrm-theme-dark .osrm-localization-chooser,
.osrm-theme-dark .osrm-units-chooser { color: #d0dfe5; background-color: #303030; }
.osrm-theme-dark .leaflet-routing-geocoder-result { z-index: 3000; }
.osrm-theme-dark .leaflet-routing-geocoder-result table { border: 1px solid #606060; border-radius: 10px; color: #edf4f6; background: #303030; box-shadow: 0 8px 20px #00101444; }
.osrm-theme-dark .leaflet-routing-geocoder-selected,
.osrm-theme-dark .leaflet-routing-geocoder-result tr:hover { background: #454545; }
.osrm-theme-dark :focus-visible { outline: 2px solid #8bbaff; outline-offset: 3px; }
.osrm-theme-dark .osrm-edition-switch { background: #303030; }
.osrm-theme-dark .osrm-edition-switch:hover { background: #444; }
.osrm-theme-dark * { scrollbar-width: thin; scrollbar-color: #4c6872 transparent; }
.osrm-theme-dark .leaflet-popup-content-wrapper,
.osrm-theme-dark .leaflet-popup-tip { background: #303030; color: #e1edf1; }
.osrm-theme-dark .leaflet-popup-content-wrapper { border: 1px solid #45616b; border-radius: 14px; box-shadow: 0 6px 22px #00141e44; }
.osrm-theme-dark .leaflet-popup-content a,
.osrm-theme-dark .leaflet-popup-close-button { color: #9dc3ff; }
.osrm-theme-dark .leaflet-label,
.osrm-theme-dark .leaflet-tooltip,
.osrm-theme-dark .osrm-entrance-label-inner { background: #192f3aeb; color: #d3e1e8; border-color: #416272; }
.osrm-theme-dark .osrm-entrance-label-selected { color: #8bbaff; }
.osrm-theme-dark .osrm-entrance-label-inner div:hover { color: white; }
.osrm-theme-dark .osrm-entrance-label-merged .osrm-entrance-label-inner div + div { border-color: #bfd5df22; }
@media (max-width: 960px) {
  .osrm-theme-dark { --osrm-sidebar-width: 320px; }
}
@media (max-width: 900px) {
  .osrm-theme-dark .osrm-edition-switch { max-width: calc(100% - 2 * (var(--osrm-map-control-size) + 24px)); }
  .osrm-theme-dark .map { left: 0; width: 100%; height: 100%; bottom: 0; }
  .osrm-theme-dark .leaflet-routing-container.dark { inset: auto 0 0; width: 100%; height: var(--osrm-sheet-height, 60dvh); max-height: 90dvh; padding: 14px 16px max(12px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid #505050; border-radius: 22px 22px 0 0; transition: none; }
  .osrm-theme-dark .leaflet-routing-container.dark.osrm-panel-resizing { transition: height 180ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .osrm-panel-resizer { display: flex; position: sticky; top: -14px; z-index: 1100; flex: none; align-items: center; justify-content: center; height: 44px; margin: -14px -16px 8px; border-radius: 22px 22px 0 0; background: var(--osrm-panel); touch-action: none; cursor: ns-resize; }
  .osrm-panel-resizer:before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--osrm-muted); }
  .osrm-panel-resizer:focus-visible { outline: 2px solid #9dc3ff; outline-offset: -6px; border-radius: 16px; }
  .osrm-theme-dark .leaflet-routing-container.dark.osrm-panel-dragging { transition: none; user-select: none; }
  .osrm-panel-header { margin-bottom: 10px; }

  .osrm-mode-section { margin-bottom: 10px; }
  .osrm-mode-caption { display: none; }
  .osrm-theme-dark .leaflet-osrm-mode-selector .osrm-profile-chooser { height: 38px; }
  .osrm-theme-dark .osrm-directions-inputs { max-height: none; margin-bottom: 10px; }
  .osrm-theme-dark .leaflet-routing-geocoders .leaflet-routing-geocoder { min-height: 44px; }
  .osrm-theme-dark .osrm-directions-inputs .leaflet-routing-geocoder input { height: 40px; }
  .osrm-theme-dark .leaflet-routing-alternatives-container { flex: none; max-height: none; min-height: 0; overflow: visible; }
  .osrm-theme-dark .osrm-directions-summary { padding: 15px; }

  .osrm-theme-dark .leaflet-bottom.leaflet-right { bottom: var(--osrm-panel-height, 60dvh); }
}

/* The pane is the only scroll surface; collapse it to a reachable reopen button. */
.osrm-theme-dark .leaflet-routing-container.dark.leaflet-routing-container-hide { inset: 12px auto auto 12px; width: 56px; height: 56px; max-height: none; padding: 10px; border: 0; border-radius: 14px; overflow: visible; transition: none; }
.osrm-theme-dark .leaflet-routing-container-hide > :not(.osrm-panel-header) { display: none; }
.osrm-theme-dark .leaflet-routing-container-hide .osrm-panel-header { margin: 0; }
.osrm-theme-dark .leaflet-routing-container-hide .osrm-panel-brand { display: none; }
@media (max-width: 900px) {
  .osrm-theme-dark .leaflet-routing-container.dark.leaflet-routing-container-hide { inset: auto auto max(12px, env(safe-area-inset-bottom)) 12px; }
}
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .osrm-theme-dark:has(.leaflet-routing-container.dark:not(.leaflet-routing-container-hide)) .osrm-edition-switch {
    left: calc(50% + var(--osrm-sidebar-width) / 2);
    max-width: calc(100% - var(--osrm-sidebar-width) - 2 * (var(--osrm-map-control-size) + 24px));
  }
  .osrm-theme-dark { --osrm-sidebar-width: min(320px, 44vw); }
  .osrm-theme-dark .leaflet-routing-container.dark { inset: 0 auto 0 0; width: var(--osrm-sidebar-width); height: 100dvh; max-height: none; padding: 12px; border: 0; border-right: 1px solid #454545; border-radius: 0; }
  .osrm-theme-dark .leaflet-routing-container.dark.leaflet-routing-container-hide { inset: 12px auto auto 12px; }
  .osrm-panel-resizer { display: none; }
  .osrm-theme-dark .leaflet-bottom.leaflet-right { bottom: 0; }
}
@media (pointer: coarse) {
  .osrm-theme-dark { --osrm-type-body: 16px; --osrm-map-control-size: 44px; }
  .osrm-theme-dark .osrm-panel-header .leaflet-routing-collapse-btn { width: 44px; height: 44px; }
  .osrm-theme-dark .leaflet-routing-container.dark.leaflet-routing-container-hide { width: 64px; height: 64px; }
  .osrm-theme-dark .osrm-panel-toolbar .leaflet-osrm-tools-container { gap: 2px; }
  .osrm-theme-dark .osrm-panel-toolbar .leaflet-osrm-tools-container > div { flex-basis: 36px; height: 40px; }
  .osrm-theme-dark .osrm-panel-toolbar .leaflet-osrm-tools-container > .leaflet-osrm-tools-localization { flex-basis: 100%; height: auto; }
  .osrm-theme-dark .osrm-panel-toolbar .osrm-directions-icon { padding: 6px; box-sizing: content-box; background-origin: content-box; background-clip: content-box; }
  .osrm-theme-dark .osrm-panel-toolbar select,
  .osrm-theme-dark .leaflet-osrm-mode-selector .osrm-profile-chooser { height: 44px; }
  .osrm-theme-dark .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
}

.osrm-vector-loading-grid {
  --osrm-grid-line: rgb(48 62 80 / 16%);
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #f4f5f1;
  background-image:
    linear-gradient(to right, var(--osrm-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--osrm-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}
.osrm-vector-loading-grid-dark {
  --osrm-grid-line: rgb(190 207 228 / 20%);
  background-color: #303e50;
}

.osrm-vector-status { position: absolute; top: 16px; left: 50%; z-index: 750; display: flex; align-items: center; gap: 10px; max-width: min(480px, calc(100% - 96px)); transform: translateX(-50%); padding: 9px 13px; border: 1px solid #505050; border-radius: 10px; background: var(--osrm-panel, rgb(41 41 41 / 80%)); color: #d4e2ec; box-shadow: 0 3px 16px #00141c22; font: 12px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.osrm-vector-status[hidden] { display: none; }
.osrm-vector-status:not(.osrm-vector-status-error):before { content: ''; flex: none; width: 12px; height: 12px; border: 2px solid #7897b355; border-top-color: #9ec5ff; border-radius: 50%; animation: osrm-vector-loading 0.8s linear infinite; }
.osrm-vector-status button { float: none; flex: none; width: auto; height: auto; min-height: 32px; margin: 0; padding: 5px 10px; border: 0; border-radius: 6px; background: #2b70df; color: white; cursor: pointer; font: inherit; }
@keyframes osrm-vector-loading { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .osrm-vector-status { top: 66px; } }
body:has(> .osrm-edition-switch) .osrm-vector-status { top: 66px; }
@media (prefers-reduced-motion: reduce) { .osrm-vector-status:before { animation: none; } }
@media (prefers-reduced-motion: reduce) { .osrm-theme-dark .leaflet-routing-container.dark.osrm-panel-resizing { transition: none; } }

.osrm-components-status:not(.osrm-vector-status-error):before { display: none; }
