/* v2.4*/ /*Что ты смотришь на меня? Говнокодер у руля!*/

@font-face {
  font-family: 'font-head';
  src: url('./fonts/amaticsc-regular.woff2') format('woff2'),
  url('./fonts/amaticsc-regular.woff') format('woff'),
  url('./fonts/amaticsc-regular.ttf') format('truetype'),
  url('./fonts/amaticsc-regular.svg#AmaticSC-Regular') format('svg');
}

@font-face {
  font-family: 'font-body';
  src: url('./fonts/sfprodisplay-regular.woff2') format('woff2'),
  url('./fonts/sfprodisplay-regular.woff') format('woff'),
  url('./fonts/sfprodisplay-regular.ttf') format('truetype'),
  url('./fonts/sfprodisplay-regular.svg#SFProDisplay-Regular') format('svg');
}


a {
  color: blue; /* Цвет ссылок */
}

a:visited {
  color: blue; /* Цвет посещенных ссылок */
}

a:active {
  color: red; /* Цвет активных ссылок */
}

/* ---Кнопки вызова шлюшек--- */
button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

button:hover::after {
  content: attr(data-title);
}

button#addContactButton {
  position: absolute;
  top: 45px;
  left: 10px;
  z-index: 1;
  padding: 14px 14px;
  background-image: url("/ico/interface/button_add.png");
  background-repeat: no-repeat;
  background-color: #fff;
  display: flex;
  background-size: contain;
  border: 0;
  box-shadow: 0 2px 10px 0 #a3a3a3;
}

button#aboutUsButton {
  position: absolute;
  top: 45px;
  left: 48px;
  z-index: 1;
  padding: 14px 14px;
  background-image: url("/ico/interface/button_info.png");
  background-repeat: no-repeat;
  background-color: #fff;
  display: flex;
  background-size: contain;
  border: 0;
  box-shadow: 0 2px 10px 0 #a3a3a3;
}

form {
  display: flex;
  flex-direction: column;
}

input[type="text"], input[type="email"], input[type="submit"], [type="number"], [type="tel"], [type="url"] {
  font-family: font-body, serif;
  border-radius: 2px;
  margin-bottom: 15px;
  height: 25px;
  border: 1px solid #ccc;
  padding: 0 5px;

}

input[type="submit"] {
  width: 100%;
}

textarea {
  font-family: font-body, serif;
  border-radius: 2px;
  margin-bottom: 15px;
  height: 100px;
  border: 1px solid #ccc;
  padding: 0 5px;
}

/* !--- Кнопки зума ---*/
/* --- Скрываем поле проверки от спама ---*/
input[name="secondname"] {
  display: block;
  width: 2px;
  height: 2px;
  margin-bottom: -2px;
  border: none;
  padding: 0;
  opacity: 0.01;
}

/* --- !Скрываем поле проверки от спама ---*/

/*Даты проведения фестивалей*/
.fest-data-bottom {
  position: absolute;
  text-align: center;
  color: #000;
  background-color: #fff;
  width: 80px;
  font-family: font-body, serif;
  border: 2px solid #0e0;;
  border-radius: 4px;
}

/*Табличка для легенды*/
.table-legend-center {
  text-align: center;
  color: red;
}

.image-button-error { /*Кнопка для формы отправки с балуна*/
  background-image: url("/ico/interface/button_error.svg");
  background-repeat: no-repeat;
  background-color: #fff;
  float: left;
  width: 30px;
  height: 30px;
  border: 0;
  margin: 7px;
  padding: 2px;
}

.image-button-error:hover {
  opacity: 0.8;
}

.image-button-error:active {
  transform: scale(0.95);
}

.footer_img:hover {
  opacity: 0.8;
}

.footer_img:active {
  transform: scale(0.95);
}

.close {
  float: right;
  font-size: 21px;
  font-weight: 700;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  filter: alpha(opacity=20);
  opacity: 0.2;
}

.close:focus,
.close:hover {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  filter: alpha(opacity=50);
  opacity: 0.5;
}

button.close {
  padding: 0;
  cursor: pointer;
  background: 0 0;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.modal-open {
  overflow: hidden;
}

.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed; /* Оставаться на месте */
  z-index: 1050; /* Сидеть на вершине */
  left: 0;
  top: 0;
  width: 100%; /* Полная ширина */
  height: 100%; /* Полная высота */
  /* overflow: auto; */ /* Включите прокрутку, если это необходимо */
  background-color: rgb(0, 0, 0); /* Цвет запасной вариант */
  background-color: rgba(0, 0, 0, 0.4); /* Черный с непрозрачностью */
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}

