/* Google Fonts: Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

/* Main Wrapper */
.tour-manager-single-wrapper {
    max-width: 1140px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    /* User Requested Font */
    color: #2d3436;
    line-height: 1.6;
}

/* 
   =========================================
   GALLERY GRID (Premium)
   ========================================= 
*/
/* 
   =========================================
   GALLERY SLIDER (Premium Swiper)
   ========================================= 
*/
.tour-gallery-section {
    margin-bottom: 50px;
    position: relative;
    /* Prevent layout shift */
    min-height: 400px;
}

.swiper.tour-gallery-top {
    width: 100%;
    height: 600px;
    /* Base height for desktop */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
    /* Skeleton color */
}

/* Image Wrappers (Replaces background-image) */
.slide-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keeps the 'background-size: cover' look */
    display: block;
}



/* Thumbs */
.swiper.tour-gallery-thumbs {
    height: 120px;
    box-sizing: border-box;
    padding: 10px 0;
}

.swiper.tour-gallery-thumbs .swiper-slide {
    width: 160px;
    height: 100%;
    opacity: 0.6;
    transition: all 0.3s;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.swiper.tour-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    transform: scale(1.05);
    /* Pop effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #C114A2;
}

.thumb-image-wrapper,
.thumb-image-container {
    width: 100%;
    height: 100%;
}

.thumb-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Layout Columns */
.tour-content-container {
    display: flex;
    gap: 60px;
    position: relative;
    padding-bottom: 80px;
}

.tour-main-column {
    flex: 2;
}

.tour-sidebar-column {
    flex: 1;
    min-width: 380px;
    /* Bit wider for the premium form */
}

.tour-booking-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .tour-content-container {
        flex-direction: column;
        gap: 32px;
        padding-bottom: 24px;
    }

    .tour-sidebar-column {
        min-width: 0;
        width: 100%;
    }

    .sticky-card {
        position: static;
    }
}

/* Header Info */
.tour-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.tour-location {
    color: #636e72;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}



.tour-meta-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.meta-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 20px;
    border-radius: 12px;
    color: #2d3436;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.meta-item:hover {
    transform: translateY(-2px);
}

.meta-item .dashicons {
    color: #C114A2;
    /* Accent Color */
}

/* Tabs Navigation */
.tour-tabs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    gap: 15px;
    /* Tighter gap since they are solid blocks */
    border-bottom: none !important;
    flex-wrap: wrap;
    /* Good for responsiveness */
}

.tour-tabs-nav li {
    margin: 0;
}

.tour-tabs-nav .tour-tab-trigger {
    padding: 12px 24px !important;
    background: #f1f2f6 !important;
    /* Lighter color for inactive */
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #636e72 !important;
    position: relative;
    transition: all 0.3s ease;
    -webkit-text-fill-color: currentColor !important;
    opacity: 1;
    display: block;
}

/* Hover state for inactive */
.tour-tabs-nav .tour-tab-trigger:hover,
.tour-tabs-nav .tour-tab-trigger:focus-visible {
    color: #C114A2 !important;
    background: #fdf2fb !important;
}

/* Force visible active tab text */
.tour-tabs-nav .tour-tab-trigger.active,
.tour-tabs-nav .tour-tab-trigger[aria-selected="true"] {
    color: #ffffff !important;
    background: #C114A2 !important;
    border-color: #C114A2 !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 8px 15px rgba(193, 20, 162, 0.25) !important;
}

.tour-tab-trigger:focus-visible {
    outline: 2px solid #C114A2;
    outline-offset: 4px;
}

.tour-tabs-nav .tour-tab-trigger::after {
    display: none !important;
}

.booking-card-header {
    margin-bottom: 16px;
}

.booking-tabs {
    margin-bottom: 20px;
}

.booking-tabs .active {
    display: inline-block;
    font-weight: 700;
    color: #2d3436;
}

.mobile-close-btn {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-close-btn {
        display: flex !important;
    }

    .mobile-close-btn.is-hidden {
        display: none !important;
    }
}

