/* ==========================================================================
   Booking Offcanvas Sidebar — Mobile Only
   On mobile (<992px / below lg), the booking sidebar becomes an offcanvas panel
   that slides in from the right. A small tab peeks from the right screen edge
   as if attached to the hidden panel.
   ========================================================================== */

/* --- Tab Handle (small, right-edge, visually attached to panel) --- */
.booking-offcanvas-trigger {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 1045;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0;
    width: auto;
    padding: 22px 11px 22px 14px;
    background: #1e1e2f;
    color: #fff;
    border: none;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
    line-height: 1;
}

.booking-offcanvas-trigger i {
    font-size: 22px;
}

.booking-offcanvas-trigger__label {
    display: none;
}

/* --- Offcanvas Container --- */
.booking-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    pointer-events: none;
    visibility: hidden;
}

.booking-offcanvas.is-open {
    pointer-events: auto;
    visibility: visible;
}

/* --- Backdrop --- */
.booking-offcanvas__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-offcanvas.is-open .booking-offcanvas__backdrop {
    opacity: 1;
}

/* --- Sliding Panel --- */
.booking-offcanvas__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: #1e1e2f;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.booking-offcanvas.is-open .booking-offcanvas__panel {
    transform: translateX(0);
}

/* --- Panel Header --- */
.booking-offcanvas__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.booking-offcanvas__header h5 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.booking-offcanvas__close {
    border: none;
    background: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.booking-offcanvas__close:hover {
    opacity: 1;
}

/* --- Scrollable Body --- */
.booking-offcanvas__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Reset sticky positioning inside offcanvas since the panel itself scrolls */
.booking-offcanvas__body .sidebar-sticky {
    position: static;
}

/* Hide the heading inside the offcanvas sidebar since the panel header already has it */
.booking-offcanvas__body .booking-subheading {
    display: none;
}

/* --- Slide trigger away when panel is open --- */
.booking-offcanvas.is-open ~ .booking-offcanvas-trigger {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* --- Body scroll lock when offcanvas is open --- */
body.booking-offcanvas-open {
    overflow: hidden;
}
