/* Responsive Design */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .floating-card {
        left: -120px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .main-content {
        margin-top: 70px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-content {
        padding: 2rem 0;
        text-align: center !important;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p.lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem !important;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        margin: 0.3rem;
    }
    
    .hero-image-container {
        height: 60vh;
        margin-top: 2rem;
    }
    
    .hero-image-container img {
        border-radius: var(--border-radius);
    }
    
    .floating-card {
        position: relative !important;
        top: -300px !important;
        left: auto !important;
        transform: none !important;
        margin-top: -80px;
        margin-left: 2rem;
        margin-right: 2rem;
        animation: none;
    }
    
    .floating-card .card {
        max-width: none;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    /* Floating dots adjustments */
    .dot-1 {
        top: 10%;
        left: 5%;
    }
    
    .dot-2 {
        top: 30%;
        right: 10%;
    }
    
    .dot-3 {
        bottom: 40%;
        left: 10%;
    }
    
    .dot-4 {
        top: 50%;
        right: 20%;
    }
    
    .dot-5 {
        bottom: 10%;
        right: 5%;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .main-content {
        margin-top: 65px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .search-form {
        margin-top: 1rem;
        width: 100%;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-content p.lead {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
        margin: 0.3rem 0;
    }
    
    .hero-image-container {
        height: 50vh;
        margin-top: 1.5rem;
    }
    
    .floating-card {
        margin-top: -60px;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .hero-stats .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Section spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Typography adjustments */
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Tour cards */
    .tour-card .card-img-container {
        height: 220px;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    /* Feature cards */
    .feature-card {
        margin-bottom: 2rem;
    }
    
    /* Newsletter section */
    .newsletter-form .col-md-8,
    .newsletter-form .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* Footer adjustments */
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p.lead {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
        width: 180px;
    }
    
    .hero-image-container {
        height: 40vh;
        margin-top: 1rem;
    }
    
    .floating-card {
        margin-top: -40px;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .floating-card .card-body {
        padding: 1.5rem !important;
    }
    
    .avatar {
        width: 30px;
        height: 30px;
    }
    
    .hero-stats {
        margin-top: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.3rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    /* Sections */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Typography */
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .tour-card .card-img-container,
    .destination-card .card-img-container {
        height: 200px;
    }
    
    .card-body {
        padding: 1.2rem !important;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .tour-details {
        font-size: 0.85rem;
    }
    
    /* Badges */
    .badge-featured,
    .badge-popular,
    .badge-discount {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Feature cards */
    .feature-icon i {
        font-size: 2rem !important;
    }
    
    .feature-card h5 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Newsletter */
    .newsletter-section h3 {
        font-size: 1.4rem;
    }
    
    .newsletter-section p {
        font-size: 0.9rem;
    }
    
    .newsletter-form .form-control {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .newsletter-form .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .footer h6 {
        font-size: 1rem;
    }
    
    .footer p,
    .footer li {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
    
    /* Floating dots - smaller on mobile */
    .dot-1, .dot-3, .dot-5 {
        width: 12px;
        height: 12px;
    }
    
    .dot-2, .dot-4 {
        width: 10px;
        height: 10px;
    }
    
    /* Hide some decorative elements on very small screens */
    .dot-4,
    .dot-5 {
        display: none;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-image-container {
        height: 80vh;
    }
    
    .floating-dots {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .shadow-hover:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    .tour-card:hover .tour-image,
    .destination-card:hover .destination-image {
        transform: none;
    }
    
    .tour-card:hover .card-overlay,
    .destination-card:hover .card-overlay {
        opacity: 0;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link:hover::before {
        width: 0;
    }
}
