/* --- CUSTOM FONTS --- */
@font-face {
    font-family: 'Lito 2';
    src: url('fonts/lito2.woff2') format('woff2'),
         url('fonts/lito2.woff') format('woff');
    font-weight: normal; 
    font-style: normal; 
    font-display: swap;
}

/* CSS VARIABLES FOR BRANDING */
:root {
    --primary-gold: #fed176;
    --brand-green: #006838;
    --secondary-gold: #be852b;
    --pure-white: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f4f4;
}

/* RESET & BASE STYLES */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    background-color: var(--bg-light); 
    color: var(--text-dark);
    line-height: 1.6; 
    position: relative; 
    font-family: 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

/* Background Locking System when Modal Popup is Active */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
    position: fixed !important;
}

h1, h2, h3, h4, h5, h6, .nav-title { 
    font-family: 'Lito 2', 'Trebuchet MS', sans-serif; 
    font-weight: normal; 
}

h1, h2, h3, h4, h5, h6, p, label, li, .btn-primary, .logo-link { 
    position: relative; 
}

/* GRUNGE TEXTURE OVERLAY */
body::before {
    content: ""; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    z-index: 1; 
    background-image: url('images/grunge.png'); 
    background-repeat: repeat; 
    pointer-events: none; 
    opacity: 0.25; 
    mix-blend-mode: soft-light; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* NAVIGATION & BRAND HEADER CONTAINER */
nav {
    background-color: var(--brand-green); 
    color: var(--pure-white);
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 9995; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo-link { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.nav-logo { 
    max-height: 50px; 
    width: auto; 
    display: block; 
}

.nav-title { 
    font-size: 1.6rem; 
    color: var(--primary-gold); 
    letter-spacing: 1px; 
}

/* PRELOADER */
#preloader {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: rgba(254, 209, 118, 0.95); 
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 99999; 
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out; 
}

.preloader-logo { 
    max-width: 360px; 
    animation: pulse 1.5s infinite; 
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.preloader-hidden { 
    opacity: 0 !important; 
    visibility: hidden !important; 
}

/* STICKY WHATSAPP DRAWER */
.sticky-whatsapp {
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    background-color: #25D366; 
    color: white;
    width: 65px; 
    height: 65px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center;
    align-items: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    z-index: 9990; 
    transition: transform 0.3s ease; 
    animation: gentleBounce 3s infinite;
}

.sticky-whatsapp:hover { 
    transform: scale(1.1); 
    background-color: #1ebe5d; 
    animation: none; 
}

@keyframes gentleBounce { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-10px); } 
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(0, 104, 56, 0.8), rgba(0, 104, 56, 0.9)), url('https://images.unsplash.com/photo-1516426122078-c23e76319801?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: var(--pure-white); 
    text-align: center; 
    padding: 100px 20px;
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 10px; 
    color: var(--primary-gold); 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
}

.btn-primary {
    background-color: var(--primary-gold); 
    color: var(--brand-green);
    padding: 12px 30px; 
    font-size: 1.1rem; 
    font-family: inherit; 
    font-weight: bold; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background 0.3s;
}

.btn-primary:hover { 
    background-color: var(--secondary-gold); 
    color: var(--pure-white); 
}

/* SECTION LAYOUTS */
.section-container { 
    padding: 60px 5%; 
    max-width: 1200px; 
    margin: auto; 
    position: relative; 
    z-index: 5; 
}

.section-title { 
    text-align: center; 
    color: var(--brand-green); 
    font-size: 2rem; 
    margin-bottom: 40px; 
}

/* --- BORDERLESS EXPERIENTIAL VIDEO GRID --- */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    width: 100%;
}

.attraction-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    cursor: pointer;
    background-color: #111;
}

/* Background HTML5 Video Layer */
.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.65;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* Readable Gradient Scrim */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    z-index: 2;
    transition: background 0.4s ease;
}

.card-title {
    color: var(--primary-gold);
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 5px;
    transition: transform 0.4s ease;
}

