.vita-lang {
    position: relative;
    flex: 0 0 auto;
    margin-left: 12px;
    font-family: 'Inter', 'Inter Fallback', sans-serif;
}

.vita-lang--floating {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10020;
    margin: 0;
}

.vita-lang--floating .vita-lang__button {
    box-shadow: 0 6px 22px rgba(15, 34, 56, 0.2);
}

/* The translated desktop nav needs more room than the Polish baseline. */
@media (min-width: 1361px) {
    nav .container {
        max-width: 1440px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .nav-cta {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

.vita-lang__button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid rgba(27, 58, 92, 0.18);
    border-radius: 9px;
    background: rgba(250, 250, 247, 0.94);
    color: var(--navy, #1B3A5C);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.vita-lang__button:hover {
    border-color: var(--navy, #1B3A5C);
}

.vita-lang__button:focus-visible,
.vita-lang__link:focus-visible,
.vita-lang-prompt__action:focus-visible,
.vita-lang-prompt__close:focus-visible {
    outline: 3px solid var(--gold, #B89530);
    outline-offset: 2px;
}

.vita-lang__globe {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.vita-lang__chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.vita-lang__button[aria-expanded="true"] .vita-lang__chevron {
    transform: rotate(180deg);
}

.vita-lang__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1003;
    min-width: 168px;
    padding: 6px;
    margin: 0;
    list-style: none;
    border: 1px solid rgba(27, 58, 92, 0.12);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 34, 56, 0.18);
}

.vita-lang__menu[hidden] {
    display: none;
}

.vita-lang__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 7px;
    color: #333 !important;
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
}

.vita-lang__link:hover {
    background: #F0EDE6;
}

.vita-lang__link[aria-current="page"] {
    background: #E8F0FE;
    color: var(--navy, #1B3A5C) !important;
    font-weight: 700;
}

.vita-lang-prompt {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 13px 14px;
    border: 1px solid rgba(27, 58, 92, 0.15);
    border-radius: 12px;
    background: #fff;
    color: #333;
    box-shadow: 0 10px 30px rgba(15, 34, 56, 0.2);
    font-family: 'Inter', 'Inter Fallback', sans-serif;
    font-size: 0.88rem;
    line-height: 1.45;
}

.vita-lang-prompt[hidden] {
    display: none;
}

.vita-lang-prompt__action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--navy, #1B3A5C);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.vita-lang-prompt__close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.vita-translation-notice,
.vita-roomadmin-note {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    background: #FFF8E6;
    color: #4B3A11;
    font-family: 'Inter', 'Inter Fallback', sans-serif;
    font-size: 0.86rem;
    line-height: 1.5;
}

.vita-translation-notice a {
    font-weight: 700;
    text-decoration: underline;
}

.vita-roomadmin-note {
    margin-bottom: 18px;
    border-left: 4px solid var(--gold, #B89530);
    border-radius: 8px;
}

/* Keep wide FAQ sections balanced without stretching the reading line. */
.faq > .container > .section-label,
.faq > .container > .section-title,
.faq > .container > .faq-list {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
}

/* The source banner inherits a global paragraph colour unless set explicitly. */
#cookieBanner p {
    min-width: 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

#cookieBanner button {
    min-height: 44px;
}

body.vita-cookie-banner-visible {
    padding-bottom: var(--vita-cookie-banner-height, 0px) !important;
}

body.vita-cookie-banner-visible.has-sticky-cta {
    padding-bottom: calc(var(--vita-cookie-banner-height, 0px) + 70px) !important;
}

body.vita-cookie-banner-visible .sticky-cta {
    bottom: var(--vita-cookie-banner-height, 0px) !important;
}

body.vita-cookie-banner-visible .vita-lang-prompt {
    display: none !important;
}

.skip-link:focus {
    position: fixed !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 10050 !important;
}

@media (max-width: 1360px) {
    .vita-lang {
        margin-left: auto;
        margin-right: 8px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        max-height: calc(100dvh - 72px);
        padding: 16px 24px;
        overflow-y: auto;
        border-bottom: 1px solid rgba(27, 58, 92, 0.08);
        background: var(--cream, #FAFAF7);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    body:has(.bon-banner) .nav-links {
        top: calc(72px + 34px);
        max-height: calc(100dvh - 72px - 34px);
    }

    body:has(.bon-banner) .nav-overlay {
        top: calc(72px + 34px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(27, 58, 92, 0.06);
        font-size: 1rem;
        text-align: center;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links.active a {
        color: var(--text-light, #555) !important;
    }

    .nav-links.active a:hover {
        color: var(--navy, #1B3A5C) !important;
    }

    .nav-links.active .nav-cta {
        display: block;
        margin: 12px 0 0;
        padding: 14px 24px;
        border-bottom: none;
        border-radius: 8px;
        background: var(--navy, #1B3A5C);
        color: var(--white, #FFF) !important;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    body.has-sticky-cta {
        padding-bottom: 70px;
    }
}

@media (max-width: 768px) {
    body:has(.bon-banner) .nav-links {
        top: calc(72px + 52px);
        max-height: calc(100dvh - 72px - 52px);
    }

    body:has(.bon-banner) .nav-overlay {
        top: calc(72px + 52px);
    }
}

@media (max-width: 400px) {
    body:has(.bon-banner) .nav-links {
        top: calc(72px + 70px);
        max-height: calc(100dvh - 72px - 70px);
    }

    body:has(.bon-banner) .nav-overlay {
        top: calc(72px + 70px);
    }
}

@media (max-width: 480px) {
    #cookieBanner {
        max-height: 72dvh;
        overflow-y: auto;
        padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }

    #cookieBanner > div {
        flex-direction: column;
        align-items: stretch !important;
    }

    #cookieBanner > div > div {
        justify-content: stretch;
    }

    #cookieBanner button {
        flex: 1 1 0;
        padding-inline: 12px !important;
    }

    .vita-lang__button {
        min-width: 46px;
        padding: 7px 8px;
    }

    .vita-lang__current {
        display: none;
    }

    .vita-lang-prompt {
        right: 12px;
        bottom: 86px;
        left: 12px;
        max-width: none;
    }
}

@media print {
    .vita-lang,
    .vita-lang-prompt {
        display: none !important;
    }
}
