/* Basic body styling for overall page */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;

}

/* Header and Navbar basics */
header {
    background: #333;
    color: #fff;
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}
.logo {
    text-align: left;
}
.mnature-text {
            font-family: 'Dancing Script', cursive;
            font-size: 2em; /* Adjusted for smaller size */
            line-height: 0.8;
            margin-bottom: 0;
            display: inline-block; /* Essential for transform to work correctly */
            position: relative; /* For absolute positioning if needed, or just for context */
            /* Animation properties */
            animation: slideInMnature 1s ease-out forwards; /* 1 second duration, ease-out, stays at end */
            transform: translateX(-100%); /* Start off-screen to the left */
            opacity: 0; /* Start invisible */
        }

        .safaris-text {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.5em; /* Adjusted for smaller size */
            letter-spacing: 0.3em;
            text-transform: uppercase;
            margin-top: 5px;
            opacity: 0.8;
            /* Animation properties */
            animation: fadeInSafaris 1s ease-out 0.5s forwards; /* Fades in after Mnature starts, with a delay */
            opacity: 0; /* Start invisible */
        }
        /* Keyframes for "Mnature" slide-in */
        @keyframes slideInMnature {
            0% {
                transform: translateX(-100%); /* Start far left */
                opacity: 0;
            }
            100% {
                transform: translateX(0); /* Move to its original position */
                opacity: 1;
            }
        }
        /* Keyframes for "Safaris" fade-in */
        @keyframes fadeInSafaris {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 0.8;
            }
        }
.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a, .dropbtn {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .dropbtn:hover {
    color: #f0a500; /* Example hover color */
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f0a500;
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Header actions (Search and Enquire) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px 0 0 3px;
    outline: none;
}

.search-btn {
    padding: 5px 10px;
    background-color: #f0a500;
    color: #fff;
    border: 1px solid #f0a500;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #d39400;
}

.enquire-btn {
    background-color: #f0a500;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.enquire-btn:hover {
    background-color: #d39400;
}

/* Main content and sections */
.main-content {
    padding-top: 80px; /* Offset for fixed header */
}

.section {
    display: none; /* Hidden by default */
    padding: 40px 20px;
    width: 90%;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.section.active {
    display: block; /* Show the active section */
}

/* Hero Section styles*/
#home {
    /* Remove background-color here, as the slideshow will be the background */
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 100px 20px;
    box-shadow: none;
    background-size: cover;
    overflow: hidden;
    position: relative; /* Needed for absolute positioning of slideshow and content */
}

/* Slideshow Container */
.slideshow-container {
    position: absolute; /* Position absolutely within #home */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Place it behind the hero-content */
    max-width: none; /* Remove max-width to allow it to fill the background */
    margin: 0; /* Remove margin */
    border-radius: 0; /* Remove border-radius to fill the entire area */
}

.slideshow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text readability */
    z-index: 2; /* Ensure overlay is above images but below text */
}

.mySlides {
    display: none;
    width: 100%;
    height: 100%; /* Ensure slides fill the container */
}

.mySlides img {
    width: 100%;
    height: 100%; /* Ensure images fill the slide container */
    object-fit: cover;
    border-radius: 0; /* Remove border-radius for seamless background */
}

#home .hero-content {
    max-width: 800px;
    background: rgba(0,0,0,0.5); /* Semi-transparent overlay */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    z-index: 3; /* Ensure hero-content is above the slideshow and overlay */
    position: relative; /* Ensure it respects z-index */
}

/* Fading animation - remains the same */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
 
#home h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

#home h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: normal;
}

#home p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Wrap buttons on small screens */
}

.cta-button {
    display: inline-block;
    background-color: #f0a500;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none; /* Make buttons consistent */
    cursor: pointer;
}

.cta-button:hover {
    background-color: #d39400;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


/* Destinations Section styles */
#destinations .country-nav-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.country-btn {
    background: #eee;
    border: 1px solid #ccc;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.country-btn.active {
    background: #f0a500;
    color: #fff;
    border-color: #f0a500;
}

.country-section {
    display: none;
}

.country-section.active {
    display: block;
}

.destination-card {
    display: inline-block;
    background:white;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ccc;
    width: fit-content;
    font-family: Arial, Helvetica, sans-serif;
}

.destination-card img {
    width: 300px; /* Full width on small screens */
    height: auto; /* Fixed height */
    object-fit: cover;
    display: block;
    float: left;
    margin-right: 20px;

}

.destination-card .card-content {
    padding: 15px;
}

.destination-card h3 {
    margin-top: 0;
    color: #f0a500;
}

/* Booking Form styles (multi-step) */
#bookings .step {
    display: none; /* Hide steps by default */
}

#bookings .step.active {
    display: block; /* Show active step */
}

#bookings label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#bookings input[type="text"],
#bookings input[type="email"],
#bookings input[type="number"],
#bookings input[type="date"],
#bookings select,
#bookings textarea {
    width: calc(100% - 22px); /* Adjust for padding/border */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#bookings textarea {
    resize: vertical;
    min-height: 100px;
    background-color: #666;
}

.booking-buttons {
    margin-top: 20px;
    text-align: right;
}

.booking-buttons button {
    background-color:#444;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.booking-buttons button:hover {
    background-color:#333;
}

#prevBtn {
    background-color: #ccc;
}