.modal.fade .modal-dialog {
  transform: translate(0, -25%);
  -webkit-transform: translate(0, -25%);
  -ms-transform: translate(0, -25%);
  -o-transform: translate(0, -25%);

  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out, -o-transform 0.3s ease-out;
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
}

.modal.in .modal-dialog {
  transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  outline: 0;
}

@media (min-width: 768px) {
  .modal-dialog {
    width: 600px;
    margin: 30px auto;
  }

  .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }

  .modal-sm {
    width: 300px;
  }
}

.modal-header:after,
.modal-header:before {
  display: table;
  content: " ";
}

.modal-header {
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.modal-header .close {
  margin-top: -2px;
}

h4.modal-title {
  margin: 0;
  text-align: center;
  font-family: font-head, serif;
  font-size: 1.625rem;
}

h6.modal-title {
  margin: 0;
  text-align: center;
  font-family: font-head, serif;
  font-size: 1rem;
}

.modal-body {
  font-family: font-body, serif;
  position: relative;
  padding: 15px;
}

.about-title { /* Текст в кнопе "i" информация о сайте*/
  font-family: font-body, serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 5px;
  margin: 0;
}

.modal-footer { /* Низ у форм кнопок*/
  padding: 15px;
  font-family: font-body, serif;
  font-size: 0.8rem;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}

.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}

.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}

.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

/* !--- Кнопки вызова шлюшек--- */

/* Смартфоны Для экранов меньше 460px в ширину (не разрешение, у смартфонов свои алгоритм вывода изображений)*/
@media screen and (max-width: 460px) {
  .ymaps-2-1-79-balloon__content {
    font: 13px/20px SFProDisplay-Regular, sans-serif !important;
  }

  [id^="id_"] {
    width: calc(100vw * 75 / 100) !important; /* Размер балуна 75% от текушей ширины экрана*/
  }

  .ymaps-2-1-79-b-cluster-content {
    width: calc(100vw * 75 / 100) !important;
  }

  .ymaps-2-1-79-balloon-pane {
  }

  font.header { /* Текст в заголовке балуна */
    font-family: font-head, serif !important;
    font-size: 1.75em !important;
  }

  .body_img { /* Размер картинки в теле */
    color: red;
    width: 98%;
  }

  font.cluster { /* Размер текста в кластере балуна где иконка */
    font-family: font-head;
    font-size: 1.25rem;
    line-height: 1rem;
    font-weight: 900;
  }

  .ymaps-2-1-79-b-cluster-content font.body {
    font-family: font-body, serif;
    font-size: 0.5625rem;
    font-weight: 600;
  }

  font.body { /* Размер текста в теле кластера */
    font-family: font-body, serif;
    font-size: 0.75rem;
    line-height: 0.75rem;
    font-weight: 600;
  }

  .cluster_img { /* Размер картинки в кластере */
    vertical-align: middle;
    width: 20px;
    height: 20px;
  }

  .balloon_img { /* Размер картинки в заголовке балуне */
    vertical-align: middle;
    width: 50px;
    height: 50px;
  }

  .footer_img { /* Размер картинки в заголовке балуне */
    vertical-align: middle;
    float: right;
    width: 30px;
    height: 30px;
    //border: 1px ridge #999999;
    border-radius: 10%;
    margin: 2px;
    padding: 2px;
  }

  .table-legend { /* Текст в кнопе "i" информация о сайте*/
    font-family: font-body, serif;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 5px;
    margin: 0;
  }

  .table-legend img { /*Размер иконок для легенды*/
    width: 40px;
  }

  .legend-social-ico img { /*Размер иконок сосиальных сетей для легенды*/
    width: 40px;
  }

  .legend-social-ico { /*Положение иконок сосиальных сетей для легенды*/
    text-align: center;
  }
}

