﻿/* ==========================================================================
   Main Stylesheet - Wanderlust Travel Agency
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

section {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   2. RESPONSIVE TYPOGRAPHY
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    h1 { font-size: 1.75rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.5rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.25rem !important; }
    p { font-size: 0.875rem !important; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    h1 { font-size: 2.25rem !important; }
    h2 { font-size: 1.75rem !important; }
}

/* --------------------------------------------------------------------------
   3. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container-responsive {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-responsive {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.no-horizontal-scroll {
    overflow-x: hidden !important;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

/* --------------------------------------------------------------------------
   4. ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.card-enter {
    animation: slideUp 0.6s ease-out forwards;
}

.mobile-menu-enter {
    animation: slideInTop 0.4s ease-out forwards;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION STYLES
   -------------------------------------------------------------------------- */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, rgba(249, 250, 251, 0.3) 50%, #f9fafb 100%);
    pointer-events: none;
    z-index: 15;
}

.overlay-gradient {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   6. HEADER STYLES
   -------------------------------------------------------------------------- */

/* Transparent header by default (hero image visible) */
#main-header {
    max-width: calc(100% - 2rem) !important;
    background-color: transparent !important;
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
}

/* Header with semi-transparent background on scroll (desktop only) */
#main-header.header-scrolled {
    background-color: rgba(255, 153, 51, 0.15) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Keep header transparent on mobile only */
@media (max-width: 768px) {
    #main-header, #main-header.header-scrolled {
        background-color: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 640px) {
    #main-header {
        width: calc(100% - 1.5rem) !important;
        border-radius: 1rem !important;
        top: 0.5rem !important;
    }
}

/* Hero section padding to account for fixed header */
#home {
    padding-top: env(safe-area-inset-top, 0px);
}

/* Ensure hero content is visible below header on all screen sizes */
@media (max-width: 768px) {
    #main-header {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        border-radius: 0 !important;
        background-color: rgba(4, 47, 46, 0.95) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    #home {
        height: auto !important;
        min-height: 100vh !important;
        padding-top: 0 !important;
    }
    
    .hero-slide img {
        height: 100vh !important;
        min-height: 500px !important;
    }
}

@media (min-width: 769px) {
    #main-header {
        position: fixed !important;
    }
    
    #home {
        height: 100vh !important;
        min-height: 600px !important;
    }
}

/* Prevent content overflow on small screens */
@media (max-width: 480px) {
    #main-header nav {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    #main-header .text-xl {
        font-size: 1rem !important;
    }
}

/* --------------------------------------------------------------------------
   7. FLIP CARD STYLES
   -------------------------------------------------------------------------- */
.flip-card {
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1.5rem;
    overflow: hidden;
}

.flip-card-front {
    background: white;
}

