/* Responsive Styles for Properti Nigeria */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1450px;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
    .hero-section .display-4 {
        font-size: 3rem;
    }
    
    .property-card-image {
        height: 250px;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
    .filter-sidebar {
        position: sticky;
        top: 130px;
    }
    
    .notification-dropdown {
        width: 400px;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
    .hero-form .row {
        align-items: end;
    }
    
    .property-card-features {
        flex-wrap: nowrap;
    }
}

/* Medium Devices (992px and down) */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .property-card-image {
        height: 180px;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Small Devices (768px and down) */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .property-card-image {
        height: 200px;
    }
    
    .property-card-features {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .property-card-feature {
        font-size: 0.75rem;
    }
    
    .request-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .request-card-avatar {
        margin-bottom: 0.5rem;
    }
    
    .request-card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .notification-dropdown {
        width: 100%;
        max-width: 350px;
        right: -50px;
    }
    
    .modal-dialog {
        margin: 0rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 22px !important;
    }
}

/* Extra Small Devices (576px and down) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .property-card-image {
        height: 180px;
    }
    
    .property-card-title {
        font-size: 1rem;
    }
    
    .property-card-price {
        font-size: 1.125rem;
    }
    
    .property-card-features {
        gap: 10px;
    }
    
    .property-card-feature {
        font-size: 12px;
    }
    
    .request-card {
        padding: 1rem;
    }
    
    .request-card-title {
        font-size: 1rem;
    }
    
    .request-card-detail {
        font-size: 0.8rem;
    }
    
    .request-card-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .filter-sidebar {
        padding: 1rem;
    }
    
    .filter-group {
        margin-bottom: 1rem;
    }
    
    .notification-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
        left: 1rem;
    }
    
    .modal-dialog {
        margin: 0rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .form-control, .form-select {
        font-size: 0.875rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-card-icon {
        font-size: 2rem;
    }
    
    .stats-card-value {
        font-size: 1.5rem;
    }
    
    .profile-completion {
        padding: 1rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.5rem;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer ul {
        font-size: 0.875rem;
    }
    
    .footer .row > div {
        margin-bottom: 1.5rem;
    }
}

/* Landscape Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.25rem;
    }
    
    .hero-section .lead {
        font-size: 0.875rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .property-card-image {
        height: 150px;
    }
}

/* High Resolution Devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .property-card-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal,
    .property-card-actions,
    .filter-sidebar,
    .pagination {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .property-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .request-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        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) {
    :root {
        --light-color: #212529;
        --dark-color: #f8f9fa;
        --secondary-color: #adb5bd;
    }
    
    body {
        background-color: var(--light-color);
        color: var(--dark-color);
    }
    
    .card,
    .property-card,
    .request-card,
    .offer-card,
    .filter-sidebar,
    .stats-card,
    .profile-completion {
        background-color: #343a40;
        color: var(--dark-color);
    }
    
    .form-control,
    .form-select {
        background-color: #495057;
        border-color: #6c757d;
        color: var(--dark-color);
    }
    
    .navbar {
        background-color: #343a40 !important;
    }
    
    .footer {
        background-color: #212529 !important;
    }
}


@media (max-width: 768px) {
    .filter-sidebar{
        margin-top: 50px; 
    }
}