/* ============================================================
   Стрелка-подсказка горизонтальной прокрутки для .gw-map-tabs-header
   ============================================================ */
.gw-map-tabs-wrapper {
    position: relative;
}

@media (max-width: 768px) {
    .gw-map-tabs-wrapper .gw-map-scroll-hint {
        position: absolute;
        top: 0;
        height: 40px;            /* высота .gw-map-tab-header */
        width: 57px;
        pointer-events: auto;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 8px;
        box-sizing: border-box;
        background: linear-gradient(
            to right,
            rgba(255,255,255,0) 0%,
            rgb(238 241 243 / 71%) 45%,
            rgb(238 241 243 / 73%) 100%
        );
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 65%, #000 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 65%, #000 100%);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .gw-map-tabs-wrapper .gw-map-scroll-hint.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .gw-map-tabs-wrapper .gw-map-scroll-hint svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        animation: gw-map-tabs-hint-bounce 4s ease-in-out infinite;
    }

    @keyframes gw-map-tabs-hint-bounce {
        0%, 100% { transform: translateX(0); }
        50%      { transform: translateX(5px); }
    }
}

@media (min-width: 769px) {
    .gw-map-tabs-wrapper .gw-map-scroll-hint {
        display: none !important;
        pointer-events: none !important;
    }
a.gw-map-location-map-link.gw-map-mobile-link {
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-decoration: none;
}

a.gw-map-location-map-link.gw-map-mobile-link > svg.strelkacontact {
    position: static !important;
    flex: 0 0 auto !important;
    height: auto !important;
    vertical-align: middle !important;
}	
}

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

/* Табы */
.gw-map-tabs-inner {
    display: flex;
    white-space: nowrap;
    gap: 5px;
    padding: 2.5vw;
    background: #DAE0E6;
    margin-left: 5vw;
    margin-right: 5vw;
    width: fit-content;
    border-radius: 20px;
}
.gw-map-tabs-wrapper {
    margin-top: 6vw;
}
.gw-map-tab-header {
    flex: 0 0 auto;
    padding: 8px 16px;
    cursor: pointer;
    background: transparent;
    border-bottom: none;
    border-radius: 16px;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.3s, color 0.3s;
    font-family: 'Roboto';
    height: 40px;
}
.gw-map-tab-header:hover {
    background: #e8e8e8;
}
.gw-map-tab-header.active {
    background: #ffffff;
    color: #002B44;
}
.gw-map-tab-content {
    display: none;
    padding: 1px 20px 16px 20px;
    background: #EEF1F3;
    border-radius: 0 0 5px 5px;
}
.gw-map-tab-content.active {
    display: block;
}

/* Список локаций */
.gw-map-locations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.wp-feedback-form-wrapper {
    margin-top: 13vw;
}

/* Карточка локации — базовая */
.gw-map-location-card {
    flex: 1 1 100%;
    border-radius: 5vw;
    padding: 4vw 4vw 6vw 7.5vw;
    background: #DAE0E6;
    overflow: hidden;
}

/* Внутренняя раскладка карточки */
.gw-map-location-body {
    display: flex;
    flex-direction: row;
    gap: 2vw;
    align-items: flex-start;
}
.gw-map-location-text {
    flex: 1 1 auto;
    min-width: 0;
}
.gw-map-location-map-desktop {
    flex: 0 0 45%;
    max-width: 45%;
}

.gw-map-location-title {
    font-size: 5.8vw;
    font-family: 'altkrupa', sans-serif;
    margin-top: 2vw;
    color: white;
}
.gw-map-location-address {
    font-size: 3.5vw;
    margin-top: 5.6vw;
    color: white;
    font-family: 'Roboto';
    line-height: 1.6;
    letter-spacing: 0;
    width: 40vw;
}
.gw-map-location-email {
    font-size: 6.2vw;
    font-weight: bold;
    margin-top: 3vw;
}
.gw-map-location-email a {
    color: #8FD400;
}
.gw-map-location-phone,
.gw-map-location-hours {
    font-size: 14px;
    color: #333;
    margin: 4px 0;
}

/* Ссылка на карту */
.gw-map-location-map-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}
.gw-map-location-map-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 7.5vw;
    object-fit: cover;
}
.gw-map-location-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    min-height: 120px;
    background: #c9d2d9;
    border-radius: 7.5vw;
    color: #002B44;
    font-weight: bold;
    font-size: 14px;
}


/* ===== Аккордеон ===== */
.gw-map-accordion .gw-map-location-body-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: max-height;
}

