/* Tour 360° — estilo Office 365 + inmersivo (visor.md) */
:root {
    --tour-blue: #185abd;
    --tour-blue-dark: #12407a;
    --tour-accent: #0078d4;
    --tour-wood: #8b6914;
    --tour-wood-light: #c4a35a;
    --tour-bg: #f3f2f1;
    --tour-panel: #ffffff;
    --tour-border: #edebe9;
    --tour-text: #323130;
    --tour-muted: #605e5c;
    --tour-success: #107c10;
    --tour-wa: #25d366;
    --font: 'Segoe UI', 'Calibri', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.tour-body {
    font-family: var(--font);
    background: #1a1a1a;
    color: var(--tour-text);
    min-height: 100vh;
    overflow: hidden;
}

/* ── Top bar ── */
.tour-topbar {
    background: var(--tour-blue);
    color: #fff;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.tour-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-back {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    opacity: .9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tour-back:hover { opacity: 1; text-decoration: underline; }

.tour-topbar-title {
    font-size: 14px;
    font-weight: 600;
}

.tour-topbar-badge {
    background: var(--tour-wood-light);
    color: #3d2e0a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* ── Layout ── */
/* Hook personalizado (hook.md) */
.tour-hook-banner {
    background: linear-gradient(90deg, #deecf9 0%, #f3f2f1 100%);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    margin-top: 44px;
    max-height: 140px;
    overflow-y: auto;
}

.tour-hook-welcome {
    font-size: 14px;
    color: var(--tour-blue);
    margin-bottom: 6px;
}

.tour-hook-meta { color: var(--tour-muted); font-weight: 400; }

.tour-hook-id {
    display: inline-block;
    background: var(--tour-blue);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 700;
}

.tour-hook-text {
    font-size: 12px;
    color: var(--tour-text);
    line-height: 1.5;
    margin: 0;
}

.tour-layout {
    display: flex;
    height: 100vh;
    padding-top: 44px;
}

.tour-personalized .tour-hook-banner {
    margin-top: 44px;
    flex-shrink: 0;
}

.tour-personalized .tour-layout {
    padding-top: 0;
    height: calc(100vh - 44px - 130px);
    min-height: 400px;
}

.tour-viewer-wrap {
    flex: 1;
    position: relative;
    background: #111;
}

#panorama {
    width: 100%;
    height: 100%;
}

.tour-viewer-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

/* ── Side panel ── */
.tour-panel {
    width: 340px;
    background: var(--tour-panel);
    border-left: 1px solid var(--tour-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.tour-panel-header {
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--tour-border);
    background: linear-gradient(180deg, #faf9f8 0%, #fff 100%);
}

.tour-panel-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--tour-blue);
    margin-bottom: 4px;
}

.tour-panel-header p {
    font-size: 12px;
    color: var(--tour-muted);
    line-height: 1.4;
}

.tour-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.tour-room-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tour-text);
    margin-bottom: 8px;
}

.tour-room-desc {
    font-size: 13px;
    color: var(--tour-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

.tour-details {
    list-style: none;
    margin-bottom: 20px;
}

.tour-details li {
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--tour-border);
    color: var(--tour-text);
}

.tour-details li::before {
    content: '✓ ';
    color: var(--tour-success);
    font-weight: 700;
}

.tour-panel-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--tour-muted);
    margin-bottom: 10px;
}

.tour-rooms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.tour-room-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 1px solid var(--tour-border);
    border-radius: 4px;
    background: #faf9f8;
    cursor: pointer;
    font-family: var(--font);
    font-size: 12px;
    color: var(--tour-text);
    transition: all .15s;
}

.tour-room-btn:hover {
    border-color: var(--tour-accent);
    background: #deecf9;
}

.tour-room-btn.active {
    border-color: var(--tour-blue);
    background: #deecf9;
    color: var(--tour-blue);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--tour-blue);
}

.tour-room-btn .rb-icon { font-size: 22px; }

.tour-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.tour-spec {
    background: #faf9f8;
    border: 1px solid var(--tour-border);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}

.tour-spec .sv { font-size: 20px; font-weight: 300; color: var(--tour-blue); }
.tour-spec .sl { font-size: 10px; color: var(--tour-muted); margin-top: 2px; }

.tour-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--tour-border);
    background: #faf9f8;
}

.tour-price {
    font-size: 13px;
    color: var(--tour-muted);
    margin-bottom: 4px;
}

.tour-price strong {
    display: block;
    font-size: 16px;
    color: var(--tour-blue);
    margin-top: 2px;
}

.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: var(--tour-wa);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s;
}

.btn-wa:hover { filter: brightness(1.08); }

.tour-demo-notice {
    background: #fff4ce;
    border: 1px solid #ffb900;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 11px;
    color: #7a5c00;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* ── Landing cards (index panel) ── */
.tour-landing-hero {
    background: linear-gradient(135deg, var(--tour-blue) 0%, var(--tour-blue-dark) 100%);
    color: #fff;
    border-radius: 4px;
    padding: 28px 32px;
    margin-bottom: 20px;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.tour-landing-hero-text { flex: 1; min-width: 220px; }
.tour-landing-hero h3 { font-size: 22px; font-weight: 300; margin-bottom: 8px; }
.tour-landing-hero p { font-size: 13px; opacity: .9; line-height: 1.5; }

.btn-tour-start {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    color: var(--tour-blue);
    border: none;
    border-radius: 4px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow .15s;
    white-space: nowrap;
}

.btn-tour-start:hover { box-shadow: 0 4px 12px rgba(0,0,0,.25); }

.tour-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.tour-model-card {
    border: 1px solid var(--tour-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .15s;
}

.tour-model-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.tour-model-card-img {
    height: 140px;
    background: var(--tour-bg) center/cover no-repeat;
    position: relative;
}

.tour-model-card-img .badge-360 {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--tour-blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.tour-model-card-body { padding: 16px; }
.tour-model-card-body h4 { font-size: 15px; color: var(--tour-blue); margin-bottom: 6px; }
.tour-model-card-body p { font-size: 12px; color: var(--tour-muted); margin-bottom: 12px; line-height: 1.4; }

.tour-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
    font-size: 12px;
    color: var(--tour-muted);
}

.tour-flow-step {
    background: #deecf9;
    color: var(--tour-accent);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.tour-flow-arrow { color: var(--tour-border); font-size: 16px; }

/* ── Mobile ── */
.tour-panel-toggle {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 50;
    background: var(--tour-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

@media (max-width: 900px) {
    .tour-layout { flex-direction: column; }
    .tour-viewer-wrap { height: 55vh; flex: none; }
    .tour-panel {
        width: 100%;
        height: 45vh;
        border-left: none;
        border-top: 1px solid var(--tour-border);
    }
    .tour-panel.collapsed { display: none; }
    .tour-panel-toggle { display: block; }
}