:root {
    --wondmb-tour-primary: #2F673A;
    --wondmb-tour-primary-hover: #265530;
    --wondmb-tour-accent: #eaf5ee;
    --wondmb-tour-text: #333333;
    --wondmb-tour-text-light: #666666;
    --wondmb-tour-bg-light: #f9f9f9;
    --wondmb-tour-border-radius: 12px;
    --wondmb-tour-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.wondmb-tour-single .entry-header {
    margin-bottom: 2rem;
}

.wondmb-tour-single .entry-title {
    font-size: 2rem;
    color: var(--wondmb-tour-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Hero Section */
.tour-hero-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.tour-hero-left {
    flex: 0 0 100%;
}

.tour-hero-right {
    flex: 0 0 100%;
}

@media (min-width: 992px) {
    .tour-hero-left {
        flex: 0 0 calc((100% - 30px) * 0.7);
        max-width: calc((100% - 30px) * 0.7);
    }
    .tour-hero-right {
        flex: 0 0 calc((100% - 30px) * 0.3);
        max-width: calc((100% - 30px) * 0.3);
    }
    .tour-info-list li {
        padding: 0;
    }
}

/* Sidebar Card */
.tour-sidebar-card {
    background: #fff;
    border-radius: var(--wondmb-tour-border-radius);
    box-shadow: var(--wondmb-tour-shadow);
    padding: 25px;
    position: sticky;
    top: 100px;
    z-index: 10;
}

.tour-sidebar-floating {
    position: fixed;
    top: 96px;
    left: 16px;
    width: 320px;
    --floating-enter-x: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(var(--floating-enter-x), 12px, 0) scale(0.98);
    transition: opacity 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1100;
    will-change: transform, opacity;
}

.tour-sidebar-floating.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.tour-sidebar-floating.is-left {
    --floating-enter-x: -10px;
}

.tour-sidebar-floating.is-right {
    --floating-enter-x: 10px;
}

.tour-sidebar-floating .tour-sidebar-card {
    position: static;
    margin: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

@media (max-width: 991.98px) {
    .tour-sidebar-floating {
        display: none;
    }
}

.tour-price-box {
    text-align: center;
    background: var(--wondmb-tour-accent);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tour-price-box .current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--wondmb-tour-primary);
    display: block;
}

.tour-price-box .original-price {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--wondmb-tour-text-light);
}

.btn-book-tour,
.tour-pdf-download-link {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--wondmb-tour-primary);
    color: #fff;
    text-align: center;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    transition: background 0.3s;
    margin-bottom: 25px;
}

.btn-book-tour:hover,
.tour-pdf-download-link:hover {
    background: var(--wondmb-tour-primary-hover);
    color: #fff;
}

/* Tour Info List in Sidebar */
.tour-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tour-info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.tour-info-list li:last-child {
    border-bottom: none;
}

.tour-info-list li .info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wondmb-tour-text-light);
    font-weight: 500;
}

.tour-info-list li .info-label i {
    color: var(--wondmb-tour-primary);
    width: 20px;
    text-align: center;
}

.tour-info-list li .info-value {
    font-weight: 600;
    color: var(--wondmb-tour-text);
    text-align: right;
}

/* Tabs Section */
.tour-tabs-section {
    background: #fff;
    border-radius: var(--wondmb-tour-border-radius);
    box-shadow: var(--wondmb-tour-shadow);
    overflow: visible;
    margin-bottom: 3rem;
}

.tour-tabs-nav {
    display: flex;
    background: var(--wondmb-tour-bg-light);
    padding: 15px;
    gap: 10px;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
}

.tour-tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 30px;
    font-weight: 600;
    color: var(--wondmb-tour-text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.tour-tab-btn:hover,
.tour-tab-btn.active {
    background: var(--wondmb-tour-primary);
    color: #fff;
}

.tour-tab-content {
    padding: 30px;
    display: none;
    animation: fadeIn 0.5s;
}

.tour-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab Content Styling */
.tour-tab-content h2, .tour-tab-content h3 {
    color: var(--wondmb-tour-primary);
    margin-bottom: 15px;
}

.tour-tab-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.tour-tab-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--wondmb-tour-text);
}

/* Booking Modal */
.tour-booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.tour-booking-modal.open {
    display: flex;
    opacity: 1;
}

.tour-booking-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: var(--wondmb-tour-border-radius);
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.tour-booking-modal.open .tour-booking-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
}

.modal-close:hover {
    color: #333;
}

/* Form Styles */
.tour-booking-form .form-group {
    margin-bottom: 15px;
}

.tour-booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--wondmb-tour-text);
}