/* Плавное появление/уход содержимого при раскрытии.
   ВАЖНО: только opacity — transform или will-change: transform создают
   новый containing block и ломают position: absolute у .gw-map-mobile-link */
.gw-map-accordion .gw-map-location-body {
    opacity: 0;
    transition: opacity 0.35s ease 0.05s;
}
.gw-map-accordion .gw-map-accordion-item.is-open .gw-map-location-body {
    opacity: 1;
}

.strelkacontact {
    display: inline-block;
    width: 17vw;
    height: auto;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.gw-map-location-map-link:hover .strelkacontact {
    transform: translateX(4px);
}

.gw-map-location-card.gw-map-accordion-item {
    position: relative;
    min-height: 23vw;
    transition: min-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gw-map-location-card.gw-map-accordion-item.is-open {
    min-height: 73vw;
}

.gw-map-location-card.gw-map-accordion-item.is-open .gw-map-mobile-link {
    display: inline-block;
    font-weight: bold;
    color: #ffffff;
    bottom: 9vw;
    position: absolute;
    margin-bottom: 0;
    margin-top: 0;
    font-family: 'altkrupa';
    font-size: 3.8vw;
}
.gw-map-accordion-title {
    font-family: 'altkrupa', sans-serif;
    font-size: 6vw;
    color: #ffffff;
    line-height: 1.3;
    margin-top: 2.5vw;
        max-width: 57vw;
}

/* Иконка open.svg (одна на оба состояния) */
.gw-map-accordion-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    background-image: url('../images/open.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
    transform: rotate(-45deg);
    align-self: flex-start;
    margin-left: auto;
    will-change: transform;
}
.gw-map-accordion-item.is-open .gw-map-accordion-icon {
    transform: rotate(0deg);
}

/* Скролл табов */
.gw-map-tabs-header {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 10vw;
}
.gw-map-tabs-header::-webkit-scrollbar {
    display: none;
}




    /* Прячем блок с картой/изображением, показываем ссылку */
    .gw-map-location-map-desktop {
        display: none;
    }
.gw-map-mobile-link {
    display: inline-block;
    margin-top: 27vw;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 4.5vw;
}

    /* Карточка — вертикальная */
    .gw-map-location-body {
        flex-direction: column;
    }


    .gw-map-location-email {
        font-size: 5vw;
        margin-top: 2vw;
    }

    /* Аккордеон */
    .gw-map-locations-list.gw-map-accordion {
        flex-direction: column;
        gap: 12px;
    }

    .gw-map-accordion-header {
        display: flex;
    }

    .gw-map-accordion-item.is-open .gw-map-accordion-title {
        margin-bottom: 8px;
    }
}





















/* ============================================================
   ДЕСКТОПНАЯ ВЕРСИЯ (≥ 769px)
   ============================================================ */
@media (min-width: 769px) {
    a.gw-map-location-map-link.gw-map-mobile-link {
        position: absolute;
        top: 11.3vw;
        font-size: 0.94vw;
        letter-spacing: 1px;
        left: 26.6vw;
    }
    h1.zagolovok {
        font-family: 'altkrupa';
        margin-left: 0;
        margin-top: 5.44vw;
        font-size: 1.9vw;
    }
/* Табы */
/* Табы: приводим к виду как в плагине контактов (.gw-tabs-inner / .gw-tab-header) */
.gw-map-tabs-inner {
    display: flex !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
    gap: 0.5vw 0.5vw !important;
    padding: 0 !important;
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.gw-map-tab-header {
    flex: 0 0 auto;
    padding: 0.8vw 1.2vw !important;
    cursor: pointer;
    background: #ffffff8f !important;
    color: #002B44 !important;
    border-bottom: none;
    border-radius: 0.8vw !important;
    font-weight: 400;
    font-size: 0.71vw;      /* как в контактах */
    line-height: 1.2 !important;
    height: 2.5vw;
    letter-spacing: 1px !important;
    font-family: 'Roboto', sans-serif;
    white-space: normal !important;
    transition: background 0.3s ease, color 0.3s ease !important;
}
.gw-map-tab-header:hover  { background: #ffffff !important; }
    .gw-map-tab-header.active {
        background: #002B44 !important;
        color: #fff !important;
    }
.gw-map-tabs-wrapper {
	margin-top: 1.9vw;
}
.gw-map-tab-content {
    display: none;
    background: #EEF1F3;
    border-radius: 0 0 5px 5px;
}
.gw-map-tab-content.active {
    display: block;
}

/* Список локаций */
.gw-map-locations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
        position: relative;
}
.wp-feedback-form-wrapper {
    margin-top: 0vw;
}

/* Карточка локации — базовая */
    .gw-map-location-card {
        flex: 1 1 calc(33% - 20px);
        background: #DAE0E6;
        border-radius: 2vw;
        padding: 0.5vw;
        box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
        overflow: hidden;
    }

/* Внутренняя раскладка карточки */
.gw-map-location-body {
    display: flex;
    flex-direction: row;
    gap: 2vw;
    align-items: flex-start;
}
.gw-map-location-text {
    flex: 1 1 auto;
    min-width: 0;
}
    .gw-map-location-map-desktop {
flex: 0 0 38.2%;
        max-width: 38.2%;
    }
svg.strelkacontact {
    width: 3vw;
}
svg.strelkacontact.desktop {
    width: 1.5vw;
    margin-left: 1vw;
}
    .gw-map-location-title {
        font-size: 1.8vw;
        font-family: 'altkrupa', sans-serif;
        margin-top: 1.6vw;
        margin-left: 0.8vw;
        letter-spacing: 0px;
        margin-bottom: 0.7vw;
    }
    .gw-map-location-address {
        font-size: 0.94vw;
        margin-top: 0;
        position: absolute;
        left: 26.6vw;
        width: 24vw;
		letter-spacing: 1px;
    }
.gw-map-location-email {
    font-size: 6.2vw;
    font-weight: bold;
    margin-top: 3vw;
}
.gw-map-location-email a {
    color: #8FD400;
}
.gw-map-location-phone,
.gw-map-location-hours {
    font-size: 14px;
    color: #333;
    margin: 4px 0;
}

/* Ссылка на карту */
.gw-map-location-map-link {
        display: block;
        cursor: pointer;
        text-decoration: none;
        font-size: 0.94vw;
    }
    .gw-map-location-map-image {
        display: block;
        width: 19.8vw;
        height: auto;
        border-radius: 1.5vw;
        object-fit: cover;
    }
.gw-map-location-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    min-height: 120px;
    background: #c9d2d9;
    border-radius: 7.5vw;
    color: #002B44;
    font-weight: bold;
    font-size: 14px;
}


/* ===== Аккордеон ===== */
.gw-map-accordion .gw-map-location-body-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

 
    .gw-map-accordion-title {
        display: block;
        position: absolute;
        color: #002B44;
        font-size: 1.8vw;
        font-family: 'altkrupa', sans-serif;
        margin-top: 1.6vw;
        margin-left: 26vw;
        letter-spacing: 0px;
        margin-bottom: 0.7vw;
    }
[data-tab="1205"] .gw-map-accordion-title {
    top: 0.5vw !important;
}
[data-tab="1205"] .gw-map-location-address {
    margin-top: -1.55vw;
}
[data-tab="1203"] .gw-map-location-address {
    margin-top: -1.55vw;
}
/* Иконка open.svg (одна на оба состояния) */
.gw-map-accordion-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background-image: url('../images/open.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
    transform: rotate(-45deg);
    will-change: transform;
}
.gw-map-accordion-item.is-open .gw-map-accordion-icon {
    transform: rotate(0deg);
}

/* Скролл табов */
.gw-map-tabs-header {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
	margin-bottom: 2.7vw;
}
.gw-map-tabs-header::-webkit-scrollbar {
    display: none;
}
	
/* Шапка аккордеона (видна только на мобильных) */
.gw-map-accordion-header {
    display: none;
    align-items: flex-start;   /* было: center */
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
}
    /* Обёртка тела всегда раскрыта, без анимации */
    .gw-map-accordion .gw-map-location-body-wrapper {
        max-height: none !important;
        overflow: visible;
    }

    /* Карточки-аккордеоны на десктопе — на всю ширину контейнера */
    .gw-map-accordion .gw-map-location-card, .gw-map-accordion .gw-map-accordion-item {
        flex: 1 1 100%;
        width: 100%;
        position: relative;
    }

    /* Раскладка: слева карта, справа текст */
    .gw-map-accordion .gw-map-location-body {
        flex-direction: row;
        align-items: center;
        gap: 3vw;
    }
    .gw-map-accordion .gw-map-location-map-desktop {
        flex: 0 0 45%;
        max-width: 45%;
    }
    .gw-map-accordion .gw-map-location-text {
        flex: 1 1 auto;
    }

    /* Шапка-аккордеон на десктопе не нужна */
    .gw-map-accordion-header {
        display: block;
    }
	
	
	
	
	
	
	
	
	
	
	
	
}