/* --- Global Styles & Reset --- */

:root {
    /* Define a modern color palette */
    --primary-color: #4B0082; /* Deep Indigo for main actions/active state */
    --secondary-color: #6c757d;
    --accent-color: #1CC43E; /* The specified green (can be adjusted to #6A5ACD for Slate Blue if preferred) */
    --error-color: #dc3545; /* Added Red color for exclusions */
    --text-color: #333;
    --background-light: #f8f9fa;
    --nav-height: 100px; /* Adjusted to accommodate 90px logo */
    /* IMPROVEMENT 2: Defining a base shadow for consistency */
    --shadow-base: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); 
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif, Arial;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: var(--nav-height); /* Offset for fixed nav */
    background: #ffffff;
}

/* Specific adjustment for pages that use the tour detail main section */
.detail-page-body {
    padding-top: 0; /* Remove padding because the detail page doesn't use the ScrollSpy logic which relies on a fixed offset */
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.padded-section {
    padding: 80px 0;
}

.background-light {
    background-color: var(--background-light);
}

/* Headings */
h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

/* --- Buttons & Links --- */

.cta-button, .primary-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

/* IMPROVEMENT 3: Added focus state accessibility */
.cta-button:focus, .primary-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.cta-button:hover, .primary-button:hover {
    background-color: #6a0dad; /* A slightly darker indigo on hover */
    transform: translateY(-2px);
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* IMPROVEMENT 3: Added focus state accessibility */
.secondary-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* WhatsApp Button in Nav */
.whatsapp-btn {
    background-color: var(--accent-color); 
    border-radius: 50%; /* Make it circular */
    width: 45px; /* Set fixed width */
    height: 45px; /* Set fixed height */
    padding: 0; /* Remove padding */
    font-size: 1.5rem; /* Increase icon size */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the icon */
    color: white !important; /* Force white text */
}

.whatsapp-btn:hover {
    background-color: #169330; /* Darker green on hover */
    transform: none; /* Override CTA transform */
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 90px; /* Reduced from 90px to better fit the nav height */
    max-width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

/* IMPROVEMENT 3: Added focus state accessibility for links */
.nav-links li a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

/* Active Link Indicator (Underline effect) */
.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Hide WhatsApp on mobile in the main list, it will be in the footer */
.nav-whatsapp {
    display: none; 
}


/* --- Mobile Menu Toggle (Hamburger) --- */
.menu-toggle {
    display: block; /* Shown by default, hidden on desktop via media query */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px;
    position: relative;
    z-index: 1010; /* Above nav links */
}

/* IMPROVEMENT 3: Added focus state accessibility */
.menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Hamburger Animation (When menu-toggle has class 'open') */
.menu-toggle.open .hamburger-icon {
    background: transparent;
}

.menu-toggle.open .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.open .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}


/* --- Hero Section (Carousel) --- */
.hero-carousel-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    width: 100%;
    /* We remove the background image from this container as it's now on the slides */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: var(--nav-height); /* Account for fixed nav */
    overflow: hidden; /* Crucial for slide effect */
}

.hero-slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    opacity: 0; /* Default hidden state */
    transition: opacity 1s ease-in-out; /* Smooth transition */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1; /* Visible state */
    z-index: 5; /* Keep active slide above inactive ones */
}

.hero-content {
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Floating Navigation Arrows (for carousel) - Z-index increased */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px 15px;
    cursor: pointer;
    font-size: 2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 15; /* Above slides and content */
    border: none; /* IMPROVEMENT: Ensure it looks like an arrow, not a button border */
}

.hero-nav-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

/* IMPROVEMENT 3: Added focus state accessibility */
.hero-nav-arrow:focus {
    outline: 2px solid white;
    outline-offset: 3px;
    opacity: 1;
}

.hero-prev {
    left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.hero-next {
    right: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

/* Navigation Dots (NEW) */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background-color: var(--primary-color); /* Deep Indigo for active dot */
    transform: scale(1.2);
}


/* --- About Section --- */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* IMPROVEMENT 2: Used modern shadow variable */
    box-shadow: var(--shadow-base); 
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}


/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    /* IMPROVEMENT 2: Used modern shadow variable */
    box-shadow: var(--shadow-base);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    /* IMPROVEMENT 2: Used modern shadow variable */
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}


/* --- Tours Section --- */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tour-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    /* IMPROVEMENT 2: Used modern shadow variable */
    box-shadow: var(--shadow-base);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
    /* IMPROVEMENT 2: Used modern shadow variable */
    box-shadow: var(--shadow-hover);
}

.tour-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-image {
    transform: scale(1.05);
}

.tour-duration {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tour-info {
    padding: 20px;
}

.tour-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tour-info p {
    color: #555;
    margin-bottom: 15px;
}

.tour-details-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.tour-details-meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.tour-link-btn {
    width: 100%;
    text-align: center;
}


/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.contact-info h3, .contact-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    /* IMPROVEMENT 2: Used modern shadow variable */
    box-shadow: var(--shadow-base);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    /* IMPROVEMENT 3: Added focus state accessibility */
    outline: 2px solid var(--accent-color); 
    outline-offset: 3px;
}

