/**
 * Listing status badges (Sold / Under Contract).
 *
 * Used by the properties grid card and single location page (theme block
 * templates) and by the interactive map popup. Ships with the plugin so the
 * styling stays consistent everywhere listings appear.
 */

.shores-status-badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #6c757d;
    white-space: nowrap;
    vertical-align: middle;
}

.shores-status-badge.sold {
    background: #c0392b; /* red */
    color: #fff;
}

.shores-status-badge.under-contract {
    background: #e0a800; /* amber */
    color: #1c1c1c;
}

/* Overlay the badge on the top-left corner of a listing card thumbnail. */
.property_grid .thumb,
.thumb.has_photo,
.thumb.no_photo {
    position: relative;
}

.thumb .shores-status-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Dim a sold card slightly so it reads as no-longer-available. */
.property_grid .location.status-sold .thumb img {
    opacity: 0.85;
}

/* Single property page: badge sits inline near the title/price. */
#property_details .shores-status-badge {
    margin-bottom: 0.5rem;
}

/* Interactive map popup badge. */
.mapsvg-popover .shores-status-badge,
.mapsvg-tooltip .shores-status-badge {
    margin: 0 0 0.35rem;
}
