/* Similar Villas Section Styles
-------------------------------------------------- */
.similar-properties {
    padding: 60px 0;
    background-color: #f9f9f9;
    margin-top: 40px;
}

.similar-properties .container {
    max-width: 1200px;
}

.similar-properties .section-heading {
    margin-bottom: 35px;
}

.similar-properties .section-heading h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    position: relative;
}

.similar-properties .section-heading-line {
    width: 80px;
    height: 3px;
    background-color: #1c7ed6;
    margin: 0 auto;
}

/* Row & Column Fixes */
.similar-properties .row {
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-wrap: wrap;
}

.similar-properties .col-md-4 {
    padding: 0 15px;
    margin-bottom: 30px;
    display: flex;
}

/* Property Cards */
.property-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    background-color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-card-image {
    position: relative;
    height: 0;
    padding-bottom: 66.67%; /* 2:3 aspect ratio */
    overflow: hidden;
}

.property-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.05);
}

.property-location {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
    padding: 25px 15px 12px;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.property-location i {
    margin-right: 5px;
    color: #fff;
}

.property-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #fff;
}

.property-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 46px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
    color: #666;
    border-top: 1px solid #f0f0f0;
}

.property-features .feature {
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 5px;
}

.property-features .feature i {
    margin-right: 5px;
    color: #1c7ed6;
    width: 16px;
    text-align: center;
}

/* Equal Height Cards */
.similar-properties .row {
    display: flex;
    flex-wrap: wrap;
}

.similar-properties .row > [class*='col-'] {
    display: flex;
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .similar-properties .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .similar-properties .col-md-4 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 991.98px) {
    .similar-properties {
        padding: 40px 0;
    }
    
    .property-card-image {
        padding-bottom: 60%;
    }
}

@media (max-width: 767.98px) {
    .similar-properties .col-md-4 {
        margin-bottom: 20px;
    }
    
    .property-card-image {
        padding-bottom: 56.25%; /* 16:9 aspect ratio for mobile */
    }
    
    .similar-properties .section-heading h2 {
        font-size: 24px;
    }
    
    .property-name {
        height: auto;
        max-height: 46px;
    }
}

@media (max-width: 575.98px) {
    .property-name {
        font-size: 16px;
    }
    
    .property-features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .property-features .feature {
        margin-right: 12px;
        margin-bottom: 8px;
        font-size: 13px;
    }
}
