:root {
    --explore-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --explore-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --explore-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --explore-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --explore-radius: 12px;
    --explore-radius-sm: 8px;
    --nav-height: 64px;
    --content-max-width: 1280px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 100%);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Mouse follower glow effect (controlled via CSS variables) */
body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(var(--mouse-x, -1000px), var(--mouse-y, -1000px));
    transition: transform 0.15s ease-out;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 1024px) {
    body::after {
        opacity: 0.15;
    }
}

[data-theme="light"] {
    --explore-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --explore-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="corporate-light"] {
    --explore-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    --explore-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06);
}

[data-theme="corporate-dark"] {
    --explore-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

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

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--accent-dark);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--explore-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--accent));
    background-size: 200% 200%;
    color: var(--text-on-accent);
    border: 2px solid transparent;
    box-shadow: 0 4px 12px var(--accent-glow);
    animation: gradientShift 4s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow-strong);
    animation: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--text-on-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* ===== GRID LAYOUTS (DESKTOP) ===== */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.categories-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.categories-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* ===== NAVIGATION ===== */
.explore-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #002147 !important;
    background-color: #002147 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    transition: all var(--transition-normal);
}

/* Mobile navigation backdrop - base styles */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 998;
    display: none;
}

/* Force ALL navbar items and icons to be white always */
.explore-navbar,
.explore-navbar *,
.explore-navbar a,
.explore-navbar a:hover,
.explore-navbar a.active,
.explore-navbar .mobile-menu-btn,
.explore-navbar .mobile-menu-btn span,
.explore-navbar .explore-brand,
.explore-navbar .explore-login-btn,
.explore-navbar svg,
.explore-navbar svg * {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    background-color: transparent !important;
}

.explore-navbar .explore-login-btn {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.explore-navbar .explore-login-btn:hover {
    background: rgba(255,255,255,0.2) !important;
}

.explore-navbar .mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1) !important;
}