.form-label,
.tour-form label {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

.tour-form .form-message {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    min-height: 1.5em;
}

.tour-form .form-message.success {
    color: #1b7f3b;
}

.tour-form .form-message.error {
    color: #b42318;
}

.tour-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tour-submit-btn:disabled:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(193, 20, 162, 0.4);
}

.sticky-book-btn:focus-visible,
.rel-btn:focus-visible,
.mobile-close-btn:focus-visible,
.tour-submit-btn:focus-visible,
.tour-whatsapp-btn:focus-visible {
    outline: 2px solid #C114A2;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .tour-tab-content {
        animation: none;
    }

    .tour-submit-btn,
    .tour-whatsapp-btn,
    .pm-counter-btn,
    .meta-item,
    .related-tour-card {
        transition: none;
    }
}

/* Tab Content */
.tour-tab-content {
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tour-tab-content.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2d3436;
}

.tour-description {
    line-height: 1.9;
    color: #636e72;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.tour-highlights {
    background: #fdf2fb;
    /* Light Pink tint */
    padding: 35px;
    border-radius: 16px;
    margin-top: 30px;
    border: 1px solid rgba(193, 20, 162, 0.1);
}

.tour-highlights h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #C114A2;
    margin-bottom: 20px;
    font-weight: 700;
}

.tour-highlights ul {
    margin: 0;
    padding-left: 20px;
}

.tour-highlights li {
    margin-bottom: 12px;
    color: #2d3436;
    font-weight: 500;
}

/* Services */
.services-grid {
    display: flex;
    gap: 40px;
}

.service-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f2f6;
    color: #2d3436;
}

.check-icon {
    color: #C114A2;
    margin-right: 12px;
    font-weight: 800;
}

.cross-icon {
    color: #d63031;
    margin-right: 12px;
    font-weight: 800;
}

.service-column ul {
    list-style: none;
    /* Remove default dots */
    padding: 0;
    margin: 0;
}

.service-column ul li {
    padding: 8px 12px;
    font-weight: 500;
    color: #636e72;
    display: flex;
    align-items: center;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: background 0.3s ease;
}

.service-column.included ul li {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.15);
}

.service-column.excluded ul li {
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.1);
}

.service-column.included ul li:hover {
    background: rgba(46, 204, 113, 0.15);
}

.service-column.excluded ul li:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Timeline Premium */
.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    flex-shrink: 0;
}

.day-number {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #C114A2 0%, #8e0b75 100%);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(193, 20, 162, 0.4);
}

/* Connecting Line */
.timeline-item:not(:last-child) .timeline-marker::after {
    content: '';
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #dfe6e9 0%, #f1f2f6 100%);
    position: absolute;
    top: 46px;
    left: 24px;
    z-index: 1;
}

.timeline-content {
    background: #fff;
    padding: 8px 0 0 0;
}

.timeline-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #2d3436;
    font-weight: 700;
}

