/* Modal Tour Virtual — desktop. No mobile o JS abre o Kuula em nova aba. */

.tour-virtual-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.65);
}

.tour-virtual-modal {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000001;
    display: flex;
    flex-direction: column;
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    /* Centraliza sem transform (transform quebra iframe no iOS) */
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.tour-virtual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #e8eef7;
    background: #f7f9fc;
    flex-shrink: 0;
}

.tour-virtual-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f497d;
}

.tour-virtual-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #1f497d;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tour-virtual-close:hover {
    background: #3477e2;
}

.tour-virtual-body {
    position: relative;
    width: 100%;
    height: 640px;
    max-height: calc(100vh - 120px);
    background: #0f172a;
}

.tour-virtual-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Esconde o FAB do WhatsApp enquanto o tour (desktop) está aberto */
html.tour-virtual-aberto #whatsclub-widget {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Botão Tour virtual nas ações da unidade */
.section-unidades .unidades-tabs-content .unidade-info .unidade-actions button.btn-one {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
}

.section-unidades .unidades-tabs-content .unidade-info .unidade-actions button.btn-one.btn-outline {
    background: transparent;
    border: 2px solid #3477e2;
    color: #3477e2;
}

.section-unidades .unidades-tabs-content .unidade-info .unidade-actions button.btn-one.btn-outline:hover {
    background: #3477e2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 119, 226, 0.3);
}

@media (max-width: 767px) {
    .section-unidades .unidades-tabs-content .unidade-info .unidade-actions button.btn-one {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1 1 100%;
    }
}
