/**
 * Tour Detail Page Styles
 */

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.938rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* Gallery Layout */
.gallery-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 600px;
}

.gallery-thumb {
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    flex: 1;
}

.gallery-thumb:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-main {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 600px;
}

.gallery-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    display: block;
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tour Title Section */
.tour-title-section {
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.tour-title-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tour-title-section .tour-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    flex: 1;
}

.tour-price-display {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tour-price-display .price-from {
    color: #4b5563; /* Improved contrast: removed opacity and used darker color for WCAG AA compliance */
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Removed opacity: 0.8; for better contrast */
}

.tour-price-display .price-original {
    font-size: 1.25rem;
}

.tour-price-display .price-current {
    font-size: 2.5rem;
}

.price-badge {
    background: var(--success-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Tour Meta Info */
.tour-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
}

/* Make location bigger */
.meta-item:has(.fa-map-marker-alt) {
    font-size: 1.125rem;
    font-weight: 600;
}

.meta-item:has(.fa-map-marker-alt) i {
    font-size: 1.25rem;
}

.meta-item:has(.fa-map-marker-alt) span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Tour Section */
.tour-section {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.tour-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Affiliate Section */
.affiliate-section {
    border: 2px dashed var(--border-color);
    background: var(--bg-secondary);
}

/* Highlights List */
.highlights-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.highlights-list i {
    color: var(--success-color);
    margin-top: 2px;
}

/* Itinerary */
.itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.itinerary-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.day-content {
    width: 100%;
}

.day-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.day-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Included/Excluded */
.included-excluded-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.subsection-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.included-list,
.excluded-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.included-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.included-list i {
    color: var(--success-color);
    margin-top: 2px;
}

.excluded-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: #fee2e2;
    border-radius: var(--border-radius);
}

.excluded-list i {
    color: var(--danger-color);
    margin-top: 2px;
}

/* FAQs */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-secondary);
    border: none;
    padding: 18px 20px;
    text-align: left;
    font-size: 1.063rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #e5e7eb;
}

