/* Original PC/mobile map artwork has the same 1419 × 1109 geometry.
   Marker widths preserve each source pin's scale; the lower tip is its anchor. */
#brand-scale .map-stage {
  position: relative;
  width: 100%;
  isolation: isolate;
}

#brand-scale .map-stage .map-base {
  display: block;
  width: 100%;
  height: auto;
}

#brand-scale .map-marker {
  position: absolute;
  z-index: 1;
  top: var(--city-y, 59.20813%);
  left: var(--city-x, 70.59591%);
  width: 3.64980146%;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

#brand-scale .map-stage.is-ready .map-marker {
  transition: left 620ms cubic-bezier(.22, .7, .24, 1), top 620ms cubic-bezier(.22, .7, .24, 1);
}

#brand-scale .map-pin {
  position: relative;
  z-index: 1;
  display: block;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / .3));
}

/* Override home.css's broad `.map-wrap img` rule for this small overlay. */
#brand-scale .map-marker .map-pin img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  mix-blend-mode: normal;
}

#brand-scale .map-city-label {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  padding: 3px 7px;
  border: 1px solid rgb(223 197 36 / .65);
  border-radius: 4px;
  background: rgb(0 0 0 / .88);
  color: #dfc524;
  font-size: clamp(10px, .8vw, 14px);
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  transform: translateX(-50%);
}

#brand-scale .map-ripple {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 110%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

#brand-scale .map-ripple::before,
#brand-scale .map-ripple::after {
  position: absolute;
  inset: 0;
  border: 2px solid #dfc524;
  border-radius: 50%;
  opacity: 0;
  content: '';
}

#brand-scale .map-marker.is-landing .map-pin {
  animation: city-pin-land 620ms cubic-bezier(.3, .7, .4, 1) both;
}

#brand-scale .map-marker.is-landing .map-ripple::before {
  animation: city-pin-ripple 900ms ease-out both;
}

#brand-scale .map-marker.is-landing .map-ripple::after {
  animation: city-pin-ripple 900ms 140ms ease-out both;
}

@keyframes city-pin-land {
  0%, 100% { transform: translateY(0) scale(1); }
  24% { transform: translateY(-24%) scale(.97, 1.03); }
  53% { transform: translateY(0) scale(1.06, .94); }
  75% { transform: translateY(-9%) scale(.99, 1.01); }
}

@keyframes city-pin-ripple {
  0% { opacity: .8; transform: scale(.3); }
  100% { opacity: 0; transform: scale(2.3); }
}

@media (max-width: 760px) {
  #brand-scale .map-marker { width: 4.1444585%; }
  #brand-scale .map-city-label { bottom: calc(100% + 4px); padding: 2px 5px; font-size: 10px; }
  #brand-scale .map-ripple::before,
  #brand-scale .map-ripple::after { border-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  #brand-scale .map-stage.is-ready .map-marker { transition: none; }
  #brand-scale .map-marker.is-landing .map-pin,
  #brand-scale .map-marker.is-landing .map-ripple::before,
  #brand-scale .map-marker.is-landing .map-ripple::after { animation: none; }
}

.motion-reduced #brand-scale .map-stage.is-ready .map-marker { transition: none; }
.motion-reduced #brand-scale .map-marker.is-landing .map-pin,
.motion-reduced #brand-scale .map-marker.is-landing .map-ripple::before,
.motion-reduced #brand-scale .map-marker.is-landing .map-ripple::after { animation: none; }
