/* ============================================
   LANGUAGE SWITCHER STYLES
   Aire Urbaine Investissement
   ============================================ */


/* Hidden Google Translate Element */

#google_translate_element {
    display: none !important;
    position: absolute;
    left: -9999px;
}

#google_translate_element2 {
    display: none !important;
}


/* ---- Language Switcher Container ---- */

.lang-switcher-container {
    display: inline-block;
    position: relative;
    z-index: 1050;
}


/* ---- Trigger Button ---- */

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1;
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

.lang-label {
    font-size: 12px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.lang-chevron {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.lang-switcher-container.open .lang-chevron {
    transform: rotate(180deg);
}


/* ---- Dropdown Menu ---- */

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1060;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-inner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 6px;
    max-height: 360px;
    overflow-y: auto;
}


/* Smooth scrollbar */

.lang-dropdown-inner::-webkit-scrollbar {
    width: 4px;
}

.lang-dropdown-inner::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}


/* ---- Language Options (Links) ---- */

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

.lang-option:hover {
    background: #f4f3ff;
    text-decoration: none;
}

.lang-option .flag-icon {
    width: 24px;
    height: 16px;
    object-fit: contain;
}


/* ---- Dark Header Styling ---- */

.header .lang-switcher-btn {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: #333;
}

.header .lang-switcher-btn:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}


/* ---- Sticky Navbar ---- */

#navbar.sticky .lang-switcher-btn {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: #333;
}

#navbar.sticky .lang-switcher-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}


/* ---- Mobile Responsive ---- */

@media (max-width: 991px) {
    .lang-switcher-container {
        margin-top: 12px;
    }
    .lang-dropdown {
        right: auto;
        left: 0;
    }
}

@media (max-width: 575px) {
    .lang-switcher-btn {
        padding: 6px 10px;
        gap: 4px;
    }
    .lang-label {
        display: none;
    }
}