/* Sticky "Book Now" bar for the Tour Detail page.
   The bar itself never contains its own button - Detail.cshtml's script moves the SAME
   .bookNowButton element (Bokun widget button or WhatsApp link) in and out of it based on scroll
   position, so booking logic/click handlers/links are never duplicated. Because the button is
   moved outside its original ".productDetail" ancestor, it loses the ".productDetail
   .bookNowButton" styling from custom.css, so a compact equivalent is defined here for the bar
   context only. */

.stickyBookNowBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
    transform: translateY(-100%);
    transition: transform .25s ease;
    pointer-events: none;
}

.stickyBookNowBar.is-active {
    transform: translateY(0);
    pointer-events: auto;
}

.stickyBookNowBar .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 0;
}

.stickyBookNowBar .bookNowButton {
    background-color: var(--mainred);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-bottom: 0;
    text-decoration: none;
}

.stickyBookNowBar .bookNowButton:hover {
    background-color: var(--mainredhover);
}

/* Reserves the exact space the button occupied in .productDetail .right while it's moved into
   the sticky bar, so removing it never shifts the surrounding layout. */
.bookNowPlaceholder {
    display: none;
}

/* Invisible marker placed right where the button starts in the page; observed via
   IntersectionObserver to know when that original position has scrolled out of view. */
.bookNowSentinel {
    display: block;
    height: 1px;
}

@media (max-width: 999px) {
    .stickyBookNowBar .container {
        justify-content: center;
    }

    .stickyBookNowBar .bookNowButton {
        width: 100%;
        padding: 12px 0;
    }
}
