html.miami-popup-open {
    overflow: hidden;
}

.miami-popup {
    width: min(1040px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    color: var(--blue-ink);
    background: white;
    box-shadow: 0 24px 100px #0005;
    overflow: auto;
}

.miami-popup::backdrop {
    background: rgba(4, 15, 48, .72);
    backdrop-filter: blur(5px);
}

.miami-popup__grid {
    display: grid;
    grid-template-columns: 34% 66%;
}

.miami-popup__art {
    position: relative;
    overflow: hidden;
    background: #064cff;
}

.miami-popup__art img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.miami-popup__art span {
    position: absolute;
    top: 28px;
    left: 26px;
    color: white;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    text-shadow: 0 2px 15px #062991;
}

.miami-popup__content {
    position: relative;
    padding: 34px 36px 18px;
}

.miami-popup button {
    font: inherit;
    cursor: pointer;
}

.miami-popup__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: white;
    color: var(--blue-ink);
    font-size: 36px !important;
    line-height: 1;
    border-radius: 50%;
}

.miami-popup__logo {
    width: min(300px, 70%);
    margin: 4px auto 24px;
}

.miami-popup h2 {
    margin: 0 0 14px;
    padding: 11px 16px;
    border-radius: 8px;
    color: white;
    background: var(--red);
    font-size: clamp(24px, 3vw, 36px);
    font-style: italic;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

#miami-description {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.miami-popup__badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.miami-popup__badges span {
    padding: 5px 22px;
    border-radius: 30px;
    background: var(--blue);
    color: white;
    font-weight: 800;
    font-style: italic;
}

.miami-popup__badges span + span {
    background: var(--red);
}

.miami-popup__address-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #9bb6e3;
    border-radius: 18px;
    background: #f3f7ff;
}

.miami-popup__pin {
    flex: 0 0 42px;
    width: 42px;
    height: 52px;
    color: var(--red);
}

.miami-popup address {
    padding-left: 20px;
    border-left: 2px solid #c1cfe7;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    font-style: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
    user-select: text;
}

.miami-popup__reminder {
    margin: 18px 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

.miami-popup__hint {
    margin: 0 0 18px;
    font-size: 13px;
    color: #536079;
}

.miami-popup__actions {
    display: flex;
    gap: 12px;
}

.miami-popup__actions button {
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
}

.miami-popup__copy {
    flex: 1.5;
    color: white;
    border: 2px solid var(--red);
    background: var(--red);
}

.miami-popup__dismiss {
    flex: 1;
    color: var(--blue-ink);
    border: 2px solid var(--blue-ink);
    background: white;
}

.miami-popup__status {
    min-height: 36px;
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #37486a;
}

.miami-popup :focus-visible,
.miami-reopen:focus-visible {
    outline: 3px solid #2686ff;
    outline-offset: 4px;
}

.miami-reopen {
    margin-top: 20px;
    padding: 10px 0;
    border: 0;
    color: white;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

@media (max-width: 700px) {
    .miami-popup {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    .miami-popup__grid {
        grid-template-columns: 1fr;
    }

    .miami-popup__art {
        display: none;
    }

    .miami-popup__content {
        padding: 28px 20px 12px;
        border-top: 6px solid var(--blue);
    }

    .miami-popup__logo {
        width: 220px;
        margin-bottom: 24px;
    }

    .miami-popup__address-card {
        gap: 12px;
        padding: 16px 12px;
    }

    .miami-popup__pin {
        flex-basis: 28px;
        width: 28px;
    }

    .miami-popup address {
        padding-left: 12px;
    }

    .miami-popup__actions {
        flex-direction: column;
    }
}
