/* map.css — Стили интерактивной карты и поп-апов */

#leaflet-map {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  background: #e5e3df;
  margin-bottom: var(--space-12);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.map-layer-empty-state {
  display: none;
  position: absolute;
  top: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 420px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  text-align: center;
}

.map-controls {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.layer-btn {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.layer-btn.active, .layer-btn:hover {
  background: var(--color-accent-green);
  color: #ffffff;
  border-color: var(--color-accent-green);
}

/* Map Popup card styling */
.map-popup {
  padding: var(--space-2);
  max-width: 240px;
}

.map-popup-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-2);
}

.badge--real {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.badge--mythological {
  background: rgba(142, 68, 173, 0.1);
  color: #8e44ad;
}

.badge--prototype {
  background: rgba(211, 84, 0, 0.1);
  color: #d35400;
}

.map-popup-title {
  font-family: var(--font-hero);
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.map-popup-desc {
  font-family: var(--font-reading);
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.map-popup-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent-green);
  text-decoration: none;
}

.map-popup-link:hover {
  text-decoration: underline;
}

.custom-map-marker {
  background: none;
  border: none;
}
