/* Styles for Landing v4 Property CTA */

.property-cta-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.property-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-cta .img {
    border-radius: 12px;
    overflow: hidden;
}

.property-cta .img img {
    display: block;
    width: 100%;
    height: auto;
    transition: all ease .5s;
    transform: translate3d(0, 0, 0) scale(1.001);
}

.property-cta-link:hover .property-cta .img img {
    transform: scale(1.05);
}

.property-cta .property-name {
    font-family: 'Arada-Headline-Bold';
    font-size: 22px;
    line-height: 120%;
    color: #FFFFFF;

    position: absolute;
    padding: 12px;
    bottom: 0;
    width: 100%;
    word-break: keep-all;
    word-spacing: 100vw;
}

body.rtl .property-cta .property-name {
    font-family: 'Cairo-Bold';
}

.property-cta .property-name:after {
    content: "";
    background: url("../../images/landing-v4-property-cta-arrow.svg") no-repeat center;
    background-size: 30px 30px;
    width: 30px;
    height: 30px;
    display: block;
    position: absolute;
    right: 12px;
    bottom: 12px;
}

body.rtl .property-cta .property-name:after {
    right: auto;
    left: 12px;
    scale: -1 1;
}

@media only screen and (min-width: 768px) {
    .property-cta .img {
        height: 380px;
    }

    .property-cta .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Optional: Controls alignment, just like background-position */
        object-position: center;
    }

    .property-cta .property-name {
        font-size: 24px;
        padding: 40px 24px;
    }

    .property-cta .property-name:after {
        background-size: 40px 40px;
        width: 40px;
        height: 40px;
        right: 24px;
        bottom: 40px;
    }

    body.rtl .property-cta .property-name:after {
        right: auto;
        left: 24px;
    }
}