/* Globe language dropdown: opens DOWN, closes after language click. */

.language-switcher {
    position: fixed !important;
    top: 16px !important;
    right: 18px !important;
    z-index: 950 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 999px !important;
    overflow: visible !important;
    width: auto !important;
}

.language-switcher::before {
    content: "🌐";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(231,225,216,.95);
    box-shadow: 0 8px 22px rgba(0,0,0,.09);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.language-switcher button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    width: 58px !important;
    max-width: 58px !important;
    min-width: 58px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(231,225,216,.95) !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.96) !important;
    color: #1d2a2a !important;
    font: 900 11px/1 Arial, sans-serif !important;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0,0,0,.07);
    transition:
        opacity .14s ease,
        visibility .14s ease,
        transform .14s ease,
        background .14s ease,
        color .14s ease;
}

.language-switcher button.is-active {
    color: #006b68 !important;
    background: #e8f3f1 !important;
}

.language-switcher:hover button,
.language-switcher:focus-within button,
.language-switcher.is-open button {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.language-switcher button:hover {
    color: #fff !important;
    background: #006b68 !important;
}

.language-switcher.is-closing button {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-6px) !important;
}

@media (max-width: 760px) {
    .language-switcher {
        top: auto !important;
        right: 10px !important;
        bottom: 10px !important;
        flex-direction: column-reverse !important;
    }

    .language-switcher::before {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .language-switcher button {
        width: 54px !important;
        max-width: 54px !important;
        min-width: 54px !important;
        height: 29px !important;
        min-height: 29px !important;
        font-size: 10px !important;
    }

    .language-switcher button {
        transform: translateY(6px);
    }

    .language-switcher.is-closing button {
        transform: translateY(6px) !important;
    }
}
