/* Language switcher — matches Jitin Malhotra dark / gold theme */

.lang-switcher {
    position: relative;
    z-index: 1002;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--grey-dark, #2a2a2a);
    color: var(--grey-light, #b0b0b0);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lang-toggle:hover,
.lang-switcher.open .lang-toggle {
    border-color: var(--gold, #c9a96e);
    color: var(--gold, #c9a96e);
}

.lang-globe {
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.lang-globe::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -1px;
    right: -1px;
    height: 1px;
    background: currentColor;
    transform: translateY(-50%);
}

.lang-globe::after {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 50%;
    width: 1px;
    background: currentColor;
    transform: translateX(-50%);
}

.lang-chevron {
    font-size: 8px;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    max-height: min(320px, 60vh);
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--grey-dark, #2a2a2a);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark, #a8883f) var(--black, #0a0a0a);
}

.lang-menu::-webkit-scrollbar {
    width: 5px;
}

.lang-menu::-webkit-scrollbar-thumb {
    background: var(--gold-dark, #a8883f);
    border-radius: 3px;
}

.lang-switcher.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 12px;
    background: none;
    border: none;
    color: var(--grey-light, #b0b0b0);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.lang-menu button:hover {
    background: rgba(201, 169, 110, 0.08);
    color: var(--cream, #f5f0e8);
}

.lang-menu button.active {
    color: var(--gold, #c9a96e);
    background: rgba(201, 169, 110, 0.12);
}

.lang-menu button .lang-code {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--grey, #888);
    font-weight: 600;
}

.lang-menu button.active .lang-code {
    color: var(--gold, #c9a96e);
}

.lang-switcher--mobile-menu {
    width: 100%;
    max-width: 280px;
    margin-top: 8px;
}

.lang-switcher--mobile-menu .lang-toggle {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 11px;
}

.lang-switcher--mobile-menu .lang-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 8px;
    width: 100%;
}

.lang-switcher--mobile-menu.open .lang-menu {
    display: block;
}

/* RTL adjustments */
html[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-menu button {
    text-align: right;
}

html[dir="rtl"] .duration-price {
    margin-left: 0;
    margin-right: 32px;
}

@media (max-width: 900px) {
    .lang-switcher--nav .lang-toggle {
        padding: 7px 10px;
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .lang-switcher--nav .lang-globe {
        width: 12px;
        height: 12px;
    }
}