﻿.TestSwiper {
    width: 100vw; /* Жёстко задаём 100vw */
    height: 600px;
}
.TestSwiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: #ed0f7c;
    height: 100%;
}
    .TestSwiper-slide:nth-child(2) {
        background: #00ffff;
    }
    .TestSwiper-slide:nth-child(3) {
        background: #00ff21;
    }
#Buryat > g[id*="Mask"],
#Buryat > g[id*="Circle_City"] {
    transform-origin: right !important;
}
#Sakhalin > g[id*="Mask"],
#Sakhalin > g[id*="Circle_City"] {
    transform-origin: left !important;
}
/* Изначально скрываем все гербы и маркеры */
#FullMap_Active g[id] > g[id*="Mask"],
#FullMap_Active g[id*="Circle_City"] {
    opacity: 0;
    transform: scale(0);
    cursor: pointer;
    transform-origin: center;
    transform-box: fill-box;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Анимация для исчезновения */
}

@media (min-width: 767px) {
    /*/* Показываем маски и маркеры при наведении с анимацией */
    #FullMap_Active g[id]:hover > g[id*="Mask"],
    #FullMap_Active g[id]:hover > g[id*="Circle_City"],
    #FullMap_Active g[id]:hover > g g[id*="Circle_City"] /*,
    #FullMap_Active g[id] g[id*="Circle_City"]:hover g[id*="Mask"],
    #FullMap_Active g[id] g[id*="Circle_City"]:hover g[id*="Circle_City"] ,
    #FullMap_Active g[id*="Circle_City"]:hover ~ g g[id*="Circle_City"]  */ {
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.3s ease, transform 0.3s ease; /* Анимация для появления */
    }

    /* Автоматическая задержка для Circle_City только при появлении */
    #FullMap_Active g[id] path[id$="_border"]:hover ~ g[id*="Circle_City"]:nth-of-type(1) {
        transition-delay: 0.1s;
    }

    #FullMap_Active g[id] path[id$="_border"]:hover ~ g[id*="Circle_City"]:nth-of-type(2) {
        transition-delay: 0.2s;
    }

    #FullMap_Active g[id] path[id$="_border"]:hover ~ g[id*="Circle_City"]:nth-of-type(3) {
        transition-delay: 0.3s;
    }

    #FullMap_Active g[id] path[id$="_border"]:hover ~ g[id*="Circle_City"]:nth-of-type(4) {
        transition-delay: 0.4s;
    }

    #FullMap_Active g[id] path[id$="_border"]:hover ~ g[id*="Circle_City"]:nth-of-type(5) {
        transition-delay: 0.5s;
    }

    #FullMap_Active g[id] path[id$="_border"]:hover ~ g[id*="Circle_City"]:nth-of-type(6) {
        transition-delay: 0.6s;
    }

    /* Отключаем события мыши для Circle_City */
    /*#FullMap_Active g[id*="Circle_City"] {
    pointer-events: none;
}*/

    /* Убираем задержки при исчезновении для Circle_City */
    #FullMap_Active g[id] g[id*="Circle_City"]:not(:hover) {
        transition-delay: 0s; /* Одновременное исчезновение */
    }
    .map-info-panel{
        display: none;
    }
}

#FullMap_Active g[id] path[id$="_border"]{
    
}

.map-modal {
    display: none; /* по умолчанию скрыто */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.map-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
    from {
        background: rgba(0,0,0,0);
    }

    to {
        background: rgba(0,0,0,0.6);
    }
}
.map-modal-content {
    transform-origin: center;
    transition: all 0.4s ease;
    transform: scale(1);
    opacity: 0;
    background: transparent;
    border-radius: 12px;
    padding: 10px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.ElonMask{
    pointer-events: none;
}
.map-modal-content.closing {
    transform: scale(0.8) !important;
    opacity: 0 !important;
}
#mapModalSvgContainer {
    width: 100%;
    height: 100%;
}
#mapModalSvgContainer svg{
    -webkit-transform: translate3d(0,0,0);
    z-index: 0;
    width: 100%;
    height: 100%;
}
.map-close {
    z-index: 10;
    position: absolute;
    top: 20px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 36px;
    color: black;
    cursor: pointer;
}

.map-info-panel {
    margin-top: 15px;
    padding: 12px 16px;
    background: #fff;
    min-height: 54px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-align: start;
}

    .map-info-panel span {
        display: block;
        margin: 4px 0;
        font-size: 16px;
        color: #333;
    }

#modal-subject {
    font-weight: bold;
    font-size: 18px;
    text-align: start;
}

#modal-city {
    font-size: 16px;
    color: #666;
    text-align: start;
}

#modal-countdiv {
    display: flex;
    justify-content: start;
    gap: 6px;
    margin-top: 8px;
    font-size: 15px;
    margin-bottom: 8px;
}

#modal-go {
    display: none;
    opacity: 0;
    pointer-events: none;
    height: 33px;
    transition: opacity 0.3s ease;
}

    #modal-go.show {
        pointer-events: all;
        opacity: 1;
        display: block !important;

    }

#modal-subject,
#modal-city,
#modal-countdiv,
#modal-go {
    display: none;
}

#panel-placeholder {
    color: #888;
    text-align: center;
    font-style: italic;
}