/* ==========================================================================
   Holiday Cart — Custom CSS
   Animations, utilities, cursor, glass effects, scrollbar, premium styling
   ========================================================================== */

/* ── CSS Variables ── */
:root {
    --background: #FFFFFF;
    --foreground: #0F172A;
    --card: #FFFFFF;
    --card-foreground: #0F172A;
    --primary: #1B52CC;
    --primary-foreground: #FFFFFF;
    --secondary: #F5FAFF;
    --secondary-foreground: #1B52CC;
    --muted: #F7F8FC;
    --muted-foreground: #64748B;
    --accent: #C9993A;
    --accent-foreground: #FFFFFF;
    --border: rgba(15, 23, 42, 0.08);
    --ring: #1B52CC;
    --radius: 1rem;
}

* { box-sizing: border-box; }

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(27, 82, 204, 0.2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(27, 82, 204, 0.4); }

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

.scrollbar-hide::-webkit-scrollbar { height: 4px; }
.scrollbar-hide::-webkit-scrollbar-thumb { background: rgba(27, 82, 204, 0.2); border-radius: 2px; }

/* ── Keyframe Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes drift {
    0% { transform: translateX(-30px) translateY(0px); }
    50% { transform: translateX(30px) translateY(-10px); }
    100% { transform: translateX(-30px) translateY(0px); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; pointer-events: none; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

@keyframes blob {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

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

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes plane-fly {
    0% { transform: translateX(-120px) translateY(30px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 120px)) translateY(-30px); opacity: 0; }
}

@keyframes loadBar {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes slideLeft {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Utility Animation Classes ── */
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 6s ease-in-out infinite; }
.animate-drift { animation: drift 8s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.7s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease-out forwards; }
.animate-blob { animation: blob 8s ease-in-out infinite; }
.animate-marquee { animation: marquee 28s linear infinite; }
.animate-marquee-slow { animation: marquee 55s linear infinite; }
.animate-marquee-reverse { animation: marquee-reverse 28s linear infinite; }
.animate-plane { animation: plane-fly 14s linear infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-1000 { animation-delay: 1s; }
.delay-2000 { animation-delay: 2s; }
.delay-3000 { animation-delay: 3s; }
.delay-5000 { animation-delay: 5s; }

/* ── Glass Card ── */
.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Card Hover Lift ── */
.card-hover {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(27, 82, 204, 0.12);
}

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, #1B52CC 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #C9993A 0%, #F5C842 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Nav Link Underline ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1B52CC, #38BDF8);
    border-radius: 1px;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── Section Reveal on Scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1B52CC 0%, #2563EB 100%);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 50px;
    transition: all 0.24s ease;
    box-shadow: 0 4px 16px rgba(27, 82, 204, 0.32);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(27, 82, 204, 0.42);
    color: #fff;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    transition: all 0.24s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-glass:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
    color: #fff;
}

/* ── Luxury Cursor Dot (desktop only) ── */
.cursor-dot,
.cursor-ring {
    display: none;
}

@media (pointer: fine) {
    .cursor-dot {
        display: block;
        position: fixed;
        width: 8px;
        height: 8px;
        background: #1B52CC;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.15s ease;
    }
    .cursor-ring {
        display: block;
        position: fixed;
        width: 32px;
        height: 32px;
        border: 1.5px solid rgba(27, 82, 204, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.2s, height 0.2s;
    }
}

/* ── Mega Menu ── */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.mega-menu-trigger:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Image Overlay ── */
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.72) 0%, transparent 55%);
    border-radius: inherit;
}

/* ── Back to Top Button ── */
.back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1B52CC, #38BDF8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 8px 24px rgba(27, 82, 204, 0.35);
    cursor: pointer;
    z-index: 49;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border: none;
    opacity: 0;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}
.back-to-top:hover { transform: translateY(-3px) scale(1.08); }

/* ── Sticky Booking ── */
.sticky-book {
    position: fixed;
    bottom: 10rem;
    right: 1.5rem;
    z-index: 49;
}
@media (min-width: 1024px) {
    .sticky-book { display: none; }
}

/* ── Lenis HTML Override ── */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* ── Scroll Progress Bar ── */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B52CC, #38BDF8, #C9993A);
    z-index: 100;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* ── Premium Border Effect ── */
.premium-border {
    position: relative;
    overflow: hidden;
}
.premium-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
    pointer-events: none;
}
.premium-border:hover::before {
    left: 100%;
}

/* ── Text Reveal ── */
.word-wrap {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
}
.word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
}

/* ── Section Spacing Reductions ── */
section.py-20, .py-20 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}
section.py-16, .py-16 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
}
@media (min-width: 1024px) {
    section.lg\:py-28, .lg\:py-28 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    section.lg\:py-20, .lg\:py-20 {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
    }
}

/* ── Page Loader ── */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease, fadeOut 0.4s 0.9s ease forwards;
}

/* ── Mobile Menu ── */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
    transform: translateX(0);
}

/* ── Prefers Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .animate-marquee, .animate-marquee-slow, .animate-marquee-reverse { animation: none !important; }
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ── WordPress-specific ── */
.wp-block-separator { border-color: var(--border); }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content a:hover { color: #3B6FE8; }

/* ── Dest Tab active state ── */
.dest-tab { transition: all 0.2s ease; }
.dest-tab.active {
    background: #1B52CC;
    color: #fff;
    box-shadow: 0 1px 3px rgba(27, 82, 204, 0.3);
}
