:root {
    --apple-black: #000000;
    --apple-white: #ffffff;
    --apple-gray: #f5f5f7;
    --apple-dark-gray: #86868b;
    --apple-blue: #0066cc;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--apple-white);
    color: var(--apple-black);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animations & Transitions */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Specific offsets for variety */
.reveal-up {
    transform: translateY(50px);
}

.reveal-scale {
    transform: scale(0.95);
}

/* Navigation */
.navbar {
    background-color: #26465c;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    padding: 1.2rem 1rem;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar.scrolled {
    background-color: #26465c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-link {
    color: white !important;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--apple-black);
    /* Darker fallback */
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Darker to make text pop */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    /* Slightly larger */
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    color: white;
    /* White text for video background */
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero .btn-apple {
    background-color: var(--apple-white);
    /* White button for contrast */
    color: var(--apple-black);
    border-radius: 980px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero .btn-apple:hover {
    background-color: #f5f5f7;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Tours Section */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 5rem;
}

.tour-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--apple-gray);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    margin-bottom: 2rem;
    cursor: pointer;
    height: 100%;
}

.tour-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tour-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.tour-card:hover img {
    transform: scale(1.08);
}

.tour-card-body {
    padding: 2rem;
}

.tour-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tour-card-text {
    color: var(--apple-dark-gray);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Circular Logo */
@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.logo-circle {
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--apple-white);
    background-color: white;
    padding: 2px;
    animation: floatLogo 3s ease-in-out infinite;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    margin-top: 2px;
}

/* Animated Hamburger */
.custom-toggler {
    border: none;
    background: transparent;
    padding: 0;
    width: 30px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-toggler:focus {
    box-shadow: none;
    outline: none;
}

.hamburger {
    width: 26px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Active State (X) */
.custom-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.custom-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}
.custom-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .navbar {
        background-color: #26465c; /* Oceanic dark blue */
        padding: 0.5rem 1rem;
    }
    
    .navbar.scrolled {
        background-color: #26465c;
        padding: 0.3rem 1rem;
    }

    .navbar > .container {
        position: relative;
        justify-content: flex-end; /* Push hamburger to right */
        min-height: 70px;
    }
    
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        z-index: 10;
    }

    .logo-circle {
        width: 75px !important;
        height: 75px !important; /* Slightly enlarged */
    }

    .navbar-brand span {
        display: none !important;
    }

    /* Hamburger color */
    .hamburger span {
        background-color: white !important;
    }

    /* Mobile menu styles */
    .navbar-collapse {
        background-color: #26465c;
        border-radius: 0 0 15px 15px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .nav-link {
        color: white !important;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
        z-index: 9999;
    }
}

.inter-section-cta {
    padding: 2rem 0 5rem;
    text-align: center;
}

/* Gallery & Enrichment Styles */
.gallery-section {
    padding: 6rem 0 8rem;
    background-color: var(--apple-white);
}

.gallery-subtitle {
    text-align: center;
    color: var(--apple-dark-gray);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* Masonry-style gallery grid */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 12px;
    padding: 0 12px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background-color: #e8e8e8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.gallery-overlay span {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-item:hover .gallery-overlay span {
    opacity: 1;
    transform: scale(1);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Immersive Divider */
.immersive-hero {
    height: 60vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 4rem 0;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.3s ease;
}

.immersive-hero h2 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.immersive-hero.small {
    height: 40vh;
}

.immersive-hero.small h2 {
    font-size: 2.5rem;
}

/* ─── About Section ─── */
.about-section {
    padding: 7rem 0 6rem;
    background-color: var(--apple-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 5rem;
}

/* Left text */
.about-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--apple-blue);
    margin-bottom: 1rem;
}

.about-heading {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: var(--apple-black);
    margin-bottom: 1.5rem;
}

.about-body {
    color: var(--apple-dark-gray);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.btn-apple-dark {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--apple-black);
    color: white;
    border-radius: 980px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-apple-dark:hover {
    background-color: #333;
    transform: translateY(-2px);
    color: white;
}

/* Right image + stats */
.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.about-image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.13);
}

