/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .property-card .property-content {
        padding: 1.5rem;
    }
    
    .related-property-card {
        min-height: 320px;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1199.98px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer .row.g-5 > div {
        margin-bottom: 2rem;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 991.98px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-properties-section .row {
        justify-content: center;
    }
    
    .property-details .property-title {
        font-size: 1.75rem;
    }
    
    .features-list {
        justify-content: flex-start;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-bar {
        padding: 0.5rem 0;
    }
    
    .header .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .property-gallery .main-image img {
        height: 300px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 767.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .property-card {
        margin-bottom: 1rem;
    }
    
    .property-card .property-image {
        height: 200px;
    }
    
    .property-card .property-title {
        font-size: 1.1rem;
    }
    
    .property-card .property-price {
        font-size: 1.25rem;
    }
    
    .related-property-card {
        margin-bottom: 1rem;
    }
    
    .related-properties-section .col-md-6.col-lg-3 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .property-features {
        padding: 1rem;
    }
    
    .features-list .feature-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .property-gallery .thumbnails {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .property-gallery .thumbnails img {
        width: 70px;
        height: 70px;
    }
    
    .footer .row.g-5 > div {
        margin-bottom: 1.5rem;
    }
    
    .footer h5 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
    
    .hero-search-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .property-header {
        text-align: center;
    }
    
    .property-meta {
        justify-content: center;
    }
    
    .property-description {
        font-size: 0.95rem;
    }
    
    .property-location .location-info {
        padding: 1rem;
    }
    
    .back-to-category-section {
        width: 100% !important;
        margin: 1rem 0 !important;
    }
    
    .back-to-category-section .btn {
        width: 100%;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    .property-details {
        padding: 1rem;
    }
    
    .property-gallery .main-image img {
        height: 250px;
    }
    
    .features-list {
        gap: 0.5rem;
    }
    
    .features-list .feature-item {
        font-size: 0.8rem;
    }
    
    .property-status {
        display: block;
        margin-top: 0.5rem;
    }
    
    .property-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .related-properties-section h3 {
        font-size: 1.25rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .img-fluid {
        max-width: 100%;
        height: auto;
    }
    
    .whatsapp-float {
        right: 15px;
        bottom: 70px;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-float i {
        font-size: 22px;
        line-height: 45px;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 479.98px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .property-title {
        font-size: 1.25rem;
    }
    
    .property-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .property-gallery .main-image img {
        height: 200px;
    }
    
    .property-gallery .thumbnails img {
        width: 60px;
        height: 60px;
    }
    
    .features-list .feature-item {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
    
    .amenity-item {
        padding: 0.5rem;
    }
    
    .amenity-item i {
        font-size: 1rem;
        width: 20px;
    }
    
    .amenity-item span {
        font-size: 0.8rem;
    }
    
    .related-property-card .related-image {
        height: 150px;
    }
    
    .related-property-card .related-title {
        font-size: 0.9rem;
    }
    
    .related-property-card .related-location {
        font-size: 0.75rem;
    }
    
    .related-property-card .related-price {
        font-size: 1rem;
    }
    
    .footer h5 {
        font-size: 1rem;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
    
    .copyright {
        text-align: center;
    }
    
    .copyright .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
    
    .mobile-brand-text {
        font-size: 1rem !important;
    }
    
    .nav-bar .navbar-brand img {
        width: 50px !important;
        height: 45px !important;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 359.98px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .property-gallery .main-image img {
        height: 180px;
    }
    
    .features-list .feature-item {
        font-size: 0.7rem;
    }
    
    .related-property-card .related-image {
        height: 130px;
    }
    
    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .whatsapp-float {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-float i {
        font-size: 20px;
        line-height: 40px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .property-card:hover {
        transform: none;
    }
    
    .related-property-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .property-card,
    .related-property-card {
        cursor: pointer;
    }
}

/* Print styles */
@media print {
    .whatsapp-float,
    .back-to-top,
    .navbar,
    footer {
        display: none !important;
    }
    
    .property-details {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .property-gallery img {
        max-width: 100%;
        height: auto;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .property-image,
    .related-image,
    .main-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .property-card,
    .related-property-card {
        transition: none;
    }
}
