/* ==============================================
   TOUR DETAIL PAGE STYLES
   Zeta Travels - Helicopter Tour Detail
   ============================================== */

/* Hero Section */
.hero-detail {
    min-height: 75vh;
}

.hero-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3) 0%, transparent 50%);
    z-index: 1;
}

/* Parallax effect for hero image */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Sticky package tier tabs (default / desktop) */
/* Sticky package tier tabs (default / desktop) */
#package-tiers {
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
    z-index: 40 !important;
    transition: all 0.3s ease-in-out;
}

#package-tiers.is-stuck {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-color: #f59e0b;
    /* amber-500 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#package-tiers.is-stuck #package-header {
    height: 0;
    margin-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

#package-tiers #package-mini-title {
    height: 0;
    opacity: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

#package-tiers.is-stuck #package-mini-title {
    height: auto;
    opacity: 1;
    margin-bottom: 0.5rem;
}

#package-tiers {
    position: -webkit-sticky;
    position: sticky;
    top: 69px;
    z-index: 40;
}

#package-tiers.is-stuck {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Hide selection tick on mobile completely */
@media (max-width: 639px) {
    .tier-check {
        display: none !important;
    }
}

/* Sticky sidebar */
.sticky-card {
    position: -webkit-sticky;
    position: sticky;
    top: 70px;
}

/* Gallery hover */
.gallery-img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.gallery-img:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Legacy Timeline removed - now handled via PHP structure in tour-detail.php */

/* FAQ */
.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item summary::after {
    content: '';
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient text animation */
.gradient-text-animated {
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706, #f59e0b, #fbbf24);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* Pulse animation for CTA */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 10px 60px rgba(16, 185, 129, 0.5);
    }
}

/* Floating animation */
.float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Card hover effect */
.hover-lift {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Shimmer effect for badge */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Stats icon bounce */
.stat-icon {
    transition: transform 0.3s ease;
}

.stat-icon:hover {
    transform: scale(1.15) rotate(-5deg);
}

/* Number counter style */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Smooooth CSS Marquee */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-crawl 40s linear infinite;
    will-change: transform;
}

#main-reel:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-crawl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Slide exactly half the track (one set of clones) */
}

/* Premium Carousel & Scrollbar logic */
.scrollbar-hide,
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Expandable Overview */
#overview-content.expanded {
    max-height: none;
}

#overview-content.expanded #overview-gradient {
    display: none;
}

/* Sticky Tab Compact Mode (Pro UX) */
#package-tiers.is-stuck {
    padding: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
    border-color: rgba(226, 232, 240, 0.8);
    border-top-width: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#package-tiers.is-stuck #package-header {
    height: 0;
    opacity: 0;
    margin-bottom: 0;
    overflow: hidden;
}

#package-tiers.is-stuck #package-mini-title {
    height: auto;
    opacity: 1;
    margin-bottom: 0.5rem;
}

#package-tiers.is-stuck .tier-btn {
    padding: 0.5rem 0.75rem;
}

#package-tiers.is-stuck .tier-name {
    font-size: 0.75rem;
    margin-bottom: 0px;
}

#package-tiers.is-stuck .tier-price {
    font-size: 1.125rem;
}

#package-tiers.is-stuck .tier-note,
#package-tiers.is-stuck .tier-badge {
    height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Animation Utils */
.transition-all {
    transition-property: all;
    transition-duration: 300ms;
}

/* ==============================================
   MOBILE RESPONSIVENESS (max-width: 640px)
   ============================================== */
