/* ==========================================================================
   TABLET DEVICES (768px to 1199px)
   ========================================================================== */
@media screen and (max-width: 1199px) {
    
    /* Global Adjustments */
    :root {
        --section-spacing-y: 60px;
    }

    /* 1. Navigation Bar */
    .nav-list {
        gap: 1.5rem;
    }

    /* 2. Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }

    /* 3. Search Section */
    .search-box {
        padding: 0.5rem 0.5rem 0.5rem 1.5rem;
        gap: 1rem;
    }
    
    .search-btn {
        padding: 0.75rem 1.5rem;
    }

    /* 4. Featured Destination Cards */
    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 5. Tour Package Cards */
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 6. Why Choose ChaloChale */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 7. Testimonials */
    .testimonial-card {
        min-width: calc(50% - 1rem);
    }

    /* 8. Newsletter */
    .newsletter-card {
        gap: 2rem;
        padding: 2.5rem;
    }
    
    .newsletter-image img {
        max-width: 200px;
    }

    /* 9. Footer */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brand-column {
        grid-column: span 3;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        max-width: 100%;
    }
}

/* ==========================================================================
   MOBILE DEVICES (Below 768px)
   ========================================================================== */
@media screen and (max-width: 767px) {
    
    /* Global Adjustments */
    :root {
        --section-spacing-y: 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    /* 1. Navigation Bar */
    .navbar {
        height: 70px;
    }
    
    .nav-list, 
    .nav-actions {
        display: none; /* Assuming a JS mobile menu toggle will be added later */
    }
    
    .navbar-container {
        justify-content: center;
    }

    /* 2. Hero Section */
    .hero-section {
        min-height: 500px;
        height: 65vh;
        margin-top: 70px;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    /* 3. Search Section */
    .search-container {
        position: relative;
        bottom: 0;
        transform: none;
        margin-top: -30px;
        padding: 0 1rem;
    }
    
    .search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        gap: 1.25rem;
    }
    
    .search-divider {
        display: none;
    }
    
    .search-group {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.75rem;
    }
    
    .search-group:last-of-type {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* 4. Featured Destination Cards */
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .destination-content {
        padding: 1rem;
    }
    
    .destination-title {
        font-size: 1rem;
    }

    /* 5. Tour Package Cards */
    .packages-grid {
        grid-template-columns: 1fr;
    }

    /* 6. Why Choose ChaloChale */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 7. Testimonials */
    .testimonial-card {
        min-width: 100%;
        padding: 1.5rem;
    }

    /* 8. Newsletter */
    .newsletter-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .newsletter-image img {
        max-width: 150px;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        gap: 1rem;
    }
    
    .newsletter-input {
        width: 100%;
        padding: 1rem;
        box-shadow: var(--shadow-sm);
        background-color: var(--bg-main);
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 1rem;
    }

    /* 9. Footer */
    .footer {
        padding-top: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .brand-column {
        grid-column: span 1;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


/* ==========================================================================
   TABLET DEVICES (768px to 1199px)
   ========================================================================== */
@media screen and (max-width: 1199px) {
    .story-grid {
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   MOBILE DEVICES (Below 768px)
   ========================================================================== */
@media screen and (max-width: 767px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .story-content {
        order: 2;
    }
    
    .story-image-wrapper {
        order: 1;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
}


/* ==========================================================================
   TABLET DEVICES (768px to 1199px)
   ========================================================================== */
@media screen and (max-width: 1199px) {
    .contact-grid {
        gap: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .contact-detail-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   MOBILE DEVICES (Below 768px)
   ========================================================================== */
@media screen and (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-detail-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .detail-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .map-container {
        height: 300px;
    }
}