.faq-question.active {
    background: var(--primary-color);
    color: white;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* Map */
.tour-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget .widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.booking-widget {
    background: #0071eb;
    color: white;
}

.booking-widget .widget-title {
    color: white;
}

.booking-price {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
}

.booking-price .price-from {
    color: rgba(255, 255, 255, 0.95); /* Improved contrast: increased opacity from 0.8 to 0.95 for better readability on colored background */
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1; /* Improved contrast: removed additional opacity for better readability */
    display: block;
    margin-bottom: 4px;
}

.booking-price .price {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.booking-price .price-label {
    font-size: 0.938rem;
    opacity: 0.9;
}

.btn-book {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
}

.btn-book:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list .tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.tags-list .tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Affiliate Code in Sidebar */
.affiliate-code-wrapper {
    margin-top: 20px;
}

.affiliate-code-wrapper iframe,
.affiliate-code-wrapper a,
.affiliate-code-wrapper button {
    width: 100%;
    max-width: 100%;
}

/* Sticky Mobile Book Now Button */
.sticky-book-mobile {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    padding: 10px 0; /* Reduced top/bottom padding to accommodate 2 rows */
    border-top: 1px solid var(--border-color);
    overflow: hidden;
    animation: slideUpFade 0.5s ease-out;
}

@keyframes slideUpFade {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-book-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.sticky-price {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: visible;
    gap: 6px;
    justify-content: flex-start;
}

.sticky-price .price-from {
    color: #4b5563; /* Improved contrast: removed opacity and used darker color for WCAG AA compliance */
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Removed opacity: 0.8; for better contrast */
    margin-bottom: 0;
    white-space: normal;
    overflow: visible;
    line-height: 1.3;
}

.sticky-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
}

.sticky-price .per-person {
    font-size: 0.7rem;
    color: #4b5563; /* Improved contrast: using explicit darker color for WCAG AA compliance */
    white-space: normal;
    overflow: visible;
    line-height: 1.3;
}

.sticky-book-btn {
    white-space: nowrap;
    font-weight: 700;
    padding: 10px 16px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: auto;
    max-width: none;
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.sticky-book-btn:hover {
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.sticky-book-btn i {
    font-size: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.3);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Tags Section */
.tour-tags-section {
    margin-top: 40px;
    padding: 40px 0;
}

.tour-tags-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.tour-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tour-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tour-tag i {
    font-size: 0.875rem;
    color: #3b82f6;
}

.tour-tag:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tour-tag:hover i {
    color: white;
}

/* Related Tours */
.related-tours {
    margin-top: 60px;
    padding: 60px 0;
    background: #f9fafb;
}

.related-tours .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-tours .section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.related-tours .section-subtitle {
    color: #4b5563; /* Improved contrast: changed from #6b7280 to #4b5563 for WCAG AA compliance */
    font-size: 1.125rem;
}

.related-tours .tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.related-tours .tour-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-tours .tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.related-tours .tour-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-tours .tour-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-tours .tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-tours .tour-card:hover .tour-image img {
    transform: scale(1.05);
}

.related-tours .tour-content {
    padding: 20px;
}

.related-tours .tour-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1f2937;
    line-height: 1.4;
}

.related-tours .tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-tours .price-from {
    font-size: 0.875rem;
    color: #4b5563; /* Improved contrast: changed from #6b7280 to #4b5563 for WCAG AA compliance */
    margin-right: 4px;
}

.related-tours .price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.related-tours .price-original {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
}

.related-tours .view-details-link {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.875rem;
}

.related-tours .tour-card:hover .view-details-link {
    color: #1d4ed8;
}

/* Section Content Description */
.section-content-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Tour Map Iframe */
.tour-map-iframe {
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Sticky Book Button */
.sticky-book-btn-inline {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-layout {
        grid-template-columns: 1fr 150px;
        gap: 10px;
    }
    
    .gallery-thumbs {
        height: 500px;
    }
    
    .gallery-main {
        height: 500px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .content-main {
        order: 1;
    }
    
    /* Hide booking sidebar on mobile - sticky button provides booking access */
    .content-sidebar {
        display: none;
    }
    
    /* Allow sidebar to be shown when needed (via JavaScript) */
    .content-sidebar.show-on-mobile {
        display: block !important;
    }
    
    /* Show sticky button on mobile/tablet */
    .sticky-book-mobile {
        display: block;
    }
    
    /* Add bottom padding to prevent content being hidden behind sticky button */
    /* Increased padding to accommodate 2-row layout */
    .tour-detail {
        padding-bottom: 100px;
    }
    
    /* Sticky button content - side by side layout */
    .sticky-book-content {
        padding: 10px 12px;
        gap: 12px;
        flex-wrap: nowrap; /* Keep on same row */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .sticky-price {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        flex: 1;
        min-width: 0;
        justify-content: flex-start; /* Align left */
        order: 1;
        max-width: calc(100% - 140px); /* Reserve space for button */
    }
    
    .sticky-price .price {
        font-size: 1.1rem;
    }
    
    .sticky-price .price-from {
        font-size: 0.7rem;
    }
    
    .sticky-price .per-person {
        font-size: 0.65rem;
    }
    
    .sticky-book-btn {
        padding: 10px 14px;
        font-size: 0.813rem;
        flex-shrink: 0;
        width: auto;
        max-width: 130px;
        justify-content: center;
        order: 2;
    }
    
    .sticky-book-btn i {
        font-size: 0.938rem;
    }
}

/* Wishlist Button on Tour Detail Page - Modern Design */
.wishlist-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--text-primary);
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.wishlist-btn-detail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.wishlist-btn-detail:hover::before {
    width: 300px;
    height: 300px;
}

.wishlist-btn-detail:hover {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #ef4444;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25), 0 4px 10px rgba(239, 68, 68, 0.15);
}

.wishlist-btn-detail:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.wishlist-btn-detail i {
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.wishlist-btn-detail:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
}

/* In Wishlist State - Modern Gradient Design */
.wishlist-btn-detail.in-wishlist {
    border: 2px solid #ef4444;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4), 0 2px 8px rgba(239, 68, 68, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.wishlist-btn-detail.in-wishlist::before {
    background: rgba(255, 255, 255, 0.2);
}

.wishlist-btn-detail.in-wishlist:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    background-size: 200% 200%;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.5), 0 6px 16px rgba(239, 68, 68, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: #dc2626;
}

.wishlist-btn-detail.in-wishlist:active {
    transform: translateY(-1px) scale(1.02);
}

.wishlist-btn-detail.in-wishlist i {
    color: white;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1.1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.1);
    }
}

.wishlist-btn-detail.in-wishlist:hover i {
    transform: scale(1.25) rotate(-5deg);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    animation: none;
}

.wishlist-text {
    font-size: 0.938rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.wishlist-btn-detail:hover .wishlist-text {
    letter-spacing: 0.5px;
}

.wishlist-btn-detail.in-wishlist .wishlist-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

/* Pulse animation when added to wishlist */
.wishlist-btn-detail.just-added {
    animation: wishlistPulse 0.6s ease-out;
}

@keyframes wishlistPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    }
}

@media (max-width: 768px) {
    /* Reduce container padding on mobile for tour pages */
    .tour-content .container {
        padding: 0 10px;
    }
    
    /* Reduce tour-section padding on mobile to make it wider */
    .tour-section {
        padding: 20px 15px;
        margin: 0;
    }
    
    /* Reduce padding on tour-title-section for consistency */
    .tour-title-section {
        padding: 20px 0;
    }
    
    /* Reduce padding on content-main sections */
    .content-main {
        gap: 20px;
    }
    
    /* Make location even bigger on mobile */
    .meta-item:has(.fa-map-marker-alt) {
        font-size: 1.25rem;
    }
    
    .meta-item:has(.fa-map-marker-alt) i {
        font-size: 1.5rem;
    }
    
    .meta-item:has(.fa-map-marker-alt) span {
        font-size: 1.25rem;
    }
    
    /* Hide booking sidebar on mobile - sticky button provides booking access */
    .content-sidebar {
        display: none !important;
    }
    
    /* Allow sidebar to be shown when needed (via JavaScript) */
    .content-sidebar.show-on-mobile {
        display: block !important;
    }
    
    /* Prevent horizontal overflow on mobile tour pages */
    .tour-detail {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Ensure sticky button doesn't cause overflow */
    .sticky-book-mobile {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
        overflow: hidden;
    }
    
    .sticky-book-content {
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        gap: 10px;
        box-sizing: border-box;
        flex-wrap: nowrap; /* Keep on same row */
    }
    
    .sticky-price {
        flex: 1;
        justify-content: flex-start; /* Align left */
        order: 1;
        min-width: 0;
        overflow: visible;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        max-width: calc(100% - 120px); /* Reserve space for button */
    }
    
    .sticky-price .price {
        font-size: 1rem;
    }
    
    .sticky-price .price-from {
        font-size: 0.65rem;
    }
    
    .sticky-price .per-person {
        font-size: 0.6rem;
    }
    
    .sticky-book-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        flex-shrink: 0;
        width: auto;
        max-width: 110px;
        justify-content: center;
        order: 2;
    }
    
    .sticky-book-btn i {
        font-size: 0.875rem;
    }
    
    /* Ensure gallery doesn't overflow */
    .gallery-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-main {
        height: 300px;
        order: 1;
    }
    
    .gallery-thumbs {
        display: flex !important;
        order: 2;
        flex-direction: row;
        height: auto;
        gap: 10px;
        margin-top: 10px;
    }
    
    .gallery-thumb {
        flex: 1;
        min-height: 80px;
        max-height: 100px;
    }
    
    .gallery-thumb img {
        height: 100%;
        object-fit: cover;
    }
    
    /* Ensure iframes don't overflow */
    iframe, .tour-map-iframe {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .tour-title-section .tour-title {
        font-size: 1.75rem;
    }
    
    .tour-title-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tour-price-display .price-current {
        font-size: 2rem;
    }
    
    .wishlist-btn-detail {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    
    .wishlist-btn-detail i {
        font-size: 1.125rem;
    }
    
    .wishlist-btn-detail:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .wishlist-btn-detail.in-wishlist:hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    .included-excluded-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Gallery Lightbox
   ============================================ */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-image {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    user-select: none;
}

.lightbox-prev {
    left: 50px;
}

.lightbox-next {
    right: 50px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.125rem;
    text-align: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    max-width: 80%;
    backdrop-filter: blur(10px);
}

.gallery-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-trigger:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 36px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        font-size: 36px;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-caption {
        bottom: 20px;
        font-size: 1rem;
        padding: 10px 20px;
        max-width: 90%;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }
}


