/* ===== Language Switch Fix v2 ===== */

/* Ensure lang-selector is positioned correctly */
.lang-selector {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

/* Language button styling */
.lang-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.lang-btn:after {
    content: " \25BC";
    font-size: 10px;
}

/* Language dropdown - hidden by default */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 1002;
}

/* Show on hover (desktop) */
.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Show on click (.active class - works on ALL screen sizes) */
.lang-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Dropdown links */
.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff !important;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background: #f8f9fa !important;
    color: #c9a86c !important;
}

/* Ensure header-top doesn't clip the dropdown */
.header-top {
    overflow: visible !important;
}

.header {
    overflow: visible !important;
}
/* ===== End Language Switch Fix v2 ===== */
