/* ——— Map & detail POIs ——— */

.poi {
  position: absolute;
  /* 48px on the 1920 design stage */
  width: 2.5%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  cursor: pointer;
  pointer-events: auto;
  animation: poi-pulse 2.4s var(--delay, 0s) ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.poi__icon {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.poi:hover,
.poi:focus-visible {
  z-index: 1;
  outline: none;
}

.poi:focus-visible {
  box-shadow: 0 0 0 calc(3 * var(--u)) rgba(0, 120, 195, 0.45);
}

/* Map POIs: orange marker + building title in a frosted glass pill (Figma). */
.poi.map-poi {
  container-type: size;
  overflow: visible;
  border-radius: 0;
  /* Keep position fixed; only the marker icon pulses, not the label pill. */
  animation: none;
  transform: translate(-50%, -50%);
}

.map-poi__shell {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 41.667cqw;
  height: 119.24%;
  padding: 0 56cqw 0 10.7cqw;
  border: 2.083cqw solid #ffffff;
  border-radius: 999px;
  background-image: var(--map-poi-pill);
  backdrop-filter: blur(8.96cqw);
  -webkit-backdrop-filter: blur(8.96cqw);
  /* Anchor on the icon center (button center), not the full pill width. */
  transform: translate(calc(-50cqw - 10.7cqw), -50%);
}

.poi.map-poi .poi__icon {
  flex: 0 0 100cqw;
  width: 100cqw;
  height: 100cqw;
  transform-origin: center;
  animation: map-poi-icon-pulse 2.4s var(--delay, 0s) ease-in-out infinite;
}

.map-poi__label {
  color: #ffffff;
  font-family: var(--f-primary, "HagerScale", Arial, sans-serif);
  font-size: 41.667cqw;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.poi.map-poi:hover .poi__icon,
.poi.map-poi:focus-visible .poi__icon,
.poi.map-poi.is-active .poi__icon {
  filter: drop-shadow(0 0 10px rgba(253, 80, 0, 0.75));
}

.poi.map-poi:focus-visible {
  box-shadow: none;
}

.poi.map-poi:focus-visible .map-poi__shell {
  box-shadow: 0 0 0 calc(3 * var(--u)) rgba(0, 120, 195, 0.45);
}

.detail-poi {
  container-type: size;
  background: transparent;
  animation: none;
  pointer-events: none;
}

.detail-poi__graphic {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.detail-poi__graphic--active {
  display: none;
}

.detail-poi:hover .detail-poi__graphic--default,
.detail-poi:focus-visible .detail-poi__graphic--default,
.detail-poi.is-active .detail-poi__graphic--default {
  display: none;
}

.detail-poi:hover .detail-poi__graphic--active,
.detail-poi:focus-visible .detail-poi__graphic--active,
.detail-poi.is-active .detail-poi__graphic--active {
  display: block;
}

.detail-poi:hover,
.detail-poi:focus-visible {
  z-index: 1;
  outline: none;
  animation-play-state: paused;
  transform: translate(-50%, -50%) scale(1.12);
  filter: drop-shadow(0 0 10px rgba(253, 80, 0, 0.55));
}

.detail-poi__number {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--f-primary, "HagerScale", Arial, sans-serif);
  /* 16px on the 48px Figma marker */
  font-size: 33.333cqw;
  font-weight: 700;
  line-height: 3.2;
  /* Trim HagerScale half-leading for optical vertical centering */
  text-box: trim-both cap alphabetic;
  pointer-events: none;
}

.experience.is-zoomed .detail-poi {
  pointer-events: auto;
  animation: detail-poi-pulse 2.4s var(--delay, 0s) ease-in-out infinite;
  animation-delay: calc(var(--detail-poi-delay) + var(--delay, 0s));
}

@keyframes poi-pulse {
  0%,
  42%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  16% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes map-poi-icon-pulse {
  0%,
  42%,
  100% {
    transform: scale(1);
  }

  16% {
    transform: scale(1.1);
  }
}

@keyframes detail-poi-pulse {
  0%,
  42%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  16% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}
