/* Trigger */
.bono-360-is-trigger { cursor: pointer; }
.bono-360-is-trigger:focus-visible { outline: 3px solid #C03A2B; outline-offset: 6px; border-radius: 6px; }

/* Button hint under "click to enter inside" */
.bono-360-is-trigger[data-interaction-id="312c5c8"]::after {
    content: "Google 360 view";
    display: table;
    margin: 22px auto 0;
    padding: 12px 22px 12px 48px;
    background: #C03A2B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3C/svg%3E") no-repeat 18px center / 20px 20px;
    color: #fff;
    font-family: ringold-sans, "Inter Tight", sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.6px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .2s;
}
.bono-360-is-trigger[data-interaction-id="312c5c8"]:hover::after { background-color: #2d2a26; }
@media (max-width: 767px) {
    .bono-360-is-trigger[data-interaction-id="312c5c8"]::after { font-size: 1rem; margin-top: 16px; padding: 11px 18px 11px 44px; background-position: 16px center; }
}

html.bono-360-lock, html.bono-360-lock body { overflow: hidden; }

/* Pop-up */
.bono-360 {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.bono-360.is-open { opacity: 1; visibility: visible; }

.bono-360__overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 22, 18, .82);
}

.bono-360__box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1120px, 100%);
    height: min(760px, calc(100vh - 48px));
    background: #FFFBF5;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    transform: translateY(14px) scale(.985);
    transition: transform .25s ease;
}
.bono-360.is-open .bono-360__box { transform: none; }

.bono-360__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 12px 22px;
    border-bottom: 1px solid rgba(45, 42, 38, .1);
}

.bono-360__title {
    margin: 0;
    font-family: "Inter Tight", sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-size: 1.35rem;
    line-height: 1;
    color: #C03A2B;
}

.bono-360 button.bono-360__close,
.bono-360 button.bono-360__close:focus,
.bono-360 button.bono-360__close:active {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    min-height: 0;
    padding: 0 16px 0 14px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #C03A2B;
    color: #fff;
    font-family: "Inter Tight", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    outline: none;
}
.bono-360 button.bono-360__close:hover,
.bono-360 button.bono-360__close:focus-visible { background: #2d2a26; color: #fff; }
.bono-360__close svg { width: 18px; height: 18px; }

.bono-360__frame {
    position: relative;
    flex: 1 1 auto;
    background: #e9e3da;
}
.bono-360__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.bono-360__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter Tight", sans-serif;
    font-size: 14px;
    color: #2d2a26;
    opacity: .6;
}

/* Phone: full-screen sheet, big close button always in reach */
@media (max-width: 767px) {
    .bono-360 { padding: 0; align-items: stretch; }
    .bono-360__box {
        width: 100%;
        height: 100%;
        height: 100dvh;
        border-radius: 0;
        transform: translateY(24px);
    }
    .bono-360__head {
        padding: 10px 10px 10px 16px;
        padding-top: max(10px, env(safe-area-inset-top));
    }
    .bono-360__title { font-size: 1.1rem; }
}