.about-image-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-image-frame:hover img {
    transform: scale(1.04);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.badge-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--apple-black);
    line-height: 1;
}

.badge-label {
    font-size: 0.78rem;
    color: var(--apple-dark-gray);
    margin-top: 4px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    background: white;
    border-radius: 18px;
    padding: 1.4rem 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--apple-black);
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--apple-dark-gray);
    margin-top: 4px;
}

/* Values row */
.about-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.value-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.value-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--apple-black);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--apple-dark-gray);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-heading {
        font-size: 2.4rem;
    }

    .about-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-top: 3rem;
    }

    .tour-card img {
        height: 250px;
    }



    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    .gallery-item.tall {
        grid-row: span 2;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-heading {
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .immersive-hero {
        height: 40vh;
        background-attachment: scroll !important;
        border-radius: 20px;
        margin: 2rem 0;
    }

    .immersive-hero h2 {
        font-size: 2.2rem;
    }
}

/* ─── Section Subtitle ─── */
.section-subtitle {
    text-align: center;
    color: var(--apple-dark-gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: -2rem auto 2.5rem;
}

/* ─── Tour Card Price ─── */
.tour-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--apple-black);
    margin: 0;
}

.tour-card-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--apple-dark-gray);
}

/* ─── Tours Accordion ─── */
.tours-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tour-accordion-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.35s ease;
    scroll-margin-top: 100px;
}

.tour-accordion-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.tour-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    gap: 1rem;
    text-align: left;
    transition: background 0.3s ease;
}

.tour-accordion-header:hover {
    background: rgba(0,0,0,0.02);
}

.tour-header-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1;
    min-width: 0;
}

.tour-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.tour-header-left h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--apple-black);
    line-height: 1.3;
}

.tour-meta {
    font-size: 0.78rem;
    color: var(--apple-dark-gray);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.tour-meta i {
    font-size: 0.7rem;
}

.tour-header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.tour-price-badge {
    background: linear-gradient(135deg, #0066cc, #0055aa);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 980px;
    white-space: nowrap;
}

.tour-price-badge small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.85;
}

.tour-chevron {
    font-size: 0.75rem;
    color: var(--apple-dark-gray);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.tour-accordion-item.open .tour-chevron {
    transform: rotate(180deg);
}

/* Accordion body – collapse/expand */
.tour-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0 1.5rem;
}

.tour-accordion-item.open .tour-accordion-body {
    padding: 0 1.5rem 1.5rem;
}

.tour-accordion-body > p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tour-child-price {
    display: inline-block;
    background: #e8f4fd;
    color: #0066cc;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.8rem !important;
}

.tour-child-price i {
    margin-right: 4px;
}

.tour-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.tour-detail-col h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--apple-black);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tour-detail-col h5 i {
    color: var(--apple-blue);
    font-size: 0.8rem;
}

.tour-detail-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tour-detail-col ul li {
    font-size: 0.85rem;
    color: #555;
    padding: 3px 0 3px 16px;
    position: relative;
    line-height: 1.5;
}

.tour-detail-col ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--apple-blue);
    font-weight: 700;
}

.tour-book-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    background-color: #25d366 !important;
    font-size: 0.95rem;
}

.tour-book-btn:hover {
    background-color: #1fb855 !important;
}

/* ─── Accordion Responsive ─── */
@media (max-width: 768px) {
    .tour-accordion-header {
        padding: 1rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tour-header-left h4 {
        font-size: 0.92rem;
    }

    .tour-emoji {
        font-size: 1.5rem;
    }

    .tour-price-badge {
        font-size: 0.95rem;
        padding: 0.25rem 0.7rem;
    }

    .tour-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tour-accordion-body {
        padding: 0 1rem;
    }

    .tour-accordion-item.open .tour-accordion-body {
        padding: 0 1rem 1.2rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
        margin: -1.5rem auto 2rem;
        padding: 0 1rem;
    }
}