/* Контейнер карты */
.map-container {
  transition: background-color 0.3s, border-color 0.3s;
  background: linear-gradient(to right, rgba(20,40,60,0.9), rgba(20,30,50,0.9));
  padding: 30px 20px;
  margin: 0;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 2px dashed #fff;
  width: 100%;
}

.map-container h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.map-container h3 {
    font-size: .9em;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin-bottom: 24px;
    text-align: center;
}

.map-header {
  transition: background-color 0.3s, border-color 0.3s;
  background: linear-gradient(to right, rgba(20,40,60,0.9), rgba(20,30,50,0.9));
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  text-align: left;
}

.map-body {
/*  transition: background-color 0.3s, border-color 0.3s;*/
/*  background: linear-gradient(to right, rgba(20,40,60,0.9), rgba(20,30,50,0.9));*/
  padding: 30px 20px;
  margin: 0 auto;
/*  border-radius: 20px;*/
/*  box-shadow: 0 4px 16px rgba(0,0,0,0.2);*/
  text-align: left;
  max-width: 1200px;
  max-height: 800px;
}


.svg-block {
  width: 100%;
  height: 600px;
}

.map-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

/* Сама карта (изображение) */
.map-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

/* Контейнер точек */
.custom-map-location {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 2;
}

.custom-map-location li {
  position: absolute;
  pointer-events: auto;
  list-style: none;
}

/* Общие базовые стили */
.custom-map-location li span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
}

/* Красный */
.pulse-red {
  background-color: #ff5252;
  animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
  60% { box-shadow: 0 0 0 12px rgba(255, 82, 82, 0); }
  80% { box-shadow: 0 0 0 19px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

/* Синий */
.pulse-blue {
  background-color: #448aff;
  animation: pulse-blue 2s infinite;
}
@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(68, 138, 255, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(68, 138, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(68, 138, 255, 0); }
}

/* Зелёный */
.pulse-green {
  background-color: #69f0ae;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(105, 240, 174, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(105, 240, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(105, 240, 174, 0); }
}

/* Жёлтый */
.pulse-yellow {
  background-color: #ffd740;
  animation: pulse-yellow 2s infinite;
}
@keyframes pulse-yellow {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 64, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 215, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 64, 0); }
}

/* Кастомный тултип */
.custom-map-location li span::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

/* Маленький треугольник под тултипом */
.custom-map-location li span::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: none;
  border-bottom-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9;
}

/* Появление тултипа при наведении */
.custom-map-location li span:hover::after,
.custom-map-location li span:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}