/* Staff-page controls; card styling comes from the existing Haven stylesheet. */
#top .hp.hp-person-properties {
    margin-top: 0;
    margin-bottom: 0;
}

#top .hp-person-properties-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

#top .hp-person-properties-header h2 {
    margin: 0;
}

#top .hp-person-properties-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 0 auto;
    color: #446d6c;
}

#top .hp-person-properties-filter select {
    width: auto;
    min-width: 180px;
    max-width: 100%;
    margin: 0;
    padding: 12px 36px 12px 14px;
    border: 1px solid #95b1af;
    border-radius: 0;
    background-color: #ffffff;
    color: #446d6c;
    font: inherit;
}

#top .hp-person-properties .hp-card a,
#top .hp-person-properties .hp-card img {
    cursor: inherit;
}

/* A visible status badge, with the matching status also in the link's label. */
#top .hp-person-properties [data-hp-person-status-label]::after {
    content: attr(data-hp-person-status-label);
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    padding: 7px 14px;
    background: #00b0ad;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    pointer-events: none;
}

/* Historical cards should not also advertise themselves as currently for sale. */
#top .hp-person-properties [data-hp-person-property-status='sold'] .hp-property-badge--for-sale,
#top .hp-person-properties [data-hp-person-property-status='leased'] .hp-property-badge--for-rent {
    display: none;
}

@media (max-width: 600px) {
    #top .hp-person-properties-filter {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    #top .hp-person-properties-filter select {
        flex: 1 1 180px;
    }
}
