/* ── Booking bar ─────────────────────────────────────────────
   Figma (Home, mobile): 1728:17887, 1728:17897. Tablet follows
   mobile; desktop has none.
   ─────────────────────────────────────────────────────────── */

.booking-bar {
    display: none;
}

@media (max-width: 1024px) {
    .booking-bar {
        display: block;
        position: fixed;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-h, 60px)); /* under the header */
        right: 0;
        left: 0;
        z-index: 90; /* under the header, and its menu */
        padding: 10px 16px;
        background: #2E2423;
        transform: translateY(-100%);
        visibility: hidden;
        transition: transform 300ms ease, visibility 0s 300ms;
    }

    .booking-bar.is-shown {
        transform: none;
        visibility: visible;
        transition: transform 300ms ease;
    }

    .booking-bar__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 12px 8px 20px;
        border-radius: 99px;
        background: #000;
    }

    .booking-bar.is-filled .booking-bar__inner {
        padding-right: 20px;
    }

    .booking-bar__summary {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        white-space: nowrap;
    }

    .booking-bar__dates {
        overflow: hidden;
        font-family: var(--font-heading);
        font-size: 16px;
        line-height: 1.2;
        text-overflow: ellipsis;
        color: var(--color-canvas);
    }

    .booking-bar__guests {
        overflow: hidden;
        font-size: 14px;
        line-height: 1.15;
        letter-spacing: 0.28px;
        text-overflow: ellipsis;
        color: var(--color-on-dark-muted);
    }

    .booking-bar__button {
        flex: 0 0 213px;
        height: 40px;
        padding: 0 10px;
        gap: 8px;
        border-radius: 99px;
    }

    .booking-bar__icon {
        flex-shrink: 0;
    }

    .booking-bar.is-filled .booking-bar__icon {
        display: none;
    }
}

/* Narrow phones: a smaller button, so the dates keep room. */
@media (max-width: 374px) {
    .booking-bar__button {
        flex-basis: auto;
        padding: 0 14px;
        font-size: 14px;
        letter-spacing: 2px;
    }
}
