.hgf-panorama-open {
    overflow: hidden;
}

.hgf-panorama-trigger {
    border-color: #0b7d4f !important;
    background: #0b7d4f !important;
    color: #fff !important;
    font-weight: 700;
}

.hgf-panorama-modal[hidden] {
    display: none;
}

.hgf-panorama-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 6px;
}

.hgf-panorama-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(4 18 30 / 88%);
}

.hgf-panorama-modal__panel {
    position: relative;
    display: flex;
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    max-width: none;
    max-height: none;
    overflow: hidden;
    flex-direction: column;
    border-radius: 12px;
    background: #071722;
    box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
}

.hgf-panorama-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(110deg, #1765a0, #07824f);
    color: #fff;
}

.hgf-panorama-modal__header strong {
    font-size: 16px;
}

.hgf-panorama-modal__actions {
    display: flex;
    gap: 8px;
}

.hgf-panorama-modal__actions button {
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.hgf-panorama-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #111;
    cursor: grab;
    touch-action: none;
}

.hgf-panorama-viewport {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
}

.hgf-panorama-hotspots {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 4;
}

.hgf-panorama-hotspot.is-offscreen {
    opacity: 0.88;
    outline: 2px solid #ffdf5d;
}

.hgf-panorama-hotspot {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, -50%);
    max-width: 230px;
    padding: 8px 12px;
    border: 2px solid #fff;
    border-radius: 18px;
    background: #07824f;
    box-shadow: 0 3px 12px rgb(0 0 0 / 48%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
}

.hgf-panorama-hotspot:hover,
.hgf-panorama-hotspot:focus {
    background: #1765a0;
    outline: 3px solid rgb(255 223 93 / 85%);
}

.hgf-panorama-hotspot--elevator,
.hgf-panorama-hotspot--staircase {
    background: #9b4b00;
}

.hgf-panorama-canvas.is-dragging {
    cursor: grabbing;
}

.hgf-panorama-status {
    margin: 0;
    padding: 9px 14px;
    background: #071722;
    color: #d7e7ef;
    text-align: center;
    font-size: 13px;
}

.hgf-panorama-modal.is-error .hgf-panorama-status {
    background: #701b1b;
    color: #fff;
}

.hgf-panorama-modal:fullscreen {
    padding: 0;
    background: #071722;
}

.hgf-panorama-modal:fullscreen .hgf-panorama-modal__panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.hgf-panorama-modal:fullscreen .hgf-panorama-canvas {
    height: 100%;
}

@media (max-width: 640px) {
    .hgf-panorama-modal {
        padding: 0;
    }

    .hgf-panorama-modal__panel {
        width: 100%;
        border-radius: 0;
    }

    .hgf-panorama-modal__panel {
        height: 100dvh;
    }

    .hgf-panorama-canvas {
        height: 100%;
        min-height: 0;
    }
}
