.perabox-osm-map {
  --pb-map-status-layer: 1001;
  position: relative;
  min-height: 280px;
  overflow: hidden;
  color: #17150f;
  background: #e9ece6;
  isolation: isolate;
}

.perabox-osm-map--coarse-pointer {
  touch-action: pan-y pinch-zoom !important;
}

.perabox-osm-map.leaflet-container {
  font: 500 13px/1.45 var(--pb-font-sans, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.perabox-osm-map:focus-visible,
.perabox-osm-map .leaflet-control a:focus-visible,
.perabox-osm-map .leaflet-marker-icon:focus-visible {
  outline: 3px solid var(--pb-focus, #9a650d);
  outline-offset: 2px;
}

.perabox-osm-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(23, 21, 15, .16);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(23, 21, 15, .16);
}

.perabox-osm-map .leaflet-control-zoom a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #17150f;
  background: #fffdf7;
  font: 800 20px/1 var(--pb-font-sans, sans-serif);
}

.perabox-osm-map .leaflet-control-attribution {
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  color: #38352f;
  background: rgba(255, 253, 247, .94);
  font-size: 11px;
  line-height: 1.35;
}

.perabox-osm-map .leaflet-control-attribution a {
  color: #3f5d13;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pb-map-marker {
  display: grid;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  place-items: center;
  color: #fffdf7;
  border: 3px solid #fffdf7;
  border-radius: 50%;
  background: #356f9f;
  box-shadow: 0 7px 18px rgba(23, 21, 15, .3);
}

.pb-map-marker span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.pb-map-marker svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.25;
}

.pb-map-marker-pickup {
  color: #fff;
  background: #27845f;
}

.pb-map-marker-dropoff {
  color: #171208;
  background: #e9b949;
}

.pb-map-marker-driver {
  color: #fff;
  background: #356f9f;
}

.pb-map-marker-point {
  color: #171208;
  background: #ffd778;
}

.perabox-osm-map .leaflet-tooltip {
  max-width: min(280px, 70vw);
  padding: 7px 9px;
  color: #17150f;
  border: 1px solid rgba(23, 21, 15, .14);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 8px 24px rgba(23, 21, 15, .14);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

.pb-map-status {
  position: absolute;
  z-index: var(--pb-map-status-layer);
  top: 12px;
  left: 12px;
  max-width: min(340px, calc(100% - 78px));
  padding: 9px 11px;
  color: #5e3b08;
  border: 1px solid #d8a64c;
  border-radius: 9px;
  background: #fff5dd;
  box-shadow: 0 7px 20px rgba(23, 21, 15, .14);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.pb-map-status[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .perabox-osm-map {
    min-height: 250px;
  }

  .perabox-osm-map .leaflet-control-attribution {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .perabox-osm-map *,
  .perabox-osm-map *::before,
  .perabox-osm-map *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .pb-map-marker {
    color: ButtonText;
    border-color: ButtonText;
    background: ButtonFace;
    forced-color-adjust: auto;
  }
}
