.ymap-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-position: center center;
  background-size: cover;
  -webkit-box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 2em 0 rgba(0, 0, 0, 0.2);
}

.location__map-wrapper {
  width: 100%;
}

.map-msk {
  background-image: url("../img/map-new.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
}

.map-yandex {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 556px;
  cursor: pointer;
  background-color: transparent;
}

@media (max-width: 767px) {
  .map-yandex {
    height: 365px;
  }
}

@media (max-width: 478px) {
  .map-yandex {
    height: 356px;
  }
}

/* Индикатор загрузки, который показывается до загрузки карты */
.loader {
  position: absolute;
  z-index: 15;
  top: -100%;
  left: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #000000;
  -webkit-transition: opacity 0.7s ease;
  -o-transition: opacity 0.7s ease;
  transition: opacity 0.7s ease;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.55);
}

.loader:after,
.loader:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.loader.is-active {
  top: 0;
  opacity: 1;
}

.loader-default:after {
  position: absolute;
  top: calc(50% - 24px);
  left: calc(50% - 24px);
  width: 48px;
  height: 48px;
  content: "";
  -webkit-animation: rotation 1s linear infinite;
  animation: rotation 1s linear infinite;
  border: solid 8px #ffffff;
  border-left-color: transparent;
  border-radius: 50%;
}

@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@keyframes rotation {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@-webkit-keyframes blink {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

@keyframes blink {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

.dream .container {
  padding: 0;
  max-width: none;
}

.dream__wrapper {
  flex-wrap: wrap;
}

.dream__column {
  margin-bottom: 40px;
}

.dream__card {
  margin-bottom: 100px;
}

.dream__new-title {
  margin-top: 0;
  margin-bottom: 30px;

  font-size: 40px;
  text-align: center;
}

.dream__name {
  margin-top: 0;
  margin-bottom: 20px;

  font-size: 32px;
  text-align: center;
}

.dream__sliders {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  margin-bottom: 20px;
}

.swiper.main-dream-swiper {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 10px;
  /* height: 230px; */

  position: relative;
}

.swiper.main-dream-swiper .swiper-slide {
  height: auto;
}

.swiper.secondary-dream-swiper {
  margin-left: 0;
  margin-right: 0;
  padding: 0 10px;
  /* width: 14%; */
}

.swiper.main-dream-swiper .swiper-backface-hidden .swiper-slide,
.swiper.secondary-dream-swiper .swiper-slide {
  height: auto;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
}

.secondary-dream-swiper .swiper-slide {
  opacity: 0.4;
}

.secondary-dream-swiper .swiper-wrapper {
  /* flex-direction: column; */
  justify-content: space-between;
}

.secondary-dream-swiper .swiper-slide-thumb-active {
  opacity: 1;
}

.secondary-dream-swiper .swiper-slide {
  width: 100%;
}

.main-dream-swiper .swiper-slide {
  width: 100%;
}

.main-dream-swiper__img,
.secondary-dream-swiper__img {
  display: block;
  /* height: 100%; */

  object-fit: cover;
  cursor: pointer;
}

.secondary-dream-swiper__img {
  min-height: 36px;
  height: 80px;
}

.dream__text {
  padding: 0 10px;
}

.dream-prev,
.dream-next {
  display: none;

  position: absolute;
  top: 0;

  padding: 0 5px;
  width: 40px;
  height: 100%;

  background-color: rgba(0, 0, 0, 0.5);
  border: none;

  transition: 0.3s;
  z-index: 1;
  cursor: pointer;
}

.dream-prev {
  left: 0;
}

.dream-next {
  right: 0;
}

.dream-prev:hover,
.dream-prev:focus,
.dream-next:hover,
.dream-next:focus {
  background-color: rgba(0, 0, 0, 0.65);
  outline: none;
}

.dream-prev::before,
.dream-next::before {
  content: "";

  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 10px;
  height: 10px;

  background-image: url("../img/icons/mini-arrow-right.svg");
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
}

.dream-next::before {
  right: 25%;
}

.dream-prev::before {
  left: 25%;
  transform: rotate(180deg);
}
@media (max-width: 500px) {
  .secondary-dream-swiper__img {
    max-height: 50px;
    height: 50px;
    object-fit: contain;
  }
}
@media (min-width: 630px) {
  .dream .container {
    max-width: none;
    padding: 0;
  }
  .dream__text {
  }
}
@media (min-width: 1400px) {
  .dream__text {
    /* padding: 0; */
    padding-left: 30px;
    width: 50%;
  }
  .secondary-dream-swiper .swiper-wrapper {
    gap: 30px;
  }
  .dream__wrapper {
    display: flex;
    justify-content: space-between;
  }
  .dream__column {
    margin-bottom: 0;
    width: 100%;
    /* width: 46%; */
  }
  .swiper.main-dream-swiper {
    width: 82%;
    height: 350px;
  }
  .swiper.secondary-dream-swiper {
    width: 14%;
  }
  .dream__card {
    display: flex;
  }
  .dream__name {
    margin-right: 110px;
  }
  .dream-prev,
  .dream-next {
    display: block;
  }
  .dream__sliders {
    flex-direction: row;
    width: 50%;
  }
  .main-dream-swiper__img,
  .secondary-dream-swiper__img {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }
  .map-msk {
    min-height: 556px;
  }
  .swiper.main-dream-swiper .swiper-slide {
    height: 360px;
  }
  .main-dream-swiper__img {
    height: 100%;
    object-fit: fill;
  }
}
