@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #d97706;
    --accent-hover: #f59e0b;
    --bg: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
}

[data-theme="dark"] {
    --primary: #f8fafc;
    --primary-light: #f1f5f9;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --bg: #0b0f19;
    --bg-card: rgba(15, 23, 42, 0.85);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 0;
    color: var(--primary);
}

/* Glassmorphism Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Grid & Layouts */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 75px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header.site-header.scrolled {
    height: 70px !important;
    box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* Header Timeline using CSS Scroll-driven animations */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    header.site-header {
        animation: header-shrink auto linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 100px;
    }
    
    @keyframes header-shrink {
        to {
            height: 70px;
            box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.08);
            border-bottom: 1px solid var(--border);
        }
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* Sticky Action Buttons (Mobile View) */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: none;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 15px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.mobile-sticky-btn {
    text-align: center;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-sticky-btn svg {
    width: 22px;
    height: 22px;
}

.mobile-sticky-btn.whatsapp {
    color: #25d366;
}

.mobile-sticky-btn.call {
    color: #007aff;
}

.mobile-sticky-btn.enquire {
    color: var(--accent);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Responsive queries */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    header.site-header { height: 70px !important; background: var(--glass-bg) !important; }
    .mobile-sticky-bar { display: none !important; }
    
    /* Prevent min-width overflow in detail & booking layouts */
    main, 
    aside,
    div[style*="min-width:320px"], 
    aside[style*="min-width:320px"], 
    main[style*="min-width:320px"] {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* Premium Entrance & Interaction Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}
.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

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

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

/* Hover effects */
.card-hover-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.glass-card:hover .card-hover-img {
    transform: scale(1.06);
}

.btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.glass-card:hover {
    border-color: rgba(217, 119, 6, 0.25) !important;
}

/* Responsive Header & Mobile Menu Drawer Styles */
.mobile-menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 5px;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -310px;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    box-sizing: border-box;
    border-left: 1px solid var(--border);
}

.mobile-menu-drawer.open {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
}

@media (max-width: 992px) {
    .desktop-menu {
        display: none !important;
    }
    .header-cta-btn {
        display: none !important;
    }
    .mobile-menu-toggle-btn {
        display: flex !important;
    }
}

/* Premium UI/UX Polish */

/* 1. Heart icon & Wishlist Button animation */
.wishlist-toggle-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.wishlist-toggle-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.18) !important;
}

.wishlist-toggle-btn.active {
    color: #ef4444 !important;
}

.wishlist-toggle-btn.active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

/* 2. Micro-pops */
@keyframes uiPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.ui-pop-anim {
    animation: uiPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 3. Inputs focus glow & transitions */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    transition: all 0.3s ease;
    border: 1px solid var(--border) !important;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus, select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
    background-color: #ffffff !important;
}

/* Dark mode inputs override */
[data-theme="dark"] input[type="text"]:focus, 
[data-theme="dark"] input[type="email"]:focus, 
[data-theme="dark"] input[type="tel"]:focus, 
[data-theme="dark"] textarea:focus, 
[data-theme="dark"] select:focus {
    background-color: var(--primary-light) !important;
}

/* 4. Elegant Toast Notification Panel */
.premium-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 5. Custom Compare Float Bar dock styling */
#compare-floating-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#compare-floating-bar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 6. Custom styling for comparison cards */
.compare-checkbox-wrapper {
    position: relative;
    cursor: pointer;
    user-select: none;
}

/* 7. Slide-Out Booking Drawer & Mobile Sticky CTA */
.booking-drawer-open {
    overflow: hidden !important; /* Lock background scroll when drawer is active */
}

#booking-drawer.open {
    right: 0 !important;
}

#booking-drawer-overlay.open {
    display: block !important;
    opacity: 1 !important;
}

/* Base styles for details CTA bar */
.mobile-detail-cta-bar {
    display: none;
}

/* Premium Header Navigation Menu Polish */
.desktop-menu ul li {
    position: relative;
}

.desktop-menu ul li a {
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.desktop-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-menu ul li a:hover {
    color: var(--accent) !important;
}

.desktop-menu ul li a:hover::after {
    width: 100%;
}

.desktop-menu ul li.menu-dropdown-parent:hover .dropdown-menu-list {
    display: block !important;
    animation: headerDropdownSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@media (max-width: 768px) {
    .mobile-detail-cta-bar {
        display: flex !important;
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        justify-content: space-between;
        align-items: center;
        padding: 14px 22px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        box-sizing: border-box;
    }
    /* Hide the global mobile sticky bar on package details page to prevent double-sticky bars */
    .package-detail-body .mobile-sticky-bar {
        display: none !important;
    }
    /* Padding bottom to allow clearance for details CTA */
    .package-detail-body {
        padding-bottom: 100px !important;
    }
    /* Push WhatsApp widget up on package detail page to avoid overlapping with details CTA bar */
    .package-detail-body .floating-whatsapp-widget {
        bottom: 90px !important;
        display: flex !important;
    }
}

/* Responsive Home Hero Section & Search Bar Rules */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
    }
    .hero-section p {
        font-size: 1.05rem !important;
        margin-bottom: 25px !important;
    }
    .hero-search-bar {
        flex-direction: column;
        padding: 12px !important;
        gap: 10px;
    }
    .hero-search-input {
        width: 100% !important;
        padding: 10px 15px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: var(--radius-sm) !important;
        text-align: center;
    }
    .hero-search-btn {
        width: 100% !important;
        padding: 12px 20px !important;
    }
}

/* Spinner Loader Animation */
.spinner-loader {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(217, 119, 6, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: cssSpin 1s infinite linear;
}

@keyframes cssSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


