/* Add Property Listing flow -- modal launcher chrome (the backdrop + frame that
   holds the Add Property Listing flow's iframe). The Add Property Listing flow's own full-screen styling
   (css/lus-add-property-listing.css) lives inside the iframe and is unaffected
   by this file. */

body.lus-add-property-listing-modal-open {
    overflow: hidden;
}

.lus-add-property-listing-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lus-add-property-listing-modal-frame {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 90vh;
    max-height: 900px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

.lus-add-property-listing-modal-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.lus-add-property-listing-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    font-size: 20px;
    line-height: 1;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lus-add-property-listing-modal-close:hover {
    color: var(--lus-auth-accent, #d64541);
}

@media (max-width: 640px) {
    .lus-add-property-listing-modal-overlay {
        padding: 0;
    }
    .lus-add-property-listing-modal-frame {
        max-width: none;
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
}
