/* Property Card Component */
.property-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

/* Image Area */
.property-card .property-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: none !important;
    display: block !important;
}

.property-card .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 1;
}

/* Hide placeholders and stray elements */
.property-card .property-image::before,
.property-card .property-image::after,
.property-card .placeholder,
.property-card .property-image .placeholder,
.property-card .property-image .img-placeholder,
.property-card .property-image > span:not(.property-badge):not(.property-type-badge-img),
.property-card .property-image > p,
.property-card .property-image > em {
    display: none !important;
    content: none !important;
}

/* Badges */
.property-type-badge-img {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255,255,255,0.9);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 15;
}

.property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #322E32 !important;
    color: #FFD700 !important;
    padding: 4px 10px 3px !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05px !important;
    z-index: 5 !important;
    line-height: 1 !important;
    white-space: nowrap;
}

/* Content Area */
.property-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #23120B;
    margin-bottom: 10px;
}

.property-address {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Features */
.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.feature {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.85rem;
}

.feature i {
    margin-right: 5px;
    color: #FDB827;
}

/* Footer */
.property-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-type {
    font-size: 0.9rem;
    color: #666;
    text-transform: capitalize;
}

.view-details {
    color: #23120B;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-details:hover {
    color: #FDB827;
}

/* Responsive adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .property-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .property-details {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .property-footer {
        margin-top: auto;
    }
}

@media (max-width: 767px) {
    .property-image {
        height: 220px;
    }
}
