.map-canvas.tripgo-leaflet-ready {
  position: relative;
  overflow: hidden;
  background: #dce8ee;
}

.tripgo-leaflet-map,
.tripgo-leaflet-map.leaflet-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #dce8ee;
  color: var(--ink);
  font-family: inherit;
}

.tripgo-leaflet-map .leaflet-control-zoom {
  margin: 13px 13px 0 0;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(36, 28, 65, .2);
}

.tripgo-leaflet-map .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  line-height: 36px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 21px;
}

.tripgo-leaflet-map .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.tripgo-leaflet-map .leaflet-control-zoom a:hover,
.tripgo-leaflet-map .leaflet-control-zoom a:focus-visible {
  background: var(--ink);
  color: #fff;
}

.tripgo-leaflet-map .leaflet-control-attribution {
  max-width: calc(100% - 20px);
  padding: 3px 6px;
  background: rgba(255, 255, 255, .9);
  color: #4e5052;
  font-size: 10px;
}

.tripgo-map-icon {
  width: 1px !important;
  height: 1px !important;
  border: 0;
  background: transparent;
}

.tripgo-leaflet-map .tripgo-map-price {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: max-content;
  min-width: 52px;
  margin: 0;
  padding: 7px 10px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 5px 16px rgba(36, 28, 65, .3);
  font: 750 12px/1.1 inherit;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.tripgo-leaflet-map .tripgo-map-price::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: var(--ink);
  transform: translate(-50%, -5px) rotate(45deg);
}

.tripgo-leaflet-map .tripgo-map-price:hover,
.tripgo-leaflet-map .tripgo-map-price:focus-visible,
.tripgo-leaflet-map .tripgo-map-price.selected {
  z-index: 3;
  background: #f26a4b;
  color: #fff;
  box-shadow: 0 7px 20px rgba(36, 28, 65, .36);
  transform: translate(-50%, calc(-100% - 2px));
  outline: 0;
}

.tripgo-leaflet-map .tripgo-map-price:hover::after,
.tripgo-leaflet-map .tripgo-map-price:focus-visible::after,
.tripgo-leaflet-map .tripgo-map-price.selected::after {
  background: #f26a4b;
}

.map-canvas .tripgo-map-count {
  top: 12px;
  left: 12px;
  z-index: 650;
  max-width: calc(100% - 86px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 9px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(36, 28, 65, .16);
  font-size: 12px;
  font-weight: 700;
}

.map-canvas #map-popup .map-popup {
  z-index: 700;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(36, 28, 65, .22);
}

@media (max-width: 600px) {
  .tripgo-leaflet-map .tripgo-map-price {
    min-width: 48px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .map-canvas .tripgo-map-count {
    max-width: calc(100% - 78px);
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tripgo-leaflet-map .tripgo-map-price {
    transition: none;
  }
}