#prevBtn:hover {
    background-color: #bbb;
}
/* Styling for the main section */
#trips {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        #trips h2,
        #trips h3 {
            text-align: center;
            color: #333;
        }

        #trips h3 {
            margin-top: 20px;
            margin-bottom: 10px;
        }

        /* Grid container for destinations within each country section */
        .destinations-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            /* Responsive grid */
            gap: 20px;
            /* Space between grid items */
            margin-top: 20px;
        }

        /* Styling for each individual destination block */
        .destination {
            border: 1px solid #ddd;
            padding: 15px;
            border-radius: 8px;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            /* Hide overflow if details are hidden */
        }

        .destination h3 {
            cursor: pointer;
            /* Indicate clickable title */
            color: #007bff;
            /* Highlight clickable title */
            margin-top: 0;
            margin-bottom: 10px;
            text-align: left;
            /* Align title left in the grid item */
        }

        .destination h3:hover {
            text-decoration: underline;
        }

        /* Styling for the hidden details section */
        .details {
            display: block;
            /* Hidden by default */
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }

        .details img.trip-image {
            max-width: 100%;
            /* Ensure image fits within the container */
            height: auto;
            border-radius: 4px;
            margin-bottom: 15px;
        }

        .details p {
            margin-bottom: 10px;
        }

        .details ul {
            margin-bottom: 10px;
            padding-left: 20px;
        }

        .details ul li {
            margin-bottom: 5px;
        }

        /* Optional: Add some spacing around the hr */
        hr {
            margin: 40px 0;
            border: 0;
            border-top: 1px solid #ccc;
        }
        
            /* Video Section styles */
#videoSection .video-container {
    position: relative; /* Needed for intrinsic video size */
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 10%;
    overflow: hidden;
    max-width: 200%;
    background: #000; /* Background for letterboxing */
    margin: 20px 0;
}

#videoSection video {
    position: absolute;
    object-fit: fill;
    width: 100%;
    height: 100%;
}

/* About Us Section styles */
#about-us h3 {
    color: #f0a500;
    margin-top: 20px;
}

/* Contact Section styles */
#contact form {
    display: grid;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 20px auto;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#contact textarea {
    resize: vertical;
    min-height: 150px;
}

#contact button {
    background-color: #f0a500;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

#contact button:hover {
    background-color: #d39400;
}

.contact-info {
    text-align: center;
    margin-top: 30px;
}

.contact-info p {
    margin: 5px 0;
}

.contact-info a {
    color: #f0a500;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer styles */
Footer { /* Using the element selector 'Footer' might not be standard, usually use 'footer' */
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.footer-content {
    width: 90%;
    margin: 0 auto;
}

footer p { /* Correct element selector 'footer' */
    margin: 5px 0;
}

footer a { /* Correct element selector 'footer' */
    color: #f0a500;
    text-decoration: none;
}

footer a:hover { /* Correct element selector 'footer' */
    text-decoration: underline;
}

.social-icons {
    margin-top: 15px;
    display: flex;           
    justify-content: center; 
    gap:20px;            
}

.social-icons a {
    color:#bbb;
    text-decoration: none;
    font-size: 30px;
    transition: 0.3s;
}

.social-icons a:hover {
    color:#007bff
}

.copyright {
      font-size: 14px;
      color: #666;
      margin-top: 15px;
}

/* Popup styles (Enquiry Form) */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.form-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    max-width: 450px;
    width: 90%;
}

.form-popup h2 {
    margin-top: 0;
    color: #f0a500;
    text-align: center;
    margin-bottom: 20px;
}

.form-popup label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-popup input[type="text"],
.form-popup input[type="email"],
.form-popup textarea {
    width: calc(100% - 22px); /* Adjust for padding/border */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-popup textarea {
    resize: vertical;
    min-height: 100px;
}

.form-popup button {
    background-color: #f0a500;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.form-popup button[type="button"] {
    background-color: #ccc;
}

.form-popup button:hover {
    background-color: #d39400;
}

.form-popup button[type="button"]:hover {
    background-color: #bbb;
}


/* Search Results Overlay */
.search-results-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1003;
    overflow-y: auto; /* Allow scrolling if results are long */
}

.search-results-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh; /* Limit height for scrolling */
    overflow-y: auto;
}

.search-results-content h3 {
    margin-top: 0;
    color: #f0a500;
    margin-bottom: 15px;
}

#searchResultsList {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

#searchResultsList li {
    background: #eee;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
}

#searchResultsList li strong {
    color: #333; /* Keep bold text color standard */
}


.search-results-content button {
    background-color: #ccc;
    color: #333;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-results-content button:hover {
    background-color: #bbb;
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    .logo {
        flex-grow: 1; /* Allow logo to take space */
    }

    .nav-toggle {
        display: block; /* Show toggle button */
    }

    .nav-links {
        display: none; /* Hide nav links by default */
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex; /* Show nav links when active */
    }

    .nav-links a, .dropbtn {
         padding: 10px 0; /* More vertical padding */
         width: 100%; /* Full width links */
         border-bottom: 1px solid #444; /* Separator */
    }

     .dropdown {
        width: 100%; /* Full width dropdown */
     }

    .dropdown-content {
        position: static; /* Position normally in the flow */
        background-color: #f0f0f0; /* Lighter background for sub-items */
        box-shadow: none;
        width: 100%;
    }

    .dropdown-content a {
        padding-left: 30px; /* Indent dropdown items */
        color: #333;
    }

    .header-actions {
        width: 100%;
        justify-content: center; /* Center actions below nav */
        margin-top: 15px;
    }

    .search-container {
        flex-grow: 1; /* Allow search to take available space */
        max-width: 300px; /* Limit max width */
    }

    .search-input {
        flex-grow: 1;
    }

    .destination-card {
        flex-direction: column; /* Stack image and content vertically */
    }

    .destination-card img {
        width: 100%;
        height: auto; /* Auto height to maintain aspect ratio */
    }

    .hero-buttons {
        flex-direction: column;
    }

     .cta-button {
        width: 80%; /* Make buttons wider */
        margin: 5px auto; /* Center buttons */
    }
}
