/* Яндекс.Карта */

.yandex-map {
  width: 100%;
  height: 680px;
  z-index: 2;
  position: relative;
}

/* Эксперимент темной темы */
/* Вариант 1 */
/*.container--yandex-map-dark {
  position: relative;
}

.container--yandex-map-dark .yandex-map {
  height: 600px;
}

.container--yandex-map-dark:before {
  content: '';
  display: block;
  width: calc(100% - 60px);
  height: 600px;
  position: absolute;
  top: 0;
  left: 30px;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 3;
}

.container--yandex-map-dark ymaps {
  filter: grayscale(1);
  -ms-filter: grayscale(1);
  -webkit-filter: grayscale(1);
  -moz-filter: grayscale(1);
  -o-filter: grayscale(1);
}*/

/* Вариант 2 */
.container--yandex-map-dark {
  position: relative;
}

.container--yandex-map-dark .yandex-map {
  height: 600px;
}

.container--yandex-map-dark:before {
  content: '';
  display: block;
  width: 100%;
  height: 600px;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(#20152d, #20152d), linear-gradient(#e9eafe, #d8d1ff);
  background-blend-mode: exclusion, hard-light;
}

.container--yandex-map-dark .yandex-map {
  mix-blend-mode: exclusion;
}

.yandex-map__balloon {
  font-family: "Inter", "Arial", sans-serif;
}

.yandex-map__balloon-content {
  width: 338px;
  height: 136px;
  background: #363c53;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}

.container--yandex-map-dark .yandex-map__balloon-content {
  background: #a9a99d;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.5);
}

.yandex-map__balloon-content--small {
  height: unset;
  width: max-content;
  max-width: 338px;
  border-radius: 5px;
}

.yandex-map__balloon-content--left {
  position: relative;
  padding: 0 0 12px 38px;
  max-width: calc(338px - 38px);
  border-radius: 0;
}

.yandex-map__balloon-close {
  border: none;
  cursor: pointer;
  outline: none;
  position: absolute;
  top: 6px;
  left: 8px;
  width: 24px;
  height: 37px;
  background: url(../img/placemark-dark.svg) no-repeat;
  background-size: 22px;
}

.yandex-map__balloon-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
  color: var(--orange);
  padding: 4px 12px 0;
  height: 40px;
}

.container--yandex-map-dark .yandex-map__balloon-title {
  color: var(--orange-exclusion);
}

.yandex-map__balloon-content--small .yandex-map__balloon-title {
  font-size: 16px;
  font-weight: 400;
  padding: 2px 4px;
  height: 28px;
}

.yandex-map__balloon-content--left .yandex-map__balloon-title {
  justify-content: left;
  text-align: left;
  padding: 4px 8px 4px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
}

.yandex-map__balloon-info {
  color: #ffffff;
  list-style-type: none;
  padding: 0 8px 0 0;
}

.yandex-map__balloon-info__item {
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  margin: 0 0 8px;
}

.container--yandex-map-dark .yandex-map__balloon-info__item {
  color: var(--black);
}

.yandex-map__balloon-list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  list-style: none;
}

.yandex-map__balloon-item {
  display: flex;
  align-items: center;
  width: 100%;
  color: #ffffff;
}

.yandex-map__balloon-item b {
  display: inline-block;
  width: 34%;
  text-align: right;
  font-weight: bold;
  font-size: 20px;
  line-height: 25px;
  padding: 0 24px 0 0;
  color: var(--blue);
}

.yandex-map__balloon-item span {
  font-size: 18px;
  line-height: 25px;
  color: var(--white);
}

/* КОСТЫЛИ */

.ymaps-2-1-78-balloon {
  background: var(--dark) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.ymaps-2-1-78-balloon__layout,
.ymaps-2-1-78-balloon__content {
  background: var(--dark) !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 20px !important;
}

.ymaps-2-1-78-balloon__tail:after {
  background: var(--dark) !important;
}

.ymaps-2-1-78-balloon__close-button {
  background: url('../img/close.svg') no-repeat !important;
  top: 10px !important;
  left: -10px !important;
  position: relative !important;
  width: 14px !important;
  height: 14px !important;
  background-size: 100% !important;
  opacity: 1 !important;
}

@media (max-width: 1600px) {
  .container--yandex-map-dark:before {
    width: calc(100% - 60px);
    left: 30px;
  }

  @media (max-width: 1240px) {
    .yandex-map {
      height: 450px;
    }

    @media (max-width: 570px) {
      .yandex-map {
        display: none;
      }

      .container--yandex-map-dark:before {
        display: none;
      }
    }
  }
}
