/* Mobile First Responsive Styles */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Hero Section */
    .hero .carousel-inner {
        min-height: 500px;
        max-height: 600px;
    }
    
    .hero .carousel-caption {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        padding: 1rem;
    }
    
    .hero .carousel-caption h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero .carousel-caption .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
        margin: 0.25rem;
        width: auto;
        display: inline-block;
    }
    
    .hero .carousel-caption div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    /* About Section */
    .about-section {
        margin-top: 0 !important;
        padding-top: 3rem !important;
    }
    
    .about-section .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
   .about-images-grid {
        height: 350px;
        gap: 1rem;
    }
    
    .about-images-grid::before,
    .about-images-grid::after {
        display: none;
    }
    
    .about-content h2 {
        font-size: 1.75rem;
    }
    
    .about-stats h3 {
        font-size: 1.5rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }

    /* Destinations Section */
    .hottest-destinations .display-5 {
        font-size: 1.75rem;
    }
    
    .hottest-destinations .lead {
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-section .display-5 {
        font-size: 1.75rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem !important;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Sub Header */
    .sub-header {
        height: auto;
        padding: 4rem 0;
    }
    
    .sub-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .sub-header .lead {
        font-size: 1rem;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero .carousel-inner {
        min-height: 550px;
        max-height: 700px;
    }
    
    .hero .carousel-caption {
        width: 85%;
    }
    
    .hero .carousel-caption h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .carousel-caption .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .about-section {
        margin-top: 0 !important;
    }
    
    .about-images-grid {
        height: 400px;
    }
    
    .contact-form-wrapper {
        padding: 2rem !important;
    }
    
    .sub-header h1 {
        font-size: 2.5rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero .carousel-inner {
        min-height: 600px;
        max-height: 750px;
    }
    
    .hero .carousel-caption h1 {
        font-size: 2.75rem;
        margin-bottom: 1.25rem;
    }
    
    .hero .carousel-caption p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .about-section {
        margin-top: -20px !important;
    }
    
    .about-images-grid {
        height: 450px;
    }
    
    .about-stats h3 {
        font-size: 1.75rem;
    }
    
    .contact-info {
        margin-bottom: 3rem;
    }
    
    .sub-header h1 {
        font-size: 3rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero .carousel-caption h1 {
        font-size: 3.5rem;
    }
    
    .about-images-grid {
        height: 500px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container-md {
        max-width: 1140px;
    }
}

/* Utility Classes for Better Spacing */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Improve touch targets on mobile */
@media (max-width: 991.98px) {
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    .form-control {
        min-height: 48px;
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.5rem;
    }
    
    /* Show mobile logo (favicon) instead of full logo */
    .navbar-brand .logo-full {
        display: none !important;
    }
    
    .navbar-brand .logo-mobile {
        display: inline-block !important;
        width: 40px;
        height: 40px;
    }
    
    /* Make mobile menu overlay content instead of pushing it down */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #F7F9FE;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin: 0;
    }
    
    .navbar-collapse .navbar-nav {
        padding: 1rem 0;
    }
    
    /* Adjust menu line height and padding for mobile */
    header .nav-item a.nav-link {
        padding: 0.5rem 1rem !important;
        line-height: 1.5;
    }
    
    /* Add spacing between menu items on mobile */
    header .navbar-nav .nav-item {
        padding: 0.25rem 0;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero .carousel-inner {
        min-height: 450px;
        max-height: 500px;
    }
    
    .hero .carousel-caption {
        padding: 1rem 15px;
    }
    
    .hero .carousel-caption h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero .carousel-caption .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .hero,
    .carousel,
    header,
    footer,
    .btn,
    .navbar {
        display: none;
    }
    
    .contact-form-wrapper,
    .contact-icon {
        display: none;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .carousel-overlay {
        background: rgba(0,0,0,0.7);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-fade .carousel-item {
        transition: none;
    }
    
    .hero .carousel-fade .carousel-item {
        opacity: 1;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented later if needed */
}
