/* ═══════════════════════════════════════════
   Panorama 360° for Elementor — v3
═══════════════════════════════════════════ */

/* ── Wrapper ── */
.p360-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* ── Viewer (container real do Pannellum) ── */
.p360-viewer {
    position: relative;
    width: 100%;
    height: 440px;       /* padrão; sobrescrito pelo slider */
    background: #0d1017;
    overflow: hidden;
    box-sizing: border-box;
    display: block;
}

/* Remove margem residual do Pannellum */
.p360-viewer > div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* ── Loading overlay ── */
.p360-loading {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient( 150deg, #0d1017 0%, #161c2a 100% );
    color: rgba( 255,255,255,.5 );
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: .05em;
    pointer-events: none;
    transition: opacity .4s;
}

.p360-ready .p360-loading {
    opacity: 0;
    pointer-events: none;
}

.p360-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255,255,255,.1);
    border-top-color: #5bc8f5;
    border-radius: 50%;
    animation: p360spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes p360spin {
    to { transform: rotate(360deg); }
}

/* ── Placeholder (sem imagem) ── */
.p360-empty {
    background: linear-gradient( 150deg, #0d1017 0%, #161c2a 100% );
}

.p360-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255,255,255,.55);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 30px;
    text-align: center;
}

.p360-globe {
    font-size: 52px;
    line-height: 1;
    display: block;
    animation: p360bob 3s ease-in-out infinite;
}

@keyframes p360bob {
    0%, 100% { transform: translateY(0);    }
    50%       { transform: translateY(-8px); }
}

.p360-placeholder p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    max-width: 280px;
}

/* ── Preview estático no editor Elementor ── */
.p360-editor-preview {
    background-size:     cover;
    background-position: center center;
    background-repeat:   no-repeat;
}

.p360-editor-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 7px 20px;
    border-radius: 99px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

/* ── Título / Descrição ── */
.p360-title {
    margin: 0 0 12px;
    line-height: 1.3;
}

.p360-desc {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
}

/* ── Esconde o loader padrão do Pannellum ── */
.p360-viewer .pnlm-load-box,
.p360-viewer .pnlm-lbar,
.p360-viewer .pnlm-lbar-fill,
.p360-viewer .pnlm-lmsg {
    display: none !important;
}

/* ── Estilo dos controles Pannellum ── */
.p360-viewer .pnlm-controls-container {
    top: 10px;
    right: 10px;
}

.p360-viewer .pnlm-control {
    background: rgba(10,12,20,.82) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(6px);
    transition: background .2s;
}

.p360-viewer .pnlm-control:hover {
    background: rgba(22,26,40,.95) !important;
}

/* ── Responsivo ── */
@media (max-width: 768px) {
    .p360-viewer { height: 280px !important; }
}

@media (max-width: 480px) {
    .p360-viewer { height: 200px !important; }
}
