main.detail-tour-container {
    max-width: 1280px;
    margin: auto;
}

.tp-tour-gallery-thumb {
    border-radius: 12px;
}

.tp-breadcrumb-title {
    letter-spacing: 0;
}

.tp-tour-activity-excludes ul {
    grid-template-columns: 1fr;
}

.tp-tour-activity-excludes ul li {
    margin-bottom: 10px;
}

.accordion-item,
.accordion-button {
    background-color: #f9f9f9;
}

.tp-faq-btn {
    padding: 12px 8px;
}

.tp-faq-wrap .accordion-body {
    padding: 12px 0 12px 0;
}

.tp-tour-media-meta span,
.tp-tour-media-meta a {
    background: #fafafa80;
    backdrop-filter: blur(5px);
}

.tp-tour-details-init-title h4 {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.tp-tour-info {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    margin: 4px 0;
}

.tp-tour-info-date {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(7, 21, 22, 0.1);
    padding-bottom: 4px;
}

span.icon-card {
    display: flex !important;
    align-items: center;
}

.modal.show .modal-dialog {
    transform: none;
    display: flex;
    align-items: center;
    /* min-height: calc(100% - var(--bs-modal-margin) * 2); */
}

span.tp-tour-details-plan-icon svg {
    color: #f7f2f2;
}

ul.ula {
    grid-template-columns: 1fr 1fr !important;
}

/* Fix mobile gallery layout issue (create full-bleed swipeable gallery) */
@media only screen and (max-width: 767px) {

    /* 1. Make header absolute and transparent so gallery is flush to the top (mentok atas) */
    header.tp-header-height {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        height: auto !important;
    }

    .tp-header-area,
    .tp-header-blur {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        backdrop-filter: none !important;
    }

    /* 2. Main wrapper becomes sticky so it stays in place when scrolling */
    .tp-tour-details-gallery-wrap {
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
        position: sticky !important;
        top: 0;
        z-index: 1;
    }

    /* 3. Section below gallery must have higher z-index and white background to cover gallery on scroll */
    .tp-tour-details-area {
        position: relative;
        z-index: 10;
        background-color: #ffffff;
        border-top-left-radius: 32px;
        border-top-right-radius: 32px;
        margin-top: -30px;
    }

    /* Force all intermediate wrappers to be static so absolute buttons stay fixed */
    .tp-tour-details-gallery-wrap .row,
    .tp-tour-details-gallery-wrap [class*="col-"],
    .tp-tour-gallery-inner,
    .tp-tour-gallery-thumb,
    .tp-tour-details-gallery-wrap .p-relative,
    .tp-tour-details-gallery-wrap .fix {
        position: static !important;
    }

    /* Main scroll container */
    .tp-tour-details-gallery-wrap>.row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 0;
        width: 100vw;
    }

    .tp-tour-details-gallery-wrap>.row::-webkit-scrollbar {
        display: none;
    }

    /* Remove column paddings (gutters) for full-bleed */
    .tp-tour-details-gallery-wrap>.row>.col-lg-7,
    .tp-tour-gallery-inner .row>.col-sm-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }

    /* Main image wrapper */
    .tp-tour-details-gallery-wrap>.row>.col-lg-7 {
        flex: 0 0 100vw;
        max-width: 100vw;
        scroll-snap-align: center;
    }

    /* Second column wrapper */
    .tp-tour-details-gallery-wrap>.row>.col-lg-5 {
        flex: 0 0 auto;
        width: auto;
        padding: 0;
    }

    .tp-tour-gallery-inner {
        margin-left: 0 !important;
        height: 100%;
    }

    /* Inner row becomes a flex container to align with the main scroll */
    .tp-tour-gallery-inner .row {
        display: flex;
        flex-wrap: nowrap;
        margin: 0 !important;
        width: auto;
    }

    /* Inner images */
    .tp-tour-gallery-inner .row>.col-sm-6 {
        flex: 0 0 100vw;
        max-width: 100vw;
        scroll-snap-align: center;
    }

    /* Make images uniform and full bleed */
    .tp-tour-gallery-thumb {
        display: block;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        /* Remove border radius for full bleed */
        aspect-ratio: 1 / 1;
        width: 100vw;
        overflow: hidden;
    }

    .tp-tour-gallery-thumb img {
        width: 100vw;
        height: 100%;
        display: block;
        object-fit: cover;
        min-height: 435px;
    }

    /* Ensure meta buttons (view all, video, maps) stay fixed when swiping */
    .tp-tour-gallery-thumb .tp-tour-media-meta {
        position: absolute !important;
        z-index: 99 !important;
        left: 20px !important;
        bottom: 40px !important;
        right: auto !important;
    }

    .tp-tour-gallery-thumb.gallery .tp-tour-media-meta {
        left: auto !important;
        right: 20px !important;
    }

    /* Mobile Top Actions (Back, Share, Wishlist) */
    .tp-mobile-gallery-top-actions {
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 99;
    }

    .tp-mobile-gallery-top-actions .right-actions {
        display: flex;
        gap: 10px;
    }

    .tp-mobile-gallery-top-actions .mobile-action-btn {
        width: 44px;
        height: 44px;
        background: #fafafa80;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        color: #101010;
        cursor: pointer;
        text-decoration: none;
        backdrop-filter: blur(5px);
    }

    .tp-mobile-gallery-top-actions .mobile-action-btn.active {
        color: #ff4d4f;
    }

    .tp-mobile-gallery-top-actions .mobile-action-btn.active svg {
        fill: currentColor;
    }

    .tp-tour-details-plan-list ul {
        padding-left: 60px;
    }

    .tp-tour-details-plan-list ul::after {
        left: 14px;
    }

    .mobile-booking-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 6px 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1040;
        transition: transform 0.3s ease-in-out;
        transform: translateY(0);
        background: #fafafa80;
        backdrop-filter: blur(5px);
    }

    .mobile-booking-bar.mobile-booking-bar-hidden {
        transform: translateY(100%);
    }

    body.modal-open .mobile-booking-bar {
        display: none !important;
    }

    .back-to-top-wrapper.lift-for-booking-bar {
        bottom: 100px !important;
        transition: bottom 0.3s ease-in-out, transform 0.3s ease-in-out, opacity 0.3s ease, visibility 0.3s ease !important;
    }

    body {
        /* padding-bottom: 80px; */
        /* Space for the sticky bottom bar */
    }

    .modal.fade.bottom-sheet-modal .modal-dialog {
        position: fixed;
        display: block !important;
        margin: 0 !important;
        width: 100%;
        height: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%) !important;
        transition: transform 0.3s ease-out !important;
    }

    .modal.fade.bottom-sheet-modal.show .modal-dialog {
        transform: translateY(0) !important;
    }

    /* Fix mobile modal booking form layout */
    #mobileBookingModal .modal-content {
        background-color: #fff !important;
        box-shadow: none !important;
    }

    #mobileBookingModal .modal-body {
        overscroll-behavior: none;
    }

    #mobileBookingModal .tp-booking-form {
        box-shadow: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    #mobileBookingModal .tp-booking-wrap {
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #mobileBookingModal .tp-booking-wrap>div {
        width: 100% !important;
    }

    #mobileBookingModal .tp-booking-quantity-wrap {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        left: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 4px 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-radius: 12px;
        background: #f7f7f7;
    }

    .tp-booking-quantity .tp-input[type=text] {
        font-size: 14px;
    }

    #mobileBookingModal hr {
        width: 100% !important;
        height: 1px !important;
        margin: 1.5rem 0 !important;
    }

    .daterangepicker .calendar-table {
        border: 1px solid #fff;
        border-radius: 4px;
        background-color: #ffffff52;
    }

    .modal-dialog {
        display: flex;
        align-items: center;
        /* min-height: calc(100% - var(--bs-modal-margin) * 2); */
        margin: 10%;
    }
}