.day-city {
    font-size: 0.9rem;
    color: #C114A2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

/* 
   =========================================
   ENQUIRY FORM (Premium)
   ========================================= 
*/
.booking-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    /* Deep soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.sticky-card {
    position: sticky;
    top: 40px;
}

.price-display {
    margin-bottom: 30px;
    text-align: left;
    background: #fdf2fb;
    /* Light pink */
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #faddf2;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #636e72;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(45deg, #C114A2, #a00f85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Modern Form Styles (Floating & Icons) --- */
.tour-form .form-row {
    margin-bottom: 24px;
    position: relative;
}

.tour-form .form-group {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.tour-form .form-group:focus-within {
    background: #fff;
    border-color: #C114A2;
    box-shadow: 0 5px 15px rgba(193, 20, 162, 0.08);
}

.input-icon {
    font-size: 1.2rem;
    color: #b2bec3;
    margin: 0 16px 0 12px;
    /* RTL spacing */
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-form .form-group:focus-within .input-icon {
    color: #C114A2;
}

/* Default simple input fallback */
.tour-form input,
.tour-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Cairo', sans-serif;
    color: #2d3436;
}

/* Floating Input Base */
.tour-form .floating-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 24px 16px 8px 16px;
    /* Space for top floating label */
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    color: #2d3436;
    outline: none;
    box-shadow: none;
    line-height: 1.5;
}

.tour-form .form-group .floating-input {
    padding: 24px 16px 8px 0;
    /* Override generic padding inside group */
}

.tour-form .form-group:not(.has-icon) .floating-input {
    padding-right: 16px;
    /* If no icon */
}

/* Textarea tweaks */
.tour-form .text-area-group {
    align-items: flex-start;
}

.tour-form .text-area-group .input-icon {
    margin-top: 24px;
}

.tour-form textarea.floating-input {
    resize: vertical;
    min-height: 110px;
}

/* The Floating Label */
.tour-form .floating-label {
    position: absolute;
    right: 48px;
    /* Initial RTL offset (icon + spacing) */
    top: 50%;
    transform: translateY(-50%);
    color: #b2bec3;
    font-size: 0.95rem;
    font-weight: 600;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: right top;
    /* RTL */
    margin: 0;
}

.tour-form .text-area-group .floating-label {
    top: 30px;
}

/* If no icon, adjust right offset */
.tour-form .form-group:not(.has-icon) .floating-label {
    right: 16px;
}

/* Float active state: CSS Pseudo + JS .has-value class */
.tour-form .floating-input:focus~.floating-label,
.tour-form .floating-input:not(:placeholder-shown)~.floating-label,
.tour-form .form-group.has-value .floating-label {
    top: 12px;
    transform: translateY(0) scale(0.8);
    color: #C114A2;
    font-weight: 700;
}

.tour-form .form-group.has-value:not(:focus-within) .floating-label {
    color: #636e72;
    /* Grey out if not focused but has value */
}

/* Hide native placeholders to avoid ugly overlapping in date/time */
.tour-form input[type="date"].floating-input::-webkit-datetime-edit {
    color: transparent;
}

.tour-form input[type="date"].floating-input:focus::-webkit-datetime-edit,
.tour-form .form-group.has-value input[type="date"].floating-input::-webkit-datetime-edit {
    color: inherit;
}

.static-label {
    font-weight: 700;
    color: #636e72;
    margin-bottom: 10px;
    display: block;
    font-size: 0.9rem;
    padding-right: 4px;
}

/* Phone Group exception */
.phone-row.form-group {
    background: transparent;
    border: none;
    flex-direction: column;
    align-items: flex-start;
}

.tour-form input:focus,
.tour-form textarea:focus {
    background: #fff;
    border-color: #C114A2;
    box-shadow: 0 10px 25px rgba(193, 20, 162, 0.1);
}

/* --- Interactive Counters --- */
.guests-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.guest-input.modern-counter {
    flex: 1;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: border 0.3s, background 0.3s;
    overflow: visible;
}

.guest-input.modern-counter:focus-within {
    border-color: #C114A2;
    background: #fff;
}

.guest-input.modern-counter label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #636e72;
    margin-bottom: 8px;
    display: block;
}

.guest-counter-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: visible;
    min-height: 36px;
}

.pm-counter-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    border: none;
    background: #f1f2f6;
    color: #C114A2;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
    user-select: none;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    flex-shrink: 0;
    overflow: visible;
}

.pm-counter-btn:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.pm-counter-btn:active {
    transform: scale(0.95);
    background: #dfe4ea;
}

.pm-counter-btn:focus-visible {
    outline: 2px solid #C114A2;
    outline-offset: 2px;
}

.counter-val {
    font-size: 1rem;
    font-weight: 800;
    color: #2d3436;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.counter-native-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tour-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #C114A2 0%, #a00f85 100%);
    color: #fff;
    border: none;
    padding: 20px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.1rem;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(193, 20, 162, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    touch-action: manipulation;
}

.tour-submit-btn:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 35px rgba(193, 20, 162, 0.5);
}

.tour-whatsapp-btn {
    width: 100%;
    background: linear-gradient(135deg, #25d366 0%, #159c47 100%);
    color: #fff;
    border: none;
    padding: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
    margin-top: 12px;
    box-shadow: 0 10px 30px rgba(21, 156, 71, 0.35);
    touch-action: manipulation;
}

.tour-whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(21, 156, 71, 0.45);
}

