/* Mobile menu overlay styles (fallback) */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}
#mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}
#mobile-menu-overlay .mobile-menu-panel {
    width: 280px;
    max-width: 86%;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 18px rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 0 20px 18px 20px; /* no top padding – lang bar handles the top */
    overflow: auto;
}
#mobile-menu-overlay .mobile-menu-close {
    position: absolute;
    right: 14px;
    top: 13px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    z-index: 10;
}
#mobile-menu-overlay .mobile-cloned-menu {
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
}
#mobile-menu-overlay .mobile-cloned-menu li {
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
}
#mobile-menu-overlay .mobile-cloned-menu li a {
    color: #333;
    display: block;
    font-weight: 600;
}

/* ══════════════════════════════════════════
   LANGUAGE BAR — sticky header of the panel
   ══════════════════════════════════════════ */
.mobile-panel-lang-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    /* stretch full panel width, overriding the panel's side padding */
    margin: 0 -20px;
    padding: 11px 52px 11px 16px; /* right: 52px leaves room for × button */
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
    position: sticky;
    top: 0;
    z-index: 6;
}
.mobile-panel-lang-icon i {
    color: #d4a853;
    font-size: 15px;
}

/* ── Trigger button ── */
.mobile-lang-select {
    position: relative;
}
.mobile-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #444;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    line-height: 1;
    font-family: inherit;
}
.mobile-lang-trigger:hover {
    border-color: #d4a853;
    color: #c49340;
    background: #fef9f0;
}
.mobile-lang-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}
.mobile-lang-select.open .mobile-lang-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── Dropdown list ── */
.mobile-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 160px;
    z-index: 20;
    overflow: hidden;
}
.mobile-lang-select.open .mobile-lang-dropdown {
    display: block;
    animation: langDropIn 0.16s ease;
}
@keyframes langDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Dropdown items ── */
.mobile-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.mobile-lang-option:hover {
    background: #fef9f0;
    color: #c49340;
}
.mobile-lang-name {
    flex: 1;
}
.mobile-lang-check {
    font-size: 11px;
    color: #d4a853;
    margin-left: auto;
}
.mobile-lang-option.active {
    background: #fef9f0;
    color: #c49340;
}

/* divider between the two options */
.mobile-lang-dropdown li + li {
    border-top: 1px solid #f5f5f5;
}
