
/* ========================================================
   TOUR DETAIL SECTION (NO VERTICAL PADDING)
   ======================================================== */
.tour-detail-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ========================================================
   TOUR DETAIL HEADER (TITLE & LOCATION)
   ======================================================== */
.tour-header-info {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
}

.tour-header-info .tour-detail-title,
.tour-header-info .hero-title,
.tour-detail-title.hero-title,
.tour-detail-main .tour-header-info h1 {
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    color: #3B774B !important;
    text-shadow: none !important;
}

.tour-header-info .tour-detail-location,
.tour-header-info .hero-location,
.tour-detail-location.hero-location,
.tour-detail-main .tour-header-info p {
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #555555 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.tour-header-info .tour-detail-location i,
.tour-header-info .hero-location i {
    color: #ea580c !important;
    font-size: 18px !important;
}

/* ========================================================
   TOUR TABS (COMPACT PADDING)
   ======================================================== */
.tour-tabs {
    margin: 0 0 12px 0 !important;
    padding: 8px 16px 0 16px !important;
    gap: 18px !important;
    display: flex !important;
    background-color: #FAF6F2 !important;
    border-bottom: 1px solid #eaeaea !important;
    list-style: none !important;
}

.tour-tabs li {
    padding-bottom: 8px !important;
    font-size: 15px !important;
}

/* ========================================================
   TOUR SPECS 4-COLUMNS BAR & BASIC INFORMATION TABLE
   ======================================================== */
.tour-info-boxes,
.tour-info-boxes.tour-specs-grid,
.tour-specs-four-cols,
.tour-specs-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    background-color: #EAF2EC !important;
    border-top: 2px solid #3B774B !important;
    border-bottom: 2px solid #3B774B !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tour-specs-four-cols .spec-col,
.tour-specs-grid .spec-col {
    padding: 6px 10px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    border-right: 1px solid #ffffff !important;
    box-sizing: border-box !important;
    background: transparent !important;
    min-height: auto !important;
}

.tour-specs-four-cols .spec-col:last-child,
.tour-specs-grid .spec-col:last-child {
    border-right: none !important;
}

.tour-specs-four-cols .spec-value,
.tour-specs-grid .spec-value {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: #3B774B !important;
    line-height: 1.35 !important;
    margin-bottom: 5px !important;
    text-align: center !important;
    word-break: break-word !important;
    display: block !important;
    min-height: 22px !important;
}

.tour-specs-four-cols .spec-label,
.tour-specs-grid .spec-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #718096 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    display: block !important;
}

@media (max-width: 850px) {
    .tour-specs-four-cols,
    .tour-specs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .tour-specs-four-cols .spec-col:nth-child(2),
    .tour-specs-grid .spec-col:nth-child(2) {
        border-right: none !important;
    }
    .tour-specs-four-cols .spec-col:nth-child(1),
    .tour-specs-four-cols .spec-col:nth-child(2),
    .tour-specs-grid .spec-col:nth-child(1),
    .tour-specs-grid .spec-col:nth-child(2) {
        border-bottom: 1px solid #ffffff !important;
    }
}

@media (max-width: 480px) {
    .tour-specs-four-cols,
    .tour-specs-grid {
        grid-template-columns: 1fr !important;
    }
    .tour-specs-four-cols .spec-col,
    .tour-specs-grid .spec-col {
        border-right: none !important;
        border-bottom: 1px solid #ffffff !important;
        padding: 12px 10px !important;
    }
    .tour-specs-four-cols .spec-col:last-child,
    .tour-specs-grid .spec-col:last-child {
        border-bottom: none !important;
    }
}

/* Tour Specifications Table (Basic Information) */
.tour-specs-table-wrapper {
    margin-top: 2px !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.tour-specs-table-header {
    border-bottom: 2px solid #3B774B !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 4px !important;
}

.tour-specs-table-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #3B774B !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.tour-specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #D6E4D9;
    border-top: none;
    margin: 0 !important;
    background: #ffffff;
    font-size: 13.5px;
}

.tour-specs-table tr {
    border-bottom: 1px solid #D6E4D9;
    transition: background-color 0.15s ease;
}

.tour-specs-table tr:last-child {
    border-bottom: none;
}

