/* Shared pin presentation with optional size, glow and animation controls. */
/* Give the mouse a stable target around the offset pin body, independent of hover growth. */
@media (hover: hover) and (pointer: fine) and (not (any-pointer: coarse)) {
  #map .leaflet-marker-icon.leaflet-interactive.category-pin-wrap {
    pointer-events: none;
  }

  #map .leaflet-marker-icon.leaflet-interactive.category-pin-wrap::before {
    content: "";
    position: absolute;
    inset: 2px 4px 2px -2px;
    pointer-events: auto;
  }
}

.category-pin-wrap > .outlo-pin-artwork {
  position: relative;
  display: block;
  width: 37px;
  height: 45px;
  transform-origin: 0 0;
}
.category-pin-wrap.is-pin-size-small > .outlo-pin-artwork { transform: scale(.85); }
.category-pin-wrap.is-pin-size-large > .outlo-pin-artwork { transform: scale(1.2); }
.category-pin-wrap.is-pin-glow-gentle .category-pin-status-backdrop::before {
  opacity: calc(var(--status-halo-opacity, 0) * .55);
  transform: translate(-50%, -50%) scale(calc(var(--status-halo-scale, 1) * .9));
}
.category-pin-wrap.is-pin-glow-strong .category-pin-status-backdrop::before {
  opacity: min(1, calc(var(--status-halo-opacity, 0) * 1.8));
  transform: translate(-50%, -50%) scale(calc(var(--status-halo-scale, 1) * 1.18));
}
.category-pin-wrap.is-pin-size-custom > .outlo-pin-artwork { transform: scale(var(--outlo-pin-scale, 1)); }
.category-pin-wrap.is-pin-glow-custom .category-pin-status-backdrop::before {
  opacity: min(1, calc(var(--status-halo-opacity, 0) * var(--outlo-pin-glow-strength, 1)));
  transform: translate(-50%, -50%) scale(calc(var(--status-halo-scale, 1) * var(--outlo-pin-glow-scale, 1)));
}
.category-pin-wrap.is-pin-animation-disabled .category-pin,
.category-pin-wrap.is-pin-animation-disabled .category-pin-status-ring,
.category-pin-wrap.is-pin-animation-disabled .category-pin-status-backdrop::after {
  animation: none !important;
  transition: none !important;
}
.category-pin-wrap.is-pin-animation-disabled .category-pin-status-backdrop::after { opacity: 0 !important; }

/* TOP promo keeps a crisp opaque inner ring without the soft status halo. */
.category-pin-wrap.is-status-paid-top {
  --status-inner-color: #d97706;
  --status-inner-opacity: 1;
  --status-outer-opacity: .8;
  --status-halo-opacity: 0;
}
.category-pin-wrap.is-status-paid-top .category-pin-status-backdrop::before {
  filter: none;
}

/* Add one pixel of radial separation without thickening the outer stroke. */
.category-pin-wrap.is-status-paid-top .category-pin-status-ring.is-outer {
  width: calc(36px + 2px / var(--status-outer-scale));
  height: calc(36px + 2px / var(--status-outer-scale));
}
/* Both TOP tiers take two 0.5s breaths, then rest for 3.5s. */
.category-pin-wrap.is-status-paid-top:not(.is-selected) .category-pin-status-ring.is-outer,
.category-pin-wrap.is-status-top-event:not(.is-selected) .category-pin-status-ring.is-outer {
  animation: outlo-top-status-breathe 4.5s ease-in-out infinite;
}

@keyframes outlo-top-status-breathe {
  0%, 11.111111%, 22.222222%, 100% {
    transform: translate(-50%, -50%) scale(var(--status-outer-scale));
    opacity: var(--status-outer-opacity);
  }
  5.555556%, 16.666667% {
    transform: translate(-50%, -50%) scale(calc(var(--status-outer-scale) * 1.5));
    opacity: calc(var(--status-outer-opacity) * .87);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-pin-wrap > .outlo-pin-artwork,
  .category-pin-wrap .category-pin,
  .category-pin-wrap .category-pin-status-ring,
  .category-pin-wrap .category-pin-status-backdrop::after {
    animation: none !important;
    transition: none !important;
  }
}
