/* ======================= Properties Page: Page Header ======================= */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1560185009-dddeb820c7b7?q=80&w=2070');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 3.5rem;
}

/* ======================= Properties Page: Filter Bar ======================= */
.filter-bar {
    background-color: var(--bg-light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

/* ======================= Properties Page: Property Grid ======================= */
#property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.property-card-listing {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card-listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.property-card-listing img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content-listing {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content-listing h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.location-tag {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}
.location-tag i {
    margin-right: 5px;
    color: var(--primary-color);
}

.price-listing {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.details-listing {
    display: flex;
    gap: 20px;
    margin-top: auto; /* Pushes details to the bottom */
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: #666;
}

/* ======================= Properties Page: No Results ======================= */
#no-results {
    text-align: center;
    padding: 50px;
    display: none; /* Hidden by default */
}