.tour-booking-form input,
.tour-booking-form textarea,
.tour-booking-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.tour-booking-form textarea {
    height: 100px;
    resize: vertical;
}

.tour-booking-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--wondmb-tour-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.tour-booking-form button[type="submit"]:hover {
    background: var(--wondmb-tour-primary-hover);
}

/* Gallery Grid in Tab */
.tour-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.tour-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.tour-gallery-item img:hover {
    transform: scale(1.05);
}

/* Lightbox Styles */
.tour-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.tour-lightbox.open {
    display: flex;
    opacity: 1;
}

.tour-lightbox-content {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    position: relative;
}

.tour-lightbox-slider {
    width: 100%;
    height: 100%;
}

.tour-lightbox-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tour-lightbox-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tour-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
}

.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
}

/* Ensure Sticky Works for Tour Plan Nav */
.tour-plan-wrapper {
    overflow: visible !important; 
}
.tour-plan-container {
    overflow: visible !important;
}

@keyframes tourModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tour-booking-modal {
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.tour-booking-modal-content {
    width: 100%;
    max-width: 560px;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    transform: scale(0.95);
}

.tour-booking-modal.open .tour-booking-modal-content {
    animation: tourModalFadeIn 0.3s ease-out forwards;
}

.modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #9ca3af;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.modal-close:hover {
    color: #4b5563;
    background: #f3f4f6;
}

.tour-booking-header {
    padding: 30px 30px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.tour-booking-header h3 {
    margin: 0;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    color: #1f2937;
    font-weight: 700;
}

.tour-booking-subtitle {
    margin: 6px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.tour-booking-form {
    padding: 24px 30px;
}

.tour-booking-form .form-group {
    margin-bottom: 16px;
}

.tour-booking-form label {
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.tour-booking-form .required {
    color: #ef4444;
}

.tour-booking-form input,
.tour-booking-form textarea,
.tour-booking-form select {
    border-color: #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tour-booking-form input:focus,
.tour-booking-form textarea:focus,
.tour-booking-form select:focus {
    border-color: var(--wondmb-tour-primary);
    box-shadow: 0 0 0 3px rgba(47, 103, 58, 0.15);
    outline: none;
}

.tour-booking-form textarea {
    min-height: 96px;
    resize: vertical;
}

.tour-form-row-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tour-participants-wrap {
    position: relative;
}

.tour-participants-wrap input {
    padding-right: 64px;
}

.tour-participants-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 13px;
}

.tour-booking-form button[type="submit"] {
    margin-top: 6px;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    background: #166534;
    box-shadow: 0 10px 18px rgba(22, 101, 52, 0.22);
    transition: transform 0.12s ease, background-color 0.2s ease;
}

.tour-booking-form button[type="submit"]:hover {
    background: #14532d;
}

.tour-booking-form button[type="submit"]:active {
    transform: scale(0.98);
}

.tour-booking-footer {
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    padding: 14px 30px;
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    font-style: italic;
}

@media (min-width: 768px) {
    .tour-form-row-two {
        grid-template-columns: 1fr 1fr;
    }
}

.tour-related-section {
    margin: 34px 0 10px;
}

.tour-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tour-related-heading {
    margin: 0;
    font-size: 24px;
    color: var(--wondmb-tour-primary);
    font-weight: 700;
}

.tour-related-controls {
    display: inline-flex;
    gap: 8px;
}

.tour-related-nav {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tour-related-nav:hover {
    border-color: var(--wondmb-tour-primary);
    color: var(--wondmb-tour-primary);
}

.tour-related-swiper {
    padding: 2px;
}

.tour-related-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.tour-related-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.tour-related-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}

.tour-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tour-related-thumb-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
}

.tour-related-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.tour-related-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    text-transform: uppercase;
    min-height: calc(1.35em * 2);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-related-title a {
    color: #111827;
    text-decoration: none;
}

.tour-related-title a:hover {
    color: var(--wondmb-tour-primary);
}

.tour-related-price .tour-price-wrapper {
    margin: 0;
}

.tour-related-price .tour-price-current,
.tour-related-price .current-price {
    color: #ef4444;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.tour-related-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.tour-related-stars {
    color: #facc15;
    letter-spacing: 1px;
}

.tour-related-review {
    color: #6b7280;
}

.tour-related-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #1f2937;
    font-size: 14px;
}

.tour-related-meta li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tour-related-info-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-weight: 700;
}

.tour-related-info-label i {
    color: #f97316;
    width: 16px;
}

.tour-related-info-value {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

.tour-related-cta {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 10px 14px;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    align-self: flex-end;
}

.tour-related-cta:hover {
    background: #ea580c;
    color: #fff;
}
