html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Poppins', sans-serif; 
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Outfit', sans-serif; 
}

/* Optimized Transitions */
.accordion-content,
.accordion-arrow,
.slide,
.slide-indicator,
.grid .group,
.grid .group img,
.group .absolute button,
.tab-button,
.carry-tab,
.carry-tab-content,
.faq-item,
.policy-accordion {
    transition: all 0.3s ease-in-out;
}

/* Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
}

.accordion-content:not(.hidden) {
    max-height: 1000px;
}

.accordion-header:hover .accordion-arrow {
    color: #4B5563;
}

/* Slider Optimized Styles */
.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}

.slide.active {
    display: block;
    opacity: 1;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.5s ease-in-out;
}

.slide img {
    transition: transform 0.5s ease-in-out;
}

/* Slide Indicators */
.slide-indicator.active {
    background-color: white !important;
    transform: scale(1.2);
}

.slide-indicator:hover {
    transform: scale(1.1);
}

/* Hover Effects */
.group:hover .slide img,
.grid .group:hover img {
    transform: scale(1.05);
}

.grid .group:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Navigation Arrows */
.group .absolute button {
    backdrop-filter: blur(10px);
}

.group .absolute button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .slide {
        position: relative;
        display: none;
    }
    
    .slide.active {
        display: block;
    }

    /* Reduce grid height on mobile */
    .grid.md\:h-96 {
        height: auto;
    }

    .grid .aspect-w-1.aspect-h-1 {
        height: 120px;
    }

    /* Mobile lightbox adjustments */
    .lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.5rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* Scroll and Tab Styles */
.scroll-section {
    scroll-margin-top: 100px;
}

/* Navigation box styling - Fixed version */
.sticky.top-0 {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background-color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sticky.top-0 nav {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.875rem 1rem; /* Reduced height by 2px */
    gap: 2rem;
    white-space: nowrap;
    position: relative;
}

/* Hide scrollbar by default */
.sticky.top-0 nav::-webkit-scrollbar {
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show scrollbar on hover */
.sticky.top-0 nav:hover::-webkit-scrollbar {
    opacity: 1;
}

.sticky.top-0 nav::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 1.5px;
}

.sticky.top-0 nav::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 1.5px;
}

/* Firefox scrollbar */
.sticky.top-0 nav {
    scrollbar-width: none;
}

.sticky.top-0 nav:hover {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

/* Add a pseudo-element for the scrollbar track */
.sticky.top-0::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #f1f5f9;
    border-radius: 1px;
    pointer-events: none;
}

/* Tab button styles */
.tab-button {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.tab-button.active {
    color: #2563eb !important;
    border-color: #2563eb !important;
}

/* Add margin to content below nav */
.sticky.top-0 + section {
    margin-top: 1rem;
}

/* Trip highlights adjustments */
.trip-highlights {
    position: relative;
    z-index: 10;
    padding: 1.25rem !important;
    background-color: #fff;
    margin-top: 1rem;
}

/* Booking box improvements */
.booking-box {
    position: relative;
    z-index: 20;
}

@media (max-width: 1024px) {
    .booking-box {
        position: static;
        z-index: auto;
    }
    
    .sticky.top-0 {
        margin-bottom: 1rem;
    }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .trip-highlights {
        padding: 1rem !important;
    }
    
    .trip-highlights .flex {
        gap: 0.5rem;
        padding: 0.25rem 0;
    }
    
    .trip-highlights p {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    .trip-highlights h2 {
        margin-bottom: 0.75rem !important;
    }
    
    .booking-box {
        margin-bottom: 1rem;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    padding: 8px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    padding: 1rem;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Elegant Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.fade-left {
    transform: translateX(-24px);
}
.scroll-animate.fade-left.animate {
    transform: translateX(0);
}

.scroll-animate.fade-right {
    transform: translateX(24px);
}
.scroll-animate.fade-right.animate {
    transform: translateX(0);
}

/* Animation Delays for Staggered Effects */
.scroll-animate.delay-100 { transition-delay: 0.1s; }
.scroll-animate.delay-200 { transition-delay: 0.2s; }
.scroll-animate.delay-300 { transition-delay: 0.3s; }
.scroll-animate.delay-400 { transition-delay: 0.4s; }
.scroll-animate.delay-500 { transition-delay: 0.5s; }

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .scroll-animate {
        transition-duration: 0.4s;
    }
    .scroll-animate.delay-300,
    .scroll-animate.delay-400,
    .scroll-animate.delay-500 {
        transition-delay: 0.1s;
    }
}

/* Simplified trip highlights styling */
.trip-highlights .space-y-4 {
    margin-top: 0.75rem;
}

.trip-highlights .flex {
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.375rem 0;
}

.trip-highlights .flex-shrink-0 {
    margin-top: 0.125rem;
    width: 1.125rem;
    height: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trip-highlights .flex-shrink-0 svg {
    width: 1.125rem;
    height: 1.125rem;
}

.trip-highlights p {
    margin: 0;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
} 