.tour-whatsapp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 
   =========================================
   MOBILE STICKY BAR (Glassmorphism)
   ========================================= 
*/
.tour-mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Translucent */
    backdrop-filter: blur(16px);
    /* Glass effect */
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    transition: opacity 0.2s ease;
}

.tour-mobile-sticky-bar.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.sticky-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.sticky-bar-content.no-price {
    justify-content: flex-end;
}

.sticky-price {
    display: flex;
    flex-direction: column;
}

.sticky-label {
    font-size: 0.8rem;
    color: #636e72;
    text-transform: uppercase;
    font-weight: 700;
}

.sticky-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3436;
}

.sticky-book-btn {
    background: linear-gradient(135deg, #C114A2 0%, #a00f85 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(193, 20, 162, 0.3);
    touch-action: manipulation;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
    .tour-manager-single-wrapper {
        margin: 0 auto;
        /* Remove top margin on mobile */
        padding: 0 20px 100px 20px;
        /* Keep padding for text content */
        overflow-x: hidden;
        /* Prevent horizontal scroll */
        width: 100%;
        max-width: 100vw;
    }

    /* Edge-to-Edge Gallery on Mobile */
    .tour-gallery-section {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        margin-bottom: 30px;
    }

    .swiper.tour-gallery-top {
        border-radius: 0;
        /* Full width look */
        height: 300px;
        /* Optimised height */
        box-shadow: none;
    }

    /* Ensure swiper slides fit perfectly */
    .slide-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tour-gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        height: 320px;
        /* Taller on mobile for better view */
        margin: 0 -20px 25px -20px;
        /* Edge to edge */
        padding: 0 20px;
        grid-template: none;
        box-shadow: none;
        border-radius: 0;
    }

    .gallery-item {
        flex: 0 0 85%;
        /* Wider card */
        scroll-snap-align: center;
        border-radius: 12px;
        height: 100%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .gallery-item.item-3,
    .gallery-item.item-4 {
        display: block;
    }

    .tour-content-container {
        flex-direction: column;
        padding-bottom: 20px;
        gap: 30px;
    }

    /* Mobile Booking "Bottom Sheet" */
    .tour-sidebar-column {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 99999;
        margin-top: 0;
        transform: translateY(110%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
            visibility 0.35s ease;
        padding: 0;
    }

    .tour-sidebar-column.active {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .booking-card {
        padding: 22px 16px calc(28px + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 25px 25px 0 0;
        max-height: min(90dvh, 90vh, 800px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        position: relative;
        background: #fff;
    }

    /* Mobile Overlay Backdrop */
    .tour-booking-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 99990;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .tour-booking-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Close Handle/Button */
    .mobile-close-handle {
        width: 50px;
        height: 5px;
        background: #e0e0e0;
        border-radius: 10px;
        margin: 0 auto 20px auto;
        display: block;
    }

    .mobile-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        background: #f1f2f6;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-weight: bold;
        color: #2d3436;
        border: none;
    }

    .form-actions {
        position: sticky;
        bottom: calc(-28px - env(safe-area-inset-bottom));
        background: #fff;
        padding: 16px 0 calc(12px + env(safe-area-inset-bottom));
        margin-top: 20px;
        box-shadow: 0 -20px 30px rgba(255, 255, 255, 0.95);
        z-index: 10;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
    }

    .tour-mobile-sticky-bar {
        display: block;
    }

    .sticky-bar-content {
        gap: 12px;
    }

    .sticky-amount {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .sticky-book-btn {
        padding: 12px 18px;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .tour-title {
        font-size: 2rem;
    }

    .timeline-item {
        gap: 20px;
    }

    .timeline-marker {
        width: 40px;
    }

    .day-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .timeline-item:not(:last-child) .timeline-marker::after {
        left: 18px;
        top: 36px;
    }

    /* Tabs Horizontal Scroll */
    .tour-tabs-nav ul {
        gap: 15px;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .tour-tabs-nav ul::-webkit-scrollbar {
        display: none;
    }

    .tour-tabs-nav .tour-tab-trigger {
        padding: 10px 16px !important;
        font-size: 0.98rem !important;
    }

    .phone-input-group .iti {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .guests-row {
        flex-direction: column;
        gap: 10px;
    }

    .sticky-book-btn {
        padding: 11px 16px;
    }

    .pm-counter-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        border-radius: 8px;
        font-size: 1.1rem;
    }

    .guest-counter-input {
        padding: 6px;
        border-radius: 10px;
        min-height: 44px;
    }

    .counter-val {
        font-size: 1.1rem;
        width: 36px;
    }
}

html {
    scroll-behavior: smooth;
}

/* Phone Input Inline Fix & Flag Style */
.phone-input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.phone-input-group .iti {
    width: 100%;
}

#tour_phone {
    width: 100%;
    text-align: left;
    direction: ltr;
}

/* Fix intl-tel-input dropdown z-index on mobile modal */
.iti__country-list,
.iti-mobile .iti--container,
.iti--container {
    z-index: 999999 !important;
}

/* Force flag on the left for Arabic/RTL */
.iti--rtl .iti__flag-container {
    right: auto !important;
    left: 0 !important;
}

.iti--rtl input#tour_phone {
    padding-right: 20px !important;
    /* normal text padding */
    padding-left: 60px !important;
    /* space for the flag */
}

/* Hide manual country select since intl-tel-input is active */
.country-select {
    display: none !important;
}

/* 
   =========================================
   RELATED TOURS (Premium)
   ========================================= 
*/
.related-tours-section {
    margin-top: 60px;
    margin-bottom: 80px;
}

.related-tours-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.related-tours-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL Support */
    width: 60px;
    height: 4px;
    background: #C114A2;
    border-radius: 4px;
}

/* Grid System */
.related-tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Style */
.related-tour-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.related-tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.related-tour-img {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 65%;
    /* 3:2 Aspect Ratio */
    overflow: hidden;
}

.related-tour-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.related-tour-card:hover .related-tour-img img {
    transform: scale(1.08);
}

.placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f1f2f6;
}

/* Duration Label */
.rel-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3436;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.related-tour-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-tour-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.related-tour-info h4 a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-tour-info h4 a:hover {
    color: #C114A2;
}

.rel-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #C114A2;
    margin-bottom: 20px;
    margin-top: auto;
    /* Push to bottom if title is short */
}

/* Buttons */
.rel-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background: #f8f9fa;
    color: #2d3436;
    /* Clean text color */
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* Prepare for border transition */
}

.rel-btn:hover {
    background: #C114A2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 20, 162, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .related-tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-tours-section {
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 0 20px;
        overflow: hidden;
        /* Prevent horizontal scroll on body from negative margins */
    }

    .related-tours-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        /* Space for shadow/scroll */
        grid-template-columns: none;
        /* Reset grid */
        /* Hide Scrollbar */
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .related-tours-grid::-webkit-scrollbar {
        display: none;
    }

    .related-tour-card {
        min-width: 85%;
        /* Show part of next card */
        scroll-snap-align: center;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
}

/* --- Custom Lightbox --- */
.tm-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tm-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tm-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

.tm-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    outline: none;
}

.tm-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0;
    line-height: 1;
}

.tm-lightbox-close:hover,
.tm-lightbox-close:focus-visible {
    opacity: 1;
    transform: scale(1.1);
    outline: none;
}

.tm-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.tm-lightbox-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-lightbox-nav button:hover,
.tm-lightbox-nav button:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    outline: none;
}

.tm-lightbox-prev {
    margin-left: -70px;
}

.tm-lightbox-next {
    margin-right: -70px;
}

/* --- Loading Spinner for Submit Button --- */
.tour-submit-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.tour-submit-btn.loading::after,
.tour-submit-btn .btn-loader {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tm-spin 1s linear infinite;
    display: none;
    /* Hide via CSS initially, JS will show */
}

.tour-submit-btn.loading .btn-loader {
    display: block !important;
}

@keyframes tm-spin {
    to {
        transform: rotate(360deg);
    }
}

@media(max-width: 768px) {
    .tm-lightbox-prev {
        margin-left: -20px;
    }

    .tm-lightbox-next {
        margin-right: -20px;
    }
}