/* Выпадающее меню */

.dropdown-toggle {
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    color: #1C355E;
    padding: 12px 20px;
    width: 100%;
    transition: color 0.3s;
    position: relative;
    z-index: 2;
}

/* Стрелка */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    content: "";
    border-top: 6px solid #1C355E;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    transform: rotate(0deg);
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}

/* Открытое состояние */
.menu-open .dropdown-toggle {
    color: #8CA0B4 !important;
}

.menu-open .dropdown-toggle::after {
    transform: rotate(180deg);
    border-top-color: #8CA0B4;
}

/* Выпадающее меню */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.973);
    border: 2px solid rgba(232, 232, 232, 0.801);
    border-radius: 25px;
    padding: 50px 5px 12px;
    margin: 0;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-55px);
    animation: dropdownFade 0.2s ease-out;
    backdrop-filter: blur(5px);
    overflow: hidden;
    z-index: 1;
}

.cities.dropdown-menu {
    transform: translateY(-11px) !important;
}


.city-dropdown {
    background: rgba(255, 255, 255, 0.973);
    border: 2px solid rgba(232, 232, 232, 0.801);
    border-radius: 25px;
}

.menu-open .city-dropdown {
    border-color: #ffffff00;
    background-color: #ffffff00;
}

/* Элементы меню */
.dropdown-item {
    font-weight: 700;
    font-size: 18px;
    color: #1C355E;
    padding: 10px 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: background 0.3s, color 0.3s;
    border-radius: 25px;
    cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(28, 53, 94, 0.1);
    color: #1C355E;
    outline: none;
}

.dropdown-item:active {
    background: rgba(28, 53, 94, 0.2);
    color: #1C355E;
}

/* Анимация появления */
@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }

    to {
        opacity: 1;
        transform: translateY(-55px);
    }
}

@media (max-width: 1199px) {
    .dropdown-menu {
        margin-bottom: -55px !important;
    }
}