/* Компы и планшеты Для экранов больше 461px в ширину*/
@media screen and (min-width: 461px) {
  .ymaps-2-1-79-balloon__content {
    font: 13px/20px SFProDisplay-Regular, sans-serif !important;
  }

  [id^="id_"] .ymaps-2-1-79-balloon__content { /* Ширина балуна будет по размеру содержимого*/
    display: inline-block !important;
  }

  .ymaps-2-1-79-b-cluster-content { /* Размер кластера*/
    height: 400px !important;
  }

  .ymaps-2-1-79-b-cluster-tabs__section { /* Размер кластера слева где иконки*/
    height: 400px !important;
  }

  .ymaps-2-1-79-b-cluster-tabs__content-item {
    padding-right: 0;
  }

  .body_img { /* Размер картинки в теле */
    color: red;
    max-width: 394px;
    max-height: 394px;
  }

  .broken-img { /* Размер картинки "заглушки" для мероприятий в теле */
    width: 200px;
  }

  .cluster_img { /* Размер картинки в кластере */
    vertical-align: middle;
    width: 30px;
    height: 30px;
  }

  font.header { /* Текст в заголовке балуна */
    font-family: font-head, serif;
    /* font-size: 1.375em; */
    font-size: 1.75rem;
  }

  font.body { /* Текст в теле балуна */
    font-family: font-body, serif;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
  }

  font.cluster { /* Размер текста в кластере балуна где иконка */
    font-family: font-head;
    font-size: 1.5rem;
    line-height: 1rem;
    font-weight: 900;
  }

  .balloon_img { /* Размер картинки в заголовке балуне */
    vertical-align: middle;
    width: 50px;
    height: 50px;
  }

  .footer_img { /* Размер картинки в заголовке балуне */
    vertical-align: middle;
    float: right;
    width: 30px;
    height: 30px;
    //border: 1px ridge #999999;
    border-radius: 10%;
    margin: 2px;
    padding: 2px;

  }

  .table-legend { /* Текст в кнопе "i" информация о сайте*/
    font-family: font-body, serif;
    font-size: 1rem;
    font-weight: 400;
    padding: 5px;
    margin: 0;
  }

  .table-legend img { /*Размер иконок для легенды*/
    width: 40px;
  }

  .legend-social-ico img { /*Размер иконок сосиальных сетей для легенды*/
    width: 40px;
  }

  .legend-social-ico { /*Положение иконок сосиальных сетей для легенды*/
    text-align: center;
  }

}
/*--- Внешний вид карты и балунов ---*/
.ymaps-2-1-79-balloon__close-button { /* Прозрачность крестика "закрыть" в балуне */
  opacity: 1 !important;
}

.fullscreen {
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

/* !--- Внешний вид карты и балунов ---*/
/* --- Кнопки зума ---*/
.btn-div {
  position: fixed;
  inset: auto 10px 40% auto !important;
}

#zoom-in.btn {
  background-image: url("/ico/interface/button_plus.svg");
}

#zoom-out.btn {
  background-image: url("/ico/interface/button_minus.svg");
}

#get-geolocation {
  background-image: url("/ico/interface/button_location.svg")
}

.btn {
  padding: 14px 14px;
  margin-bottom: 0;
  border-radius: 4px;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
  background-position: center;
  display: flex;
  border: 0;
  box-shadow: 0 2px 10px 0 #a3a3a3;
  -webkit-appearance: button;
  color: black;

  &.btn-stretch{
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/*Анимация нажатия на кнопки интерфейса*/

.btn:active {
  background-color: #ccc;
}

.phone:first-of-type {
  padding-top: 8px;
}

.phone {
  margin-bottom: 4px;
}

/* Стили для SweetAlert2 */
.custom-swal-popup {
    font-family: font-body, serif; /* Укажи нужный шрифт */
    font-size: 16px; /* Размер шрифта */
    color: #333; /* Цвет текста */
}

.swal2-title {
    font-size: 24px; /* Размер заголовка */
    font-weight: bold; /* Жирный шрифт */
    color: #4CAF50; /* Цвет заголовка */
}

.swal2-content {
    font-size: 18px; /* Размер текста */
    color: #555; /* Цвет текста */
}

.swal2-confirm {
    font-family: 'Roboto', sans-serif; /* Шрифт кнопки */
    font-size: 16px; /* Размер текста кнопки */
    background-color: #4CAF50 !important; /* Цвет фона кнопки */
    border: none; /* Убираем границу */
    padding: 10px 20px; /* Отступы внутри кнопки */
    border-radius: 5px; /* Закруглённые углы */
}

.swal2-confirm:hover {
    background-color: #45a049 !important; /* Цвет фона кнопки при наведении */
}
