/* 6. Diseño Premium de Tarjeta de Publicación (Post Card) */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Destacado Premium */
.product-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 70%;
    /* Aspect ratio 4:3 */
    background: #f1f5f9;
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

/* Botón Favorito (Corazón) */
.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: var(--transition);
}

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

.heart-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2.5;
    transition: var(--transition);
}

.fav-btn.active .heart-icon {
    fill: #EF4444;
    stroke: #EF4444;
}

/* Cuerpo de la tarjeta */
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
}

.card-badge {
    padding: 4px 10px;
    border-radius: 20px;
}

/* Estilos de Badges por tipo */
.badge-sale {
    background: #FEF3C7;
    color: #92400E;
}

.badge-job {
    background: #F5F3FF;
    color: #6D28D9;
}

.badge-rent {
    background: #F0FDF4;
    color: #15803D;
}

.badge-service {
    background: #E0F2FE;
    color: #0369A1;
}

.badge-auction {
    background: #FEE2E2;
    color: #B91C1C;
}

.badge-default {
    background: #F1F5F9;
    color: #475569;
}

.card-location {
    color: var(--text-muted);
}

.card-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

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

.card-price-wrapper {
    margin-bottom: 6px;
}

.price-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.card-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 15px;
    margin-top: auto;
}

.btn-view-details {
    display: block;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.btn-view-details:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}