/* Responsive CSS for Land Mafia */

/* Mobile Devices */
@media (max-width: 767.98px) {

    /* Global Typography Reset */
    html,
    body {
        font-size: 14px !important;
    }

    h1,
    .h1 {
        font-size: 1.75rem !important;
    }

    h2,
    .h2 {
        font-size: 1.5rem !important;
    }

    h3,
    .h3 {
        font-size: 1.35rem !important;
    }

    h4,
    .h4 {
        font-size: 1.2rem !important;
    }

    h5,
    .h5 {
        font-size: 1.1rem !important;
    }

    h6,
    .h6 {
        font-size: 1rem !important;
    }

    .display-1 {
        font-size: 3rem !important;
    }

    .display-2 {
        font-size: 2.5rem !important;
    }

    .display-3 {
        font-size: 2.25rem !important;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .display-5 {
        font-size: 1.75rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .btn-lg {
        padding: 12px 24px !important;
        font-size: 16px !important;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Hero Section */
    .hero-home {
        height: auto !important;
        min-height: 400px;
        padding: 50px 0;
        display: flex;
        align-items: center;
    }

    .search-container-home {
        padding: 30px 20px !important;
        margin: 0;
        width: 100%;
        max-width: 100% !important;
        border-radius: 20px !important;
        text-align: center;
    }

    .search-container-home h1 {
        font-size: 1.8rem !important;
        line-height: 1.25;
        margin-bottom: 1rem !important;
    }

    .search-tabs {
        gap: 15px !important;
        justify-content: center !important;
    }

    .main-search-input-group {
        flex-direction: column;
        border-radius: 20px !important;
        padding: 15px !important;
        background: white !important;
    }

    .main-search-input-group .vr {
        display: none !important;
    }

    .main-search-input-group input {
        width: 100%;
        margin: 5px 0;
        padding: 10px 15px !important;
        border: 1px solid #eee !important;
        border-radius: 8px;
        text-align: center;
        font-size: 14px !important;
    }

    .main-search-input-group button {
        width: 100%;
        margin-top: 10px !important;
        margin-left: 0 !important;
        padding: 12px !important;
        font-weight: 800 !important;
        letter-spacing: 1px;
    }

    /* Section Headers */
    .section-header {
        text-align: center !important;
        margin-bottom: 30px !important;
    }

    .section-title {
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        margin-bottom: 8px !important;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
        opacity: 0.8;
    }

    /* Property Detail Header */
    .property-info-row .col-lg-3,
    .property-info-row .col-lg-6 {
        border-right: none !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        text-align: center !important;
        margin-bottom: 20px;
    }

    .property-info-row .d-flex {
        justify-content: center !important;
    }

    .property-info-row .text-end {
        text-align: center !important;
    }

    /* Sticky Tabs on Detail Page */
    .detail-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 5px !important;
        width: 100%;
    }

    .detail-tabs .nav-link {
        white-space: nowrap;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }



    .sticky-top .pe-3 {
        padding-right: 0 !important;
        width: 100%;
        padding: 0 10px 10px;
    }

    .sticky-top .pe-3 button {
        width: 100%;
    }

    /* Gallery */
    .gallery-wrapper {
        margin-bottom: 20px;
        border-radius: 12px !important;
    }

    /* Listing Cards */
    .listing-card {
        margin: 0 0 20px !important;
        border-radius: 15px !important;
    }

    .listing-card .col-md-3 {
        height: 200px;
    }

    .listing-card img {
        min-height: 200px !important;
    }

    .listing-card .p-4 {
        padding: 20px !important;
    }

    .listing-card .fs-4,
    .listing-card .fs-5 {
        font-size: 1.2rem !important;
    }

    .listing-card .d-flex.justify-content-between.align-items-center.pt-3 {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .listing-card .d-flex.gap-2 {
        width: 100%;
    }

    .listing-card .d-flex.gap-2 .btn {
        flex: 1;
        padding: 8px 10px !important;
    }

    /* Popular Localities Card */
    .card .card-body h5 {
        font-size: 1.05rem !important;
        margin-bottom: 2px !important;
    }

    /* Property Detail Specifics */
    .section-title-premium {
        font-size: 1.25rem !important;
        padding-left: 10px !important;
        margin-bottom: 20px !important;
    }

    .quick-spec-item {
        text-align: center;
        padding: 10px;
        background: #f8fafc;
        border-radius: 12px;
    }

    .quick-spec-item .fw-black {
        font-size: 1rem !important;
    }

    .quick-spec-item .text-muted {
        font-size: 0.65rem !important;
    }

    .amenity-item {
        margin-bottom: 15px;
        padding: 8px;
        background: #f8fafc;
        border-radius: 8px;
        justify-content: center;
    }

    .amenity-item i {
        font-size: 1.1rem !important;
    }

    .analysis-box .col-md-6 {
        border-right: none !important;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    .analysis-box .col-md-6:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Quick Filter Pills */
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }

    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-bottom: 5px !important;
    }

    /* Profile Sidebar Navigation */
    .profile-sidebar {
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding-bottom: 15px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .profile-sidebar::-webkit-scrollbar {
        display: none;
    }

    .profile-sidebar .nav-link {
        flex: 1;
        text-align: center;
        padding: 8px 15px !important;
        font-size: 13px !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
    }

    .profile-sidebar .nav-link.active {
        background-color: var(--primary-color) !important;
        color: white !important;
        border-color: var(--primary-color) !important;
    }

    /* Auth Pages (Login/Signup) */
    .auth-card {
        padding: 30px 20px !important;
        margin: 10px;
        border-radius: 20px !important;
    }

    .auth-tabs {
        justify-content: center;
    }

    /* Stats Section */
    .stat-card h2 {
        font-size: 2.2rem !important;
        margin-bottom: 0 !important;
    }

    .stat-card p {
        font-size: 0.8rem !important;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Testimonials */
    .testimonial-card-v2,
    .card.p-4 {
        padding: 20px !important;
    }

    .testimonial-card-v2 p,
    .card.p-4 p {
        font-size: 0.95rem !important;
        line-height: 1.5;
    }

    /* Sections Padding */
    section {
        padding: 40px 0 !important;
    }

    /* Amenities */
    .amenity-item {
        margin-bottom: 10px;
    }

    /* Footer */
    footer {
        text-align: center;
        padding: 40px 0 20px !important;
    }

    footer .col-lg-3,
    footer .col-lg-2,
    footer .col-lg-4 {
        margin-bottom: 30px;
        text-align: center !important;
    }

    footer .social-links {
        justify-content: center !important;
    }

    .footer-links {
        padding-left: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        text-align: center;
        margin-top: 20px;
    }
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 991.98px) {
    .search-container-home {
        max-width: 90% !important;
    }

    .detail-tabs .nav-link {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    .listing-card .col-md-3 {
        width: 35%;
    }

    .listing-card .col-md-9 {
        width: 65%;
    }
}

/* General Responsiveness Fixes */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.object-fit-cover {
    object-fit: cover;
}

/* Fix for sticky header on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid #f0f0f0;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid #f8f9fa;
        padding: 5px 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }

    .navbar-nav .btn {
        width: 100%;
        margin: 8px 0 !important;
        padding: 12px !important;
        border-radius: 10px !important;
    }
}

/* Fix for horizontal scroll on small screens */
.main-wrapper {
    width: 100%;
    position: relative;
}

.row {
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.horizontal-scroll-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.horizontal-scroll-container .row {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

/* Disable sticky for mobile and tablet */
@media (max-width: 991.98px) {
    .sticky-top {
        position: static !important;
    }


    .filter-sm-btn {
        padding: 6px 15px !important
    }
}

.sticky-top {
    z-index: 1000;
}