/* Royal Turkish Schools - Language Switcher Styles */
/* Extracted from style.css for use in Booking Wizard */

.lang-dropdown-container {
    position: relative;
    margin-right: 15px;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(26, 43, 75, 0.2);
    padding: 4px 8px;
    /* Reduced padding */
    border-radius: 6px;
    /* Slightly smaller radius */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    /* Reduced gap */
    font-weight: 600;
    color: #0F1B2D;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    /* Smaller font */
    height: 32px;
    /* Fixed height for consistency */
}

.lang-btn:hover {
    border-color: #E31E24;
    background: rgba(0, 0, 0, 0.02);
}

.lang-btn i {
    font-size: 14px;
    /* Smaller globe icon */
}

/* Dropdown Menu (Desktop) */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    /* Closer to button */
    right: 0;
    background: #0F1B2D;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 6px;
    /* Reduced padding */
    display: none;
    min-width: 200px;
    /* Reduced width */
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.2s ease-out;
}

.lang-dropdown-menu.show {
    display: block;
}

.mobile-only {
    display: none;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    /* Thinner gap */
}

.lang-item {
    padding: 8px 10px;
    /* Reduced padding */
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    color: white;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    /* var(--primary-red) */
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-name {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Overlay Styles --- */
@media (max-width: 992px) {
    .lang-dropdown-menu.show {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        inset: 0 !important;
        background: rgba(15, 27, 45, 0.98) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 99999 !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        /* Space for header */
        animation: fadeIn 0.3s ease-out;
    }

    .mobile-only {
        display: flex !important;
        width: 100%;
        max-width: 340px;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
    }

    .mobile-only h3 {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
    }

    .lang-close-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    .lang-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: 340px;
        background: transparent !important;
        padding: 0;
        border-radius: 0;
    }

    .lang-item {
        background: rgba(255, 255, 255, 0.08);
        /* Dark glass items */
        border: 1px solid rgba(255, 255, 255, 0.05);
        color: white;
        /* Text white */
        padding: 16px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 15px;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 1.1rem;
        font-weight: 500;
        width: 100%;
        box-sizing: border-box;
    }

    .lang-item:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        transform: translateY(-2px);
    }
}