
:root {
    /* Color Palette - Light Mode Default */
    --primary-color: #D4AF37; /* Gold for luxury */
    --primary-hover: #B5952F;
    --text-color: #333333;
    --heading-color: #111111;
    --bg-color: #ffffff;
    --bg-soft: #f9f9f9;
    --bg-glass: rgba(255, 255, 255, 0.95); /* Increased opacity for better legibility */
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Functional */
    --nav-height: 80px;
    --transition: all 0.3s ease;
    --radius: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

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

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

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline.dark-text {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.center-btn {
    text-align: center;
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002; /* Above mobile menu */
    text-decoration: none;
}

.brand img {
    border-radius: 50%;
    object-fit: cover;
}

.brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    color: var(--heading-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 20px;
}

.nav-cta::after { display: none; }

/* Theme Toggle */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--heading-color);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: rgba(0,0,0,0.05);
}

.icon.hidden { display: none; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--heading-color);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: left;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding-top: var(--nav-height);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    padding: 0 10px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Common Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.bg-soft {
    background-color: var(--bg-soft);
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pkg-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pkg-card:hover .img-wrap img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sunrise-tag { background: linear-gradient(45deg, #ff9966, #ff5e62); }
.sunset-tag { background: linear-gradient(45deg, #4b6cb7, #182848); }
.vip-tag { background: linear-gradient(45deg, #D4AF37, #C5A028); color: black; }

.pkg-body {
    padding: 25px;
}

.pkg-body h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.pkg-body h3 a {
    color: var(--heading-color);
}

.pkg-body p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    color: var(--text-color);
}

/* Adventure Grid */
.adventure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.adventure-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    color: white;
    transition: transform 0.3s;
}

.adventure-card:hover {
    transform: scale(1.02);
}

.overlay-grad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
}

.adventure-card .content {
    position: relative;
    z-index: 2;
}

.adventure-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

/* Reviews */
.rating-badge {
    display: inline-flex;
    flex-direction: column;
    background: var(--bg-soft);
    padding: 10px 20px;
    border-radius: var(--radius);
    margin-top: 10px;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.reviews-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 300px;
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    scroll-snap-align: start;
}

.review-text {
    font-style: italic;
    margin: 15px 0;
    font-size: 1rem;
}

.reviewer {
    font-weight: 700;
    color: var(--primary-color);
}

/* About Section */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.rounded-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
}

.collapsible-content {
    margin-bottom: 1.5rem;
}

.collapsible-content p {
    margin-bottom: 1rem;
}

.read-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* CTA Banner */
.cta-banner {
    background: url('/assets/cta-bg.jpg') no-repeat center center/cover;
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}

.cta-banner .container {
    position: relative;
    z-index: 2;
}

.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }

/* Footer */
footer {
    background: #1a1a1a;
    color: #cccccc;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* FAB Buttons */
.fab-group {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.fab {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.fab:hover { transform: scale(1.1); }
.fab-wa { background: #25D366; }
.fab-call { background: var(--primary-color); }

/* Booking Modal */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-color);
    font-family: inherit;
}

.form-actions {
    margin-top: 20px;
}

.form-actions .btn { width: 100%; border: none; }

/* ------------------------------------- */
/* AI Chat Widget Styling               */
/* ------------------------------------- */

.ai-widget-container {
    position: fixed;
    bottom: 170px; /* Above the FAB group */
    right: 20px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Toggle Button */
.ai-toggle-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #f1c40f);
    border: none;
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
}

.ai-toggle-btn svg {
    width: 28px;
    height: 28px;
    stroke: #000;
    stroke-width: 2.5;
}

/* Chat Window */
.ai-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid var(--border-color);
}

.ai-chat-window.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* Header */
.ai-header {
    background: var(--primary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-avatar {
    font-size: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #000;
    font-weight: 800;
}

.ai-status {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
}

.ai-close-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Messages Area */
.ai-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.ai-message {
    display: flex;
    max-width: 85%;
}

.ai-message.user {
    align-self: flex-end;
}

.ai-message.model {
    align-self: flex-start;
}

.ai-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ai-message.user .ai-bubble {
    background: var(--primary-color);
    color: #000;
    border-bottom-right-radius: 2px;
}

.ai-message.model .ai-bubble {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
}

/* Input Area */
.ai-input-area {
    padding: 15px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.ai-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-soft);
    color: var(--text-color);
    outline: none;
    font-family: inherit;
}

.ai-input-area input:focus {
    border-color: var(--primary-color);
}

.ai-input-area button {
    background: var(--primary-color);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ai-input-area button:hover:not(:disabled) {
    transform: scale(1.1);
}

.ai-input-area button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Typing Indicator */
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite both;
    margin: 0 2px;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Dark Mode Overrides for AI Chat */
[data-theme="dark"] .ai-chat-window {
    background: #1e1e1e;
}
[data-theme="dark"] .ai-messages {
    background: #121212;
}
[data-theme="dark"] .ai-input-area {
    background: #1e1e1e;
}
[data-theme="dark"] .ai-message.model .ai-bubble {
    background: #2a2a2a;
    border-color: #444;
}
[data-theme="dark"] .ai-input-area input {
    background: #2a2a2a;
    border-color: #444;
}

/* Responsive */
@media (max-width: 992px) {
    /* Tablet specific adjustments if needed, but keeping main mobile logic for 768px */
    .hero-title { font-size: 3rem; }
    .two-col-grid { grid-template-columns: 1fr; gap: 40px; }
    .image-content { order: -1; }
    .section-padding { padding: 60px 0; }
}

@media (max-width: 768px) {
    
    /* ---- Header & Nav Layout for Mobile ---- */
    
    /* 1. Show the Mobile Toggle Button */
    .mobile-menu-btn { 
        display: flex; 
        margin-left: 10px;
    }

    /* 2. Nav Wrapper stays on header to hold Toggle + Menu Button */
    .nav-wrapper {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
        overflow: visible;
        right: auto;
        gap: 15px;
    }

    /* 3. The Actual Menu (The UL) behaves as the drawer */
    #main-nav {
        position: fixed;
        top: var(--nav-height);
        right: -100%; /* Hidden by default */
        width: 75%;
        max-width: 300px;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-color);
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        z-index: 999;
    }

    /* Slide in when wrapper is active */
    .nav-wrapper.active #main-nav {
        right: 0;
    }

    /* List styling in drawer */
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
        text-align: left;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-list a {
        display: block;
        font-size: 1.1rem;
        padding: 15px 0;
        width: 100%;
    }

    /* Book Now Button inside Menu */
    .nav-cta {
        display: block;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }
    
    .nav-list a.nav-cta::after { display: none; }

    /* ---- End Header & Nav ---- */

    /* General Layout fixes */
    .packages-grid, .adventure-grid {
        gap: 20px;
    }
    
    .hero { min-height: auto; height: 85vh; }
    
    .section-header h2 { font-size: 2rem; }
    
    .contact-grid { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }

    /* Mobile Chat Widget */
    .ai-chat-window {
        width: 90vw;
        right: -10px; /* Aligns visually center if widget container is right: 20px */
        bottom: 80px;
        height: 60vh;
    }

    .ai-close-mobile {
        display: block;
    }
}

@media (max-width: 576px) {
    .brand-text { display: none; } /* Hide text on very small screens if logo exists */
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; gap: 15px; }
    .hero-actions .btn { width: 100%; }
    
    .section-header h2 { font-size: 1.8rem; }
    .section-padding { padding: 50px 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-col h3 { margin-bottom: 1rem; }
    
    .fab { width: 50px; height: 50px; }
    .fab-group { right: 15px; bottom: 15px; }
    
    /* Ensure drawer fills width on small phones if needed */
    #main-nav { width: 100%; max-width: 100%; border-left: none; }

    /* AI Widget on small phones */
    .ai-widget-container {
        right: 15px;
        bottom: 155px;
    }
    .ai-chat-window {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 2000;
        transform: translateY(100%);
    }
    .ai-chat-window.active {
        transform: translateY(0);
    }
    .ai-toggle-btn {
        width: 50px;
        height: 50px;
    }
}
