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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
}

#pano-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    cursor: url('assets/cursors/grab.cur'), default;
}

#pano-container:active {
    cursor: url('assets/cursors/grabbing.cur'), move;
}

#polygon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Deixa os cliques passarem para o panorama, exceto nos filhos com pointer-events: auto */
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#scene-title {
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    padding: 20px;
    font-weight: 300;
    pointer-events: auto;
}

#thumbnail-menu {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    display: flex;
    justify-content: flex-start; /* Melhora o scroll quando há muitos itens */
    gap: 15px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-x: auto;
    max-width: 700px; /* Limita para cerca de 5 itens visíveis */
    margin: 0 auto 20px auto; /* Centraliza a barra e dá espaço inferior */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    /* Scrollbar Estilizada */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) rgba(0,0,0,0.2);
}

/* Custom Scrollbar para Chrome/Safari/Edge */
#thumbnail-menu::-webkit-scrollbar {
    height: 8px;
    display: block;
}
#thumbnail-menu::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    margin: 0 10px;
}
#thumbnail-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
}
#thumbnail-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.8);
}

.thumbnail-item {
    flex: 0 0 auto; /* Impede que as miniaturas sejam espremidas */
    width: 120px;
    height: 80px;
    border-radius: 4px; /* Mais quadrado a pedido do usuário */
    cursor: grab;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

#thumbnail-menu.active-drag {
    cursor: grabbing;
}

#thumbnail-menu.active-drag .thumbnail-item {
    cursor: grabbing;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.thumbnail-item.active {
    border-color: #0078d4;
    box-shadow: 0 0 15px rgba(0, 120, 212, 0.8);
}

.thumbnail-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 4px 0;
    pointer-events: none;
}

/* Modal Glassmorphism */
#info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s, visibility 0.3s;
}

#info-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s;
}

#info-modal.hidden .modal-content {
    transform: translateY(20px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff4d4d;
}

#modal-title {
    margin-bottom: 15px;
    font-weight: 400;
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

#modal-media-container {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: #000;
}

#modal-text {
    line-height: 1.6;
    font-size: 16px;
}

/* Estilos dos Hotspots */
.link-hotspot {
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s, background 0.3s;
    animation: bounce 2s infinite;
}

.link-hotspot:hover .arrow-icon {
    transform: scale(1.1);
    background: white;
    animation: none;
}

.info-hotspot {
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-icon {
    width: 30px;
    height: 30px;
    background: #0078d4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    border: 2px solid white;
}

.arrow-icon i, .info-icon i {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.info-hotspot:hover .info-icon {
    transform: scale(1.1);
    background: #005a9e;
}

.tooltip {
    position: absolute;
    top: -40px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.link-hotspot:hover .tooltip,
.info-hotspot:hover .tooltip {
    opacity: 1;
}

/* Polígonos */
.hotspot-polygon {
    fill: rgba(255, 255, 255, 0.1); /* Ligeiramente visível para debug */
    stroke: transparent;
    stroke-width: 2px;
    cursor: pointer;
    pointer-events: auto;
    transition: fill 0.3s, stroke 0.3s;
}

.hotspot-polygon:hover {
    fill: rgba(255, 255, 255, 0.4);
    stroke: rgba(255, 255, 255, 0.8);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Hotspot Animations (Dynamic Styling) */
@keyframes hs-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes hs-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hs-anim-pulse { animation: hs-pulse 2s infinite; }
.hs-anim-bounce { animation: hs-bounce 2s infinite ease-in-out; }

/* === PREMIUM SPLASH SCREEN === */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.99));
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.icon-360-wrapper {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
    position: relative;
}

.icon-360-wrapper i {
    font-size: 44px;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: vrPulseRotate 5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes vrPulseRotate {
    0% {
        transform: scale(1) rotateY(0deg);
        filter: drop-shadow(0 0 2px rgba(96, 165, 250, 0.3));
    }
    50% {
        transform: scale(1.08) rotateY(180deg);
        filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.6));
    }
    100% {
        transform: scale(1) rotateY(360deg);
        filter: drop-shadow(0 0 2px rgba(96, 165, 250, 0.3));
    }
}

#splash-title {
    color: #f8fafc;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin: 5px 0;
}

