/* ===== LANGUAGE FAB – shared across all pages ===== */

.lang-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.lang-fab-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: var(--white);
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 50px;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(0,0,0,.38);
    transition: all var(--transition);
    font-family: inherit;
}
.lang-fab-trigger:hover,
.lang-fab.open .lang-fab-trigger {
    background: var(--ocean-dark);
    border-color: rgba(255,255,255,.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(0,0,0,.45);
}

.lang-fab-flags {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fab-sep {
    color: rgba(255,255,255,.4);
    font-size: .75rem;
    line-height: 1;
    user-select: none;
}

.lang-fab-chevron {
    font-size: .72rem;
    color: rgba(255,255,255,.5);
    transition: transform var(--transition);
    margin-left: 2px;
}
.lang-fab.open .lang-fab-chevron { transform: rotate(180deg); }

.lang-fab-panel {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 52px rgba(0,0,0,.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    transform: translateY(14px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .18s ease;
    transform-origin: bottom right;
}
.lang-fab.open .lang-fab-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .93rem;
    color: var(--text);
    transition: background var(--transition);
    text-align: left;
    width: 100%;
    border-bottom: 1px solid rgba(10,110,138,.07);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--bg-section); }
.lang-option.active {
    background: rgba(10,110,138,.08);
    color: var(--ocean-dark);
    font-weight: 600;
}
.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--ocean);
    font-size: .85rem;
}

.lang-name { flex: 1; }

/* ── Flag images (flagcdn.com SVGs, no library needed) ── */
.flag-img {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
}

.lang-fab-trigger .flag-img {
    width: 22px;
    height: 22px;
}

.lang-fab-panel .flag-img {
    width: 26px;
    height: 26px;
}

@media (max-width: 480px) {
    .lang-fab { bottom: 16px; right: 16px; }
    .lang-fab-trigger { padding: 11px 14px; gap: 7px; }
    .lang-fab-panel { min-width: 180px; }
    .lang-fab-trigger .flag-img { width: 20px; height: 20px; }
}
