/* Remove default list bullet the theme CSS forgot to clear */
.dropmenu ul {
    list-style: none;
    padding: 0;
}

/* Flex item in navbar — stretches to full navbar height */
.lang-dropdown {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin-left: 12px;
    cursor: pointer;
}

/* Visible trigger: the current language label shown at all times */
.lang-trigger {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: inherit;
    white-space: nowrap;
}

/* Dropdown list — hidden by default, opens below the trigger */
.lang-dropdown ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    right: 0;
    border: 1px solid rgba(172, 179, 194, 0.4);
    border-radius: 4px;
    background: #fff;
    min-width: 44px;
    z-index: 20;
}

/* Show dropdown on hover */
.lang-dropdown:hover ul {
    display: block;
}

.lang-dropdown ul li {
    padding: 4px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.lang-dropdown ul li:last-child {
    border-bottom: none;
}

.lang-dropdown ul li:hover {
    background-color: #f5f5f5;
}

.lang-dropdown ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    text-transform: uppercase;
    font-size: 0.72rem;
    white-space: nowrap;
}

.lang-dropdown ul li a.active {
    font-weight: 700;
}

/* ── Mobile language switcher ── */
.mobile-lang {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

/* Hide the desktop trigger in mobile context */
.mobile-lang .lang-trigger {
    display: none;
}

/* Show the ul flat (not as a dropdown) */
.mobile-lang ul {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-lang ul li {
    display: block;
    padding: 0;
    border-bottom: none;
}

.mobile-lang ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}

/* Highlight the active language */
.mobile-lang ul li a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}
