/* Tour do duplex: tela cheia, nome do ambiente no alto e a barra de ambientes embaixo */
:root { --tinta: #17181C; --verde: #6E3FA3; --texto: 'Schibsted Grotesk', system-ui, sans-serif; }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: #111214; color: #fff; font-family: var(--texto); }
#palco { position: fixed; inset: 0; touch-action: none; cursor: grab; }
#palco.arrastando { cursor: grabbing; }
#palco canvas { display: block; }

.tour-carregando { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 14px; background: #111214; font-weight: 600; color: #D6D8DD; transition: opacity .5s; }
.tour-carregando span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: gira .8s linear infinite; }
.tour-carregando.pronto { opacity: 0; pointer-events: none; }
@keyframes gira { to { transform: rotate(360deg); } }

.tour-topo { position: fixed; z-index: 5; top: 14px; left: 14px; right: 70px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; pointer-events: none; }
.tour-onde { background: rgba(17, 18, 20, .72); backdrop-filter: blur(8px); padding: 9px 14px 10px; border-radius: 12px; }
.tour-onde small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #C9B6E4; }
.tour-onde strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.tour-dica { align-self: center; background: rgba(17, 18, 20, .55); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 10px; font-size: .8rem; color: #E1E3E7; transition: opacity .6s; }
.tour-dica.some { opacity: 0; }

.tour-pontos { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(17, 18, 20, .7), rgba(17, 18, 20, 0)); scrollbar-width: none; }
.tour-pontos::-webkit-scrollbar { display: none; }
.tour-pontos button { flex: none; display: flex; flex-direction: column; gap: 5px; width: 118px; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.tour-pontos img { width: 118px; height: 66px; object-fit: cover; border-radius: 9px; border: 2px solid rgba(255, 255, 255, .25); opacity: .8; transition: opacity .2s, border-color .2s, transform .2s; }
.tour-pontos span { font-size: .76rem; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.tour-pontos button:hover img { opacity: 1; transform: translateY(-2px); }
.tour-pontos button[aria-current="true"] img { opacity: 1; border-color: #fff; }

/* marcador de ponto no chão (desenhado em 3D) e o rótulo que aparece ao passar o mouse */
.tour-rotulo { position: fixed; z-index: 4; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); background: rgba(17, 18, 20, .82); padding: 5px 9px; border-radius: 7px; font-size: .78rem; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.tour-rotulo.ve { opacity: 1; }

@media (max-width: 700px) {
  .tour-topo { top: 10px; left: 10px; right: 60px; }
  .tour-dica { display: none; }
  .tour-pontos button { width: 96px; }
  .tour-pontos img { width: 96px; height: 56px; }
}

/* botão do passeio automático: triângulo de play; com o passeio rodando vira pausa */
.tour-auto { pointer-events: auto; display: inline-flex; align-items: center; gap: 9px; align-self: stretch; padding: 0 15px 0 12px; border: 0; border-radius: 12px; background: #6E3FA3; color: #fff; font: 700 .9rem/1 var(--texto); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: background-color .2s, transform .2s; }
.tour-auto:hover { transform: translateY(-1px); background: #7d4bb5; }
.tour-auto i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.tour-auto[aria-pressed="true"] { background: rgba(17, 18, 20, .72); backdrop-filter: blur(8px); }
.tour-auto[aria-pressed="true"] i { width: 11px; height: 13px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }
@media (max-width: 700px) {
  .tour-auto { padding: 0 12px 0 10px; font-size: .82rem; }
}

/* primeira posição do carrossel: o play do passeio automático, no mesmo tamanho das miniaturas */
.tour-play-capa { position: relative; display: grid; place-items: center; width: 118px; height: 66px; border-radius: 9px; background: #6E3FA3; border: 2px solid rgba(255, 255, 255, .35); transition: background-color .2s, transform .2s; }
.tour-play-capa i { width: 34px; height: 34px; border-radius: 50%; background: #fff; position: relative; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.tour-play-capa i::after { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #6E3FA3; }
.tour-play:hover .tour-play-capa { transform: translateY(-2px); background: #7d4bb5; }
.tour-play-txt { font-weight: 700; }
.tour-play[aria-pressed="true"] .tour-play-capa { background: #2a2b31; border-color: #fff; }
.tour-play[aria-pressed="true"] .tour-play-capa i::after { left: 12px; top: 11px; width: 10px; height: 12px; border: 0; border-left: 3px solid #2a2b31; border-right: 3px solid #2a2b31; box-sizing: border-box; }

/* instrução de uso nos primeiros segundos */
.tour-ajuda { position: fixed; z-index: 8; left: 50%; top: 50%; transform: translate(-50%, -58%); width: min(360px, calc(100vw - 32px)); padding: 20px 22px 18px; border-radius: 16px; background: rgba(17, 18, 20, .86); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transition: opacity .5s, transform .5s; animation: ajuda-entra .5s ease both .3s; }
@keyframes ajuda-entra { from { opacity: 0; transform: translate(-50%, -52%); } }
.tour-ajuda.some { opacity: 0; transform: translate(-50%, -64%); pointer-events: none; }
.tour-ajuda-titulo { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #C9B6E4; margin-bottom: 10px; }
.tour-ajuda ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.tour-ajuda li { display: grid; grid-template-columns: 26px 1fr; gap: 11px; align-items: center; font-size: .95rem; line-height: 1.3; color: #E4E6EA; }
.tour-ajuda li b { color: #fff; }
.tour-ajuda svg { width: 26px; height: 26px; color: #C9B6E4; }
.tour-ajuda-ok { margin-top: 16px; width: 100%; padding: .7rem; border: 0; border-radius: 10px; background: #6E3FA3; color: #fff; font: 700 .92rem var(--texto); cursor: pointer; }
.tour-ajuda-ok:hover { background: #7d4bb5; }
@media (max-width: 700px) {
  .tour-play-capa { width: 96px; height: 56px; }
}

/* cartão do fim do passeio: preço e visita */
.tour-fim { position: fixed; z-index: 9; right: 22px; top: 50%; transform: translate(16px, -50%); width: min(370px, calc(100vw - 32px)); padding: 26px 26px 20px; border-radius: 20px; background: rgba(20, 16, 28, .9); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1); }
.tour-fim.ve { opacity: 1; transform: translate(0, -50%); }
.tour-fim[hidden] { display: none; }
.tour-fim-fechar { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tour-fim-local { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #C9B6E4; }
.tour-fim h2 { margin-top: 6px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.tour-fim-preco { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.tour-fim-preco strong { font-size: 2.5rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.tour-fim-preco span { color: #C9CCD3; font-weight: 600; }
.tour-fim-conta { margin-top: 6px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #C9CCD3; font-size: .9rem; }
.tour-fim-form { margin-top: 16px; display: grid; gap: 6px; }
.tour-fim-form label { font-size: .8rem; font-weight: 700; color: #E1E3E7; margin-top: 4px; }
.tour-fim-form input, .tour-fim-form select { width: 100%; padding: .72rem .8rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255, 255, 255, .07); color: #fff; font: 500 .95rem var(--texto); }
.tour-fim-form input::placeholder { color: #9EA2AB; }
.tour-fim-form select option { color: #17181C; }
.tour-fim-form input:focus, .tour-fim-form select:focus { outline: 2px solid #B994E6; outline-offset: 1px; }
.tour-fim-agendar { margin-top: 10px; padding: .85rem; border: 0; border-radius: 11px; background: #6E3FA3; color: #fff; font: 800 1rem var(--texto); cursor: pointer; transition: background-color .2s; }
.tour-fim-agendar:hover { background: #7d4bb5; }
.tour-fim-zap { display: block; text-align: center; padding: .75rem; border-radius: 11px; border: 1px solid rgba(37, 211, 102, .6); color: #7BE3A4; font-weight: 700; text-decoration: none; }
.tour-fim-zap[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.tour-fim-aviso { min-height: 1.2em; font-size: .8rem; color: #F0C7A0; }
.tour-fim-denovo { margin-top: 8px; width: 100%; padding: .5rem; border: 0; background: none; color: #C9B6E4; font: 600 .85rem var(--texto); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tour-visita .tour-play-capa { background: #17181C; }
.tour-visita .tour-play-capa b { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
@media (max-width: 700px) {
  .tour-fim { right: 50%; top: auto; bottom: 12px; transform: translate(50%, 16px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 22px 20px 16px; }
  .tour-fim.ve { transform: translate(50%, 0); }
  .tour-fim-preco strong { font-size: 2.1rem; }
}

/* passeio automático: tela limpa (só o nome do ambiente); a barra volta se o mouse se mexer */
.tour-pontos { transition: opacity .6s ease, transform .6s ease; }
.passeando .tour-pontos { opacity: 0; transform: translateY(14px); pointer-events: none; }
.passeando.mostra-barra .tour-pontos { opacity: 1; transform: none; pointer-events: auto; }