.splash-subtitle {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 16px 38px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:not(:disabled):hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.btn-primary:not(:disabled):active {
    transform: scale(0.98) translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.02);
}

/* === FLOATING CONTROL BAR === */
#control-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--skin-bg, rgba(15, 23, 42, 0.55));
    backdrop-filter: var(--skin-blur, blur(15px));
    -webkit-backdrop-filter: var(--skin-blur, blur(15px));
    border: 1px solid var(--skin-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--skin-radius, 12px);
    padding: 6px;
    display: flex;
    gap: 6px;
    z-index: 50;
    pointer-events: auto;
    box-shadow: var(--skin-shadow, 0 10px 30px rgba(0, 0, 0, 0.4));
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#control-bar.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#thumbnail-menu.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#thumbnail-menu {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn {
    background: transparent;
    border: none;
    border-radius: var(--skin-btn-radius, 8px);
    color: var(--skin-text, #e2e8f0);
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--skin-active, #60a5fa);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.active {
    color: var(--skin-active, #60a5fa);
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* === ADVANCED SPLASH CUSTOMIZATION === */
#splash-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.splash-card {
    z-index: 10; /* Garante que fique acima do overlay do background */
}

.splash-logo-img {
    max-height: 130px;
    object-fit: contain;
    margin-bottom: 15px;
    width: auto;
    transition: transform 0.3s ease;
    z-index: 5;
}

/* Animações de Entrada Avançadas */
@keyframes hs-blur-reveal {
    from {
        filter: blur(25px);
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        filter: blur(0);
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hs-slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hs-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hs-anim-blur-reveal { animation: hs-blur-reveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hs-anim-slide-up { animation: hs-slide-up 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hs-anim-zoom-in { animation: hs-zoom-in 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Animações Continuas de Logotipo */
@keyframes hs-gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes hs-logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.hs-anim-float { animation: hs-gentle-float 4s infinite ease-in-out !important; }
.hs-anim-logo-pulse { animation: hs-logo-pulse 2.3s infinite ease-in-out !important; }

/* === 3DVISTA SKIN SYSTEMS === */
:root {
    --skin-bg: rgba(15, 23, 42, 0.55);
    --skin-border: rgba(255, 255, 255, 0.08);
    --skin-text: #e2e8f0;
    --skin-active: #60a5fa;
    --skin-blur: blur(15px);
    --skin-radius: 12px;
    --skin-btn-radius: 8px;
    --skin-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Modificadores de CSS Nativos por Preset */

/* 1. Aluminium Black (Sólido Metálico Escuro, botões quadrados com borda fina) */
#control-bar.skin-aluminium-black {
    background: linear-gradient(to bottom, #2d2d2d, #141414) !important;
    border: 2px solid #4a4a4a !important;
    border-radius: 4px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    padding: 3px !important;
    gap: 4px !important;
}
#control-bar.skin-aluminium-black .control-btn {
    border-radius: 2px !important;
    background: #1e1e1e !important;
    border: 1px solid #3d3d3d !important;
    color: #cccccc !important;
    margin: 2px !important;
}
#control-bar.skin-aluminium-black .control-btn:hover {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border-color: #555555 !important;
    transform: none !important;
}
#control-bar.skin-aluminium-black .control-btn.active {
    color: #ffffff !important;
    background: #333333 !important;
    border-color: #ffffff !important;
}

/* 2. Aluminium Green (Sólido Metálico Esverdeado) */
#control-bar.skin-aluminium-green {
    background: linear-gradient(to bottom, #1d3329, #0d1a14) !important;
    border: 2px solid #28523c !important;
    border-radius: 4px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    padding: 3px !important;
    gap: 4px !important;
}
#control-bar.skin-aluminium-green .control-btn {
    border-radius: 2px !important;
    background: #0f2118 !important;
    border: 1px solid #204030 !important;
    color: #a3e635 !important;
    margin: 2px !important;
}
#control-bar.skin-aluminium-green .control-btn:hover {
    background: #1c3d2c !important;
    color: #ffffff !important;
    border-color: #387c56 !important;
    transform: none !important;
}
#control-bar.skin-aluminium-green .control-btn.active {
    color: #ffffff !important;
    background: #28523c !important;
    border-color: #a3e635 !important;
}

/* 3. Circle Border Blue (Botões Circulares Separados com Borda Azul Neon) */
#control-bar.skin-circle-border-blue {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    gap: 10px !important;
}
#control-bar.skin-circle-border-blue .control-btn {
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border: 2px solid #0078d4 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 120, 212, 0.3) !important;
}
#control-bar.skin-circle-border-blue .control-btn:hover {
    border-color: #60a5fa !important;
    color: #60a5fa !important;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.8) !important;
    transform: scale(1.1) !important;
}
#control-bar.skin-circle-border-blue .control-btn.active {
    background: #0078d4 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* 4. Circle Border Red (Botões Circulares Separados com Borda Vermelha Neon) */
