/* ==========================
   HERO
========================== */
.properties-hero {
    position: relative;
    height: 60vh;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.properties-hero-content {
    position: relative;
    z-index: 2;
    color: black;
    max-width: 700px;
}

.properties-hero-content span {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.properties-hero-content h1 {
    color: black;
    margin: 20px 0;
}

.properties-hero-content p {
    color: rgba(255,255,255,0.85);
}

/* ==========================
   FILTERS
========================== */
.filters-section {
    position: relative;
    margin-top: -50px;
    z-index: 20;
}

.filters-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.filters-wrapper input,
.filters-wrapper select {
    height: 55px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 15px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-speed);
}

.filters-wrapper input:focus,
.filters-wrapper select:focus {
    border-color: var(--secondary-color);
}

/* ==========================
   PROPERTY GRID
========================== */
.properties-section {
    background: var(--light-bg);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    transition: var(--transition-speed);
}

.property-card:hover {
    transform: translateY(-8px);
}

.property-image {
    height: 280px;
    overflow: hidden;
}

.property-image img {
    height: 100%;
    object-fit: cover;
}

.property-content {
    padding: 25px;
}

.property-type {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.property-content h3 {
    margin: 15px 0;
}

.property-location {
    color: var(--text-light);
    margin-bottom: 15px;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    color: var(--text-light);
}

/* ==========================
   MAP
========================== */
.map-section {
    padding: 100px 0;
}

#map {
    height: 650px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1100px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .properties-hero {
        height: 45vh;
    }

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

    .filters-wrapper {
        grid-template-columns: 1fr;
    }

    #map {
        height: 450px;
    }
}