/* Карта молитвы — Leaflet + тёмная тема AITEO */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  background: #0a0a0a;
  color: #e8e8e8;
}

body.embedded {
  background: #0a0a0a;
}

.map-page-header {
  position: relative;
  z-index: 1000;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 100%);
  border-bottom: 1px solid rgba(201, 168, 92, 0.2);
}

.map-page-header h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: rgba(201, 168, 92, 0.95);
}

.map-page-header p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: rgba(232, 232, 232, 0.55);
}

.map-back-link {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: rgba(201, 168, 92, 0.85);
  text-decoration: none;
}

.map-back-link:hover {
  color: rgba(201, 168, 92, 1);
}

#map {
  width: 100%;
  height: calc(100vh - 72px);
}

body.embedded #map {
  height: 100vh;
}

body.embedded .map-page-header {
  display: none;
}

.map-legend {
  position: absolute;
  bottom: 24px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  background: rgba(17, 17, 17, 0.92);
  border: 1px solid rgba(201, 168, 92, 0.25);
  border-radius: 10px;
  font-size: 0.75rem;
  color: rgba(232, 232, 232, 0.75);
  max-width: 220px;
  line-height: 1.4;
}

.map-legend strong {
  color: rgba(201, 168, 92, 0.9);
  font-weight: 500;
}

.map-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  text-align: center;
  padding: 16px 24px;
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid rgba(201, 168, 92, 0.3);
  border-radius: 12px;
  font-size: 0.9rem;
  color: rgba(232, 232, 232, 0.85);
}

.map-status.hidden {
  display: none;
}

.map-status--error {
  border-color: rgba(255, 152, 0, 0.4);
}

/* Пульсирующие маркеры */
.prayer-heat-marker {
  background: transparent !important;
  border: none !important;
}

.prayer-heat-dot {
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 152, 0, 0.85) 0%,
    rgba(255, 152, 0, 0.35) 45%,
    rgba(255, 152, 0, 0) 70%
  );
  animation: prayer-map-pulse 2.4s ease-in-out infinite;
}

@keyframes prayer-map-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.45;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.85;
  }
}

.leaflet-popup-content-wrapper {
  background: #111;
  color: #e8e8e8;
  border: 1px solid rgba(201, 168, 92, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-tip {
  background: #111;
  border: 1px solid rgba(201, 168, 92, 0.2);
}

.leaflet-popup-content {
  margin: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.leaflet-popup-content strong {
  color: rgba(201, 168, 92, 0.95);
}

.leaflet-control-attribution {
  display: none !important;
}
