/* Recent Property Highlights - Flex Object-Fit Fix for Cropped Heads */

.property-highlights {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Hero - safe object-position for head */
.property-hero {
    width: 100%;
    max-width: 600px;
    height: 200px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.property-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Keep heads in frame */
}

/* Grid - simple 2x2 no overlap */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 600px;
}

/* Cards - object-position top for portraits */
.media-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.media-card video,
.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Fix cropped heads */
}

/* Overlay */
.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-card:hover .media-overlay,
.property-hero:hover .media-overlay {
    opacity: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .property-hero {
        height: 160px;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .media-card {
        aspect-ratio: 4/3;
    }
}

/* Ensure no stagger issues */
.media-grid.stagger-children > * {
    animation-fill-mode: both;
}

