/*
 * "Listing not available" mode.
 *
 * The blur here is presentation only. Every value it covers was already
 * scrambled or removed server-side by public_search_redact_property(), so
 * deleting these rules in DevTools reveals nonsense, not the listing.
 */

.ps-unavailable {
    position: relative;
    /* blur() bleeds past the element box, so keep a gap before whatever follows */
    margin-bottom: 26px;
}

.ps-unavailable-veil {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
    opacity: .85;
}

/* Chrome keeps focusable children reachable by keyboard without this. */
.ps-unavailable-veil * {
    pointer-events: none !important;
}

/*
 * The card sits in an overlay that is out of normal flow, so it can never push
 * or overlap what follows the blurred region (Similar Properties). Sticky
 * inside that overlay keeps it in view while the blurred area scrolls past.
 */
.ps-unavailable-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 0 14px;
    pointer-events: none;
}

.ps-unavailable-card {
    position: sticky;
    top: 110px;
    max-width: 520px;
    margin: 0 auto;
    padding: 30px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
    text-align: center;
    pointer-events: auto;
}

.ps-unavailable-icon {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 2.2rem;
}

.ps-unavailable-heading {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 800;
}

.ps-unavailable-text {
    margin: 0 0 20px;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.6;
}

.ps-unavailable-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.ps-unavailable-cta:hover,
.ps-unavailable-cta:focus {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 767px) {
    .ps-unavailable-card {
        max-width: none;
        top: 80px;
        padding: 24px 18px;
    }

    .ps-unavailable-veil {
        filter: blur(5px);
    }
}

/*
 * The same state on a property card, so a saved or listed property says why it
 * is no longer available instead of quietly disappearing.
 */

.pc-unavailable {
    position: absolute;
    inset-inline-start: 10px;
    top: 10px;
    z-index: 3;
    padding: 5px 11px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.pc-is-unavailable .pc3-img-wrap,
.pc-is-unavailable .property-card-image {
    filter: grayscale(1);
    opacity: .72;
}

/* Withheld values: dots, so a blank never reads as "no price". */
.pdp-detail-masked {
    color: #94a3b8 !important;
    letter-spacing: .12em;
}

/*
 * Stand-in for the gallery. Sized to the real one (400px main, 82x58 thumbs) so
 * the blurred page keeps the shape of a listing that has photos, rather than
 * collapsing into a gap that reads as "no photos".
 */
.ps-unavailable-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    border-radius: 14px;
    background: linear-gradient(180deg, #e8edf3 0%, #dfe6ee 100%);
    color: #c2ccd8;
    font-size: 3.4rem;
}

.ps-unavailable-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.ps-unavailable-thumbs span {
    flex: none;
    width: 82px;
    height: 58px;
    border-radius: 8px;
    background: #e8edf3;
}

@media (max-width: 640px) {
    .ps-unavailable-photo {
        height: 240px;
        font-size: 2.6rem;
    }
}
