/* ============================================================
   site-map.css — Vinistra Interactive Map Styles
   ============================================================ */

/* ── CSS Variables (map-specific) ──────────────────────────── */
:root {
  --map-hotspot-open:    #d4af37;   /* Vinistra gold */
  --map-hotspot-closed:  #6b7280;   /* grey */
  --map-pulse-color:     rgba(212, 175, 55, 0.5);
  --map-modal-radius:    2rem;
  --map-bg-light:        #ffffff;
  --map-bg-dark:         #1e1e1e;
  --map-panel-border:    rgba(212, 175, 55, 0.15);
}

/* ── Map Container ─────────────────────────────────────────── */
#map-container {
  position: relative;
  overflow: hidden;
  border-radius: 2.5rem;
}

#map-container svg {
  width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
}

/* ── Stand Hotspot Shapes ──────────────────────────────────── */
.stand-hotspot {
  cursor: pointer;
  outline: none;
}

.stand-hotspot:focus-visible rect {
  stroke: #ffffff;
  stroke-width: 3;
}

/* ── Pulse Ring Animation ──────────────────────────────────── */
.map-pulse-ring {
  animation: mapPulse 2.2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes mapPulse {
  0%   { r: 6;  opacity: 0.9; }
  60%  { r: 22; opacity: 0;   }
  100% { r: 22; opacity: 0;   }
}

/* ── Public Map Pin Marker ────────────────────────────────────── */
.map-pin-marker {
  position: absolute;
  font-size: 36px;
  color: #d4af37;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

/* ── Glass Legend Panel ────────────────────────────────────── */
.map-legend {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--map-panel-border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08);
}

.dark .map-legend {
  background: rgba(18, 18, 18, 0.88);
  border-color: rgba(212, 175, 55, 0.2);
  color: #d1d5db;
}

.map-legend-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
}

/* ── Quick-View Modal Enhancements ─────────────────────────── */
#quick-view {
  /* Backdrop */
}

#modal-content {
  will-change: transform, opacity;
}

/* ── Barometer Pill ────────────────────────────────────────── */
#crowd-barometer {
  transition: background 0.4s ease, border-color 0.4s ease;
}

/* ── Schedule countdown number ──────────────────────────────── */
#schedule-countdown {
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
  display: inline-block;
  transition: color 0.4s ease;
}

/* ── Reveal override for schedule items ─────────────────────── */
.schedule-item {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.schedule-item:hover {
  box-shadow: 0 8px 30px -8px rgba(212, 175, 55, 0.18);
}
