/* ===== RESPONSIVE STYLES ===== */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Small devices (portrait tablets and large phones, 600px to 768px) */
@media only screen and (min-width: 601px) and (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-container {
        height: 400px;
    }
}

/* Medium devices (landscape tablets, 768px to 992px) */
@media only screen and (min-width: 769px) and (max-width: 992px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large devices (laptops/desktops, 992px to 1200px) */
@media only screen and (min-width: 993px) and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .hover\:scale-105:hover {
        transform: none;
    }
    
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on focus in iOS */
    }
}

/* ===== LANDSCAPE MODE ===== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        height: 100vh;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ===== HIGH-RESOLUTION SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                         url('../images/banner/hd-banner@2x.jpg');
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    body.dark-mode-support {
        background-color: #1a202c;
        color: #f7fafc;
    }
    
    .dark-mode-support .bg-white {
        background-color: #2d3748;
    }
    
    .dark-mode-support .text-gray-600 {
        color: #cbd5e0;
    }
}

/* ===== ACCESSIBILITY - 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;
    }
}

/* ===== PROPROCK SPECIFIC RESPONSIVE STYLES ===== */
@media (max-width: 640px) {
    .proprock-logo {
        font-size: 1.25rem;
    }
    
    .proprock-tagline {
        font-size: 0.6rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .proprock-logo {
        font-size: 1.5rem;
    }
    
    .proprock-tagline {
        font-size: 0.7rem;
    }
}