.page-header h2 {
    margin-bottom:  35px;;
}

/* -------- Filters Card Container -------- */
.filters-section h1 {
    margin: 30px 0;
}

.filters-container {
    margin: auto;
    background: #ffffff;
    border: 1px solid #f2ecf7;
    padding: 25px 30px;
    box-shadow: 0 3px 12px rgba(62, 59, 68, 0.04);
}

/* Filters Row */
.filters-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

/* Dropdown */
.filters-row select {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #f2ecf7;
    background: #fff;
    font-size: 14px;
    color: #222;
}

/*Advanced Toggle*/
.advanced-toggle {
    margin: 10px 0 15px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* -------- ADVANCED FIELDS CARD -------- */
.advanced-fields {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    margin-top: 10px;
    background: #fff;
}
#advancedFields {
    transition: opacity 0.25s ease-in-out;
}

/* Inputs inside Advanced Section */
.advanced-fields input {
    padding: 12px 14px;
    border: 1px solid #c7ccd3;
    background: #fff;
    font-size: 14px;
}

/* -------- BUTTONS -------- */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 20px;
}

.search-btn {
    flex: 1;
    background: #4B258C;
    color: white;
    padding: 12px;
    font-size: 15px;
    border: 1px solid;
    transition: all 0.3s ease;
}
.search-btn:hover{
    background-color: white;
    color: #4B258C;
    border: 1px solid;
}

.reset-btn {
    flex: 1;
    background: #d63b44;
    color: white;
    padding: 12px;
    font-size: 15px;
    border: none;
}
.property-listings{
    padding-bottom:20px;
}
/* LISTINGS GRID */
.listings-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* LEFT COLUMN */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* RIGHT COLUMN */
.right-column .ad-banner {
    width: 100%;
    position: sticky;
    top: 0;
}

/* PROPERTY CARDS */
.property-card {
    display: flex;
    background: white;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    cursor: pointer;
}
.property-img {
    width: 240px;
    margin-right: 18px;
}
.property-info {
    flex: 1;
}

/*Lables*/
.label {
    padding: 2px 10px;
    font-size: 12px;
    color: white;
    gap: 10px;
}
.label.rent { background: #0d6efd; }
.label.sale { background: #4B258C; }
.label.type { background: #9063df; }

.label.rent{
    margin-right:5px;
}
/*Text Details*/
.price {
    font-size: 20px;
    font-weight: 700;
}
.title {
    font-size: 18px;
    font-weight: 600;
}
.location {
    font-size: 14px;
    color: #444;
}
.description {
    font-size: 14px;
    color: #666;
}

/*Media Quiries /*

/*Large Laptops*/
@media (max-width: 1200px) {
    .filters-container {
        width: 90%;
        padding: 20px;
    }
    .property-img {
        width: 200px;
    }
}

/*Tablets*/
@media (max-width: 992px) {
    .filters-row {
        flex-wrap: wrap;
    }

    .filters-row select {
        flex: 1 1 calc(50% - 10px);
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .right-column {
        order: -1; /*Show Add first on small screens*/
    }
}

/*Large Phones / Small Tablets */
@media (max-width: 768px) {
    .property-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .property-img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .buttons {
        flex-direction: column;
    }

    .advanced-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*Phone*/
@media (max-width: 576px) {
    .page-header h2 {
        margin-left: 5%;
        font-size: 20px;
    }

    .filters-container {
        width: 95%;
        padding: 15px;
    }

    .filters-row select {
        flex: 1 1 100%;
    }

    .advanced-fields {
        grid-template-columns: 1fr;
    }

    .property-card {
        padding: 12px;
    }

    .price {
        font-size: 18px;
    }
}

.sticky-gif{
    position: sticky;
    top: 0px;
}