/* ==========================================================================
   Desktop Booking Modal Styling Overrides (#bookingModal)
   ========================================================================== */

/* 1. Ensure modal background is clean white */
#bookingModal .modal-content {
    background-color: #fff !important;
}

/* 2. Fix the misplaced/hidden Details and Extra Facilities quantity selectors, 
      displaying them as clean inline blocks */
#bookingModal .tp-booking-quantity-wrap {
    position: relative !important;
    top: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    border-radius: 12px;
    padding: 16px !important;
    background: #f9f9f9;
}

/* 3. Fix the daterangepicker calendar layout and positioning inside the desktop modal:
      - Restricts calendar width to fit cleanly within the modal columns without overflowing */
#bookingModal .daterangepicker {
    width: auto !important;
    left: auto !important;
    right: 24px !important;
}

.daterangepicker {
    border-radius: 16px;
}

/* ==========================================================================
   Mobile Horizontal Swipe Row
   ========================================================================== */
@media (max-width: 767.98px) {
    .mobile-swipe-row {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        /* Space for scroll shadow/bar */

        /* Hide scrollbar for a clean look */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .mobile-swipe-row::-webkit-scrollbar {
        display: none;
    }

    /* Make each item take up 85% of the screen so the next item peeks out */
    .mobile-swipe-row>[class*="col-"] {
        scroll-snap-align: center;
        flex: 0 0 85%;
        max-width: 85%;
    }

    /* Add an empty padding element at the end so the last card doesn't stick to the screen edge */
    .mobile-swipe-row::after {
        content: "";
        flex: 0 0 15px;
        max-width: 15px;
    }

    /* Horizontal swipe for the Tour Details Info List (ul.ula) */
    ul.ula {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        gap: 15px;

        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    ul.ula::-webkit-scrollbar {
        display: none;
    }

    ul.ula>li {
        scroll-snap-align: start;
        flex: 0 0 auto;
        white-space: nowrap;
        margin-bottom: 0 !important;
    }

    ul.ula::after {
        content: "";
        flex: 0 0 15px;
        max-width: 15px;
    }
}