:root {
    --hydra-navbar-control-height: 46px;
}


.navbar-top > .dropdown {
    align-self: stretch;
    display: flex;
}

.navbar-top > .dropdown > .btn.btn-primary.dropdown-toggle {
    align-items: center;
    display: inline-flex;
    height: var(--hydra-navbar-control-height);
    justify-content: center;
    min-height: var(--hydra-navbar-control-height);
    padding-bottom: 0;
    padding-top: 0;
}

.hydra-map-switcher {
    align-items: center;
    background: rgba(33, 37, 41, 0.96);
    border: 1px solid #273657;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
    box-sizing: border-box;
    display: inline-flex;
    gap: 3px;
    height: var(--hydra-navbar-control-height);
    min-height: var(--hydra-navbar-control-height);
    padding: 3px;
}

.hydra-map-switcher-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: rgba(255, 255, 255, 0.68);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1;
    min-height: 38px;
    padding: 0 14px;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        color 150ms ease;
    white-space: nowrap;
}

.hydra-map-switcher-button:hover {
    background: rgba(13, 110, 253, 0.18);
    border-color: rgba(13, 110, 253, 0.24);
    color: #ffffff;
}

.hydra-map-switcher-button:focus-visible {
    background: rgba(13, 110, 253, 0.18);
    border-color: rgba(102, 178, 255, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    color: #ffffff;
    outline: none;
}

.hydra-map-switcher-button.active {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 2px 5px rgba(13, 110, 253, 0.3);
    color: #ffffff;
}

.hydra-map-switcher-button.active:hover,
.hydra-map-switcher-button.active:focus-visible {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #ffffff;
}

.hydra-map-switcher-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.map-feature-unavailable {
    display: none !important;
}

.mobile-map-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.mobile-map-switcher .hydra-map-switcher-button {
    min-height: 40px;
    padding: 0 8px;
}

@media (max-width: 980px) {
    .desktop-map-switcher {
        display: none;
    }
}

@media (min-width: 981px) {
    .navbar-top > .dropdown + .desktop-map-switcher {
        margin-left: 10px;
    }

    .mobile-map-switcher {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hydra-map-switcher-button {
        transition: none;
    }
}
