.tenant-popup-overlay{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:99999;
    opacity:0;
    visibility:hidden;
    transition:opacity .22s ease, visibility .22s ease;
}

.tenant-popup-overlay.is-overlay-enabled{
    background:rgba(15, 23, 42, .52);
    backdrop-filter:blur(2px);
}

.tenant-popup-overlay.is-overlay-disabled{
    background:transparent;
}

.tenant-popup-overlay.is-visible{
    display:flex;
    opacity:1;
    visibility:visible;
}

.tenant-popup-modal{
    width:min(100%, 940px);
    max-height:min(92vh, 920px);
    overflow:auto;
    position:relative;
    background:#fff;
    color:#0f172a;
    border-radius:24px;
    box-shadow:0 25px 80px rgba(15,23,42,.28);
    transform:translateY(20px) scale(.98);
    transition:transform .22s ease;
}

.tenant-popup-modal--stacked{
    width:min(100%, 530px);
}

.tenant-popup-modal--stacked.tenant-popup-modal--video{
    width:min(100%, 690px);
}

.tenant-popup-overlay.is-visible .tenant-popup-modal{
    transform:translateY(0) scale(1);
}

.tenant-popup-close{
    position:absolute;
    top:14px;
    right:14px;
    width:42px;
    height:42px;
    border:none;
    border-radius:999px;
    background:rgba(255,255,255,.97);
    color:#0f172a;
    box-shadow:0 8px 18px rgba(15,23,42,.10);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:4;
    font-size:18px;
    transition:transform .15s ease, background .15s ease;
}

.tenant-popup-close:hover{
    transform:scale(1.04);
    background:#fff;
}

.tenant-popup-inner{
    min-height:320px;
}

.tenant-popup-inner--split{
    display:grid;
    grid-template-columns:minmax(360px, 1.1fr) minmax(320px, .9fr);
    align-items:start;
}

.tenant-popup-inner--stacked{
    display:grid;
    grid-template-columns:1fr;
}

.tenant-popup-media{
    background:#f8fafc;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:170px;
}

.tenant-popup-inner--split .tenant-popup-media{
    height:420px;
    min-height:420px;
    align-self:start;
}

.tenant-popup-inner--split .tenant-popup-image{
    width:100%;
    height:420px;
    min-height:420px;
    object-fit:contain;
    background:#f8fafc;
}

.tenant-popup-inner--split .tenant-popup-video{
    width:100%;
    height:420px;
    min-height:420px;
    object-fit:cover;
}

.tenant-popup-inner--split .tenant-popup-video-frame-wrap{
    height:420px;
    min-height:420px;
    aspect-ratio:auto;
}

.tenant-popup-inner--split .tenant-popup-content{
    min-height:420px;
    max-height:420px;
    justify-content:flex-start;
}

.tenant-popup-inner--split .tenant-popup-description{
    max-height:250px;
    overflow-y:auto;
    padding-right:8px;
}

.tenant-popup-inner--stacked .tenant-popup-media{
    border-top-left-radius:24px;
    border-top-right-radius:24px;
}

.tenant-popup-image,
.tenant-popup-video{
    display:block;
    width:100%;
    height:100%;
}

.tenant-popup-image{
    object-fit:contain;
    background:#f8fafc;
}

.tenant-popup-video{
    object-fit:cover;
    background:#000;
}

.tenant-popup-video{
    min-height:260px;
}

.tenant-popup-video-frame-wrap{
    width:100%;
    aspect-ratio:16 / 9;
    background:#000;
    min-height:260px;
}

.tenant-popup-iframe{
    width:100%;
    height:100%;
    display:block;
}

.tenant-popup-content{
    padding:32px 28px 28px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.tenant-popup-inner--stacked .tenant-popup-content{
    padding:8px 18px 18px;
}

.tenant-popup-content--actions-only{
    padding-top:20px;
}

.tenant-popup-title{
    margin:0 0 14px 0;
    font-size:34px;
    line-height:1.1;
    font-weight:800;
    letter-spacing:-0.02em;
    color:#0f172a;
}

.tenant-popup-description{
    color:#475569;
    font-size:16px;
    line-height:1.8;
}

.tenant-popup-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:5px;
}

.tenant-popup-primary-btn,
.tenant-popup-dismiss-btn{
    min-height:48px;
    padding:0 18px;
    border-radius:14px;
    font-size:14px;
    font-weight:800;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none !important;
    transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
    cursor:pointer;
}

.tenant-popup-primary-btn{
    background:#19b36b;
    color:#fff !important;
    border:1px solid #19b36b;
    box-shadow:0 12px 26px rgba(25,179,107,.22);
}

.tenant-popup-primary-btn:hover{
    background:#15975b;
    border-color:#15975b;
    color:#fff !important;
    transform:translateY(-1px);
}

.tenant-popup-dismiss-btn{
    background:#fff;
    color:#3f4d63;
    border:1px solid #c7d2e0;
}

.tenant-popup-dismiss-btn:hover{
    background:#f8fafc;
    border-color:#98a7ba;
    color:#243247;
    transform:translateY(-1px);
}

body.tenant-popup-open,
html.tenant-popup-open{
    overflow:hidden !important;
}

@media (max-width: 900px){
    .tenant-popup-overlay{
        padding:14px 14px 92px;
        align-items:flex-end;
    }

    .tenant-popup-modal,
    .tenant-popup-modal--stacked{
        width:100%;
        max-height:calc(100vh - 125px);
        border-bottom-left-radius:0;
        border-bottom-right-radius:0;
        margin-bottom:0;
    }

    .tenant-popup-inner--split,
    .tenant-popup-inner--stacked{
        grid-template-columns:1fr;
    }

    .tenant-popup-media{
        min-height:220px;
        border-top-left-radius:24px !important;
        border-top-right-radius:24px !important;
        border-bottom-left-radius:0 !important;
    }

    .tenant-popup-content{
        padding:24px 18px 20px !important;
    }

    .tenant-popup-title{
        font-size:28px;
    }

    .tenant-popup-description{
        font-size:15px;
        line-height:1.75;
    }

    .tenant-popup-actions{
        flex-direction:column;
    }

    .tenant-popup-primary-btn,
    .tenant-popup-dismiss-btn{
        width:100%;
    }
}

@media (max-width: 560px){
    .tenant-popup-title{
        font-size:24px;
    }

    .tenant-popup-close{
        top:10px;
        right:10px;
        width:38px;
        height:38px;
    }
}