.explore-navbar.scrolled {
    background: #002147 !important;
    background-color: #002147 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

/* Force Oxford Blue always, no white overlay when scrolling to top */
.explore-navbar,
.explore-navbar.scrolled,
.explore-navbar:not(.scrolled) {
    background: #002147 !important;
    background-color: #002147 !important;
    backdrop-filter: none !important;
}

/* ABSOLUTE MAXIMUM PRIORITY - MOBILE MENU BUTTON ALWAYS WHITE */
.mobile-menu-btn,
.mobile-menu-btn:hover,
.mobile-menu-btn:active,
.mobile-menu-btn:focus,
.mobile-menu-btn.active,
nav .mobile-menu-btn,
nav .mobile-menu-btn:hover,
nav .mobile-menu-btn:active,
nav .mobile-menu-btn:focus,
nav .mobile-menu-btn.active,
.explore-navbar .mobile-menu-btn,
.explore-navbar .mobile-menu-btn:hover,
.explore-navbar .mobile-menu-btn:active,
.explore-navbar .mobile-menu-btn:focus,
.explore-navbar .mobile-menu-btn.active,
html body .mobile-menu-btn,
html body .mobile-menu-btn:hover,
html body .mobile-menu-btn:active,
html body .mobile-menu-btn:focus,
html body .mobile-menu-btn.active,
html body nav .mobile-menu-btn,
html body nav .mobile-menu-btn:hover,
html body nav .mobile-menu-btn:active,
html body nav .mobile-menu-btn:focus,
html body nav .mobile-menu-btn.active {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    position: relative !important;
    z-index: 1001 !important;
    border-radius: var(--explore-radius-sm) !important;
}

.mobile-menu-btn span,
nav .mobile-menu-btn span,
.explore-navbar .mobile-menu-btn span,
html body .mobile-menu-btn span,
html body nav .mobile-menu-btn span {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #ffffff !important;
    display: block !important;
    position: relative !important;
    z-index: 1002 !important;
    width: 26px !important;
    height: 2px !important;
    border-radius: 1px !important;
}

/* Force white on all theme variations */
[data-theme] .mobile-menu-btn span,
[data-theme="dark"] .mobile-menu-btn span,
[data-theme="light"] .mobile-menu-btn span,
[data-theme="corporate-light"] .mobile-menu-btn span,
[data-theme="corporate-dark"] .mobile-menu-btn span {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Ensure logo doesn't overlay menu button */
.explore-brand {
    z-index: 1 !important;
}

.explore-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.1em;
    transition: all var(--transition-fast);
}

.explore-brand:hover {
    transform: scale(1.02);
}

.explore-nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.explore-nav-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.625rem 1rem;
    border-radius: var(--explore-radius-sm);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.explore-nav-links a:hover,
.explore-nav-links a.active {
    color: var(--accent);
    background: var(--bg-hover);
    border-bottom-color: var(--accent);
}

.explore-login-btn {
    padding: 0.625rem 1.5rem;
    background: var(--accent);
    color: var(--text-on-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--explore-radius);
    transition: all var(--transition-normal);
}

.explore-login-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    color: var(--text-on-accent);
    box-shadow: 0 6px 16px var(--accent-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--explore-radius-sm);
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active,
.mobile-menu-btn:focus {
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
}

.mobile-menu-btn span {
    width: 26px;
    height: 2px;
    background: #ffffff !important;
    transition: all var(--transition-normal);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.mobile-menu-btn.active,
.mobile-menu-btn.active:hover,
.mobile-menu-btn.active:active,
.mobile-menu-btn.active:focus {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.4) !important;
    z-index: 1001 !important;
}

.mobile-menu-btn.active span {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Force all SVG elements and children to white (for mobile nav) */
@media (max-width: 768px) {
    /* MOBILE MENU BUTTON */
    .mobile-menu-btn {
        display: flex;
    }

    .explore-login-btn {
        display: none;
    }

    /* MOBILE NAVIGATION */
    .explore-nav-links {
        position: fixed;
        top: calc(var(--nav-height) + 0.75rem);
        left: 1rem;
        right: 1rem;
        background: #002147 !important;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.25rem;
        border-radius: var(--explore-radius);
        transform: translateY(-20px) scale(0.96);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        border: 1px solid rgba(255,255,255,0.1);
        max-height: calc(100vh - var(--nav-height) - 2rem);
        overflow-y: auto;
        z-index: 999;
    }

    .explore-nav-links::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
        opacity: 0.7;
    }

    .explore-nav-links.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .explore-nav-links a {
        position: relative;
        padding: 1rem 1.25rem;
        border-bottom: none !important;
        border-radius: var(--explore-radius-sm);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        overflow: hidden;
        transition: all var(--transition-normal);
        transform: translateX(-20px);
        opacity: 0;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
        font-weight: 600 !important;
    }

    .explore-nav-links.active a {
        transform: translateX(0);
        opacity: 1;
    }

    .explore-nav-links.active a:nth-child(1) { transition-delay: 50ms; }
    .explore-nav-links.active a:nth-child(2) { transition-delay: 100ms; }
    .explore-nav-links.active a:nth-child(3) { transition-delay: 150ms; }
    .explore-nav-links.active a:nth-child(4) { transition-delay: 200ms; }
    .explore-nav-links.active a:nth-child(5) { transition-delay: 250ms; }
    .explore-nav-links.active a:nth-child(6) { transition-delay: 300ms; }
    .explore-nav-links.active a:nth-child(7) { transition-delay: 350ms; }
    .explore-nav-links.active a:nth-child(8) { transition-delay: 400ms; }
    .explore-nav-links.active a:nth-child(9) { transition-delay: 450ms; }

    .explore-nav-links a:hover,
    .explore-nav-links a:active,
    .explore-nav-links a:focus,
    .explore-nav-links a.active {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
        font-weight: 600 !important;
        transform: translateX(5px) scale(1.02);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        background: rgba(255,255,255,0.15) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
    }

    .mobile-nav-backdrop {
        display: block !important;
    }

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

    /* FAB adjustments */
    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }

    .fab-main {
        width: 56px !important;
        height: 56px !important;
        min-height: 56px !important;
        min-width: 56px !important;
    }

    .explore-nav-links a:hover *,
    .explore-nav-links a:active *,
    .explore-nav-links a:focus *,
    .explore-nav-links a.active *,
    .explore-nav-links a:hover svg,
    .explore-nav-links a:active svg,
    .explore-nav-links a:focus svg,
    .explore-nav-links a.active svg {
        fill: #ffffff !important;
        stroke: #ffffff !important;
        color: #ffffff !important;
    }

    .explore-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .explore-gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .explore-gallery-preview img {
        height: 140px;
    }

    .explore-section {
        padding: 3rem 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid-4 {
        grid-template-columns: 1fr;
    }

    .categories-grid-5 {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .explore-navbar {
        padding: 0 1rem;
    }

    .explore-brand {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .experience-card img {
        height: 180px;
    }

    .explore-gallery-preview {
        grid-template-columns: 1fr;
    }

    .explore-gallery-preview img {
        height: 200px;
    }
}

/* ===== PACKAGE SECTIONS ===== */
.package-section {
    margin-bottom: 4rem;
}

.package-section .experience-card {
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.package-section .text-content-section {
    margin-top: 2rem;
}

/* ===== BEACH SECTIONS ===== */
.beach-section {
    margin-bottom: 4rem;
}

.beach-section .experience-card {
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.beach-section .text-content-section {
    margin-top: 2rem;
}

/* ===== PRINT STYLES ===== */
@media print {
    .explore-navbar,
    .cta-section,
    .explore-footer {
        display: none;
    }
    
    .experience-card {
        break-inside: avoid;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== FLOATING ACTION BUTTON MENU ===== */
.fab-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999999 !important;
    display: flex !important;
    pointer-events: all !important;
}

.fab-container * {
    pointer-events: all !important;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #002147 !important;
    border: none;
    color: #ffffff !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.fab-main.active {
    transform: scale(1.06);
}

.fab-menu {
    position: absolute;
    bottom: 68px;
    right: 0;
    display: flex;
    flex-direction: column;
    z-index: 999999 !important;
    pointer-events: none !important;
    gap: 0.75rem;
    align-items: flex-end;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
}

.fab-menu.active {
    pointer-events: all;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fab-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #002147 !important;
    border: none;
    color: #ffffff !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    transform: translateX(0);
}

.fab-item:hover {
    transform: translateX(-8px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

a.fab-item {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.fab-item:focus-visible,
.fab-main:focus-visible {
    outline: 3px solid var(--accent, #FFB800);
    outline-offset: 3px;
}

.fab-item svg,
.fab-main svg {
    stroke: #ffffff !important;
    fill: none !important;
}

/* WhatsApp action: real WhatsApp mark (filled white logo) on WhatsApp green */
.fab-item--whatsapp {
    background: #25D366 !important;
}

.fab-item--whatsapp:hover,
.fab-item--whatsapp:focus-visible {
    background: #1DA851 !important;
}

.fab-item--whatsapp svg {
    stroke: none !important;
    fill: #ffffff !important;
}

.fab-menu.active .fab-item:nth-child(1) { transition-delay: 50ms; }
.fab-menu.active .fab-item:nth-child(2) { transition-delay: 100ms; }
.fab-menu.active .fab-item:nth-child(3) { transition-delay: 150ms; }
.fab-menu.active .fab-item:nth-child(4) { transition-delay: 200ms; }
.fab-menu.active .fab-item:nth-child(5) { transition-delay: 250ms; }
.fab-menu.active .fab-item:nth-child(6) { transition-delay: 300ms; }

@media (min-width: 768px) {
    .fab-container {
        bottom: 2rem;
        right: 2rem;
    }
}