.flip-card-back {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.flip-card-image {
    height: 55%;
    width: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. UPCOMING TRIPS CARD STYLES
   -------------------------------------------------------------------------- */
.single-upconing-card {
    position: relative;
    width: 280px;
    flex-shrink: 0;
    perspective: 1000px;
}

.single-upconing-card .shadow {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.single-upconing-card .shadow img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.single-upconing-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
    transition: all 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.single-upconing-card .content .title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.single-upconing-card .content .title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.single-upconing-card .content .title a:hover {
    color: #f97316;
}

.single-upconing-card .content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.single-upconing-card .details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: rotateY(-180deg);
    transition: all 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.single-upconing-card:hover .details {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg);
}

.single-upconing-card:hover .shadow {
    opacity: 0;
    visibility: hidden;
    transform: rotateY(180deg);
}

.single-upconing-card:hover .content {
    opacity: 0;
    visibility: hidden;
    transform: rotateY(180deg);
}

.single-upconing-card .details .title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.single-upconing-card .details .title a {
    color: white;
    text-decoration: none;
}

.single-upconing-card .details .offer-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.single-upconing-card .details .offer-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.single-upconing-card .details .offer-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.single-upconing-card .details .btn {
    background: white;
    color: #ea580c;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.single-upconing-card .details .btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   9. CAROUSEL & SLIDER STYLES
   -------------------------------------------------------------------------- */
.upcomming-card-slider {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .upcomming-card-slider {
        gap: 1rem;
        padding: 1rem 0;
    }
}

.upcomming-card-slider::-webkit-scrollbar {
    display: none;
}

.zigzag-row-1 {
    margin-top: 0;
}

.zigzag-row-2 {
    margin-top: 60px;
}

@media (max-width: 640px) {
    .zigzag-row-2 {
        margin-top: 40px;
    }
}

.tps-arrow-left-right {
    position: relative;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .carousel-arrow {
        width: 50px;
        height: 50px;
    }
}

.carousel-arrow:hover {
    background: #f97316;
    color: white;
}

.carousel-arrow.prev {
    left: -20px;
}

.carousel-arrow.next {
    right: -20px;
}

@media (max-width: 640px) {
    .carousel-arrow.prev {
        left: 5px;
    }
    .carousel-arrow.next {
        right: 5px;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* --------------------------------------------------------------------------
   10. MOBILE MENU STYLES
   -------------------------------------------------------------------------- */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
}

#close-mobile-menu {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10000 !important;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

#close-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

#mobile-menu nav {
    width: 100% !important;
    max-width: 100% !important;
    padding: 60px 12px 16px 12px !important;
    box-sizing: border-box !important;
}

#mobile-menu .mobile-link {
    font-size: 1.375rem !important;
    line-height: 1.75rem !important;
    padding: 8px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#mobile-menu .mobile-link[style*="opacity"] {
    opacity: var(--target-opacity, 1) !important;
}

#mobile-menu .mobile-link > button {
    font-size: 1.375rem !important;
    line-height: 1.75rem !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    border: none !important;
    background: transparent !important;
}

#mobile-menu button.text-2xl,
#mobile-menu a.text-2xl {
    font-size: 1.375rem !important;
    line-height: 1.75rem !important;
    padding: 8px 0 !important;
}

@media (min-width: 480px) {
    #mobile-menu .mobile-link,
    #mobile-menu .mobile-link > button,
    #mobile-menu button.text-2xl,
    #mobile-menu a.text-2xl {
        font-size: 1.625rem !important;
        line-height: 2rem !important;
    }
}

@media (min-width: 640px) {
    #mobile-menu .mobile-link,
    #mobile-menu .mobile-link > button,
    #mobile-menu button.text-2xl,
    #mobile-menu a.text-2xl {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
}

#mobile-menu [idRs.="-mobile"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

#mobile-menu [idRs.="-mobile"] a {
    font-size: 0.9375rem !important;
    line-height: 1.5rem !important;
    padding: 10px 16px !important;
    display: block !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

#mobile-menu [idRs.="-mobile"].hidden {
    display: none !important;
}

#mobile-menu .flex.gap-4,
#mobile-menu .flex.gap-6 {
    margin-top: 16px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding: 16px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#mobile-menu .absolute.animate-pulse,
#mobile-menu .absolute.border-white\/5 {
    opacity: 0.15 !important;
    pointer-events: none !important;
}

#mobile-menu .absolute.bottom-8,
#mobile-menu .absolute.bottom-10 {
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    bottom: 16px !important;
}

@media (max-width: 375px) {
    #mobile-menu .mobile-link,
    #mobile-menu .mobile-link > button,
    #mobile-menu button.text-2xl,
    #mobile-menu a.text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.625rem !important;
        padding: 6px 0 !important;
    }
    
    #mobile-menu [idRs.="-mobile"] a {
        font-size: 0.875rem !important;
        padding: 8px 12px !important;
    }
    
    #close-mobile-menu {
        top: 8px !important;
        right: 8px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    #mobile-menu nav {
        padding: 50px 8px 12px 8px !important;
    }
}

