/* IMPORTAÇÃO DA FONTE MONTSERRAT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* --- TRAVA DE SEGURANÇA CONTRA BUG DO SAFARI --- */
html, body {
    overflow-x: hidden !important;
    position: relative;
}

#jump-globe-wrapper {
    max-width: 100vw !important;
    box-sizing: border-box;
}

#jump-globe-wrapper, 
#jump-globe-wrapper *, 
.jump-lightbox,
.jump-lightbox * {
    font-family: 'Montserrat', sans-serif !important;
}

/* Container Principal */
#jump-globe-wrapper {
    position: relative;
    width: 100%;
    height: 650px !important;
    min-height: 650px !important;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
}

#globe-3d-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; outline: none;
}

/* --- LISTA ESQUERDA --- */
#left-list-container {
    position: absolute; top: 30px; bottom: 30px; left: 30px; width: 280px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px);
    border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10; display: flex; flex-direction: column; overflow: hidden;
}
.list-header {
    padding: 20px; background: #f8f8f8; border-bottom: 1px solid #eee;
    font-weight: 700; color: #26234F; font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
}
.list-scroll-area { overflow-y: auto; flex-grow: 1; padding: 10px 0; }
.list-scroll-area::-webkit-scrollbar { width: 6px; }
.list-scroll-area::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.city-item {
    padding: 15px 25px; cursor: pointer; transition: all 0.2s ease;
    font-size: 15px; color: #555; border-left: 4px solid transparent;
    display: flex; justify-content: space-between; align-items: center;
}
.city-item:hover { background-color: #f0f0f0; color: #000; padding-left: 30px; }
.city-item.active { background-color: #fff0f0; color: #ED1D24; border-left-color: #ED1D24; font-weight: 600; }

/* --- PAINEL DIREITO --- */
#right-detail-panel {
    position: absolute; top: 0; right: 0; width: 400px; height: 100%;
    background: #fff; z-index: 20; box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column;
}
#right-detail-panel.is-open { transform: translateX(0); }

.panel-header { background: #ED1D24; color: white; padding: 30px; position: relative; }
.btn-close {
    position: absolute; top: 20px; right: 20px; width: 30px; height: 30px;
    background: rgba(255,255,255,0.2); border: none; color: white; border-radius: 50%;
    cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.btn-close:hover { background: rgba(255,255,255,0.4); }
.panel-title { font-size: 28px; font-weight: 800; margin: 0; line-height: 1.1; color: #26234f; }
.panel-subtitle { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; margin-top: 5px; }
.panel-body { padding: 30px; overflow-y: auto; flex-grow: 1; }
.panel-desc { font-size: 15px; line-height: 1.6; color: #555; margin-bottom: 25px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; background: #eee; }
.gallery-img { cursor: pointer; transition: transform 0.2s; }
.gallery-img:hover { transform: scale(1.05); }

/* ESTILOS DO LIGHTBOX NATIVO */
.jump-lightbox {
    display: none; 
    position: fixed;
    z-index: 2147483647; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.jump-lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomLightbox 0.3s ease;
}
@keyframes zoomLightbox {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}
.jump-lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #ffffff;
    font-size: 50px; 
    font-weight: bold;
    cursor: pointer; transition: 0.2s;
    z-index: 2147483648; 
    width: 60px; 
    height: 60px;
    text-align: center;
    line-height: 60px;
}
.jump-lightbox-close:hover { color: #ED1D24; transform: scale(1.1); }

/* RESPONSIVIDADE MOBILE */
@media (max-width: 980px) {
    #jump-globe-wrapper { flex-direction: column; height: 600px !important; min-height: 600px !important; }
    
    #left-list-container { 
        position: absolute !important; 
        width: 90% !important; 
        height: auto !important; 
        max-height: 35% !important; 
        top: auto !important; 
        bottom: 20px !important; 
        
        /* CENTRALIZAÇÃO MATEMÁTICA LIMPA */
        left: 5% !important; 
        margin: 0 !important; 
        
        right: auto !important; 
        transform: none !important; 
        box-sizing: border-box !important; 
        border-radius: 20px !important; 
    }
    
    #right-detail-panel { width: 100%; height: 75%; top: auto; bottom: 0; left: 0; transform: translateY(110%); border-radius: 20px 20px 0 0; }
    #right-detail-panel.is-open { transform: translateY(0); }

    /* MOVE O BOTÃO 'X' PARA O CANTO ESQUERDO FUGINDO DO MENU DIVI */
    .jump-lightbox-close {
        top: 20px !important;
        right: auto !important; 
        left: 20px !important; 
    }
}