/* 
 * Sumac Coca Travel - Global Styles 
 */

/* General Selection */
::selection {
    background: #E9C46A;
    /* sumac-accent */
    color: #0F1410;
    /* sumac-dark */
}

body {
    overflow-x: hidden;
}

button {
    touch-action: manipulation;
}

/* Custom Scrollbar for sidebars/menus */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(121, 171, 57, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(121, 171, 57, 0.5);
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(15, 20, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.9s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Social Media Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Mobile Side Drawer Transitions */
#mobile-sidebar {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-sidebar.active {
    transform: translateX(0);
}

#mobile-menu-overlay {
    transition: all 0.3s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Video Background Layout */
.video-container iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Micro-animations */
@keyframes bounce-slow {

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

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

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

.text-glow {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Itinerary Patterns (Common for tour detail pages) */
.itinerary-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e5e7eb;
    margin-left: 1.25rem;
}

.itinerary-step:last-child::before {
    height: 20px;
}

/* Fancybox Theme Integration */
.fancybox__container {
    --fancybox-accent-color: #79ab39;
}

.prose {
    max-width: 100% !important;
}

/* Skeleton Loading Effect for Patterns */
@keyframes skeleton-pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.3;
    }
}

.skeleton-pattern {
    background-color: rgba(255, 255, 255, 0.05);
    animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-pattern img {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.skeleton-pattern.loaded {
    animation: none;
    background-color: transparent !important;
}

.skeleton-pattern.loaded img {
    opacity: 1 !important;
}