#control-bar.skin-circle-border-red {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    gap: 10px !important;
}
#control-bar.skin-circle-border-red .control-btn {
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border: 2px solid #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
}
#control-bar.skin-circle-border-red .control-btn:hover {
    border-color: #f87171 !important;
    color: #f87171 !important;
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.8) !important;
    transform: scale(1.1) !important;
}
#control-bar.skin-circle-border-red .control-btn.active {
    background: #ef4444 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* 5. Circles Outline White (Ultra-Minimalista Branco) */
#control-bar.skin-circles-outline-white {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    gap: 12px !important;
}
#control-bar.skin-circles-outline-white .control-btn {
    border-radius: 50% !important;
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
}
#control-bar.skin-circles-outline-white .control-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: scale(1.08) !important;
}
#control-bar.skin-circles-outline-white .control-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* 6. Squares Solid Violet (Quadrado Rígido Violeta Outline) */
#control-bar.skin-squares-solid-outline-violet {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    gap: 8px !important;
}
#control-bar.skin-squares-solid-outline-violet .control-btn {
    border-radius: 0px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid #8b5cf6 !important;
    color: #8b5cf6 !important;
}
#control-bar.skin-squares-solid-outline-violet .control-btn:hover {
    background: #8b5cf6 !important;
    color: #ffffff !important;
    border-color: #a78bfa !important;
    transform: none !important;
}
#control-bar.skin-squares-solid-outline-violet .control-btn.active {
    background: #ffffff !important;
    color: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
}

/* === REAL ESTATE CLEAN SKIN === */
.hidden-clean {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

#clean-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    pointer-events: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: transform 0.4s ease;
}

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

#clean-bar-logo {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

#clean-bar-info-btn {
    background: #ff3b30;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.25);
    transition: all 0.2s ease;
}

#clean-bar-info-btn:hover {
    background: #e02b20;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 59, 48, 0.35);
}

.clean-bar-center {
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.clean-nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px 15px;
}

.clean-nav-item i {
    font-size: 18px;
}

.clean-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.clean-nav-item:hover, .clean-nav-item.active {
    color: #ff3b30;
}

.clean-bar-right {
    display: flex;
    align-items: center;
}

/* Menu de Opções (Mais) */
#clean-more-menu {
    position: fixed;
    bottom: 85px;
    right: 30px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 200px;
    z-index: 1001;
    pointer-events: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.clean-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333333;
    font-weight: 500;
}

/* Switch Slider */
.clean-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.clean-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.clean-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 20px;
}

.clean-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.clean-switch input:checked + .clean-slider {
    background-color: #ff3b30;
}

.clean-switch input:checked + .clean-slider:before {
    transform: translateX(16px);
}

/* Modais Clean */
#clean-info-modal, #clean-lead-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 800px;
    background: #fcfcfc;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    padding: 30px;
    display: flex;
    gap: 30px;
    opacity: 0;
}

#clean-info-modal.active, #clean-lead-modal.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.clean-modal-close {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fcfcfc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.clean-modal-close:hover {
    color: #ff3b30;
    transform: translateX(-50%) scale(1.05);
}

