/* =====================================================
   TOUR BOOKING POPUP
===================================================== */

.tour-booking-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}


/* OPEN */

.tour-booking-popup.is-open {
    display: block;
}


/* OVERLAY */

.tour-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}


/* CONTAINER */

.tour-popup-container {
    position: relative;
    width: 90%;
    max-width: 950px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px;
    box-sizing: border-box;
}


/* CLOSE */

.tour-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 26px;
    line-height: 38px;
    cursor: pointer;
    z-index: 5;
}


/* IMAGE */

.tour-popup-image {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.tour-popup-image img {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 6px;
}


/* HEADER */

.tour-popup-header {
    margin-bottom: 20px;
}

.tour-popup-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.3;
}


/* META */

.tour-popup-meta {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.tour-popup-meta strong {
    font-size: 18px;
}


/* DESCRIPTION */

.tour-popup-description {
    margin-bottom: 25px;
}

.tour-popup-description h3,
.tour-book-section h3 {
    margin-bottom: 12px;
    font-size: 21px;
}


/* TABS */

.tour-popup-tabs {
    display: flex;
    width: 100%;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    gap: 4px;
}

.tour-tab {
    border: 0;
    background: #f2f2f2;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}

.tour-tab.active {
    background: #f58220;
    color: #fff;
}


/* TAB CONTENT */

.tour-tab-content {
    display: none;
    margin-bottom: 30px;
}

.tour-tab-content.active {
    display: block;
}

.tour-tab-content {
    display: none;
    margin-bottom: 30px;
}

.tour-tab-content.active {
    display: block;
}


/* NORMAL TEXT INSIDE TAB CONTENT */

.tour-tab-content,
.tour-tab-content p,
.tour-tab-content div,
.tour-tab-content li,
.tour-tab-content span,
.tour-tab-content h1,
.tour-tab-content h2,
.tour-tab-content h3,
.tour-tab-content h4,
.tour-tab-content h5,
.tour-tab-content h6 {
    color: #333333 !important;
}


/* LINKS INSIDE TAB CONTENT */

.tour-tab-content a {
    color: #333333 !important;
    text-decoration: underline;
}

.tour-tab-content a:hover {
    color: #333333 !important;
}

/* BOOKING SECTION */

.tour-book-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}


/* FORM GRID */

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


/* FIELD */

.booking-field {
    margin-bottom: 15px;
}

.booking-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.booking-field textarea {
    resize: vertical;
}


/* PAX */

.booking-pax {
    display: flex;
    gap: 40px;
    margin: 15px 0 20px;
}

.pax-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.pax-control {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.pax-control button {
    width: 38px;
    height: 38px;
    border: 0;
    background: #f2f2f2;
    font-size: 20px;
    cursor: pointer;
}

.pax-control span {
    min-width: 40px;
    text-align: center;
}


/* PRICE SUMMARY */

.booking-price-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 5px;
    line-height: 1.8;
}

.booking-grand-total {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 20px;
}


/* BOOK NOW */

.tour-book-now {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    border: 0;
    border-radius: 5px;
    background: #f58220;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.tour-book-now:hover {
    background: #e56f0c;
}


/* =====================================================
   MOBILE
===================================================== */

@media screen and (max-width: 767px) {

    .tour-popup-container {
        width: 96%;
        max-height: 94vh;
        margin: 3vh auto;
        padding: 15px;
        border-radius: 6px;
    }

    .tour-popup-image img {
        max-height: 220px;
    }

    .tour-popup-header h2 {
        font-size: 22px;
    }

    .tour-popup-meta {
        gap: 10px;
        font-size: 13px;
    }

    .tour-popup-meta strong {
        font-size: 15px;
    }

    .tour-popup-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tour-tab {
        flex: 0 0 auto;
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .booking-pax {
        display: block;
    }

    .pax-row {
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .tour-popup-close {
        width: 34px;
        height: 34px;
        font-size: 22px;
        line-height: 34px;
    }

}

/* =====================================================
   TOUR TABS
===================================================== */

.tour-popup-tabs {
    display: flex;
    width: 100%;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    gap: 4px;
}

.tour-tab {
    border: 1px solid #d5d5d5;
    background: #eeeeee !important;
    color: #333333 !important;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* ACTIVE */
.tour-tab.active,
.tour-tab.active:hover,
.tour-tab.active:focus {
    background: #aaaaaa !important;
    background-color: #aaaaaa !important;
    color: #ffffff !important;
    border-color: #aaaaaa !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Force text inside active tab to white */
.tour-tab.active *,
.tour-tab.active:hover * {
    color: #ffffff !important;
}

/* HOVER */
.tour-tab:hover {
    background: #cccccc !important;
    background-color: #cccccc !important;
    color: #ffffff !important;
}

/* FOCUS */
.tour-tab:focus {
    outline: none;
}