/*
 * Responsive pass for the shared shell (breakpoints only — desktop base lives
 * in shell.css). Layered max-width queries: 1024px (tablet), 768px (large
 * phone), 480px (small phone). Mobile nav panel base styles also live here
 * since they only exist below the desktop breakpoint.
 */

/* ==========================================================================
   Body scroll lock while the mobile nav panel is open
   ========================================================================== */

body.is-nav-open {
    overflow: hidden;
}

/* ==========================================================================
   ≤1024px — tablet: switch header to burger nav
   ========================================================================== */

@media (max-width: 1024px) {
    .vo-header__nav {
        display: none;
    }

    .vo-header__actions .vo-btn {
        display: none;
    }

    .vo-burger {
        display: flex;
        position: relative;
        z-index: 3;
        border-radius: 50%;
        border: 1px solid rgba(250, 246, 238, .45);
    }

    /* Burger → X morph when the panel is open. */
    .vo-header.is-open .vo-burger__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .vo-header.is-open .vo-burger__bar:nth-child(2) {
        opacity: 0;
    }

    .vo-header.is-open .vo-burger__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile nav panel: fixed full-screen overlay, hidden until .is-open. */
    .vo-mobile-panel {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 2;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(28px, 6vh, 48px);
        padding: 100px 28px 48px;
        background: var(--vo-ink);
        color: var(--vo-cream);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility 0s linear .3s;
    }

    .vo-mobile-panel.is-open {
        opacity: 1;
        visibility: visible;
        transition: opacity .3s ease;
    }

    .vo-mobile-panel__nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .vo-mobile-panel__nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        width: 100%;
        font-family: var(--vo-font-serif);
        font-size: 24px;
        text-decoration: none;
        color: var(--vo-cream);
    }

    .vo-mobile-panel .vo-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* ==========================================================================
   ≤768px — large phone
   ========================================================================== */

@media (max-width: 768px) {
    .vo-hero {
        padding: 20px 16px 32px;
    }

    .vo-hero__subtitle {
        font-size: 15.5px;
    }

    /* Booking card: stack fields vertically as rows (label left, value right). */
    .vo-book {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        gap: 0;
    }

    .vo-book__divider {
        display: none;
    }

    .vo-book__field {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        padding: 14px 0;
        border-bottom: 1px solid rgba(250, 246, 238, .25);
    }

    .vo-book__field:last-of-type {
        border-bottom: none;
    }

    .vo-book__label {
        margin-bottom: 0;
    }

    .vo-book__price,
    .vo-book__value {
        margin-top: 0;
        text-align: right;
    }

    .vo-book__field--guests {
        min-width: 0;
    }

    .vo-book__guests {
        margin-top: 0;
    }

    .vo-book__guest-btn {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .vo-hero__book .vo-btn--primary {
        width: 100%;
        justify-content: center;
        margin-top: 16px;
        white-space: normal;
    }

    /* Footer: stack blocks vertically. */
    .vo-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .vo-footer__links {
        gap: 16px;
    }
}

/* ==========================================================================
   ≤480px — small phone
   ========================================================================== */

@media (max-width: 480px) {
    .vo-hero__title {
        font-size: clamp(40px, 12vw, 50px);
    }
}
