/* Victory Tours — Custom Styles */

html { scroll-behavior: smooth; }

/* Prevent Alpine.js flash on page load */
[x-cloak] { display: none !important; }

/* Nav link underline animation */
.nav-link { position: relative; }
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #F5A623;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Advantage card hover */
.advantage-card:hover .advantage-icon {
    background: #1B3A8C !important;
    color: #ffffff !important;
}

/* Scroll animation */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Hero slider */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero slider dots */
.hero-dot {
    width: 24px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.35);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}
.hero-dot.active {
    width: 40px;
    background: #F5A623;
}

/* Card slider */
.carousel-wrapper {
    position: relative;
}
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
    scroll-snap-align: start;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Dark dots for carousels */
.carousel-dot {
    width: 24px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(15,30,69,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}
.carousel-dot.active {
    width: 40px;
    background: #F5A623;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Flag icon styling */
.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .carousel-slide {
        width: 100% !important;
    }
}
@media (min-width: 641px) and (max-width: 1023px) {
    .carousel-slide.cols-tablet {
        width: 50% !important;
    }
    .carousel-slide.cols-tablet-3 {
        width: 33.333% !important;
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .carousel-slide.cols-tablet-3 {
        width: 33.333% !important;
    }
}
@media (min-width: 1280px) {
    .carousel-slide.cols-desktop-4 {
        width: 25% !important;
    }
    .carousel-slide.cols-desktop-3 {
        width: 33.333% !important;
    }
}

/* Scrollbar hide + touch pan x for mobile carousels */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

/* Contact form animation */
.form-sent {
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ensure select arrow doesn't overlap on Windows */
select {
    background-image: none;
}

/* Hero form mobile smooth scroll */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 80px;
    }
}