/* Modern Property Card Styles - Brand Aligned & Performance Optimized */
:root {
    --primary-color: #9e1f63;
    --primary-light: #b84d7a;
    --primary-dark: #7a1a4f;
    --secondary-color: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 12px rgba(158, 31, 99, 0.08);
    --shadow-medium: 0 4px 20px rgba(158, 31, 99, 0.12);
    --shadow-heavy: 0 8px 30px rgba(158, 31, 99, 0.18);
}

.modern-property-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
    will-change: transform;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

/* Image Section */
.property-image-section {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.property-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.modern-property-card:hover .property-main-image {
    transform: scale(1.03);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e9ecef 100%);
    color: var(--text-secondary);
}

/* Badges */
.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.property-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
}

.badge-sell {
    background: var(--primary-color);
    color: white;
}

.badge-rent {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge-both {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.badge-rented {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.badge-sold {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.badge-investment {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: var(--text-primary);
}

.badge-invested {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.badge-type {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 2;
    border: 1px solid var(--border-color);
}

.wishlist-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.wishlist-btn.added-to-wishlist {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.wishlist-btn i {
    font-size: 14px;
}

/* Property Content */
.property-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-header {
    margin-bottom: 16px;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 6px;
    display: block;
    transition: color 0.3s ease;
}

.property-title:hover {
    color: var(--primary-color);
}

.property-location {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.location-separator {
    color: #adb5bd;
    font-weight: bold;
}

/* Features Grid */
.property-features {
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: var(--secondary-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 12px;
}

/* Available Units */
.available-units {
    margin-bottom: 16px;
}

.units-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.units-badge i {
    font-size: 12px;
}

/* Main Price Section - Simplified and Clear */
.main-price-section {
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 2px solid var(--border-color);
    margin-top: auto;
}

.main-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 4px;
}

.price-period {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Action Button */
.property-actions {
    margin-top: auto;
    padding-top: 16px;
}

.btn-view-details {
    width: 100%;
    padding: 10px 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
}

.btn-view-details:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-view-details i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-image-section {
        height: 180px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .feature-item {
        padding: 6px 8px;
        font-size: 11px;
    }

    .main-price {
        font-size: 22px;
    }

    .property-title {
        font-size: 16px;
    }

    .property-content {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .property-content {
        padding: 14px;
    }

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

    .property-image-section {
        height: 160px;
    }

    .main-price {
        font-size: 20px;
    }
}