/* Residential Page Styles */

/* Hero Section */
.page-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://res.cloudinary.com/dy4kgrxiy/image/upload/f_auto,q_auto,w_1920/residential_dfnxjn.jpg') center/cover no-repeat;
    position: relative;
    margin-top: 100px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-hero h1 {
    position: relative;
    color: #fff;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Properties Section */
.properties-section {
    padding: 80px 20px 100px;
    background: linear-gradient(180deg, #fafafa 0%, #f0ebe5 50%, #e8e3dd 100%);
    position: relative;
    min-height: 60vh;
}

.properties-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Add subtle luxury background to body */
body {
    background: #fafafa;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.section-header::before,
.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #c4a962;
    max-width: 400px;
}

.section-title {
    font-size: 3.5rem;
    color: #c4a962;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    gap: 30px;
    margin-top: 60px;
    justify-content: center;  /* Centers the grid items */
}

.property-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #000;
    color: #fff;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 1;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.property-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-image {
    width: 100%;
    height: 280px;  /* Slightly larger but not too stretched */
    object-fit: cover;
    object-position: center center;  /* Default centering */
    display: block;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transform: translateZ(0);  /* Hardware acceleration */
    filter: contrast(1.05) brightness(1.02);  /* Slight sharpening */
}

.property-card:hover .property-image {
    transform: scale(1.03);  /* Reduced scale to minimize blur */
}

.property-info {
    padding: 25px 20px;
    background: #fff;
    text-align: center;
    min-height: 100px;  /* Ensures space for text */
}

.property-location {
    font-size: 1.1rem;
    color: #c4a962;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 400;
}

.property-title {
    font-size: 1.3rem;
    color: #000;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.property-details {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 1px;
}

.property-price {
    font-size: 1.5rem;
    color: #000;
    font-weight: 600;
    margin-top: 15px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state-title {
    font-size: 1.5rem;
    color: #c4a962;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

.empty-state-message {
    font-size: 1.1rem;
    color: #999;
    font-weight: 300;
    letter-spacing: 2px;
    font-style: italic;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 960px) {
    .page-hero {
        margin-top: 100px;
        height: 30vh;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .section-header {
        gap: 30px;
    }

    .section-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .section-header::before,
    .section-header::after {
        max-width: 150px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-content: center;
    }

    .property-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .property-image {
        height: 240px;  /* Balanced size on mobile */
    }
}

@media (max-width: 480px) {
    .section-header {
        gap: 20px;
    }

    .section-title {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .section-header::before,
    .section-header::after {
        max-width: 60px;
    }
}
