
/* Стили для меток инфраструктуры */
.marker-class {
    position: absolute;
    width: 38px;
    height: 45px;
    transform: translate(-50%, -100%); /* точка привязки внизу по центру */
    pointer-events: auto;
    z-index: 1000;
    will-change: transform;
}

.marker-class img.image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none; /* клики проходят на карту */
    user-select: none;
}

.ymaps3x0--marker {
    pointer-events: none;
}

.custom-map-balloon {
    background: white;
    border: 1px solid #ddd;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 10px 0 10px 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 10000;
    transform: translate(-45px, -110%);
    pointer-events: auto;
}

.custom-map-balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 45px;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

.balloon-close {
    position: absolute;
    display: block;
    width: 30px;
    height: 40px;
    cursor: pointer;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTQgLjdsLS43LS43TDcgNi4zLjcgMCAwIC43IDYuMyA3IDAgMTMuM2wuNy43TDcgNy43bDYuMyA2LjMuNy0uN0w3LjcgN3oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==) 50% no-repeat;
    opacity: .3;
    top: 5px;
    right: 10px;
    border: none;
}

.balloon-close:hover {
    opacity: 1;
}

.balloon-content {
    margin-right: 30px; 
    width: 400px;
}
@media (max-width: 1200px) {
    .custom-map-balloon{
        padding: 17px 10px 10px 12px;
    }
    .balloon-content {
        margin-right: 0; 
        width: 300px;
    }
    .vp-map--div__CARD{
        width: 300px;
    }
    .ymaps3x0--controls_top{
        top:80px !important;
    }
}

.placemark.placemark-img{
    border-radius: 0;
}
.placemark.placemark-circle.active {
  width: 36px !important;
  height: 36px !important;
  bottom: -36px !important;
  right: -36px !important;
  border-radius: 50%;
  z-index: 1010;
}
.placemark.placemark-circle.active span{
    font-size: 14px !important;
    display: block !important;
}

.placemark.placemark-img.active, .placemark.placemark-number.active {
    transform: scale(1.3) !important;
}
.placemark.active span, .placemark.placemark-number span{
    display: block;
    color: #ffffff;
/*    font-size: 14px;*/
    font-weight: bold;
    line-height: 36px;
    text-align: center;
}
.placemark.placemark-img.active span{
    display: none;
}

.placemark.promo {
  animation: blink_promo 0.6s infinite alternate ease-in-out, gradient 10s ease infinite;
}

@keyframes blink_promo {
  from {
      transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(1.5);
  }
}
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@media (min-width: 1200px) {
    .vp-map--iframe{
        position: relative;
    }
}
.vp-hero--div__SWIPER_SLIDE {
    /* Цвет заглушки пока картинка грузится (опционально) */
    background-color: #f0f0f0; 
    /* Скрываем фон изначально */
    background-image: none; 
    /* Плавное появление */
    transition: background-image 0.5s ease-in-out; 
}

/* Класс, который JS добавит после загрузки */
.vp-hero--div__SWIPER_SLIDE.is-loaded {
    /* Здесь будет картинка */
}

/* Скрываем фон больших слайдов до загрузки JS */
.vp-heroPhoto--div__SWIPER1_SLIDE {
    background-image: none;
    transition: background-image 0.3s ease-in-out;
    background-color: #f5f5f5; /* заглушка */
}

/* Плавное появление миниатюр */
/*.vp-heroPhoto--img__MINI {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}*/
.vp-heroPhoto--img__MINI.is-loaded {
    opacity: 1;
}

/* Заглушка для миниатюр пока грузятся */
.vp-heroPhoto--img__MINI:not([src]) {
    background: #f0f0f0;
    min-height: 60px;
}