.clean-modal-body {
    display: flex;
    width: 100%;
    gap: 30px;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar for Modal Body */
.clean-modal-body::-webkit-scrollbar {
    width: 6px;
}
.clean-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.clean-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.clean-info-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#clean-info-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.clean-tagline {
    font-size: 13px;
    color: #ff3b30;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.clean-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
}

.clean-info-right {
    flex: 1;
}

.clean-photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 180px;
}

.clean-photo-item {
    border-radius: 12px;
}

.clean-photo-item:first-child {
    grid-row: span 2;
}

/* Modificadores no carrossel (#thumbnail-menu) sob a Skin Clean */
body.skin-real-estate-clean #thumbnail-menu {
    position: fixed !important;
    bottom: 85px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(120%) !important;
    margin: 0 !important;
    max-width: 90% !important;
    width: 700px !important;
    background: #fcfcfc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    border-radius: 16px !important;
    z-index: 999 !important;
    padding: 15px 20px !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: flex !important;
    justify-content: flex-start !important; /* flex-start evita cortar o lado esquerdo no mobile */
}

/* Truque de Safe Centering: Centraliza quando cabe, e alinha à esquerda quando precisa de scroll */
body.skin-real-estate-clean #thumbnail-menu::before,
body.skin-real-estate-clean #thumbnail-menu::after {
    content: '';
    margin: auto;
}

body.skin-real-estate-clean #thumbnail-menu.active {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.skin-real-estate-clean .thumbnail-item {
    width: 120px !important;
    height: 75px !important;
    border-radius: 8px !important; /* Leve arredondamento nas pontas */
    border: 2px solid transparent !important;
}

body.skin-real-estate-clean .thumbnail-item:hover {
    transform: translateY(-3px) !important;
    border-color: #ff3b30 !important;
}

body.skin-real-estate-clean .thumbnail-item.active {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5) !important;
}

body.skin-real-estate-clean .thumbnail-title {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    text-transform: uppercase;
}

body.skin-real-estate-clean .thumbnail-item.active .thumbnail-title {
    color: #ff3b30 !important;
}

/* Placa Flutuante no Topo Esquerdo (Inspiração Real Estate Clean) */
#clean-top-card {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 998;
    pointer-events: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.clean-top-title {
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-transform: uppercase;
}

.clean-top-subtitle {
    background: rgba(0, 0, 0, 0.7);
    color: #e2e8f0;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   RESPONSIVIDADE - MOBILE E TABLET
   ========================================= */

@media (max-width: 768px) {
    #clean-info-modal, #clean-lead-modal {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        border-radius: 16px 16px 0 0;
    }
    
    .clean-modal-body {
        flex-direction: column;
        gap: 20px;
        max-height: calc(85vh - 40px);
    }

    #clean-bottom-bar {
        padding: 0 10px;
        height: 65px;
        justify-content: space-between;
    }
    
    .clean-bar-center {
        position: static;
        transform: none;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .clean-bar-left, .clean-bar-right {
        gap: 8px;
    }
    
    #clean-bar-info-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .clean-nav-item {
        padding: 4px 8px;
    }
    
    .clean-nav-item i {
        font-size: 16px;
    }
    
    .clean-nav-item span {
        font-size: 9px;
    }
    
    #clean-bar-logo {
        max-width: 80px;
        margin-right: 5px;
    }
    
    /* Top Card Responsive */
    #floating-custom-top-left {
        top: 60px !important;
        left: 10px !important;
    }
    
    #clean-top-card {
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    
    #clean-card-project-title {
        font-size: 12px !important;
    }
    
    #clean-card-logo {
        max-height: 25px !important;
    }
    
    #clean-more-menu {
        bottom: 75px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    #clean-bottom-bar {
        padding: 0 5px;
        height: 60px;
    }
    
    .clean-bar-center {
        gap: 5px;
    }
    
    /* Simplify button labels to avoid overlapping */
    .clean-nav-item span {
        display: none;
    }
    
    .clean-nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    #clean-bar-info-btn {
        padding: 6px 10px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    #clean-bar-logo {
        display: none !important; /* Esconde a logo na barra de baixo se a tela for muito pequena */
    }
    
    /* Splash Screen responsiva */
    .splash-card {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    #splash-title {
        font-size: 24px;
    }
}