.contact-form textarea {
    resize: vertical;
}


/* --- Social Links (Used in Contact and Footer) --- */

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

/* Specific adjustment for links on the contact page */
.contact-page-links {
    margin-top: 30px;
}

.social-image-link {
    width: 35px;
    height: 35px;
    transition: transform 0.2s ease;
}

.social-image-link:hover {
    transform: translateY(-3px);
}

.social-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* --- Footer --- */

footer {
    background-color: #646464;
    color: #ffffff;
    padding-top: 50px;
}

/* FIX: Changed to Grid for balanced, aligned columns on desktop */
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns on desktop */
    gap: 30px;
    padding-bottom: 30px;
}

.footer-logo img {
    height: 100px;
    filter: brightness(0) invert(1); /* Makes the logo white for contrast */
}

.footer-content h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: #fffefe;
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    text-align: left; /* Ensure text remains left-aligned */
}

.footer-contact i {
    color: white; /* Changed from var(--primary-color) to white */
    font-size: 1rem;
}

.footer-contact a {
    color: white; /* Changed from var(--primary-color) to white */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary-color); /* Keeping the primary color for hover effect for contrast */
}

/* Styling for TourRadar Badge Container */
.tourradar-badge-container {
    padding: 20px 0;
    text-align: center; /* Center the badge */
    display: flex; /* Enable flexbox for side-by-side alignment */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    gap: 30px; /* Space between the two badges */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Apply rounded corners to the widget */
#operator_badge_widget_small {
    display: inline-block; 
    margin: 0; /* Removed auto margin as flexbox handles centering */
    border-radius: 10px; 
    overflow: hidden; /* Clips any square content inside */
}

/* New: Style for the KAYAK badge to align it properly */
.kayak-badge-link {
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0; /* Fixes potential whitespace issues with inline images */
}

.kayak-badge-img {
    height: 150px; /* Enforce the height specified in HTML */
    width: auto;
    border-radius: 10px; /* Match the rounded corners */
}

/* NEW STYLES FOR TRIPADVISOR WIDGET */
.tripadvisor-widget-container {
    padding: 20px 40px; /* Add padding below the badge */
    text-align: center;
}

.TA_cdsratingsonlywide {
    display: inline-block; /* Treat the widget as a block but centered */
    border-radius: 8px; /* Apply the desired round corners to the container */
    overflow: hidden; /* Ensure content respects the rounded corners */
    /* Adjustments to make it visually fit in the dark footer */
    background-color: #f1f1f1; /* Light background for the widget */
    padding: 5px; /* Add slight padding around the widget content */
}

/* Targeting the <a> tag inside the widget to ensure it respects the rounded corners */
.TA_cdsratingsonlywide a {
    display: block;
    border-radius: 5px;
    overflow: hidden;
}

/* FIX: Ensure the TripAdvisor image within the widget is centered and fits */
.TA_cdsratingsonlywide img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
/* END NEW STYLES FOR TRIPADVISOR WIDGET */

/* --- Mobile Media Queries --- */

.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------
   TOUR DETAIL PAGE STYLES 
   (IMPROVEMENT 4: Added necessary detail page styles, which were omitted)
--------------------------------------------------------------------- */

.tour-detail-main {
    width: 100%;
    /* IMPROVEMENT: Use a min-height calculation to ensure the footer is pushed down */
    min-height: calc(100vh - 400px); 
    background-color: var(--background-light);
}

.tour-hero-header {
    position: relative;
    width: 100%;
    /* IMPROVEMENT: Increased height from 60vh to 75vh */
    height: 95vh; 
    background-size: cover !important;
    background-position: center center !important;
    color: white;
    display: flex;
    align-items: flex-end; /* Align content to the bottom */
    padding-bottom: 40px;
}

.tour-hero-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.tour-hero-content {
    z-index: 5;
}

.tour-type {
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--accent-color);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.tour-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    color: white;
}

.tour-hero-content h2 {
    font-size: 2rem;
    font-weight: 400;
    color: white;
    margin-bottom: 20px;
}

.tour-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 20px;
}

.tour-meta-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tour-price-range {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-price-range i {
    color: var(--accent-color);
}

.tour-content-container {
    display: grid;
    /* IMPROVEMENT: Changed from 2fr 1fr to a standard 66/33 split for common layout */
    grid-template-columns: 2fr 1fr; 
    gap: 40px;
    padding: 60px 20px;
}

/* Itinerary Section */
.tour-itinerary-section {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    /* IMPROVEMENT 2: Used modern shadow variable */
    box-shadow: var(--shadow-base);
}

.tour-itinerary-section h2 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 2rem;
}

.itinerary-day {
    padding: 20px 0;
    border-bottom: 1px dashed #ddd;
}

.itinerary-day:last-child {
    border-bottom: none;
}

.itinerary-day h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.itinerary-day i {
    color: var(--accent-color);
}

