/* Pop-up iklan paket di situs publik. */
.mb-popup {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mb-popup[hidden] {
    display: none;
}

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

.mb-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    animation: mbPopupFade .25s ease-out;
}

.mb-popup__dialog {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    background: var(--pub-surface, #fff);
    color: var(--pub-ink, #0c4a6e);
    border-radius: var(--pub-radius-lg, 1.35rem);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .35);
    animation: mbPopupIn .3s cubic-bezier(.2, .9, .3, 1.2);
}

.mb-popup__close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .65);
    color: #fff;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mb-popup__close:hover {
    background: rgba(15, 23, 42, .85);
}

.mb-popup__close:focus-visible {
    outline: 3px solid var(--pub-accent, #f97316);
    outline-offset: 2px;
}

.mb-popup__media {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    background: #0f172a;
    border-radius: var(--pub-radius-lg, 1.35rem) var(--pub-radius-lg, 1.35rem) 0 0;
}

.mb-popup__media-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(.55);
    z-index: -1;
}

.mb-popup__media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 48vh;
    min-height: 180px;
    margin: 0 auto;
    object-fit: contain;
}

.mb-popup__badge {
    position: absolute;
    left: .85rem;
    bottom: .85rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--pub-accent, #f97316);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.mb-popup__body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.mb-popup__meta {
    font-size: .85rem;
    font-weight: 600;
    color: var(--pub-primary-dark, #0369a1);
    margin-bottom: .35rem;
}

.mb-popup__title {
    font-family: var(--pub-display, 'Outfit', system-ui, sans-serif);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 .25rem;
}

.mb-popup__sub {
    font-size: .9rem;
    color: var(--pub-ink-muted, #475569);
    margin: 0 0 .5rem;
}

.mb-popup__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    margin: .6rem 0 1rem;
}

.mb-popup__price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pub-accent-hover, #ea580c);
    line-height: 1.1;
}

.mb-popup__price small {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: var(--pub-ink-muted, #475569);
}

.mb-popup__seats {
    font-size: .85rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: var(--pub-mist, #e0f2fe);
    color: var(--pub-primary-dark, #0369a1);
}

.mb-popup__seats.is-low {
    background: #fee2e2;
    color: #b91c1c;
}

.mb-popup__actions {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.mb-popup__actions .btn {
    min-height: 2.9rem;
}

.mb-popup__later {
    color: var(--pub-ink-muted, #475569);
    text-decoration: none;
}

@keyframes mbPopupFade {
    from { opacity: 0; }
}

@keyframes mbPopupIn {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
}

@media (prefers-reduced-motion: reduce) {
    .mb-popup__backdrop,
    .mb-popup__dialog { animation: none; }
}

html[data-bs-theme='dark'] .mb-popup__dialog {
    background: #0f172a;
    color: #e2e8f0;
}

html[data-bs-theme='dark'] .mb-popup__sub,
html[data-bs-theme='dark'] .mb-popup__price small,
html[data-bs-theme='dark'] .mb-popup__later { color: #94a3b8; }

html[data-bs-theme='dark'] .mb-popup__meta { color: #7dd3fc; }
html[data-bs-theme='dark'] .mb-popup__seats { background: #0c4a6e; color: #e0f2fe; }
html[data-bs-theme='dark'] .mb-popup__seats.is-low { background: #7f1d1d; color: #fecaca; }
