/* ====================================
   RESPONSIVE MOBILE STYLES - CONTINUED
   ==================================== */

/* Touch device optimizations - continued */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .listing-card:hover,
    .brand-card:hover,
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Better touch feedback */
    .btn:active,
    .contact-btn:active,
    .tab-btn:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
    
    /* Larger close buttons */
    .close,
    .gallery-close,
    .notification-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better scrolling */
    .modal-content,
    .conversations-list,
    .chat-messages {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* High resolution screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .listing-card,
    .brand-card,
    .modal-content {
        border: 0.5px solid rgba(0, 0, 0, 0.1);
    }
}

/* Print styles */
@media print {
    .bottom-navigation,
    .back-to-home,
    .search-section,
    footer,
    .btn,
    .admin-actions {
        display: none !important;
    }
    
    .listing-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --card-bg: #2a2a2a;
        --border-color: #404040;
    }
    
    body {
        background: var(--bg-color);
        color: var(--text-color);
    }
    
    .listing-card,
    .brand-card,
    .modal-content {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktop screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}