/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Smooth Mobile Menu Transition */
.nav-links {
    transition: transform 0.3s ease-in-out;
}

.nav-active {
    transform: translateX(0%) !important;
}

/* Button Loading State */
button:disabled {
    background-color: #888 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Focus states for accessibility */
input:focus, textarea:focus, select:focus {
    outline: 2px solid #556B2F;
    border-color: transparent;
}

/* Ensure the Hero section text is readable */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #4A4A4A; /* Dark Khaki */
    background-color: #f9f9f9;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: #556B2F; /* Dark Olive Green */
    color: #F0E68C; /* Khaki */
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info span { margin-right: 20px; color: #F0E68C; }
.contact-info i { color: #fff; margin-right: 5px; }
.social-links a { color: #fff; margin-left: 15px; }
.social-links a:hover { color: #F0E68C; }

/* Navigation */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h2 {
    font-family: 'Roboto Slab', serif;
    color: #556B2F; /* Dark Olive Green */
    font-size: 1.5rem;
}

.logo span { color: #8FBC8F; /* Khaki-ish */ }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    font-weight: 600;
    color: #556B2F;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #8FBC8F;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #8FBC8F;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown & Accordion Styles */
.dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid #556B2F;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown:hover .dropdown-menu { display: block; }

.accordion-item { border-bottom: 1px solid #eee; }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #556B2F;
    transition: background 0.3s;
}

.accordion-header:hover { background: #f4f4f4; }
.accordion-header i { font-size: 0.8rem; }

.accordion-body {
    display: none;
    background: #f9f9f9;
    padding: 0;
}

.accordion-item.active .accordion-body { display: block; }

.accordion-body li a {
    display: block;
    padding: 10px 30px;
    font-size: 0.9rem;
    color: #666;
    text-transform: none;
    border-bottom: 1px solid #eee;
}

.accordion-body li a:hover {
    background: #eee;
    color: #556B2F;
    padding-left: 35px; /* Indent effect */
}

/* Mega Menu Styles */
.dropdown-menu.mega-menu {
    min-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mega-column h4 {
    color: #556B2F;
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    border-bottom: 2px solid #F0E68C;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.mega-column ul li {
    margin-bottom: 8px;
    margin-left: 0; /* Reset nav-links li margin */
}

.mega-column ul li a {
    font-size: 0.9rem;
    text-transform: none;
    font-weight: 400;
    color: #666;
}

.mega-column ul li a:hover { color: #556B2F; padding-left: 5px; }

.btn-contact {
    background: #8FBC8F; /* Khaki-ish */
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.5;
}

.btn-contact:hover {
    background: #e67e22;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}
/* Hero Section */
.hero {
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left {
    flex: 1 1 70%;
    text-align: left;
}

.hero-right {
    flex: 1 1 30%;
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Search Widget */
#search-widget-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 25px;
    border-radius: 8px;
    display: block;
    width: min(100%, 960px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border: 2px solid #8FBC8F; /* khaki-accent */
    position: relative;
}

#search-widget-form::before {
    content: " Inquiry a tour?";
    font-weight: 900;
    font-size: 1.2rem;
    color: #556B2F;
    position: static;
    top: -22px;
    left: 30px;
    padding: 0 6px;
}


.search-widget-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.form-group {
    flex: 1;
    text-align: left;
}

#search-widget-form .form-group {
    flex: 1 1 0;
    min-width: 0;
}

.search-destinations {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 10px;
    max-height: 220px;
    overflow-y: auto;
}

.search-destinations .accordion-header {
    padding: 8px 0;
}

.search-destinations .accordion-body {
    padding: 4px 0 8px 10px;
}

.search-destinations label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #556B2F; /* Dark Olive Green */
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
}

/* Search form: flat controls, no rounded corners */
#search-widget-form .form-group select,
#search-widget-form .form-group input,
#search-widget-form .form-group textarea {
    border-radius: 0;
    border-color: #8FBC8F; /* Khaki-ish */
}

/* search button styling */
#search-widget-form .btn-submit {
    background: #556B2F;
    color: #fff;
    padding: 12px 20px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
#search-widget-form .btn-submit:hover {
    background: #435a2f;
}
/* on focus */
#search-widget-form .form-group select:focus,
#search-widget-form .form-group input:focus,
#search-widget-form .form-group textarea:focus {
    border-color: #556B2F; /* Dark Olive Green */
    outline: none;
}

/* align checkboxes and radio buttons */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
}

.btn-search {
    background: #8FBC8F; /* Khaki-ish */
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    height: 46px; /* Match select height approx */
    transition: 0.3s;
}
.btn-search:hover { background: #556B2F; /* Dark Olive Green */ }

/* Section Separators - Professional Safari Style */
.about-section::after,
.events-section::after,
.conservation-section::after,
.booking-section::after,
.contact-section::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, transparent, #556B2F 15%, #556B2F 85%, transparent);
    margin: 60px auto 0;
    position: relative;
}

/* Decorative ornaments with leaf pattern */
.about-section::before,
.events-section::before,
.conservation-section::before,
.booking-section::before {
    content: '🍃  🍃  🍃';
    display: block;
    text-align: center;
    font-size: 1.2rem;
    color: #8FBC8F;
    margin-bottom: 30px;
    letter-spacing: 15px;
    padding-left: 15px;
}

/* Decorative elements between sections */
.about-section,
.events-section,
.conservation-section,
.booking-section {
    position: relative;
    padding-bottom: 80px;
}

/* About Section */
.about-section, .conservation-section, .events-section { padding: 80px 20px; background: #fff; }
.about-content, .conservation-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 40px;
    align-items: flex-start;
}
.events-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.7;
}
.events-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.events-content ul {
    list-style: none;
    padding: 0;
}
.events-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}
.events-content ul li:before {
    content: '\f0a4'; /* FontAwesome calendar-alt */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #556B2F;
}

/* Event Cards Grid */
.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.event-caption {
    padding: 20px;
    background: #fafafa;
}

.event-caption p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #4A4A4A;
}

.event-caption p:last-child {
    margin-bottom: 0;
}

.event-caption p strong {
    color: #556B2F;
    font-weight: 700;
}

.event-caption p em {
    color: #666;
    font-style: italic;
}

.about-text,
.conservation-text {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-highlights,
.conservation-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* make bullets in conservation-text appear nicely */
.conservation-text {
    padding-left: 20px;
}

.conservation-text ol {
    list-style: none;
    padding: 0;
}

.conservation-text ol li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.conservation-text ol li:before {
    content: '\f06e'; /* FontAwesome leaf icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #556B2F;
}

.conservation-highlights {
    padding-left: 20px;
}

.conservation-highlights ul {
    list-style: none;
    padding: 0;
}

.conservation-highlights ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.conservation-highlights ul li:before {
    content: '\f06e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #556B2F;
}

.slogan-wrapper {
    margin-top: 30px;
}

.slogan {
    display: inline-block;
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #556B2F;
    padding: 12px 24px;
    border-left: 4px solid #F0E68C;
    background: #fdfaf0;
}
.vision-mission-box { margin-bottom: 40px; }
.vision-mission-box:last-child { margin-bottom: 0; }
.vision-mission-box h3 { color: #556B2F; font-family: 'Roboto Slab', serif; font-size: 1.8rem; margin-bottom: 15px; }
.vision-mission-box p { font-size: 1.1rem; line-height: 1.8; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.preference-col h4 {
    color: #556B2F;
    margin-bottom: 15px;
    font-family: 'Roboto Slab', serif;
    border-bottom: 2px solid #F0E68C;
    padding-bottom: 5px;
    display: inline-block;
}

.preference-col label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    transition: color 0.2s;
}

.preference-col label:hover { color: #556B2F; }

.preference-col input[type="radio"],
.preference-col input[type="checkbox"] { margin-right: 10px; accent-color: #556B2F; }

.preference-col .accordion-body { padding: 10px; }

.preference-action { text-align: center; margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; }

/* Booking Section */
.booking-section { padding: 60px 20px 80px 20px; background: #f4f4f4; position: relative; }

/* Multi-step Form Styles */
.form-step { display: none; animation: fadeIn 0.5s; }
.form-step.active { display: block; }
.form-step h4 { color: #556B2F; margin-bottom: 20px; font-size: 1.2rem; border-bottom: 1px solid #ddd; padding-bottom: 10px; }

.form-progress { display: flex; justify-content: center; margin-bottom: 30px; }
.step-indicator { width: 35px; height: 35px; background: #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 15px; font-weight: bold; color: #fff; position: relative; }
.step-indicator.active { background: #556B2F; }

.step-buttons { display: flex; justify-content: space-between; margin-top: 30px; }
.step-buttons.right { justify-content: flex-end; }
.btn-prev, .btn-next { padding: 12px 25px; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 1rem; transition: 0.3s; }
.btn-prev { background: #ccc; color: #333; }
.btn-prev:hover { background: #bbb; }
.btn-next { background: #556B2F; color: #fff; }
.btn-next:hover { background: #8FBC8F; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Form Feedback */
.form-message { padding: 15px; margin-bottom: 20px; border-radius: 4px; display: none; }
.form-message.loading { display: block; background: #e2e6ea; color: #333; }
.form-message.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Contact Form Section */
.contact-section { padding: 60px 20px 80px 20px; margin-bottom: 0; position: relative; background: #fff; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group textarea { height: 150px; resize: vertical; font-family: inherit; }

.btn-submit {
    background: #8FBC8F; /* Khaki-ish */
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-submit:hover { background: #556B2F; /* Dark Olive Green */ }

/* Footer */
.main-footer {
    background: #556B2F; /* Dark Olive Green */
    color: #bbb;
    padding: 60px 0 20px;
}

.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: #F0E68C; /* Khaki */ margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: #f39c12; }
.footer-col p { color: #F0E68C; text-align: justify; line-height: 1.6; }
.footer-col i { color: #fff; margin-right: 5px; }
.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; /* Height of nav bar */
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }

    /* Top Bar Responsive */
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        display: none; /* Hidden by default on mobile too */
        width: 100%;
    }

    .dropdown-menu.mega-menu {
        min-width: 100%;
        transform: none;
    }
    .mega-menu-grid { grid-template-columns: 1fr; }

    .dropdown.active .dropdown-menu { display: block; } /* JS toggle for mobile dropdown */

    .mobile-menu-icon { display: block; }
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero h1 { font-size: 2.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    
    .hero { min-height: 500px; padding: 80px 0; }

    .about-content {
        grid-template-columns: 1fr;
    }

    /* Event Cards Responsive */
    .event-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .event-card {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .event-card img {
        width: 200px;
        height: 150px;
        flex-shrink: 0;
    }

    .event-caption {
        flex: 1;
        padding: 15px;
    }

    /* Section Separators Responsive */
    .about-section::before,
    .events-section::before,
    .conservation-section::before,
    .booking-section::before {
        font-size: 1rem;
        margin-bottom: 20px;
        letter-spacing: 10px;
        padding-left: 10px;
    }

    .about-section::after,
    .events-section::after,
    .conservation-section::after,
    .booking-section::after,
    .contact-section::after {
        margin: 40px auto 0;
        width: 80px;
    }

    .about-section,
    .events-section,
    .conservation-section,
    .booking-section {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .btn-search,
    .btn-submit {
        width: 100%;
    }
    .preferences-grid { grid-template-columns: 1fr; }
    .mega-menu-grid { gap: 20px; }
    .footer-col { text-align: center; }

    /* Event Cards Mobile */
    .event-cards {
        grid-template-columns: 1fr;
        margin: 20px 0;
    }

    .event-card {
        flex-direction: column;
    }

    .event-card img {
        width: 100%;
        height: 200px;
    }

    .event-caption {
        padding: 15px;
    }

    .event-caption p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    /* Section Separators Mobile Optimization */
    .about-section::before,
    .events-section::before,
    .conservation-section::before,
    .booking-section::before {
        font-size: 0.9rem;
        margin-bottom: 15px;
        letter-spacing: 6px;
        padding-left: 0;
    }

    .about-section::after,
    .events-section::after,
    .conservation-section::after,
    .booking-section::after,
    .contact-section::after {
        margin: 30px auto 0;
        width: 60px;
    }

    .about-section,
    .events-section,
    .conservation-section,
    .booking-section {
        padding-bottom: 50px;
    }
}

/* Search Results Styles */
.search-results {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tour-result {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #556B2F;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-result:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tour-result h4 {
    color: #556B2F;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.tour-result p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95rem;
}

.tour-result p strong {
    color: #333;
}

.btn-booking {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #556B2F;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-booking:hover {
    background-color: #3F4E20;
}

.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}