/* --------------------------------------------------------------------------
   11. CUSTOM SCROLLBAR
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* --------------------------------------------------------------------------
   12. GRID & LAYOUT FIXES
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .grid {
        gap: 1rem !important;
    }
}

button, .btn {
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. NAVIGATION DOTS
   -------------------------------------------------------------------------- */
.nav-dot {
    transition: all 0.3s ease;
}

.nav-dot.active {
    transform: scale(1.3);
    background-color: #f97316;
}

/* --------------------------------------------------------------------------
   14. CARD SLIDE TRANSITIONS
   -------------------------------------------------------------------------- */
.card-slide {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* --------------------------------------------------------------------------
   15. SCROLL REVEAL ANIMATIONS (Discovery Builders Style)
   -------------------------------------------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.scroll-delay-1 { transition-delay: 0.1s; }
.scroll-delay-2 { transition-delay: 0.2s; }
.scroll-delay-3 { transition-delay: 0.3s; }
.scroll-delay-4 { transition-delay: 0.4s; }

/* Package card scroll animation */
.package-card {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.package-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.package-card.visible.delay-1 { transition-delay: 0.1s; }
.package-card.visible.delay-2 { transition-delay: 0.2s; }
.package-card.visible.delay-3 { transition-delay: 0.3s; }
.package-card.visible.delay-4 { transition-delay: 0.4s; }

/* Parallax helper */
[data-speed] {
    will-change: transform;
}

/* ==========================================================================
   SAFFRON COLOR OVERRIDE - All orange/saffron text uses #F97316
   ========================================================================== */
.text-orange-50,
.text-orange-100,
.text-orange-200,
.text-orange-300,
.text-orange-400,
.text-orange-500,
.text-orange-600,
.text-orange-700,
.text-orange-800,
.text-orange-900,
.text-orange-950 {
    color: #F97316 !important;
}

.hover\:text-orange-50:hover,
.hover\:text-orange-100:hover,
.hover\:text-orange-200:hover,
.hover\:text-orange-300:hover,
.hover\:text-orange-400:hover,
.hover\:text-orange-500:hover,
.hover\:text-orange-600:hover,
.hover\:text-orange-700:hover,
.hover\:text-orange-800:hover,
.hover\:text-orange-900:hover,
.hover\:text-orange-950:hover {
    color: #F97316 !important;
}

/* Background orange overrides */
.bg-orange-50,
.bg-orange-100,
.bg-orange-200,
.bg-orange-300,
.bg-orange-400,
.bg-orange-500,
.bg-orange-600,
.bg-orange-700,
.bg-orange-800,
.bg-orange-900,
.bg-orange-950 {
    background-color: #F97316 !important;
}

.hover\:bg-orange-50:hover,
.hover\:bg-orange-100:hover,
.hover\:bg-orange-200:hover,
.hover\:bg-orange-300:hover,
.hover\:bg-orange-400:hover,
.hover\:bg-orange-500:hover,
.hover\:bg-orange-600:hover,
.hover\:bg-orange-700:hover,
.hover\:bg-orange-800:hover,
.hover\:bg-orange-900:hover,
.hover\:bg-orange-950:hover {
    background-color: #F97316 !important;
}

/* Border orange overrides */
.border-orange-50,
.border-orange-100,
.border-orange-200,
.border-orange-300,
.border-orange-400,
.border-orange-500,
.border-orange-600,
.border-orange-700,
.border-orange-800,
.border-orange-900,
.border-orange-950 {
    border-color: #F97316 !important;
}

/* Gradient from/to overrides */
.from-orange-500,
.from-orange-600 {
    --tw-gradient-from: #F97316 !important;
}

.to-orange-500,
.to-orange-600 {
    --tw-gradient-to: #F97316 !important;
}

/* --------------------------------------------------------------------------
   Global Mobile Header: Saffron, Full-Width, Flat Top
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    #main-header {
        background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none !important;
        top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #main-header nav {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    #main-header.header-solid {
        background: linear-gradient(135deg, #f97316 100%, #ea580c 100%) !important;
    }
}

