/* --- CONFIGURAÇÕES GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
}

a {
    text-decoration: none;
}

/* --- VARIÁVEIS DE CORES --- */
:root {
    --purple-dark: #1a1459;
    --purple-light: #3c357a;
    --gray-text: #666;
    --border-color: #eaeaea;
}

.navbar {
    background-color: var(--purple-light);;
}

.nav-item a {
    color: #dfdeef;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item a.active {
    color: white;
    border-bottom: 2px solid #ffaa00;
}

.nav-item .btn-top-lock {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 15px;
    border-radius: 4px;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.nav-item .btn-top-lock i {
    margin-right: 5px;
    color: #ffaa00;
}

/* .header-space {
    position: relative;
    height: 320px;
    background-image: url(https://images.unsplash.com/photo-1576013551627-0cc20b96c2a7?auto=format&fit=crop&w=1920&q=80);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
} */

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 20, 89, 0.9) 0%, rgba(26, 20, 89, 0.2) 100%);
}

.header-content {
    position: relative;
    color: white;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.breadcrumb {
    font-size: 13px;
    color: var(--purple-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: var(--purple-light);
    transition: color 0.3s;
}

.breadcrumb span {
    color: var(--purple-dark);
    font-weight: 700;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px 20px;
}


/* --- LAYOUT DIVIDIDO (SIDEBAR + MAIN) --- */
.tour-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* --- SIDEBAR (AMBIENTES DISPONÍVEIS) --- */
.tour-sidebar {
    flex: 1;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.tour-sidebar h2 {
    font-size: 16px;
    color: var(--purple-dark);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.env-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.env-item a{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid transparent;
}

.env-item:hover {
    background-color: var(--hover-bg);
    border-color: var(--border-color);
}

.env-item.active {
    background-color: var(--hover-bg);
    border-color: var(--border-color);
}

.env-thumb {
    width: 50px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.env-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--purple-light);
}

.env-info i {
    font-size: 18px;
}

.env-name {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.env-item.active .env-name {
    color: var(--purple-dark);
    font-weight: 700;
}

.env-arrow {
    background-color: var(--purple-dark);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Caixa Informativa Sidebar */
.sidebar-info-box {
    background-color: var(--hover-bg);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid var(--border-color);
}

.sidebar-info-box i {
    color: var(--purple-light);
    font-size: 20px;
    margin-top: 2px;
}

.sidebar-info-box p {
    font-size: 12px;
    color: var(--gray-text);
    line-height: 1.5;
}

/* --- MAIN (VISUALIZADOR 360) --- */
.tour-main {
    flex: 2.5;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tour-header h2 {
    font-size: 18px;
    color: var(--purple-dark);
    font-weight: 700;
}

.btn-fullscreen {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--purple-dark);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-fullscreen:hover {
    background-color: var(--hover-bg);
    border-color: var(--purple-light);
}

/* Container do Visualizador (Imagem e Controles) */
.viewer-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.viewer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Controles Overlays */
.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.control-btn:hover {
    background-color: #ffffff;
    color: var(--purple-light);
}

.viewer-controls-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.viewer-controls-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.pan-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(26, 20, 89, 0.85); /* Fundo escuro para destacar no chão */
    color: white;
    font-size: 20px;
}

.pan-btn:hover {
    background-color: rgba(26, 20, 89, 1);
    color: white;
}

/* Barra de Metadados Inferior */
.tour-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--hover-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-icon {
    color: var(--purple-light);
    font-size: 24px;
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    color: var(--gray-text);
    margin-bottom: 2px;
}

.meta-value {
    font-size: 14px;
    color: var(--purple-dark);
    font-weight: 700;
}

.meta-divider {
    width: 1px;
    height: 40px;
    background-color: #dcdcdc;
}

.footer-banner-container {
    padding: 0 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-banner {
    background: linear-gradient(135deg, #241d4f 0%, #3c357a 100%);
    border-radius: 8px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.2);
}

.footer-text .dev-by {
    font-size: 11px;
    color: #aaa5df;
    display: block;
    margin-bottom: 2px;
}

.footer-text h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-text .orange-text {
    color: #f39c12;
}

.footer-text p {
    font-size: 12px;
    color: #ccc8f1;
    margin-top: 2px;
}

.btn-footer {
    border: 1px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s, color 0.3s;
}

.btn-footer:hover {
    background-color: var(--purple-dark);
    color: #ffffff;
    text-decoration: none;
}