/***
Pers theme - modernized listing card design
Rounded corners, soft shadow lift, and repositioned badges/icons.
Applies to search results, category pages, and homepage "latest items"
(all rendered via loop-single.php / loop-single-premium.php through pers_draw_item()).
***/

.listing-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 20px;
}
.listing-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.listing-card .listing-image {
    border-radius: 0;
    position: relative;
}
.listing-card .listing-detail {
    padding: 12px 14px;
}

/* Category badge - top left, neutral, shows on every card */
.status.pers-category-badge {
    top: 10px;
    left: 10px;
}
.status.pers-category-badge span {
    background: rgba(255,255,255,0.92);
    color: #555;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    padding: 3px 9px;
}

/* Premium badge - stacks below the category badge instead of overlapping it */
.status.sbg {
    top: 40px;
    left: 10px;
}
.status.sbg span.premium {
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11px;
}

/* Wishlist heart - anchored to top right, no more fixed-pixel left offset */
.status.wishlist {
    top: 8px;
    left: auto;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.status.wishlist a {
    opacity: 0.6;
}
.status.wishlist a:hover {
    opacity: 1;
}

/* Location / time-ago metadata row with icons */
.listitem-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}
.pers-card-meta {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}
.pers-card-meta i {
    margin-right: 4px;
}