.tour-specs-table tr:nth-child(odd) {
    background-color: #EAF2EC !important;
}

.tour-specs-table tr:nth-child(even) {
    background-color: #ffffff !important;
}

.tour-specs-table .spec-th {
    width: 25%;
    min-width: 140px;
    max-width: 220px;
    padding: 6px 14px !important;
    font-weight: 700;
    color: #3B774B;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #D6E4D9;
    box-sizing: border-box;
    font-size: 13.5px !important;
    letter-spacing: 0.1px;
}

.tour-specs-table .spec-td {
    padding: 6px 14px !important;
    color: #2D3748;
    text-align: left;
    vertical-align: top;
    font-weight: 400;
    line-height: 1.4 !important;
    box-sizing: border-box;
    font-size: 13.5px !important;
}

@media (max-width: 600px) {
    .tour-specs-table .spec-th {
        width: 35%;
        padding: 10px 12px;
        font-size: 13px;
    }
    .tour-specs-table .spec-td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Ensure home-intro-section is hidden as requested */
.home-intro-section {
    display: none !important;
}


/* Person Selection in Tour Booking Widget */
.greenrice-tf-booking-wrapper .tf-booking-person {
    margin-top: 20px !important;
}

.greenrice-tf-booking-wrapper .tf-booking-person .tf-form-title p {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin: 0 0 10px 0 !important;
}

.greenrice-tf-booking-wrapper .tf_acrselection {
    margin-top: 10px !important;
}

.greenrice-tf-booking-wrapper .tf_acrselection .tf-field {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
}

.greenrice-tf-booking-wrapper .tf_acrselection .acr-label {
    display: flex !important;
    align-items: center !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    gap: 8px !important;
}

.greenrice-tf-booking-wrapper .tf_acrselection .acr-label i {
    color: var(--color-cta, #eb5f29) !important;
    font-size: 16px !important;
}

.greenrice-tf-booking-wrapper .tf_acrselection .acr-select {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.greenrice-tf-booking-wrapper .tf_acrselection .acr-select .acr-dec,
.greenrice-tf-booking-wrapper .tf_acrselection .acr-select .acr-inc {
    width: 28px !important;
    height: 28px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
}

.greenrice-tf-booking-wrapper .tf_acrselection .acr-select .acr-dec:hover,
.greenrice-tf-booking-wrapper .tf_acrselection .acr-select .acr-inc:hover {
    background: #e2e8f0 !important;
    color: var(--color-cta, #eb5f29) !important;
}

.greenrice-tf-booking-wrapper .tf_acrselection .acr-select input[type="number"] {
    width: 44px !important;
    height: 28px !important;
    text-align: center !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}

.greenrice-tf-booking-wrapper .tf_acrselection .acr-select input[type="number"]::-webkit-outer-spin-button,
.greenrice-tf-booking-wrapper .tf_acrselection .acr-select input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ========================================================
   TOUR DETAIL CONTAINER (FIT TO CONTENT HEIGHT)
   ======================================================== */
.tour-detail-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    align-items: flex-start !important;
}

.tour-detail-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Tour Highlights (Trip Overview: Ultra-Compact Vertical Padding) */
.tour-highlights-box {
    display: flex !important;
    background-color: #FAF6F2 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-top: 14px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
}

.tour-highlights-box .highlight-image {
    width: 220px !important;
    min-width: 215px !important;
    max-width: 220px !important;
    flex-shrink: 0 !important;
}

.tour-highlights-box .highlight-image img,
.tour-highlights-box .highlight-main-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.tour-highlights-box .highlight-content {
    flex: 1 !important;
    min-width: 0 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.tour-highlights-box .highlight-content .tour-section-title {
    margin: 2px 0 6px 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #3B774B !important;
    line-height: 1.2 !important;
}

.tour-highlights-box .highlight-content p,
.tour-highlights-box .highlight-content ul {
    margin: 4px 0 !important;
}

.tour-highlights-box .highlight-content > *:last-child {
    margin-bottom: 0 !important;
}

/* Tour Map & Itinerary Grid (No Bottom Padding) */
.tour-map-itinerary-grid {
    display: grid !important;
    grid-template-columns: minmax(360px, 420px) 1fr !important;
    gap: 32px !important;
    align-items: start !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
}

.tour-map-itinerary-grid .tour-map-box,
.tour-map-itinerary-grid .tour-itinerary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    flex: none !important;
}

.tour-map-itinerary-grid .tour-section-title,
.tour-map-box .tour-section-title,
.tour-itinerary .tour-section-title,
.tour-section-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #3B774B !important;
}

.tour-map-itinerary-grid .tour-map-box .map-iframe-container {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.tour-map-itinerary-grid .tour-map-box .map-iframe-container img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 12px !important;
}

.tour-map-itinerary-grid .tour-itinerary .itinerary-accordion,
.itinerary-accordion {
    width: 100% !important;
    gap: 0 !important;
}

.itinerary-item {
    border-radius: 0 !important;
}

.itinerary-item:first-child,
.itinerary-item:first-child .itinerary-header {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.itinerary-item:last-child,
.itinerary-item:last-child .itinerary-header,
.itinerary-item:last-child .itinerary-body {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.itinerary-item:not(:last-child) {
    border-bottom: 1px solid #EBE6DF !important;
}

.itinerary-body {
    padding: 0 16px !important;
    border-top: none !important;
}

.itinerary-body > *:first-child,
.itinerary-body p:first-child {
    margin-top: 0 !important;
}

.itinerary-body > *:last-child,
.itinerary-body p:last-child {
    margin-bottom: 0 !important;
}

.itinerary-body p {
    margin: 8px 0 !important;
}

.tour-faqs-box .tour-section-title,
.tour-faqs-box h3 {
    margin: 0 0 12px 0 !important;
}

.faqs-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 32px !important;
    row-gap: 0 !important;
}

.faq-item {
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e0dcd7 !important;
}

.faq-item:first-child,
.faq-item:nth-child(2) {
    border-top: 1px solid #e0dcd7 !important;
}

.faq-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    cursor: pointer !important;
}

.faq-title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #444444 !important;
}

.faq-icon {
    font-size: 18px !important;
    color: #666666 !important;
    flex-shrink: 0 !important;
    margin-left: 12px !important;
}

.faq-item.active .faq-header {
    padding: 10px 0 6px 0 !important;
}

.faq-body {
    padding: 0 0 12px 0 !important;
}

.faq-body p:first-child {
    margin-top: 0 !important;
}

.faq-body p:last-child {
    margin-bottom: 0 !important;
}

.faq-body p {
    margin: 6px 0 !important;
}

@media (max-width: 767px) {
    .faqs-grid {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
    }

    .faq-item:nth-child(2) {
        border-top: none !important;
    }

    .tour-highlights-box {
        flex-direction: column !important;
    }
    .tour-highlights-box .highlight-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 220px !important;
    }
    .tour-map-itinerary-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .tour-map-itinerary-grid .tour-map-box,
    .tour-map-itinerary-grid .tour-itinerary {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* ==========================================================================
   TOUR DETAIL PAGE EXTRA SPACING ADJUSTMENTS
   ========================================================================== */

/* Itinerary Header (Remove top/bottom padding) */
.itinerary-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
}

/* Included / Excluded (Remove bottom padding) */
.tour-inc-exc {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.tour-inc-exc .tour-section-title,
.tour-inc-exc h3 {
    margin: 0 0 6px 0 !important;
    padding-bottom: 0 !important;
}

/* FAQs Box (Remove padding & bottom padding) */
.tour-faqs-box.bg-light-beige,
.tour-faqs-box {
    padding-top: 6px !important;
    padding-bottom: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.tour-faqs-box .tour-section-title,
.tour-faqs-box h3 {
    margin: 0 0 6px 0 !important;
    padding-bottom: 0 !important;
}

/* Related Tours Section (Remove bottom padding) */
.related-title.tour-section-title,
.related-title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.related-tours-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Accordion and FAQ item initial displays */
.itinerary-body {
    display: none;
}
.itinerary-item.active .itinerary-body {
    display: block;
}

.faq-body {
    display: none;
}
.faq-item.active .faq-body {
    display: block;
}

/* Video Modal */
#video-modal .modal-content,
#tour-video-modal .modal-content {
    width: 95% !important;
    max-width: 1200px !important;
    height: 75vh !important;
}

#video-modal .modal-video-container,
#tour-video-modal .modal-video-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #000 !important;
}

