/* Static world map + pulsing spotlight for each place. Noir palette throughout.

   The map frame's aspect ratio matches the windowed SVG (700x500 = 1.4:1),
   which is a full equirectangular world with the left 30% trimmed. */

.map-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4vh var(--gut) 2vh;
}

.map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.map-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.map-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }

.map-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 176, 106, 0.9);
  animation: legendspot 3.6s ease-in-out infinite;
}
@keyframes legendspot {
  0%, 100% { box-shadow: 0 0 8px rgba(232, 176, 106, 0.6); }
  50% { box-shadow: 0 0 16px rgba(232, 176, 106, 1); }
}

.map-frame {
  position: relative;
  aspect-ratio: 700 / 500;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080b10;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}

.map-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}

.map-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-pins { position: absolute; inset: 0; }

/* ---- a place: pulsing spotlight, expanding ring, dot, name ---- */

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

/* the spotlight: a soft glow that breathes, so the eye is drawn to each place */
.map-pin .pin-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(232, 176, 106, 0.34) 0%,
    rgba(232, 176, 106, 0.13) 38%,
    rgba(232, 176, 106, 0) 70%
  );
  animation: pinspot 3.6s ease-in-out infinite;
}

@keyframes pinspot {
  0%, 100% { transform: scale(0.82); opacity: 0.5; }
  50% { transform: scale(1.14); opacity: 0.95; }
}

/* the ring that travels outward */
.map-pin .pin-halo {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 1px solid rgba(232, 176, 106, 0.55);
  opacity: 0;
  animation: pinpulse 2.8s ease-out infinite;
}
.map-pin:nth-child(2n) .pin-halo { animation-delay: 0.7s; }
.map-pin:nth-child(3n) .pin-halo { animation-delay: 1.4s; }
.map-pin:nth-child(4n) .pin-halo { animation-delay: 2.1s; }
.map-pin:nth-child(2n) .pin-glow { animation-delay: 0.9s; }
.map-pin:nth-child(3n) .pin-glow { animation-delay: 1.8s; }

@keyframes pinpulse {
  0% { transform: scale(0.3); opacity: 0.85; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.map-pin .pin-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 176, 106, 0.2), 0 0 18px rgba(232, 176, 106, 0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-pin .pin-label {
  position: absolute;
  left: 14px;
  top: -8px;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 1);
  transition: color 0.25s ease;
}

.map-pin:hover .pin-dot {
  transform: scale(1.45);
  box-shadow: 0 0 0 6px rgba(232, 176, 106, 0.22), 0 0 26px rgba(232, 176, 106, 1);
}
.map-pin:hover .pin-label { color: var(--accent); }
.map-pin:hover .pin-glow { opacity: 1; transform: scale(1.3); }

.map-hint {
  margin: 12px 2px 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.map-note {
  margin: 6px 2px 0;
  font-size: 0.76rem;
  color: var(--muted);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .map-frame { border-radius: 14px; }
  .map-head { margin-bottom: 10px; }
  .map-pin .pin-label { font-size: 0.6rem; left: 11px; }
  .map-pin .pin-dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .map-pin .pin-glow { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

@media (prefers-reduced-motion: reduce) {
  .map-pin .pin-halo { animation: none; opacity: 0.5; }
  .map-pin .pin-glow { animation: none; opacity: 0.7; }
  .map-legend i { animation: none; }
}
