/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-block;
    z-index: 10013;
}

/* Header Language Selector Container */
.header-language-selector {
    position: relative;
    z-index: 10009;
}

/* Header Language Button */
.header-lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #2C5530;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-lang-button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.header-lang-button .current-flag {
    font-size: 18px;
    width: 24px;
    height: 18px;
    border-radius: 2px;
    overflow: hidden;
}

.header-lang-button i:last-child {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-selector[data-open="true"] .header-lang-button i:last-child {
    transform: rotate(180deg);
}

.language-selector .header-lang {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.language-selector .header-lang img{
    height: 15px;
}

.language-selector .header-lang:hover {
}

.language-selector .header-lang i:last-child {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-selector .current-flag {
    font-size: 16px;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
}

/* Simple language display in header-top */
.header-lang-simple {
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    font-size: 14px;
}

.header-lang-simple .current-flag {
    font-size: 16px;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
}

.language-selector[data-open="true"] .header-lang i:last-child {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: -85px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1001455555555;
    overflow: hidden;
    margin-top: 5px;
}

.language-dropdown.active {
    display: block;
    display: flex;
    flex-direction: column;
}

.language-option {
    /* display: flex; */
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #2C5530;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8f9fa;
    color: #D4AF37;
}

.language-option .fi {
    font-size: 16px;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
}

/* Mobile Language Selector */
.mobile-menu-lang {
    position: relative;
    display: inline-block;
    z-index: 10013;
}

.mobile-lang-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.mobile-lang-button i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-lang-button .current-flag {
    font-size: 16px;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
}

.mobile-menu-lang[data-open="true"] .mobile-lang-button i:last-child {
    transform: rotate(180deg);
}

.mobile-language-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 10014;
    overflow: hidden;
    margin-bottom: 5px;
    display: none;
}

.mobile-language-dropdown.active {
    display: block;
}

.mobile-language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #2C5530;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-language-option:last-child {
    border-bottom: none;
}

.mobile-language-option:hover {
    background: #f8f9fa;
    color: #D4AF37;
}

.mobile-language-option .fi {
    font-size: 16px;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .language-dropdown {
        right: -10px;
    }
    
    .mobile-language-dropdown {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .language-dropdown {
        right: -20px;
        min-width: 140px;
    }
    
    .language-option {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mobile-language-dropdown {
        right: -20px;
        min-width: 140px;
    }
    
    .mobile-language-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}
