/* ============================================================
   MAPA DUŠÍ – živá konštelácia archívu
   ============================================================ */

.ad-mapa-page {
  background: #0a0908;
  color: #e8e2d8;
  min-height: calc(100vh - 56px);
  position: relative;
  overflow: hidden;
}

.ad-mapa-intro {
  padding: 1.5rem 1.5rem 1rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.ad-mapa-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b08d4f;
  margin-bottom: 0.4rem;
}

.ad-mapa-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  color: #f3ead9;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.ad-mapa-sub {
  font-size: 13px;
  color: #a89d8a;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
}

/* Živé počítadlá */
.ad-mapa-live-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ad-mapa-live-stat {
  text-align: center;
}

.ad-mapa-live-num {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 500;
  color: #e8c076;
  text-shadow: 0 0 12px rgba(232, 192, 118, 0.4);
  font-variant-numeric: tabular-nums;
}

.ad-mapa-live-label {
  font-size: 10.5px;
  color: #8a8072;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.ad-mapa-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf6a;
  margin-right: 5px;
  box-shadow: 0 0 6px #4caf6a;
  animation: ad-mapa-live-pulse 1.8s ease-in-out infinite;
}

@keyframes ad-mapa-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

/* Plátno */
.ad-mapa-canvas-wrap {
  position: relative;
  width: 100%;
  height: min(78vh, 760px);
  min-height: 420px;
  cursor: grab;
}
.ad-mapa-canvas-wrap.ad-dragging { cursor: grabbing; }

.ad-mapa-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-mapa-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #8a8072;
  font-size: 13px;
  font-family: var(--font-mono);
}
.ad-mapa-loading .ad-mapa-pulse-dot { width: 10px; height: 10px; }

/* Ovládanie */
.ad-mapa-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.ad-mapa-ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.14);
  color: #d8cfc0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.ad-mapa-ctrl-btn:hover { background: rgba(255,255,255,0.12); }

/* Legenda */
.ad-mapa-legend {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  background: rgba(20,18,15,0.7);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  font-size: 11px;
  color: #a89d8a;
  backdrop-filter: blur(6px);
  max-width: 240px;
  line-height: 1.6;
}
.ad-mapa-legend strong { color: #e8c076; font-weight: 500; }

/* Info panel po kliku na uzol */
.ad-mapa-info-panel {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 4;
  background: rgba(20,18,15,0.85);
  border: 0.5px solid rgba(232,192,118,0.35);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  max-width: 260px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.ad-mapa-info-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ad-mapa-info-panel .ad-mapa-info-close {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #8a8072;
  cursor: pointer;
  font-size: 14px;
  background: none;
  border: none;
}
.ad-mapa-info-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: #f3ead9;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ad-mapa-info-count {
  font-size: 12px;
  color: #a89d8a;
}
.ad-mapa-info-count strong { color: #e8c076; }

.ad-mapa-newborn-toast {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 5;
  background: rgba(76,175,106,0.15);
  border: 0.5px solid rgba(76,175,106,0.5);
  color: #b6e6c4;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 99px;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  white-space: nowrap;
}
.ad-mapa-newborn-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .ad-mapa-live-stats { gap: 1.5rem; }
  .ad-mapa-legend { display: none; }
  .ad-mapa-info-panel { left: 1rem; right: 1rem; max-width: none; }
}