.card-description {
    color: #eee;
    font-size: 1.1rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.card-btn {
    align-self: flex-start;
    background-color: var(--primary-gold);
    color: var(--brand-green);
    padding: 10px 20px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 12px;
}

/* Navigation Controls Frame hidden by default on standard desktop platforms */
.mobile-controls-row {
    display: none;
}

/* DESKTOP HOVER STATES */
@media (min-width: 769px) {
    .attraction-card:hover .card-video {
        opacity: 1;
        transform: scale(1.05);
    }
    
    .attraction-card:hover .card-overlay {
        background: linear-gradient(to top, rgba(0, 104, 56, 0.98) 0%, rgba(0, 104, 56, 0.88) 100%);
        padding-top: 20px;
    }
    
    .attraction-card:hover .card-title {
        margin-bottom: 8px; 
        padding-top: 8px; /* This gives you a clean gap at the very top */
    }

    .attraction-card:hover .card-description {
        opacity: 1;
        max-height: 280px;
        margin-top: 8px;
        margin-bottom: auto;
    }

    .attraction-card:hover .card-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE INTERACTIVE INTERACTION CORE CONFIGURATION */
@media (max-width: 768px) { 
    nav {
        padding: 0.8rem 4%;
    }

    /* Target Landscape Structural Asset Configuration Rules */
    .nav-title {
        display: none !important; 
    }

    .nav-logo {
        content: url('images/logolandscape.png') !important;
        max-height: 44px;
        width: auto;
    }

    /* Scale header booking layout triggers down to perfectly retain 1-line layout profiles */
    .btn-primary {
        padding: 8px 14px;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    /* Permanent 2-column mobile matrix grid structure */
    .tour-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
    } 

    .attraction-card .card-video {
        opacity: 0.55; 
    }
    
    .attraction-card .card-overlay {
        padding: 14px;
        background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.1) 100%);
    }

    .attraction-card .card-title { 
        font-size: 1.25rem; 
        margin-bottom: 8px;
    }

    /* Description remains dormant until toggled open by the popup modal */
    .attraction-card .card-description {
        opacity: 0;
        max-height: 0;
        display: none;
    }

    /* Main discovery structural tap link button style setup */
    .attraction-card .card-btn {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.88rem; 
        padding: 6px 14px;
        margin-top: 4px;
        display: inline-block;
    }

    /* --- MOBILE FULL-SCREEN EXPERIENTIAL MODAL POPUP --- */
    .attraction-card.expanded-state {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99990 !important;
        aspect-ratio: auto !important;
        cursor: default;
    }

    .attraction-card.expanded-state .card-video {
        opacity: 1;
    }

    /* Fixed Layout structure layout starting content cleanly from the very top */
    .attraction-card.expanded-state .card-overlay {
        background: linear-gradient(to top, rgba(0, 104, 56, 0.6) 0%, rgba(0, 104, 56, 0.95) 60%, rgba(0, 104, 56, 0.98) 100%) !important;
        padding: 40px 24px 80px 24px !important; /* Extra padding lifts the interaction zone up */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Aligns textual elements straight to the top */
    }

    .attraction-card.expanded-state .card-title {
        font-size: 1.8rem;
        margin-top: 60px;
        margin-bottom: 16px;
        text-align: center;
    }

    /* Description framework cleanly fitted right below title at the top */
    .attraction-card.expanded-state .card-description {
        display: block !important;
        opacity: 1 !important;
        max-height: 40vh !important; /* Allocates optimal viewport headroom */
        overflow-y: auto !important;
        font-size: 1.05rem;
        line-height: 1.45;
        text-align: center;
        margin-bottom: auto; /* Pushes the button rules down logically */
        padding-right: 5px;
    }

    /* Structural flex control bar layout container pulled significantly up from mobile chrome baselines */
    .attraction-card.expanded-state .mobile-controls-row {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-top: 30px;
        padding-bottom: 24px; /* Safely lifts bottom buttons off layout browser system items */
    }

    .mobile-booking-trigger {
        background-color: var(--primary-gold);
        color: var(--brand-green);
        padding: 14px 28px;
        font-size: 1.1rem;
        font-weight: bold;
        border-radius: 6px;
        border: none;
        width: 100%;
        max-width: 280px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .mobile-close-trigger {
        background: transparent;
        color: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.25);
        padding: 8px 18px;
        font-size: 0.85rem;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Yellow Badge String with continuous 3.5s double bounce/fade sequence loops */
    .mobile-next-arrow {
        position: fixed;
        right: 16px;
        top: 65%; /* Sitting nicely parallel with your descriptions/actions */
        transform: translateY(-50%);
        background: none !important;
        border: none !important;
        color: var(--primary-gold);
        font-size: 0.85rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        z-index: 99995;
        box-shadow: none !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        pointer-events: auto;
        
        /* Loop runs over 3.5-second cycles continuously */
        animation: hintSequenceLoop 3.5s ease-in-out infinite;
    }

    /* Custom intricate sequence engine driving: bounce, bounce, fade, sleep */
    @keyframes hintSequenceLoop {
        /* 0s - 1.2s: Execute horizontal double bounce left */
        0%, 100%, 15%, 35%, 55% { transform: translateY(-50%) translateX(0); opacity: 1; }
        25% { transform: translateY(-50%) translateX(-8px); opacity: 1; }
        45% { transform: translateY(-50%) translateX(-4px); opacity: 1; }
        
        /* 1.2s - 1.8s: Smoothly drop view opacity out to hide element */
        70% { transform: translateY(-50%) translateX(0); opacity: 1; }
        85%, 99.9% { transform: translateY(-50%) translateX(5px); opacity: 0; }
    }
}

/* CALCULATOR SECTION */
.calculator-wrapper { 
    background: var(--pure-white); 
    padding: 40px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    max-width: 600px; 
    margin: auto; 
}

.form-group { 
    margin-bottom: 20px; 
}

label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: bold; 
    color: var(--brand-green); 
}

