/* Нижняя панель приложения (ui-v2): один файл для SPA, ленты и страниц путешествий. Подключается из ui-v2/flag.ts, index.html и шаблонов путешествий. */
.v2-tabbar {
    --tb-bg: #ffffff;
    --tb-line: rgba(20, 23, 28, 0.09);
    --tb-faint: #6b727c;
    --tb-accent: #d8fb50;
    --tb-ink: #12160a;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    gap: 4px;
    box-sizing: border-box;
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 8px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--tb-line);
    border-radius: 24px 24px 0 0;
    background: var(--tb-bg);
    box-shadow: 0 -8px 24px -16px rgba(20, 23, 28, 0.25);
}

/* Атрибут hidden должен побеждать display:flex (гость не видит панель) */
.v2-tabbar[hidden] {
    display: none;
}

html[data-ui-theme='dark'] .v2-tabbar {
    --tb-bg: #0f1114;
    --tb-line: rgba(255, 255, 255, 0.09);
    --tb-faint: #9aa3af;
    box-shadow: none;
}

.v2-tab {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 0 2px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--tb-faint);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.v2-tab.is-active {
    background: var(--tb-accent);
    color: var(--tb-ink);
}

.v2-tab--action {
    flex: 0 0 64px;
    align-self: center;
    min-height: 52px;
    margin: -14px 2px 0;
    padding: 0;
    border-radius: 20px;
    background: var(--tb-accent);
    color: var(--tb-ink);
    box-shadow: 0 8px 18px -8px rgba(60, 80, 0, 0.55);
}

.v2-tab--action svg {
    width: 26px;
    height: 26px;
}

.v2-tab--action span {
    font-size: 9px;
}

.v2-tab:focus-visible {
    outline: 3px solid var(--tb-faint);
    outline-offset: 2px;
}

body.v2-has-tabbar {
    padding-bottom: 96px;
}

