/* ============================================================
   Property Showcase — mobile-first vibrant card system
   Extends the site's existing --primary-color / --accent-color
   tokens (defined inline in property-showcase.php / index.php)
   ============================================================ */

:root {
    --repm-sell: #e35d5b;      /* coral — "for sale" */
    --repm-rent: #0d6efd;      /* brand blue — "for rent" */
    --repm-buy:  #10b981;      /* emerald — buyer wishlist entries */
    --repm-card-radius: 18px;
    --repm-shadow-rest: 0 2px 10px rgba(15, 23, 42, 0.07);
    --repm-shadow-hover: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.repm-listings { padding-bottom: 8px; }

/* ---- Section header ---- */
.repm-section-header { margin-bottom: 20px; }
.repm-section-header h1 { color: var(--text-dark); }

/* ---- CTA banner (wishlist prompt) ---- */
.repm-cta-banner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff;
    border-radius: var(--repm-card-radius);
    padding: 20px;
    margin-bottom: 28px;
}
.repm-cta-banner .repm-cta-text p { color: rgba(255,255,255,0.85); }
.repm-cta-btn { flex-shrink: 0; }

@media (min-width: 768px) {
    .repm-cta-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 28px 32px;
    }
}

/* ---- Result count ---- */
.repm-result-count {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 16px;
}

/* ---- Card ---- */
.repm-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--repm-card-radius);
    overflow: hidden;
    box-shadow: var(--repm-shadow-rest);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid rgba(15, 23, 42, 0.06);
}
.repm-card:hover,
.repm-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--repm-shadow-hover);
}

.repm-card-media-link { display: block; }
.repm-card-media {
    position: relative;
    aspect-ratio: 4 / 2.6;
    overflow: hidden;
    background: #e2e8f0;
}
.repm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.repm-card:hover .repm-card-media img { transform: scale(1.06); }

/* ---- Ribbon badges over the image ---- */
.repm-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.repm-badge-status {
    left: auto;
    right: 12px;
    background: rgba(15, 23, 42, 0.78);
}
.badge-sell    { background: var(--repm-sell); }
.badge-rent    { background: var(--repm-rent); }
.badge-buy     { background: var(--repm-buy); }
.badge-default { background: #64748b; }

/* ---- Card body ---- */
.repm-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.repm-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.repm-prop-id {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.repm-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color, #0d6efd);
    white-space: nowrap;
}
.repm-price-unit {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 2px;
}

.repm-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.repm-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}
.repm-card-title a:hover { color: var(--primary-color, #0d6efd); }

.repm-card-location {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.repm-card-location i { color: var(--accent-color, #ffc107); margin-right: 4px; }

.repm-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 6px;
}
.repm-meta-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}
.repm-meta-pill i { color: var(--primary-color, #0d6efd); margin-right: 4px; }

/* ---- Actions (mobile-first: big tap targets, full width) ---- */
.repm-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}
.repm-btn-details {
    flex: 1;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
}
.repm-btn-whatsapp {
    background: #25d366;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.repm-btn-whatsapp:hover { background: #1ebc59; color: #fff; }

/* ---- Empty state ---- */
.repm-empty-state { color: #64748b; }
.repm-empty-icon { font-size: 2.6rem; color: #cbd5e1; }

/* ---- Pagination ---- */
.repm-pagination-wrap { margin-top: 32px; }
.repm-pagination-mobile {
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: var(--repm-shadow-rest);
}
.repm-page-indicator {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}
.repm-pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--text-dark);
    border-color: rgba(15,23,42,0.08);
}
.repm-pagination .page-item.active .page-link {
    background: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
}
