/* Custom Styles for Tripora Application */

/* ==========================================================================
   SMOOTH SCROLLING & GPU HARDWARE ACCELERATION (PREVENTS SCROLL LAG)
   ========================================================================== */
html {
    scroll-behavior: auto !important;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Force GPU Layering for Animated Scroll Elements */
.scroll-animate-img,
.offer-card,
.destination-card,
.tripora-prime-card,
.welcome-search-card,
.card-3d-wrap {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.glassmorphism,
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hide scrollbars */
.hide-scrollbar::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

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

/* Custom Scrollbar for sidebars & dropdowns */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(13, 107, 115, 0.2);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 107, 115, 0.4);
}

/* Vertical Marquee Header Widget */
.vertical-marquee {
    overflow: hidden;
    height: 38px;
    position: relative;
    display: flex;
    align-items: center;
}

.vertical-marquee ul {
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
    animation: marquee-vertical 14s ease-in-out infinite;
    will-change: transform;
}

.vertical-marquee li {
    display: block;
    line-height: 1.3rem;
    padding: 0.25rem 0;
    white-space: nowrap;
    opacity: 0.94;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vertical-marquee li:nth-child(odd) {
    opacity: 1;
}

@keyframes marquee-vertical {
    0% {
        transform: translateY(0);
    }

    18% {
        transform: translateY(0);
    }

    22% {
        transform: translateY(-100%);
    }

    40% {
        transform: translateY(-100%);
    }

    44% {
        transform: translateY(-200%);
    }

    62% {
        transform: translateY(-200%);
    }

    66% {
        transform: translateY(-300%);
    }

    84% {
        transform: translateY(-300%);
    }

    88% {
        transform: translateY(-200%);
    }

    96% {
        transform: translateY(-100%);
    }

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

/* Custom styled select dropdowns across the application */
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6b73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 0.75rem !important;
    padding-right: 2.25rem !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

select:focus {
    border-color: #0d6b73 !important;
    box-shadow: 0 0 0 3px rgba(13, 107, 115, 0.15) !important;
}

select option {
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    padding: 10px !important;
}

/* Mobile menu smooth slide-down transition */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out, margin-top 0.4s ease-in-out, border-top-width 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    border-top-width: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
    margin-top: 1rem;
    border-top-width: 1px;
}

/* Bouncy Pop-In Animation for Offer Cards */
.offer-card {
    transform: scale(0);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.2s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out !important;
    will-change: transform, opacity;
}

.offer-card.active-card {
    transform: scale(1);
    opacity: 1;
}

.offer-card.active-card:hover {
    transform: translateY(-6px) scale(1.025) !important;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes float {

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

    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes busDrive {
    0% {
        left: -60px;
    }

    100% {
        left: 100%;
    }
}

@keyframes trainDrive {
    0% {
        left: -60px;
    }

    100% {
        left: 100%;
    }
}

@keyframes planeTakeoff {
    0% {
        transform: translateY(180px) scale(0.6);
        opacity: 0;
    }

    15% {
        transform: translateY(120px) scale(0.8);
        opacity: 1;
    }

    45% {
        transform: translateY(20px) scale(1);
    }

    55% {
        transform: translateY(-10px) scale(1.05);
    }

    80% {
        transform: translateY(-120px) scale(1.15);
        opacity: 1;
    }

    100% {
        transform: translateY(-300px) scale(1.3);
        opacity: 0;
    }
}

@keyframes runwaySpeed {
    0% {
        background-position-y: 0px;
    }

    100% {
        background-position-y: 200px;
    }
}

@keyframes pulseSoft {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

@keyframes ctaCardGlowPulse {
    0% {
        border-color: rgba(255, 159, 0, 0.3);
        box-shadow: 0 0 15px rgba(255, 159, 0, 0.1), inset 0 0 10px rgba(255, 159, 0, 0.02);
    }

    100% {
        border-color: rgba(255, 159, 0, 0.7);
        box-shadow: 0 0 30px rgba(255, 159, 0, 0.25), inset 0 0 15px rgba(255, 159, 0, 0.05);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-bus-drive {
    position: absolute;
    animation: busDrive 1.8s linear infinite;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
}

.animate-train-drive {
    position: absolute;
    animation: trainDrive 1.4s linear infinite;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
}

.animate-takeoff {
    animation: planeTakeoff 2.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.animate-runway {
    background-image: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.15) 50%);
    background-size: 100% 40px;
    animation: runwaySpeed 0.8s linear infinite;
}

.animate-fade-in-card {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flight-card:hover .flight-icon-fly {
    transform: translateX(200px);
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.5s ease;
}

.cta-glow-pulse:hover {
    box-shadow: 0 10px 25px -5px rgba(255, 159, 0, 0.5);
    transform: translate(-50%, 2px) scale(1.02);
}

/* Delay utility classes */
.animation-delay-100 {
    animation-delay: 100ms;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

/* Reveal animation on scroll utility */
.reveal {
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* FAQ Accordion custom height transitions */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

/* Service Selector Tabs */
.service-tab {
    position: relative;
    overflow: hidden;
    border: none !important;
    background-color: transparent !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    z-index: 1;
}

.service-tab::before {
    content: '';
    position: absolute;
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    background: conic-gradient(from 0deg,
            #ff9f00,
            #ff5e00,
            #00b4d8,
            #ff9f00);
    animation: rotateGlow 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -2;
}

.service-tab.active::before,
.service-tab:hover::before {
    opacity: 1 !important;
}

.service-tab::after {
    content: '';
    position: absolute;
    inset: 2.5px;
    border-radius: 14px;
    z-index: -1;
    background-color: #ffffff !important;
    transition: background-color 0.3s ease-in-out;
}

.service-tab.active::after,
.service-tab:hover::after {
    background-color: #ffffff !important;
}

.service-tab.active,
.service-tab:hover {
    color: #0d6b73 !important;
}

.service-tab:not(.active):not(:hover) {
    color: #475569 !important;
}

/* Scroll reveal image & destination cards */
.scroll-animate-img {
    opacity: 0;
    transform: rotate(-9deg) scale(0.85);
    transition: transform 2.0s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 2.0s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.scroll-animate-img.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

#destinations-grid .destination-card {
    transform: scale(0);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.2s ease-out;
    will-change: transform, opacity;
}

#destinations-grid.active .destination-card {
    transform: scale(1);
    opacity: 1;
}

#destinations-grid.active .destination-card:nth-child(1) {
    transition-delay: 100ms;
}

#destinations-grid.active .destination-card:nth-child(2) {
    transition-delay: 250ms;
}

#destinations-grid.active .destination-card:nth-child(3) {
    transition-delay: 400ms;
}

#destinations-grid.active .destination-card:nth-child(4) {
    transition-delay: 550ms;
}

#destinations-grid.active .destination-card:nth-child(5) {
    transition-delay: 700ms;
}

#destinations-grid.active .destination-card:hover {
    transform: translateY(-6px) scale(1.025);
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tripora Prime Card */
.tripora-prime-card {
    position: relative;
    overflow: hidden;
    border: none !important;
    background: transparent !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.tripora-prime-card::before {
    content: '';
    position: absolute;
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    background: conic-gradient(from 0deg,
            #ff9f00,
            #ff5e00,
            #0d6b73,
            #00b4d8,
            #ff9f00);
    animation: rotateGlow 12s linear infinite;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -2;
    filter: blur(1.5px);
}

/* .tripora-prime-card::after {
    content: '';
    position: absolute;
    inset: 3.5px;
    background: linear-gradient(to bottom right, #032e31, #0d6b73, #032e31) !important;
    border-radius: 21px;
    z-index: -1;
} */

/*New vistora prime card branding @dheeraj*/
.tripora-prime-card::after {
    content: '';
    position: absolute;
    inset: 3.5px;
    background: linear-gradient(to bottom right, #002454, #2388f4, #002454) !important;
    border-radius: 21px;
    z-index: -1;
}

.tripora-prime-card.active::before {
    opacity: 1;
}

.tripora-prime-card.active {
    box-shadow: 0 0 35px rgba(13, 107, 115, 0.25), 0 10px 35px -10px rgba(0, 0, 0, 0.6);
}

.tripora-prime-card .bg-white\/5 {
    border-color: rgba(255, 255, 255, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease;
}

.tripora-prime-card.active .bg-white\/5 {
    border-color: rgba(255, 255, 255, 0.15);
}

.tripora-prime-card .bg-white\/5:hover {
    border-color: rgba(255, 159, 0, 0.7) !important;
    box-shadow: 0 0 20px rgba(255, 159, 0, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.prime-cta-card {
    border-color: rgba(255, 255, 255, 0.15);
    transition: border-color 1.2s ease, box-shadow 1.2s ease;
}

.tripora-prime-card.active .prime-cta-card {
    animation: ctaCardGlowPulse 4s infinite alternate ease-in-out;
}

/* Responsive Grid Overrides */
@media (min-width: 576px) {
    .mmt-grid-custom {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #mmt-swap-btn {
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) translateX(50%) !important;
        right: 0 !important;
        left: auto !important;
    }
}

@media (min-width: 1024px) {
    .mmt-grid-custom {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 576px) and (max-width: 1023px) {
    .mmt-travellers-custom {
        grid-column: span 2 / span 2 !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .offers-grid-custom {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* --------------------------------------------------------------------------
   FRONTEND PAGE UTILITIES & ANIMATIONS
   -------------------------------------------------------------------------- */
.perspective-1000 {
    perspective: 1000px;
}

.card-3d-wrap {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.spotlight-overlay {
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 159, 0, 0.07), transparent 40%);
}

.glass-reflection {
    position: relative;
    overflow: hidden;
}

.glass-reflection::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);
    transform: rotate(30deg);
    transition: left 0.8s ease-in-out;
    pointer-events: none;
}

.glass-reflection:hover::after {
    left: 140%;
}

.status-pulse-soft {
    animation: pulseSoft 2.5s ease-in-out infinite;
}

/* Destination & Details Page Utilities */
.shadow-premium {
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.detail-hero-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
}

.glass-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-active {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.route-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.traveling-plane {
    offset-path: path('M180 230 C 280 110, 520 110, 620 230');
    offset-rotate: auto;
    offset-distance: 0%;
    transform-box: fill-box;
    transform-origin: center;
}

.reviews-carousel-container {
    position: relative;
    perspective: 1200px;
}

.review-card {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease, z-index 0.8s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Blog Cards */
.blog-gradient {
    background: linear-gradient(135deg, #002454 0%, #2388f4 100%);
}

.blog-card-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.blog-card-item.hidden-card {
    opacity: 0 !important;
    transform: scale(0.92) !important;
    position: absolute;
    pointer-events: none;
    z-index: 0;
    visibility: hidden;
}

.blog-card-img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card-item:hover .blog-card-img {
    transform: scale(1.06);
}

/* ==========================================================================
   HORIZONTAL FLIGHT LOADER ANIMATIONS
   ========================================================================== */
@keyframes planeFlyHorizontal {
    0% {
        left: -80px;
        transform: translateY(-50%) rotate(0deg);
    }

    50% {
        transform: translateY(-56%) rotate(1.5deg);
    }

    100% {
        left: 105%;
        transform: translateY(-50%) rotate(0deg);
    }
}

@keyframes windLineMove {
    0% {
        transform: translateX(150%);
    }

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

.animate-plane-fly-horizontal {
    position: absolute;
    animation: planeFlyHorizontal 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    top: 50%;
}

.animate-wind-line-1 {
    animation: windLineMove 1.6s linear infinite;
}

.animate-wind-line-2 {
    animation: windLineMove 1.2s linear infinite;
}

.animate-wind-line-3 {
    animation: windLineMove 2.0s linear infinite;
}