/*
 * globe.css
 * Styles for the hero globe module (assets/js/globe.js) — a real lit 3D
 * sphere rendered via WebGL, plus an HTML overlay for the Córdoba halo and
 * destination labels drawn on top of it.
 */

.globe-canvas {
  position: relative;
  z-index: 1;
}

/* Soft terracotta ambient glow behind the whole globe — what makes it read
   as a designed centerpiece rather than a flat cutout, and keeps it
   visible even sitting over the hero photo. */
.globe-glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(194, 90, 50, 0.22) 0%,
    rgba(194, 90, 50, 0.08) 45%,
    rgba(194, 90, 50, 0) 72%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.globe-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.globe-label {
  position: absolute;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ot-on-surface);
  background: rgba(251, 246, 241, 0.9);
  padding: 3px 10px;
  border-radius: 100px;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.32s ease;
}

/* Córdoba's label is the origin — set apart from destination labels so it
   reads as the protagonist, not just another stop. */
.globe-label--origin {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #C25A32;
  background: rgba(251, 246, 241, 0.95);
  padding: 4px 12px;
  font-weight: 400;
}

.cor-halo {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.cor-halo span {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 1.5px solid #C25A32;
  opacity: 0;
  animation: cor-pulse 2.4s ease-out infinite;
}

.cor-halo span:nth-child(2) { animation-delay: 0.8s; }
.cor-halo span:nth-child(3) { animation-delay: 1.6s; }

@keyframes cor-pulse {
  0%   { transform: scale(0.5); opacity: 0.4; }
  100% { transform: scale(4.2); opacity: 0; }
}

/* Visitors who asked for reduced motion get the still globe (see globe.js);
   hold the Córdoba halo static too rather than letting it keep pulsing. */
@media (prefers-reduced-motion: reduce) {
  .cor-halo span { animation: none; opacity: 0.28; }
}
