/**
 * Diagonal status ribbon on the main property image.
 *
 * The wrapper is deliberately limited to the upper-left corner so it cannot
 * cover gallery controls or the secondary photographs.
 */
.single-estate_property .gallery_wrapper > .status-wrapper.horizontalstatus {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 190px;
    height: 190px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.single-estate_property .gallery_wrapper > .status-wrapper.horizontalstatus .slider-property-status {
    position: absolute;
    top: 40px;
    left: -68px;
    display: block;
    width: 270px;
    min-height: 36px;
    margin: 0;
    padding: 9px 26px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 0;
    box-shadow: 0 5px 14px rgba(24, 31, 27, .24);
    color: #fff !important;
    background: #b58d4b !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: .055em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    transform-origin: center;
    white-space: nowrap;
}

/**
 * Property cards: keep the transaction type in the upper-right corner and
 * place the saved property status diagonally over the upper-left of the image.
 */
.property_listing .listing-unit-img-wrapper > .tag-wrapper {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.property_listing .listing-unit-img-wrapper > .tag-wrapper > .status-wrapper {
    position: static;
    width: auto;
    height: auto;
}

.property_listing .listing-unit-img-wrapper .action_tag_wrapper {
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
    z-index: 2;
    margin: 0;
    min-height: 38px;
    padding: 10px 18px;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(24, 31, 27, .2);
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.property_listing .listing-unit-img-wrapper .ribbon-inside {
    position: absolute;
    top: 48px;
    left: -80px;
    z-index: 3;
    display: block;
    width: 300px;
    min-height: 44px;
    margin: 0;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(24, 31, 27, .24);
    color: #fff !important;
    background: #b58d4b !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: .055em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    transform-origin: center;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .single-estate_property .gallery_wrapper > .status-wrapper.horizontalstatus {
        width: 158px;
        height: 158px;
    }

    .single-estate_property .gallery_wrapper > .status-wrapper.horizontalstatus .slider-property-status {
        top: 31px;
        left: -76px;
        width: 260px;
        padding-top: 7px;
        padding-bottom: 7px;
        font-size: 11px;
    }

    .property_listing .listing-unit-img-wrapper .ribbon-inside {
        top: 27px;
        left: -59px;
        width: 200px;
        padding-top: 6px;
        padding-bottom: 6px;
        font-size: 9px;
    }

    .property_listing .listing-unit-img-wrapper .action_tag_wrapper {
        top: 10px;
        right: 10px;
        min-height: 28px;
        padding: 6px 10px;
        font-size: 10px;
        line-height: 15px;
    }
}
