/* --- Общий стиль модальных окон --- */
#modal-single,
#modal-multi {
  display: none; /* по умолчанию скрыты */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

/* Показ модального окна */
#modal-single.show,
#modal-multi.show {
  display: flex;
}

/* --- Содержимое модалки одиночной школы --- */
#modal-single {
  background: #fff;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  padding: 25px 30px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Логотип */
#modal-single #modal-logo {
  max-width: 140px;
  height: auto;
  /* border-radius: 8px; */
  object-fit: contain;
  margin-bottom: 10px;
}



/* Заголовок */
#modal-single #modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  
}

#modal-title {
  display: none;
}

/* Параграфы с информацией */
#modal-single p {
  font-size: 16px;
  color: #444;
  margin: 9px 0 0;

}



/* Ссылки внизу */
#modal-single a {
  display: inline-block;
  /* margin: 10px 8px 0 8px; */
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background-color: #007bff;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  user-select: none;
  width: 60%;
  
}

#modal-single a:hover {
  background-color: #0056b3;
}

/* --- Слайдер с несколькими школами --- */
#modal-multi {
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}

/* Swiper контейнер */
#modal-multi .swiper {
  width: 100%;
  height: 100%;
}

/* Слайды */
#modal-multi .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

#modal-multi .swiper-slide {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Логотип в слайде */
#modal-multi .swiper-slide img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
  object-fit: contain;
}

/* Название школы */
#modal-multi .swiper-slide h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

/* Адрес и руководитель */
#modal-multi .swiper-slide p {
  font-size: 14px;
  color: #555;
  margin: 4px 0;
  line-height: 1.3;
}

/* Ссылки внутри слайда */
#modal-multi .swiper-slide a {
  margin-top: auto;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
  border-radius: 5px;
  transition: color 0.3s ease;
}

#modal-multi .swiper-slide a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Навигационные стрелки Swiper */
.swiper-button-next,
.swiper-button-prev {
  color: #007bff;
  transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #0056b3;
}

/* Пагинация Swiper */
.swiper-pagination-bullet {
  background: #ffa601;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

#modal-multi {
  width: 450px;
}

#modal-multi .swiper-slide {
  background: #fff; /* как в одиночной */
  border-radius: 12px; /* скругление как в #modal-single */
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); /* более заметная тень */
  padding: 25px 30px; /* аналогично #modal-single */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 350px; /* ограничение по ширине как у #modal-single */
  margin: 0 auto; /* центрируем слайд в контейнере */
  height: auto;
}

/* Логотип внутри слайда — увеличить */
#modal-multi .swiper-slide img {
  width: 140px; /* как в #modal-single #modal-logo */
  margin: 0 auto;
  margin-bottom: 10px;
  object-fit: contain;
  border-radius: 0; /* если нужно, убрать скругление */
}

/* Заголовок как в одиночной модалке */
#modal-multi .swiper-slide h2 {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

/* Текст параграфов */
#modal-multi .swiper-slide p {
  font-size: 16px;
  color: #444;
  margin: 9px 0 0;
}

/* Ссылка — как кнопка в одиночной */
#modal-multi .swiper-slide a {
  display: inline-block;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background-color: #007bff;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  user-select: none;
  margin-top: 15px;
  width: 90%;
  text-align: center;
}

#modal-multi .swiper-slide a:hover {
  background-color: #0056b3;
}


.card > h2 {
  display: none;
}

#modal-multi {
  max-width: 1100px; /* увеличил максимальную ширину */
 
  padding: 20px;

}

.swiper {
  width: 100%;
  height: 100%;
}

/* Задаём ширину слайдам и центрируем */

/* Задаём ширину слайдам и центрируем */
#modal-multi .swiper-slide {
  flex-shrink: 0;
  width: 100%; /* По умолчанию, может быть переопределено Swiper-ом */
  margin: 0 auto;
}

  #modal-multi {
    max-width: 100%;
    padding: 10px;
  }

  #modal-multi .swiper-slide {
    max-width: 90%;
    padding: 20px;
  }

  #modal-single {
    max-width: 450px;
    padding: 20px;
  }



    .toolbar_region {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* для плавности на iOS */
  }

  .bar_region {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 200px;
    text-align: center;
    background-color: #ffa601;
    color: #000;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
  }

  .bar_region:hover {
    background-color: #dd9001;
  }


  .map{
    fill: white;
    stroke:black;
    margin-bottom: 2rem;
        
    }
    .bar_region {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }


 