/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .trucks-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-box button {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 1rem;
        border-radius: var(--radius);
    }
    
    .cities-grid,
    .trucks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab {
        border-bottom: 1px solid var(--gray-200);
        border-left: 3px solid transparent;
    }
    
    .tab.active {
        border-left-color: var(--primary);
        border-bottom-color: var(--gray-200);
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .city-card,
    .truck-card {
        padding: 1.5rem;
    }
    
    .truck-info {
        padding: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
}

/* High-resolution displays */
@media (min-resolution: 2dppx) {
    .truck-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .main-header,
    .main-footer,
    .search-box,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .truck-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}