select, input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-size: 1rem; 
    position: relative; 
    z-index: 10; 
    font-family: inherit; 
}

.result-box { 
    background: var(--bg-light); 
    padding: 20px; 
    margin-top: 20px; 
    border-left: 5px solid var(--primary-gold); 
    display: none; 
}

.result-box h4 { 
    font-size: 2rem; 
    color: var(--brand-green); 
    margin-bottom: 5px; 
}

.whatsapp-btn { 
    background-color: #25D366; 
    color: white; 
    width: 100%; 
    margin-top: 10px; 
}

.whatsapp-btn:hover { 
    background-color: #1ebe5d; 
}

/* FAQ & CONTACT SECTION */
.faq-layout {
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 40px;
}

.faq-container, .contact-box {
    background: var(--pure-white); 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-box { 
    border-top: 5px solid var(--primary-gold); 
}

/* FAQ STYLES */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--pure-white);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background-color: #f9f9f9;
    border: none;
    outline: none; 
    font-weight: bold;
    color: var(--brand-green);
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    position: relative;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-gold);
    font-weight: normal;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-question:hover { 
    background-color: #f1f1f1; 
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--pure-white);
}

.faq-answer p { 
    padding: 0 20px 20px 20px; 
    color: #555; 
    margin-top: -5px; 
}

.contact-list { 
    list-style: none; 
}

.contact-list li { 
    margin-bottom: 15px; 
    font-size: 0.95rem; 
}

.contact-list a { 
    color: var(--brand-green); 
    text-decoration: underline; 
}

/* DA CUSTOMS PROMO */
.developer-promo {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    padding: 40px 20px; 
    background-color: #111; 
    color: #ccc;
    position: relative; 
    z-index: 5;
}

.dev-btn {
    background-color: #8b0000; 
    color: white !important; 
    padding: 12px 30px; 
    border-radius: 30px;
    font-weight: bold; 
    margin-top: 15px; 
    font-size: 1rem; 
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
    transition: transform 0.2s, background-color 0.2s; 
    text-decoration: none;
}

.dev-btn:hover { 
    background-color: #a50000; 
    transform: translateY(-3px); 
}

/* BREAKPOINTS & RESPONSIVE LAYOUT */
@media (max-width: 1200px) {
    .tour-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) { 
    .hero h1 { font-size: 2.2rem; }
    .faq-layout { grid-template-columns: 1fr; }
    
    .desktop-only-link {
        display: none !important;
    }
}