/* ============================================================
   Property status badge (public site)
   Markup: Views/Shared/_StatusBadge.cshtml (and property-map.js for the map
   card). Kind from EzWayHouses.BLL.Helpers.PublicStatus:
     --sale      For Sale (incl. "For Sale - Occupied")   green,  tag icon
     --rent      For Rent                                 orange, key icon
     --contract  Under Contract                           amber,  clock icon
     --other     anything else (Coming Soon, SOLD, ...)   grey,   no icon
   White text contrast: sale 2.67:1 (the site's brand green #21b389, by request;
   below 4.5:1), rent 5.18, contract 4.92, other 7.53. Rent matches the Explore
   map legend (property-map.css); the map's sale pins stay blue.
   Placement: --photo = top-left over a photo (the parent is position:relative),
   --inline = in the text flow (details page, next to the title/price).
   Linked once from Views/Shared/_Layout.cshtml.
   ============================================================ */

:root {
    --ezs-sale: #21b389; /* brand green (IndexCSS / view-details accent) */
    --ezs-rent: #c2410c;
    --ezs-contract: #a16207;
    --ezs-other: #4a5568;
}

span.ez-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 28px);
    margin: 0;
    padding: 6px 12px;
    border: 2px solid #fff; /* white edge on every badge */
    border-radius: 999px;
    background: var(--ezs-other);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.25;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    white-space: nowrap;
    vertical-align: middle;
    box-shadow: none;
    pointer-events: none;
    box-sizing: border-box;
}

span.ez-status--sale { background: var(--ezs-sale); }
span.ez-status--rent { background: var(--ezs-rent); }
span.ez-status--contract { background: var(--ezs-contract); }
span.ez-status--other { background: var(--ezs-other); }

span.ez-status .ez-status__i {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    display: block;
    color: #fff; /* IndexCSS.css colours every svg green (svg { color: #30caa0 }) */
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

span.ez-status .ez-status__t {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

/* Top-left of a photo */
span.ez-status--photo {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
}

/* In the text flow (details page title / price) */
span.ez-status--inline {
    position: relative;
    max-width: 100%; /* in the flow: no photo-edge gutter */
}

/* Phone: a slightly smaller pill, text still 14px */
@media (max-width: 480px) {
    span.ez-status {
        gap: 6px;
        padding: 5px 10px;
        font-size: 14px;
        letter-spacing: .03em;
    }

    span.ez-status .ez-status__i {
        width: 14px;
        height: 14px;
    }

    span.ez-status--photo {
        top: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}
