.destination-group {
    position: relative;
    display: flex;
    align-items: center;
}

.navbar .nav > .destination-group {
    display: flex;
}

.navbar .nav > .destination-group > a {
    padding-right: 1px;
}

.destination-dropdown summary {
    display: grid;
    place-items: center;
    width: 2.1rem;
    min-height: 2.6rem;
    cursor: pointer;
    list-style: none;
}

.destination-dropdown summary::-webkit-details-marker {
    display: none;
}

.destination-dropdown summary::after {
    width: .45em;
    height: .45em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    content: "";
}

.destination-dropdown[open] summary::after {
    transform: rotate(225deg);
}

.destination-dropdown > ul {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    width: max-content;
    min-width: min(14rem, 85vw);
    max-width: min(21rem, 85vw);
    max-height: min(62vh, 24rem);
    margin: 0;
    padding: .4rem;
    overflow: auto;
    list-style: none;
    color: var(--life-dark-link, #182b2c);
    background: var(--life-dark-panel, #fff);
    border: 1px solid currentColor;
    border-radius: .4rem;
    box-shadow: 0 .6rem 1.7rem #11292426;
}

.destination-dropdown li a {
    display: block;
    padding: .45em .75em;
    color: inherit;
    font-weight: 600;
}

.destination-dropdown li a:hover,
.destination-dropdown li a:focus-visible {
    background-color: #2b7b7620;
}

@media (max-width: 767px) {
    .navbar .nav > .destination-group {
        flex-wrap: wrap;
    }

    .navbar .destination-dropdown > ul {
        position: static;
        margin-left: 8px;
    }

    .navbar .destination-dropdown[open] {
        display: contents;
    }

    .navbar .destination-dropdown[open] > ul {
        width: 95%;
        max-width: none;
    }
}
