/* Enhanced Property Cards for Home Page */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.property-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

/* Property Image Section */
.property-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

/* Property Badges */
.property-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.property-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-sale {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.badge-rent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.property-type-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Favorite Button */
.btn-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #666;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.btn-favorite:hover {
    background: #fff;
    color: #e74c3c;
    transform: scale(1.1);
}

.btn-favorite.active {
    color: #e74c3c;
}

.btn-favorite.active i {
    font-weight: 900;
}

/* Property Details Section */
.property-details {
    padding: 1.5rem;
}

.property-price-tag {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2ecc71;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.property-location i {
    color: #e74c3c;
    font-size: 1rem;
}

/* Property Features */
.property-features {
    display: flex;
    gap: 1.2rem;
    padding: 1rem 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #34495e;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item i {
    color: #3498db;
    font-size: 1rem;
}

/* Property Footer */
.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.property-agent {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.agent-role {
    font-size: 0.75rem;
    color: #95a5a6;
}

.btn-view-property {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.btn-view-property:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.btn-view-property i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.btn-view-property:hover i {
    transform: translateX(4px);
}

/* Empty State */
.no-properties-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 2rem 0;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.empty-state-icon i {
    font-size: 4rem;
    color: #fff;
}

.no-properties-message h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.no-properties-message p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-image {
        height: 240px;
    }
    
    .property-title {
        font-size: 1.1rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .property-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-view-property {
        width: 100%;
        justify-content: center;
    }
    
    .property-features {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .property-card {
        border-radius: 12px;
    }
    
    .property-details {
        padding: 1.2rem;
    }
    
    .property-features {
        gap: 0.6rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card[data-aos="fade-up"] {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 1.1rem;
    color: #7f8c8d;
}