@media (max-width: 640px) {

    /* Hard clamp layout to viewport width on small phones */
    /* Hard clamp layout to viewport width on small phones */
    /* REMOVED overflow-x: hidden on body as it breaks sticky position */


    #main-content,
    section,
    .max-w-7xl,
    .max-w-6xl,
    .max-w-4xl {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Force single column layout for main content */
    .grid.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Hero Section Mobile */
    .hero-detail h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .hero-detail .gradient-text-animated {
        font-size: 0.95rem !important;
    }

    /* Package Tier Tabs Mobile - padding + compact styles */
    #package-tiers {
        padding: 0.75rem !important;
    }

    .tier-btn {
        padding: 0.5rem !important;
    }

    .tier-name {
        font-size: 0.65rem !important;
        margin-bottom: 0.125rem !important;
    }

    .tier-price {
        font-size: 0.75rem !important;
    }

    .tier-note {
        font-size: 0.5rem;
        display: none;
    }

    .tier-badge {
        font-size: 0.45rem;
        padding: 0.125rem 0.35rem;
    }

    /* Ultra-Compact Mode for Sticky Mobile Tabs */
    #package-tiers.is-stuck {
        padding: 0.35rem 0.5rem !important;
        border-radius: 0 0 1rem 1rem;
    }

    #package-tiers.is-stuck #package-header {
        display: none !important;
    }

    #package-tiers.is-stuck .tier-btn {
        padding: 0.25rem 0.35rem !important;
    }

    #package-tiers.is-stuck .tier-name {
        font-size: 0.6rem !important;
        margin-bottom: 0px !important;
    }

    #package-tiers.is-stuck .tier-badge {
        display: none !important;
    }

    /* Content Card Mobile Padding */
    .bg-white.rounded-2xl,
    .bg-white.rounded-xl {
        padding: 1rem !important;
    }

    /* Section Headings Mobile */
    h2.font-display,
    .font-display {
        font-size: 1.125rem !important;
    }

    h2.text-2xl,
    .text-2xl {
        font-size: 1.125rem !important;
    }

    /* Itinerary Accordion Mobile */
    #itinerary-container details summary {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }

    #itinerary-container details summary>div:first-child {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 0.6rem !important;
    }

    #itinerary-container details summary span {
        font-size: 0.8rem !important;
    }

    /* FAQ Accordion Mobile */
    .faq-item summary {
        padding: 0.75rem !important;
        font-size: 0.85rem !important;
    }

    /* Quick Stats Grid Mobile */
    .grid.grid-cols-2 {
        gap: 0.75rem !important;
    }

    .stat-icon,
    .grid.grid-cols-2>div>div:first-child {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }

    .grid.grid-cols-2 svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    .grid.grid-cols-2 p {
        font-size: 0.7rem !important;
    }

    /* Why Choose Us Features Mobile */
    .grid.grid-cols-2.lg\:grid-cols-4 {
        gap: 0.75rem !important;
    }

    .grid.grid-cols-2.lg\:grid-cols-4>div {
        padding: 0.75rem !important;
    }

    .grid.grid-cols-2.lg\:grid-cols-4 h4 {
        font-size: 0.75rem !important;
    }

    .grid.grid-cols-2.lg\:grid-cols-4 p {
        font-size: 0.65rem !important;
    }

    /* Sidebar Mobile - make pricing card scroll normally (no sticky) */
    .lg\:col-span-1 .sticky-card {
        position: relative !important;
        top: auto !important;
    }

    /* CTA Buttons Mobile */
    .pulse-glow,
    a.pulse-glow {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }

    /* Section Padding Mobile */
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* SEO Content Section Mobile */
    .prose h3 {
        font-size: 1rem !important;
    }

    .prose p {
        font-size: 0.875rem !important;
    }

    /* Gallery Mobile */
    .grid.grid-cols-2.gap-4 {
        gap: 0.5rem !important;
    }

    /* Guest Reviews - make it vertical on mobile (no horizontal scrolling) */
    .reviews-carousel {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible !important;
        gap: 0.75rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .reviews-carousel .snap-start.shrink-0.w-72 {
        width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
    }
}

/* Cinematic Timeline Animations */
@keyframes timeline-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    }
}

.timeline-item:hover .rounded-full.border-4 {
    animation: timeline-pulse 2s infinite;
}

/* Map Section Enhancements */
#route-map iframe {
    transition: filter 0.5s ease;
}

#route-map:hover iframe {
    filter: grayscale(0%);
}

/* Related Tours Slider Smoothness */
#related-slider {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.related-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slider Containment Fixes */
#review-slider,
#related-slider {
    min-width: 0;
    max-width: 100%;
}

.review-slide,
.related-card {
    min-width: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.lg\:col-span-2 {
    min-width: 0 !important;
}


/* Mobile Bottom Sticky Bar - Premium Style */
#mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.25rem 1rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#mobile-sticky-bar.is-visible {
    transform: translateY(0);
}

#mobile-sticky-bar button {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}

#mobile-sticky-bar button:active {
    transform: scale(0.97);
}

@media (min-width: 640px) {
    #mobile-sticky-bar {
        display: none !important;
    }
}