/* Maxxi Garden 3D · estilos da interface */
:root {
  --bg: #0a1430; --painel: rgba(11, 18, 38, 0.8); --borda: rgba(255, 255, 255, 0.09);
  --texto: #eef2fb; --suave: #9aa6c3; --acento: #f5a524; --azul: #58b8ff;
  --disp: #3ee08f; --res: #ffb547; --vend: #64748b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--texto);
  font-family: Inter, system-ui, sans-serif; font-size: 13px; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
#palco { position: fixed; inset: 0; }
#palco canvas { display: block; }
.rotulos { position: absolute; inset: 0; pointer-events: none; }

.vidro { background: var(--painel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--borda); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }

/* topo */
.topo { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 12px; pointer-events: none; z-index: 5; }
.topo > * { pointer-events: auto; }
.marca { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; }
.logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: linear-gradient(135deg, #ffcf6e, var(--acento)); color: #1a1205; }
.marca h1 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.2px; }
.marca p { margin: 1px 0 0; font-size: 11.5px; color: var(--suave); }
.controles { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.seg { display: flex; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; padding: 7px 12px; border-radius: 9px; color: var(--suave); font-weight: 600; font-size: 12px; }
.seg button:hover { color: var(--texto); }
.seg button.on { background: rgba(255, 255, 255, 0.1); color: var(--texto); }
.seg button.on.acento { background: var(--acento); color: #1a1205; }

/* painel esquerdo */
.esq { position: fixed; top: 74px; left: 12px; width: 300px; bottom: 18px; display: flex; flex-direction: column; z-index: 4; }
.abas { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--borda); }
.abas button { flex: 1; background: none; border: 0; padding: 8px; border-radius: 9px; color: var(--suave); font-weight: 600; }
.abas button.on { background: rgba(255, 255, 255, 0.08); color: var(--texto); }
.conteudo { overflow-y: auto; padding: 12px 14px 14px; flex: 1; scrollbar-width: thin; scrollbar-color: #2a3654 transparent; }
.titulo { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--suave); font-weight: 600; margin: 14px 0 8px; }
.titulo:first-child { margin-top: 2px; }
.legenda { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.legenda div { background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 8px; }
.legenda b { display: block; font-size: 18px; font-weight: 700; }
.legenda span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--suave); }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--borda); border-radius: 999px; padding: 5px 10px; font-size: 12px; color: var(--suave); }
.chip:hover { color: var(--texto); }
.chip.on { background: rgba(245, 165, 36, 0.16); border-color: rgba(245, 165, 36, 0.6); color: #ffd58a; }
.chip small { opacity: 0.7; margin-left: 3px; }
.opcao { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; color: var(--texto); cursor: pointer; }
.opcao input { display: none; }
.chave { width: 32px; height: 18px; border-radius: 999px; background: #2a3450; position: relative; transition: 0.2s; flex: none; }
.chave::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #cfd6e6; transition: 0.2s; }
.opcao input:checked + .chave { background: var(--acento); }
.opcao input:checked + .chave::after { left: 16px; background: #fff; }

/* espelho de vendas */
.torre-tit { font-weight: 700; font-size: 12.5px; margin: 12px 0 6px; }
.torre-tit small { color: var(--suave); font-weight: 500; font-size: 10.5px; margin-left: 4px; }
.espelho { display: grid; grid-template-columns: 40px 1fr; gap: 3px; font-size: 10.5px; }
.espelho .linha { display: flex; gap: 2px; }
.espelho .linha button { min-width: 0; flex-basis: 0; overflow: hidden; white-space: nowrap; font-size: 9px; letter-spacing: -0.2px; }
.espelho button.sup { background: repeating-linear-gradient(135deg, var(--c) 0 4px, color-mix(in srgb, var(--c) 55%, #0b1226) 4px 8px); }
.espelho .and { color: var(--suave); display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; }
.espelho button { border: 0; border-radius: 4px; height: 17px; padding: 0; font-size: 9.5px; font-weight: 600; color: rgba(0, 0, 0, 0.7);
  background: var(--c); opacity: 0.9; transition: transform 0.1s; }
.espelho button.vend { color: rgba(255, 255, 255, 0.55); }
.espelho button:hover { transform: scale(1.12); opacity: 1; }
.espelho button.fora { opacity: 0.18; }
.espelho button.sel { outline: 2px solid var(--azul); outline-offset: 1px; }
.barra { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin: 10px 0; font-size: 12.5px; }
.barra b { font-weight: 700; }
.barra i { grid-column: span 2; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.barra i::after { content: ''; position: absolute; inset: 0; width: var(--p); border-radius: 99px; background: linear-gradient(90deg, #ffcf6e, var(--acento)); }
.torre-rot { text-align: center; padding: 4px 10px; border-radius: 10px; background: rgba(10, 16, 34, 0.8); border: 1px solid var(--borda);
  pointer-events: auto; cursor: pointer; transform: translateY(-50%); white-space: nowrap; }
.torre-rot b { display: block; font-size: 12px; }
.torre-rot small { font-size: 10px; color: var(--suave); }
.torre-rot:hover { border-color: var(--acento); }
.comodos em { font-style: normal; font-size: 10px; color: var(--acento); margin-left: 4px; }

/* vizinhança */
.poi-lista { display: flex; flex-direction: column; gap: 2px; }
.poi-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; background: none; border: 0; text-align: left; width: 100%; }
.poi-item:hover, .poi-item.on { background: rgba(255, 255, 255, 0.07); }
.poi-item .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px;
  background: color-mix(in srgb, var(--cor) 22%, transparent); flex: none; }
.poi-item b { display: block; font-weight: 600; font-size: 12.5px; }
.poi-item small { color: var(--suave); font-size: 11px; }
.poi-item .dist { margin-left: auto; text-align: right; font-weight: 600; white-space: nowrap; }
.resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.resumo div { background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 8px 10px; }
.resumo b { display: block; font-size: 15px; }
.resumo small { color: var(--suave); font-size: 11px; }
.link { color: var(--azul); text-decoration: none; font-weight: 600; display: inline-block; margin-top: 12px; }

/* painel da unidade */
.dir { position: fixed; top: 74px; right: 12px; width: 318px; max-height: calc(100% - 214px); overflow-y: auto; padding: 16px; z-index: 4;
  scrollbar-width: thin; scrollbar-color: #2a3654 transparent; transition: opacity 0.2s, transform 0.2s; }
.dir[hidden] { display: block; opacity: 0; transform: translateX(20px); pointer-events: none; }
@media (max-width: 1260px) and (min-width: 821px) { .dir { top: 114px; max-height: calc(100% - 254px); } }
.fechar { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, 0.06); font-size: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.dir h2 { margin: 10px 0 2px; font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.dir .tip { margin: 0 0 12px; color: var(--suave); }
.dados { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dados div { background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 8px 10px; }
.dados .cheio { grid-column: span 2; }
.dados small, .preco small { display: block; color: var(--suave); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px; }
.dados b { font-size: 13px; font-weight: 600; }
.preco { margin: 12px 0 10px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(245, 165, 36, 0.16), rgba(245, 165, 36, 0.04));
  border: 1px solid rgba(245, 165, 36, 0.3); }
.preco strong { display: block; font-size: 22px; font-weight: 800; margin: 2px 0; }
.preco span { color: var(--suave); font-size: 11.5px; }
.fluxo { width: 100%; border-collapse: collapse; font-size: 12px; }
.fluxo td { padding: 6px 0; border-bottom: 1px solid var(--borda); }
.fluxo td:last-child { text-align: right; font-weight: 600; }
.fluxo small { color: var(--suave); }
.primario { width: 100%; margin-top: 14px; padding: 12px; border: 0; border-radius: 11px; font-weight: 700; font-size: 13.5px;
  background: linear-gradient(135deg, #ffcf6e, var(--acento)); color: #1a1205; box-shadow: 0 6px 24px rgba(245, 165, 36, 0.35); }
.primario:hover { filter: brightness(1.07); }
.nav { display: flex; gap: 6px; margin-top: 8px; }
.nav button { flex: 1; padding: 8px; border-radius: 9px; border: 1px solid var(--borda); background: rgba(255, 255, 255, 0.04); font-size: 12px; color: var(--suave); }
.nav button:hover { color: var(--texto); }
.aviso { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: var(--suave); margin: 12px 0 0; line-height: 1.5; }

/* rótulos 3D */
.poi { display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 999px; background: rgba(10, 16, 34, 0.86);
  border: 1px solid color-mix(in srgb, var(--cor) 60%, transparent); white-space: nowrap; pointer-events: auto; cursor: pointer;
  transform: translateY(-50%); transition: background 0.15s; }
.poi:hover, .poi.ativo { background: color-mix(in srgb, var(--cor) 35%, #0a1022); z-index: 10; }
.poi .ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: color-mix(in srgb, var(--cor) 30%, transparent); }
.poi .txt { display: flex; flex-direction: column; line-height: 1.15; }
.poi b { font-size: 11px; font-weight: 600; color: #fff; }
.poi small { font-size: 10px; color: #c3cbe0; }
.poi:not(:hover):not(.ativo) small { display: none; }
.rotulos.compacto .poi:not(:hover):not(.ativo) { padding-right: 4px; }
.rotulos.compacto .poi:not(:hover):not(.ativo) .txt { display: none; }
.marcador { display: flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; font-weight: 700; font-size: 12px;
  background: rgba(10, 16, 34, 0.9); border: 1px solid var(--acento); white-space: nowrap; pointer-events: auto; cursor: pointer;
  transform: translateY(-50%); box-shadow: 0 0 24px rgba(245, 165, 36, 0.45); }
.marcador .logo { width: 22px; height: 22px; border-radius: 50%; font-size: 11px; }
.rua { color: rgba(220, 230, 255, 0.55); font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.comodo { text-align: center; pointer-events: none; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.comodo b { display: block; font-size: 11.5px; font-weight: 700; color: #fff; }
.comodo small { font-size: 10.5px; color: #e6ebf5; }
.comodo.on b { color: #ffd58a; }

.dica { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 8px 14px; font-size: 12px; color: var(--suave); z-index: 3; white-space: nowrap; }
.credito { position: fixed; bottom: 3px; right: 14px; font-size: 10px; color: rgba(200, 210, 235, 0.6); z-index: 3; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }

/* painel do sol */
.painel-sol { position: fixed; bottom: 18px; left: 324px; right: 12px; max-width: 760px; margin: 0 auto; padding: 10px 14px 10px; z-index: 4; }
.sol-topo { display: flex; align-items: center; gap: 10px; }
.min-btn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--borda); background: rgba(255, 255, 255, 0.06); font-size: 12px; flex: none; color: var(--suave); }
.min-btn:hover { color: var(--texto); }
.sol-rotulo { display: none; color: var(--suave); font-size: 12px; flex: 1; white-space: nowrap; }
.painel-sol.min { max-width: 270px; padding: 7px 10px; }
.painel-sol.min .sol-rotulo { display: inline; }
.painel-sol.min #solSlider, .painel-sol.min .sol-escala, .painel-sol.min .sol-base, .painel-sol.min .sol-dia,
.painel-sol.min .info-sol, .painel-sol.min .info, .painel-sol.min .opcao.mini, .painel-sol.min .ajuda { display: none; }
.painel-sol.min .hora { font-size: 16px; min-width: 0; }
.play { width: 32px; height: 32px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #ffd88a, var(--acento)); color: #1a1205; font-size: 12px; flex: none; }
.hora { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; min-width: 62px; font-variant-numeric: tabular-nums; }
.info { color: var(--suave); font-size: 12px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info b { color: var(--texto); }
.opcao.mini { padding: 0; gap: 8px; font-size: 12px; color: var(--suave); }
.ajuda { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--borda); background: rgba(255, 255, 255, 0.06); font-weight: 700; flex: none; }
#solSlider { width: 100%; margin: 8px 0 0; accent-color: var(--acento); height: 6px;
  background: linear-gradient(90deg, #0d1a3a 0%, #1d2f66 20%, #f2a65a 25%, #9fd0ff 35%, #9fd0ff 65%, #f2a65a 75%, #1d2f66 80%, #0d1a3a 100%);
  border-radius: 99px; appearance: none; -webkit-appearance: none; }
#solSlider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #ffd166; border: 3px solid #fff; box-shadow: 0 0 12px rgba(255, 209, 102, 0.9); cursor: grab; }
#solSlider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #ffd166; border: 3px solid #fff; cursor: grab; }
.sol-escala { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--suave); margin: 3px 2px 0; }
.sol-base { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.atalhos { display: flex; gap: 4px; flex-wrap: wrap; }
.atalhos button { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--borda); border-radius: 999px; padding: 4px 9px; font-size: 11px; color: var(--suave); }
.atalhos button:hover { color: var(--texto); border-color: rgba(255, 209, 102, 0.6); }
#segEstacao { background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
#segEstacao button { padding: 5px 9px; font-size: 11px; }
.sol-dia { font-size: 11.5px; color: var(--suave); margin-top: 6px; }
.sol-dia b { color: var(--texto); }
.info-sol { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-size: 12px; line-height: 1.55; max-height: 34vh; overflow-y: auto; }
.info-sol p { margin: 6px 0; }
.info-sol .nota { color: var(--suave); font-size: 11px; }
.sol-rot { display: flex; flex-direction: column; align-items: center; padding: 4px 10px; border-radius: 10px; background: rgba(40, 24, 6, 0.82);
  border: 1px solid rgba(255, 209, 102, 0.7); color: #ffe7b0; font-size: 11px; white-space: nowrap; transform: translateY(-60%); }
.sol-rot small { color: #f6d79c; font-size: 10px; }
.sol-mini { font-size: 10px; padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.sol-mini.verao { color: #ffc49a; background: rgba(60, 25, 8, 0.7); }
.sol-mini.inverno { color: #b9d4ff; background: rgba(10, 25, 60, 0.7); }
.rosa { font-weight: 800; font-size: 14px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); }
.rosa.norte { color: #ff6b5a; font-size: 17px; }
.credito a { color: inherit; }
#tip { position: fixed; pointer-events: none; padding: 7px 11px; font-size: 12px; z-index: 20; display: none; white-space: nowrap; border-radius: 10px; }
#tip b { font-weight: 700; }

/* interior */
#uiInterior[hidden], #uiCidade[hidden], .seg[hidden] { display: none; }
.voltar { padding: 9px 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; border: 1px solid var(--borda); }
.voltar:hover { background: rgba(30, 40, 70, 0.9); }
.titulo-int { padding: 8px 14px; }
.titulo-int b { font-size: 14px; display: block; }
.titulo-int span { color: var(--suave); font-size: 11.5px; }
.comodos { position: fixed; top: 74px; left: 12px; width: 240px; padding: 12px; z-index: 4; max-height: calc(100% - 130px); overflow-y: auto; }
.comodos button { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; padding: 7px 8px; border-radius: 8px; text-align: left; }
.comodos button:hover { background: rgba(255, 255, 255, 0.07); }
.comodos button span { color: var(--suave); }
.comodos .total { display: flex; justify-content: space-between; padding: 9px 8px 2px; border-top: 1px solid var(--borda); margin-top: 6px; font-weight: 700; }

#carregando { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; transition: opacity 0.6s; }
#carregando > div { text-align: center; color: var(--suave); width: 280px; }
#carregando .logo { margin: 0 auto 14px; width: 48px; height: 48px; font-size: 22px; animation: pulsar 1.2s infinite ease-in-out; }
#carregando .barra-carga { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin-top: 14px; overflow: hidden; }
#carregando .barra-carga i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffcf6e, var(--acento)); transition: width 0.3s; }
#carregando small { display: block; margin-top: 8px; font-size: 11px; opacity: 0.7; }
/* lazer dos rooftops */
.lazer-resumo { color: var(--suave); line-height: 1.5; margin: 2px 0 6px; }
.lazer-resumo b { color: var(--texto); }
.lazer-lista { display: flex; flex-direction: column; gap: 2px; }
.lazer-item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; background: none; border: 0; text-align: left; width: 100%; }
.lazer-item:hover, .lazer-item.on { background: rgba(255, 255, 255, 0.07); }
.lazer-item.on { outline: 1px solid rgba(245, 165, 36, 0.6); }
.lazer-item .mini { width: 54px; height: 36px; border-radius: 7px; background: #1b2440 center / cover no-repeat; flex: none; }
.lazer-item b { display: block; font-weight: 600; font-size: 12.5px; }
.lazer-item small { color: var(--suave); font-size: 11px; }
.link-planta { background: none; border: 0; color: var(--azul); font-weight: 600; padding: 6px 2px 2px; font-size: 12px; }
.foto-lazer { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 12px; margin-top: 4px; background: #1b2440 center / cover no-repeat; cursor: zoom-in; }
.legenda-foto { color: var(--suave); font-size: 11px; margin: 6px 0 0; }
#lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(4, 8, 20, 0.86); cursor: zoom-out; padding: 24px; }
#lightbox[hidden] { display: none; }
#lightbox figure { margin: 0; max-width: min(1400px, 96vw); }
#lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; display: block; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
#lightbox figcaption { color: var(--suave); text-align: center; margin-top: 10px; font-size: 13px; }
#aguarde { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(6, 10, 24, 0.55); z-index: 40; color: var(--texto); font-weight: 600; }
#aguarde[hidden] { display: none; }
#creditos { position: fixed; right: 12px; bottom: 24px; width: 360px; padding: 14px 16px; z-index: 30; font-size: 11.5px; line-height: 1.5; }
#creditos[hidden] { display: none; }
#creditos h3 { margin: 0 0 6px; font-size: 13px; }
#creditos p { margin: 4px 0; color: var(--suave); }
#creditos a { color: var(--azul); }
@keyframes pulsar { 50% { transform: scale(0.88); opacity: 0.7; } }

@media (max-width: 820px) {
  .topo { flex-wrap: wrap; }
  .controles { margin-left: 0; justify-content: flex-start; }
  .esq { top: auto; bottom: 8px; left: 8px; right: 8px; width: auto; height: 38vh; }
  .dir { top: auto; bottom: 8px; left: 8px; right: 8px; width: auto; max-height: 60vh; }
  .comodos { display: none; }
  .dica, .credito { display: none; }
  .painel-sol { left: 8px; right: 8px; bottom: auto; top: 108px; }
  .painel-sol .info, .sol-escala, .atalhos { display: none; }
}
