/* Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .destinations-grid {
        grid-template-columns: 2.5fr 1fr 1fr;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .destinations-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 16px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu .btn-primary {
        margin-top: 1rem;
        width: 100%;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .popular-destinations {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Grids */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 250px);
        gap: 1rem;
    }
    
    .destination-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Section Spacing */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    /* Navigation */
    .navbar .container {
        padding: 0.75rem 16px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    /* Hero Section */
    .hero {
        height: 80vh;
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .search-input {
        padding: 14px 14px 14px 44px;
        font-size: 15px;
    }
    
    .search-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .destination-tags {
        justify-content: center;
    }
    
    .destination-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    /* Grids */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }
    
    .destination-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    /* Article Cards */
    .article-image {
        height: 200px;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-form .form-group {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-input {
        margin-bottom: 1rem;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .newsletter-description {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand .logo-text {
        font-size: 24px;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    /* Section Spacing */
    section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }
    
    /* Navigation */
    .navbar .container {
        padding: 0.75rem 12px;
    }
    
    /* Hero Section */
    .hero {
        height: 70vh;
    }
    
    .hero-content {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .search-form {
        padding: 0.75rem;
    }
    
    .search-input {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 16px;
    }
    
    .search-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .popular-label {
        font-size: 13px;
    }
    
    .destination-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    /* Cards */
    .article-card,
    .service-card,
    .offer-card {
        margin-bottom: 1rem;
    }
    
    .article-content,
    .service-card {
        padding: 1rem;
    }
    
    .offer-content {
        padding: 1rem;
    }
    
    .destination-content {
        padding: 1.5rem 1rem 1rem;
    }
    
    /* Typography adjustments */
    .section-title {
        font-size: 1.5rem;
    }
    
    .article-title,
    .service-title {
        font-size: 1rem;
    }
    
    .destination-name {
        font-size: 1.25rem;
    }
    
    /* Newsletter */
    .newsletter-title {
        font-size: 1.25rem;
    }
    
    .newsletter-description {
        font-size: 0.95rem;
    }
    
    .newsletter-input,
    .newsletter-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand .logo-text {
        font-size: 20px;
    }
    
    .footer-description {
        font-size: 14px;
    }
    
    .footer-social {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .service-btn,
    .offer-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Form adjustments */
    .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Extra Small Mobile (up to 380px) */
@media (max-width: 380px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .search-form {
        padding: 0.5rem;
    }
    
    .destination-tags {
        gap: 0.5rem;
    }
    
    .destination-tag {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .modal-content {
        width: 99%;
        margin: 5px;
    }
}

/* Landscape Mobile Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .popular-destinations {
        margin-top: 1rem;
    }
    
    section {
        padding: 30px 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .newsletter-section,
    .footer,
    .modal {
        display: none;
    }
    
    .articles-section,
    .destinations-section {
        break-inside: avoid;
    }
    
    .article-card,
    .destination-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=3840&h=2160&fit=crop&q=90');
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented later if needed */
    /* Currently the site uses a light theme by design */
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Hover Effects Only on Devices That Support Hover */
@media (hover: hover) and (pointer: fine) {
    .article-card:hover .article-image img,
    .destination-card:hover .destination-image img {
        transform: scale(1.05);
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
    
    .destination-tag:hover {
        transform: translateY(-2px);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link::after {
        display: none;
    }
    
    .article-card,
    .destination-card,
    .service-card,
    .offer-card {
        transform: none;
    }
    
    .article-card:active,
    .destination-card:active,
    .service-card:active,
    .offer-card:active {
        transform: scale(0.98);
    }
    
    /* Increase touch targets */
    .nav-link {
        padding: 12px 0;
    }
    
    .destination-tag {
        padding: 8px 14px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}