/* LCDJ Recent Properties Styles - Matching Favorites */

.lcdj-recent-properties-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recent-properties-header {
    margin-bottom: 30px;
    text-align: center;
}

.recent-properties-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.recent-properties-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.recent-properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Reuse favorite card styles */
.lcdj-favorite-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.lcdj-favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.favorite-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    overflow: hidden;
}

.favorite-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.property-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 14px;
}

/* Favorite Badge */
.lcdj-favorite-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 11;
    background: rgba(255, 255, 255, 0.85);
    color: #2c3e50;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Favorite Button */
.favorite-card-image .lcdj-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #959387;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

.favorite-card-image .lcdj-favorite-btn .heart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.favorite-card-image .lcdj-favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.favorite-card-image .lcdj-favorite-btn.favorited {
    background: #959387 !important;
    color: #ffffff;
    animation: heartbeat 0.3s ease;
}

.favorite-card-image .lcdj-favorite-btn.favorited:hover {
    background: #7f8078;
}

.favorite-card-image .lcdj-favorite-btn.favorited svg {
    fill: currentColor;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.favorite-card-location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    padding: 12px 16px;
    z-index: 5;
}

.favorite-card-location-overlay a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.favorite-card-location-overlay a:hover {
    color: #e74c3c;
}

/* Content Section */
.favorite-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.favorite-card-price-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.favorite-price-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.lcdj-favorite-precio {
    margin: 0;
    font-size: 16px;
    color: #333;
    flex-shrink: 0;
}

.lcdj-favorite-precio strong {
    font-weight: 400;
    font-size: 18px;
}

.favorite-card-specs {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    height: 20px;
}

.spec-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.7;
    flex-shrink: 0;
    filter: grayscale(100%);
    line-height: 1;
}

/* Empty State */
.recent-properties-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.recent-properties-empty p {
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .lcdj-recent-properties-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .recent-properties-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .favorite-card-image {
        height: 150px;
    }

    .favorite-card-image .lcdj-favorite-btn {
        width: 40px;
        height: 40px;
    }

    .favorite-card-content {
        padding: 12px;
    }

    .favorite-card-price-section {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .favorite-card-specs {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .recent-properties-grid {
        grid-template-columns: 1fr;
    }

    .recent-properties-header h3 {
        font-size: 18px;
    }

    .favorite-card-image {
        height: 140px;
    }

    .lcdj-favorite-badge {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }
}
