.service-area-map-card {
  position: relative;
  isolation: isolate;
  box-shadow: none;
}

.service-area-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
  background: #f7fafc;
}

.service-area-map .ol-viewport {
  font-family: "Urbanist", sans-serif;
  background: #f7fafc;
}

.service-area-map .ol-attribution {
  border-radius: 999px 0 0 0;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(8, 21, 33, 0.58);
  font-size: 10px;
}

.service-area-map .ol-zoom {
  overflow: hidden;
  border: 1px solid rgba(8, 21, 33, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(8, 21, 33, 0.12);
}

.service-area-map .ol-zoom button {
  border: 0;
  background: #fff;
  color: var(--aj-navy);
  font-weight: 800;
}

.service-area-pin {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--aj-accent);
  box-shadow:
    0 0 0 6px rgba(246, 177, 41, 0.2),
    0 12px 26px rgba(8, 21, 33, 0.18);
  transform: rotate(-45deg);
}

.service-area-pin:before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px rgba(8, 21, 33, 0.08);
}

.service-area-pin:after {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(246, 177, 41, 0.35);
  border-radius: 50%;
  animation: serviceMapPulse 2.4s ease-out infinite;
}

.service-area-label {
  position: relative;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #687586;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.service-area-marker-overlay {
  transform: translate(-14px, -28px);
}

.service-area-label-overlay {
  transform: translate(10px, 12px);
}

.service-area-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 28% 34%,
      rgba(246, 177, 41, 0.18),
      transparent 22%
    ),
    linear-gradient(145deg, #f8fbfd, #edf4f8);
}

.service-area-map.is-ready + .service-area-map-fallback {
  display: none;
}

.service-area-map-fallback span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 8px 11px;
  border-radius: 999px;
  background: transparent;
  color: #687586;
  font-size: 13px;
  font-weight: 850;
  box-shadow: none;
}

@keyframes serviceMapPulse {
  0% {
    opacity: 0.72;
    transform: scale(0.55);
  }

  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-area-pin:after {
    animation: none;
  }
}

@media (max-width: 991px) {
  .service-area-map-card {
    min-height: 500px;
  }
}

@media (max-width: 767px) {
  .service-area-map-card {
    min-height: 430px;
  }

  .service-area-label {
    font-size: 11px;
    padding: 7px 9px;
  }
}
