.distributor-map {
  position: relative;
}

.distributor-map > picture {
  display: block;
  width: 100%;
}

.distributor-map > picture > img {
  display: block;
  width: 100%;
  height: auto;
}

.distributor-marker {
  position: absolute;
  z-index: 2;
  left: var(--marker-left);
  top: var(--marker-top);
  width: 25px;
  height: 34px;
  transform: translate(-50%, -100%);
  color: rgb(28 35 31);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
  transition: transform .18s ease, color .18s ease;
  transform-origin: 50% 100%;
  animation: distributor-marker-bounce .72s cubic-bezier(.22, .8, .32, 1.18) both;
  animation-delay: var(--marker-delay, 0ms);
}

@keyframes distributor-marker-bounce {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-100% - 90px)) scale(.72);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, calc(-100% + 8px)) scale(1.06, .92);
  }
  68% {
    transform: translate(-50%, calc(-100% - 14px)) scale(.96, 1.04);
  }
  84% {
    transform: translate(-50%, calc(-100% + 3px)) scale(1.02, .98);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}

.distributor-marker svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.distributor-marker path {
  fill: currentColor;
  stroke: #fff;
  stroke-width: 1.5;
}

.distributor-marker circle {
  fill: #fff;
}

.distributor-marker span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #1c1f23;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.distributor-marker:hover,
.distributor-marker:focus-visible {
  z-index: 100;
  color: #920800;
  outline: none;
  transform: translate(-50%, -100%) scale(1.18);
}

.distributor-marker:hover span,
.distributor-marker:focus-visible span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.div-block-3 {
  scroll-margin-top: 110px;
}

.div-block-3.is-map-target {
  outline: 3px solid #57b33e;
  outline-offset: 5px;
  animation: distributor-card-highlight 2.2s ease both;
}

@keyframes distributor-card-highlight {
  0%, 65% { outline-color: #57b33e; }
  100% { outline-color: transparent; }
}

@media (max-width: 767px) {
  .distributor-marker {
    width: 18px;
    height: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .distributor-marker {
    animation: none;
  }
}
