/* Pano UI - кнопка "Посмотреть в интерьере" + модалка с Pannellum */

.rs-pano-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    background: #1A2332;
    color: #fff;
    border: none;
    border-radius: 6px;
    font: 600 14px/1.2 Manrope, Inter, system-ui, sans-serif;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    width: 100%;
    justify-content: center;
}
.rs-pano-btn:hover { background: #C8102E; }
.rs-pano-btn:active { transform: translateY(1px); }
.rs-pano-btn svg { flex-shrink: 0; }

.rs-pano {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rs-pano[hidden] { display: none; }

.rs-pano__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.rs-pano__dialog {
    position: relative;
    width: min(96vw, 1200px);
    height: min(92vh, 720px);
    background: #0e1622;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rs-pano__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: #1A2332;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.rs-pano__title {
    font: 700 16px/1.2 Manrope, sans-serif;
    flex-shrink: 0;
}
.rs-pano__switch {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}
.rs-pano__chip {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 5px 12px;
    font: 500 12px/1 Inter, sans-serif;
    cursor: pointer;
    transition: background .15s ease;
}
.rs-pano__chip:hover { background: rgba(255,255,255,.16); }
.rs-pano__chip.is-active { background: #C8102E; border-color: #C8102E; }

.rs-pano__close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,.08);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.rs-pano__close:hover { background: #C8102E; }

.rs-pano__viewer {
    flex: 1;
    width: 100%;
    background: #000;
    position: relative;
}

.rs-pano__hint {
    margin: 0;
    padding: 8px 18px;
    font: 400 12px/1.4 Inter, sans-serif;
    color: rgba(255,255,255,.6);
    background: #0a1018;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .rs-pano__dialog { width: 100vw; height: 100vh; border-radius: 0; }
    .rs-pano__head { flex-wrap: wrap; padding: 10px 12px; }
    .rs-pano__title { width: 100%; }
    .rs-pano__switch { width: calc(100% - 44px); }
}

/* lock body scroll while modal open */
body.rs-pano-open { overflow: hidden; }
