.app-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 30px;
        background-color: var(--beige);
        &.app-reduced {
            @media (width < 768px) {
                margin-inline: 15px;
            }
        }
        p {
            margin: 30px 0;
            font-size: 1.6rem;
        }
        @media (width >= 768px) {
            width: 45%;
            padding-inline: 45px;
        }
        @media (width >= 1024px) {
            padding-inline: 60px;
        }
    }
    img {
        display: block;
        width: 100%;
        object-fit: cover;
        @media (width >= 768px) {
            width: 55%;
        }
    }

    &.app-general-cta {
        div {
            background-color: var(--background);
            @media (width >= 768px) {
                padding-block: 45px;
            }
        }
    }
}

dialog.app-map-wrapper {
    margin: auto;
    width: 95vw;
    height: 61.1vw;
    border: none;
    outline: none;
    background-color: transparent;
    @media (min-aspect-ratio: 300 / 193) {
        width: 147.67vh;
        height: 95vh;
    }

    &::backdrop {
        background-color: rgba(0, 0, 0, 0.5);
    }
    > img {
        display: block;
        width: 100%;
        height: 100%;
    }
    > .app-estate-location {
        position: absolute;
        left: var(--x);
        top: var(--y);
        width: 2%;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        background: var(--gray) var(--icon) no-repeat center center / auto 60%;
        cursor: pointer;
        transform: translate(-50%, -50%);
        &::before {
            content: '';
            position: absolute;
            inset: -15px;
        }
        &.app-shown {
            z-index: 1;
            > div {
                display: block;
            }
        }
        > div {
            display: none;
            position: absolute;
            width: 300px;
            padding: 0;
            background-color: var(--background);
            img {
                width: 100%;
                aspect-ratio: 2 / 1;
                object-fit: cover;
                @media (height < 768px) and (orientation: landscape) {
                    aspect-ratio: 3 / 1;
                }
            }
            h3, span, p {
                padding-inline: 15px;
            }
            h3 {
                margin-block: 15px;
                font-size: 1.4rem;
                @media (height < 768px) and (orientation: landscape) {
                    margin-block: 5px;
                    font-size: 1.2rem;
                }
            }
            span {
                display: block;
                margin-block: 15px;
                font-size: 1.4rem;
                line-height: 1.4;
                @media (height < 768px) and (orientation: landscape) {
                    margin-block: 5px;
                    font-size: 1.2rem;
                }
            }
            p {
                margin-bottom: 15px;
                font-size: 1.2rem;
                @media (height < 768px) and (orientation: landscape) {
                    display: none;
                }
            }
        }
        &.app-left > div {
            left: 30px;
        }
        &.app-right > div {
            right: 30px;
        }
        &.app-up > div {
            top: 30px;
        }
        &.app-down > div {
            bottom: 30px;
        }
    }

    > .app-instruction {
        display: none;
        gap: 15px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        inset: 0;
        background-color: rgba(255, 255, 255, 0.7);
        img {
            width: 90px;
        }
        p {
            padding-inline: 15px;
            text-align: center;
            font-size: 1.6rem;
        }
        @media (width < 768px) and (orientation: portrait) {
            display: flex;
        }
    }

    > .app-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        transform: none;
        background: url(/wp-content/themes/origins/assets/images/close.svg) no-repeat center center / 15px auto;
    }
}