/* TravelPlan - Responsive CSS */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4, h5 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Navbar brand smaller on mobile */
    .navbar-brand {
        font-size: 1.3rem !important;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    /* Section padding reduction */
    section {
        padding: 2.5rem 0;
    }
    
    /* Card adjustments */
    .feature-card,
    .destination-card,
    .adventure-card,
    .culture-card,
    .luxury-card,
    .budget-card,
    .planning-card,
    .safety-card,
    .packing-card,
    .transport-card,
    .accommodation-card,
    .info-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Team member images smaller */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process step numbers smaller */
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Form elements */
    .contact-form .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Contact info */
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-6 {
        margin-bottom: 0.5rem;
    }
    
    /* Footer padding */
    footer {
        padding: 2.5rem 0 !important;
    }
    
    /* Animation disabled on mobile per requirements */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    /* Animation disabled on mobile per requirements */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 85vh;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    /* Card hover effects maintained on tablets */
    .feature-card:hover,
    .card:hover {
        transform: translateY(-3px);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced spacing for large screens */
    .container {
        max-width: 1140px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    /* Enhanced card effects on large screens */
    .feature-card:hover,
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-width: 767.98px) {
    .hero-section {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Reduce spacing in landscape mobile */
    .feature-card,
    .destination-card,
    .adventure-card,
    .culture-card,
    .luxury-card,
    .budget-card,
    .planning-card,
    .safety-card,
    .packing-card,
    .transport-card,
    .accommodation-card,
    .info-card {
        padding: 0.8rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina displays */
    .card,
    .feature-card,
    .contact-form .form-control {
        border-width: 0.5px;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .breadcrumb-nav,
    #gallery {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card,
    .feature-card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transform effects */
    .feature-card:hover,
    .card:hover,
    .destination-card:hover,
    .adventure-card:hover,
    .culture-card:hover,
    .luxury-card:hover,
    .budget-card:hover,
    .planning-card:hover,
    .safety-card:hover,
    .packing-card:hover,
    .transport-card:hover,
    .accommodation-card:hover,
    .info-card:hover,
    .btn-primary:hover {
        transform: none !important;
    }
    
    /* Keep color and border changes for accessibility */
    .feature-card:hover,
    .destination-card:hover,
    .adventure-card:hover,
    .culture-card:hover,
    .luxury-card:hover,
    .budget-card:hover,
    .planning-card:hover,
    .safety-card:hover,
    .packing-card:hover,
    .transport-card:hover,
    .accommodation-card:hover,
    .info-card:hover {
        border-width: 3px;
    }
}

/* Dark mode preferences (basic support) */

/* Focus improvements for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Container responsive improvements */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Grid system enhancements for specific sections */
@media (max-width: 575.98px) {
    /* Make all columns full width on mobile for better readability */
    .row .col-lg-2,
    .row .col-lg-3,
    .row .col-lg-4,
    .row .col-md-4,
    .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Team member grid adjustments */
    .team-member {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Process steps in single column */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Gallery responsive improvements */
    #gallery .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .card:hover,
    .btn-primary:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Larger touch targets */
    .btn,
    .nav-link,
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Form controls larger on touch */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
} 

.hero-section h1 {
    padding-top: 275px;
}