/* Live Visitor Map — pages/media/visitor-map.php */

.visitor-map-page__intro {
  max-width: 62em;
  color: #444;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.globe-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.globe-stat {
  flex: 1 1 180px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2e2e2);
  border-left: 4px solid var(--wine, #7a1442);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.globe-stat strong {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--wine, #7a1442);
}

.globe-stat span {
  font-size: .85rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.globe-wrap {
  position: relative;
  background: #05030a;
  border: 1px solid var(--line, #e2e2e2);
  border-radius: 8px;
  overflow: hidden;
  height: min(72vh, 640px);
  min-height: 380px;
}

#visitorGlobe {
  width: 100%;
  height: 100%;
}

.globe-hint {
  position: absolute;
  left: 1rem;
  bottom: .85rem;
  margin: 0;
  color: rgba(255, 255, 255, .65);
  font-size: .8rem;
  letter-spacing: .02em;
  pointer-events: none;
}

.globe-tooltip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  max-width: 240px;
  background: rgba(255, 255, 255, .96);
  border-left: 4px solid var(--wine, #7a1442);
  border-radius: 6px;
  padding: .85rem 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  font-size: .85rem;
  line-height: 1.55;
}

.globe-tooltip[hidden] {
  display: none;
}

.globe-tooltip strong {
  display: block;
  color: var(--wine-dark, #59102f);
  font-size: .95rem;
  margin-bottom: .2rem;
}

.globe-tooltip__close {
  position: absolute;
  top: .35rem;
  right: .5rem;
  border: none;
  background: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
}

@media (max-width: 640px) {
  .globe-wrap { height: 60vh; }
  .globe-tooltip { left: 1rem; right: 1rem; max-width: none; }
}