/* Features Section (Inclusions/Exclusions) */
.tour-features-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tour-feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    /* IMPROVEMENT 2: Used modern shadow variable */
    box-shadow: var(--shadow-base);
}

.tour-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-feature-card.inclusions h3 i {
    color: var(--accent-color); /* Green check */
}

.tour-feature-card.exclusions h3 i {
    color: var(--error-color); /* Red cross */
}

.tour-feature-card ul {
    list-style: none;
    padding: 0;
}

.tour-feature-card li {
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
    color: #555;
    font-size: 0.95rem;
}

.tour-feature-card li:last-child {
    border-bottom: none;
}

/* Booking Form Section */
.booking-section {
    /* Set to span across the two columns on the detail page */
    grid-column: 1 / -1; 
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    /* IMPROVEMENT 2: Used modern shadow variable */
    box-shadow: var(--shadow-base);
}

.booking-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.booking-section p {
    margin-bottom: 30px;
}


/* ------------------------------------------------------------------
   MEDIA QUERIES
--------------------------------------------------------------------- */


/* --- Media Query for MOBILE (Max 767px) --- */
@media (max-width: 767px) {
    
    body {
        padding-top: 80px; /* Adjust for smaller nav on mobile */
    }

    nav {
        height: 80px; /* Smaller nav height */
        padding: 0 10px;
    }
    
    .logo img {
        height: 55px; /* Smaller logo */
    }

    /* Mobile Menu Container */
    .nav-right {
        position: fixed;
        top: 80px; /* Start below the nav */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px); /* Fill remaining viewport */
        background: white;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
        overflow-y: auto; /* Allow scrolling for long menus */
    }

    .nav-right.open {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: left;
    }

    .nav-links li a.active::after {
        display: none; /* Hide mobile underline for cleaner look */
    }
    
    /* Show the dedicated WhatsApp link on mobile */
    .nav-whatsapp {
        display: flex !important; /* Force show on mobile */
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        border-bottom: none;
    }
    
    .nav-whatsapp .whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    /* Adjustments for main sections */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
    
    .padded-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    /* Tours Section */
    .tours-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer Content Fix for Mobile */
    .footer-content {
        grid-template-columns: 1fr; 
        align-items: center;
        text-align: center;
    }
    
    .footer-content h4 {
        margin-top: 20px;
    }
    
    .footer-contact .contact-item {
        justify-content: center;
    }
    
    .footer-social .social-links {
        justify-content: center;
    }

    /* Adjust badge container for mobile stacking */
    .tourradar-badge-container {
        flex-direction: column; /* Stack badges vertically on mobile */
        gap: 20px;
    }
    
    /* Shrink the KAYAK badge on mobile for better fit */
    .kayak-badge-img {
        height: 120px; /* Smaller size for mobile */
    }
    
    /* Mobile adjustment for TripAdvisor widget */
    .TA_cdsratingsonlywide {
        max-width: 90%; /* Limit width on small screens */
    }

    /* TOUR DETAIL PAGE SPECIFIC */
    .tour-hero-header {
        height: auto;
        padding: 100px 10px 30px; /* Reduced padding */
    }

    .tour-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tour-hero-content h2 {
        font-size: 1.8rem; 
    }

    .tour-content-container {
        grid-template-columns: 1fr; /* Stack itinerary and features */
        gap: 30px;
    }

    .tour-itinerary-section h2, .booking-section h2 {
        text-align: center;
    }
    
    .tour-price-range {
        font-size: 1.2rem;
    }
    
    .tour-meta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .booking-section {
        padding: 30px 15px;
        /* IMPROVEMENT: Ensure the booking section takes up full width on mobile */
        grid-column: auto; 
    }
    
    /* Mobile adjustments for floating arrows */
    .hero-nav-arrow {
        font-size: 1.5rem;
        padding: 15px 10px;
    }
}


/* --- Media Query for TABLET (Min 768px and Max 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Adjust Tours grid to prevent crowding on tablet */
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 20px;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
    }

    .tour-content-container {
        grid-template-columns: 2fr 1.5fr; /* Keep the two-column layout */
        gap: 20px;
    }
    
    /* Footer Content Fix for Tablet: 2 columns */
    .footer-content {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* Align items to the left on tablet/desktop */
    .footer-logo, .footer-links, .footer-contact, .footer-social {
        text-align: left;
    }
    
    .footer-logo img {
        margin: 0; /* Remove auto margins */
    }
    
    .footer-social .social-links {
        justify-content: flex-start; /* Left align social icons */
    }
}


/* --- Media Query for DESKTOP (Min 768px) --- */
@media (min-width: 768px) {
    
    .menu-toggle {
        display: none; 
    }
    
    .nav-links {
        transform: translateX(0); /* Ensure links are visible on desktop */
        position: static;
        width: auto;
        height: auto;
        box-shadow: none;
        padding: 0;
    }
    
    /* Ensure the WhatsApp link is visible on desktop */
    .nav-whatsapp {
        display: flex;
        /* Position the desktop button correctly at the end of the list */
        position: static;
        transform: none;
        margin-left: 20px; /* Spacing from the last nav item */
    }
}