/* Venda seu imóvel (/vender). Usa os tokens de estilo.css. Celular primeiro; computador a partir de 900 px. */
body[data-pagina="vender"] { background: #fff; }
body[data-pagina="vender"] .coluna { max-width: none; padding: 0; }
.vd { --ease: cubic-bezier(.16, 1, .3, 1); color: var(--tinta); }
html.vd-travado, html.vd-travado body { overflow: hidden; }

/* ---------- quiz em tela cheia: mesmos componentes do recrutamento (pergunta, opções, botão, balão de progresso) ---------- */
.vd-quiz { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; padding-top: calc(env(safe-area-inset-top) + 64px); background: var(--fundo); color: var(--tinta); text-align: left; opacity: 0; transform: translateY(24px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.vd-quiz.aberto { opacity: 1; transform: none; }
.vd-quiz[hidden] { display: none; } /* fechado não pode ficar por cima da cena pegando os toques */
.vd-quiz .rec-voltar { position: absolute; }
.vd-palco { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.vd-tela { position: absolute; inset: 0 0 auto; max-width: 560px; margin: 0 auto; padding: clamp(8px, 4vh, 40px) 22px calc(env(safe-area-inset-bottom) + 28px); transition: opacity .42s ease, transform .6s var(--curva); }
.vd-tela > * { animation: rec-subir .6s var(--curva) both; }
.vd-tela > :nth-child(2) { animation-delay: 70ms; } .vd-tela > :nth-child(3) { animation-delay: 140ms; } .vd-tela > :nth-child(n+4) { animation-delay: 210ms; }
.vd-tela.de-baixo { opacity: 0; transform: translateY(36px); }
.vd-tela.de-cima { opacity: 0; transform: translateY(-36px); }
.vd-tela.para-cima { opacity: 0; transform: translateY(-36px); pointer-events: none; }
.vd-tela.para-baixo { opacity: 0; transform: translateY(36px); pointer-events: none; }
.vd-tela.tremer .vd-corpo { animation: tremer .4s; }
.vd-corpo { display: grid; gap: 12px; }
.vd-tela .rec-botao.apagado { opacity: .45; filter: grayscale(1); }
.vd-tela .rec-botao[hidden] { display: none; }

.vd-input { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--linha); border-radius: 16px; background: var(--cartao); color: var(--tinta); font: 600 17px var(--sans); outline: none; box-shadow: var(--sombra); transition: border-color .2s, box-shadow .2s; }
.vd-input:focus { border-color: var(--dourado); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dourado) 18%, transparent); }
.vd-campo { display: grid; gap: 6px; }
.vd-campo > span { color: var(--suave); font-size: 12.5px; font-weight: 600; }
.vd-endereco { display: grid; gap: 12px; animation: vd-sobe .5s var(--ease) both; }
.vd-endereco[hidden] { display: none; }
.vd-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vd-tela.buscando .vd-campo:first-child .vd-input { background-image: linear-gradient(90deg, transparent, rgba(212, 169, 76, .18), transparent); background-size: 200% 100%; animation: vd-brilho 1s linear infinite; }
@keyframes vd-brilho { to { background-position: -200% 0; } }
.vd-sufixo { position: relative; display: flex; align-items: center; }
.vd-sufixo b { position: absolute; right: 18px; color: var(--suave); font-size: 15px; }
.vd-moeda b { left: 18px; right: auto; }
.vd-moeda .entrada { padding-left: 46px; }
.vd-moeda b { left: 0; color: var(--suave); font-size: 22px; font-weight: 600; }
.vd-input-grande { font-size: 34px; letter-spacing: -.03em; }
.vd-nao-sei { margin-top: 18px; }

.vd-contadores { display: grid; gap: 10px; }
.vd-contador { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 8px 8px 8px 18px; border: 1.5px solid var(--linha); border-radius: 18px; background: var(--cartao); box-shadow: var(--sombra); font-weight: 600; }
.vd-contador > div { display: flex; align-items: center; gap: 14px; }
.vd-contador button { width: 44px; height: 44px; border: 1.5px solid var(--linha); border-radius: 50%; background: var(--cartao); color: var(--tinta); font-size: 22px; cursor: pointer; transition: transform .15s var(--curva), border-color .2s; }
.vd-contador button:active { transform: scale(.9); border-color: var(--dourado); }
.vd-contador output { min-width: 22px; text-align: center; font-size: 18px; font-weight: 700; }

.vd-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vd-foto { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: #eef0f4; animation: vd-sobe .4s var(--ease) both; }
.vd-foto img { width: 100%; height: 100%; object-fit: cover; }
.vd-foto-sem { display: grid; place-items: center; height: 100%; color: var(--suave); font-size: 13px; }
.vd-foto-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.vd-foto.subindo { display: grid; place-items: end stretch; padding: 10px; }
.vd-foto-barra { height: 5px; border-radius: 99px; background: #dde1e8; overflow: hidden; }
.vd-foto-barra i { display: block; height: 100%; background: #d4a94c; transform: scaleX(.05); transform-origin: left; transition: transform .2s; }
.vd-fotos-acoes { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vd-add { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 12px; border: 1.5px dashed color-mix(in srgb, var(--dourado) 70%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--dourado) 7%, var(--cartao)); color: var(--dourado-texto); font: 600 15px var(--sans); cursor: pointer; transition: transform .15s var(--curva); }
.vd-add:active { transform: scale(.98); }
.vd-add b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dourado); color: #fff; font-size: 18px; }
.vd-add[hidden] { display: none; }
.vd-add-largo { width: 100%; justify-content: center; min-height: 120px; flex-direction: column; }
.vd-contagem { margin: 0; color: var(--suave); font-size: 14px; font-weight: 600; }
.vd-contagem.ok { color: #1f8a4c; }
.vd-video-estado { min-height: 22px; color: var(--suave); font-size: 14px; font-weight: 600; }
.vd-video-estado.ok { color: #1f8a4c; }
.vd-resumo { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0 0 14px; padding: 18px 20px; border: 1px solid var(--linha); border-radius: 20px; background: var(--cartao); box-shadow: var(--sombra); font-size: 14.5px; }
.vd-resumo dt { color: var(--suave); font-weight: 600; }
.vd-resumo dd { margin: 0; color: var(--tinta); font-weight: 600; }
.vd-fim { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; text-align: center; }
.vd-fim-selo { width: 84px; height: 84px; margin-bottom: 24px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #f6dfa0, #c69a3e 60%, #8a6a1f); box-shadow: 0 16px 40px rgba(198, 154, 62, .4); animation: vd-medalha .8s var(--ease) both; position: relative; }
.vd-fim-selo::after { content: ""; position: absolute; left: 31px; top: 22px; width: 18px; height: 34px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
@keyframes vd-medalha { from { opacity: 0; transform: scale(.5) rotate(-20deg); } }

/* ---------- computador ---------- */
@media (min-width: 900px) {
  .vd-quiz { background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--dourado) 10%, transparent), transparent 70%), var(--fundo); }
  .vd-tela { left: 0; right: 0; max-width: 620px; }
  .vd-contadores { grid-template-columns: repeat(3, 1fr); }
  .vd-fotos { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .vd *, .vd-quiz { animation: none !important; transition: none !important; }
}
html.vd-travado #vd-voltar { opacity: 0; pointer-events: none; }
/* computador: botão maior e respiro de 40px embaixo — o vídeo encolhe para o título caber na tela */
@media (min-width: 900px) { .vd .video-quadro { height: min(calc(100svh - 196px), calc((100vw - 36px) * 16 / 9)); } }
/* CEP: aviso de busca / encontrado / preencher à mão */
.vd-cep-status { min-height: 20px; margin: -2px 0 0; color: var(--suave); font-size: 13.5px; font-weight: 600; }
.vd-cep-status:empty { display: none; }
.vd-cep-status.buscando::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid color-mix(in srgb, var(--dourado) 30%, transparent); border-top-color: var(--dourado); border-radius: 50%; animation: girar .8s linear infinite; }
.vd-cep-status.ok { color: #1f8a4c; }
.vd-cep-status.manual { color: var(--dourado-texto); }
/* áreas: campo em m² com o botão "Não sei" (vira "m²") à direita */
.vd-areas { display: grid; gap: 12px; }
.vd-area-linha { display: flex; align-items: stretch; gap: 8px; }
.vd-area-linha .vd-sufixo { flex: 1; }
.vd-area-linha .vd-sufixo b { transition: opacity .2s; }
.vd-area-linha.sem-medida .vd-sufixo b { opacity: 0; }
.vd-area-linha .vd-input:disabled { background: color-mix(in srgb, var(--linha) 35%, var(--cartao)); color: var(--suave); -webkit-text-fill-color: var(--suave); box-shadow: none; }
.vd-nao-sabe { flex: none; min-width: 84px; padding: 0 14px; border: 1.5px solid var(--linha); border-radius: 16px; background: var(--cartao); color: var(--suave); font: 600 14px var(--sans); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s, transform .15s var(--curva); }
.vd-nao-sabe:active { transform: scale(.96); }
.vd-nao-sabe[aria-pressed="true"] { border-color: var(--dourado); background: color-mix(in srgb, var(--dourado) 10%, var(--cartao)); color: var(--dourado-texto); }
/* teste local: botão para simular fotos */
.vd-simular { justify-self: start; padding: 8px 14px; border: 1px dashed var(--linha); border-radius: 999px; background: none; color: var(--suave); font: 600 13px var(--sans); cursor: pointer; }
@media (min-width: 900px) { .vd-areas { grid-template-columns: 1fr 1fr; } }
.vd-fim-botao { margin-top: 26px; text-decoration: none; }
/* indicação: lista com a foto de cada corretor */
.opcoes-pessoas .opcao.com-foto { justify-content: flex-start; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.opcoes-pessoas .opcao.com-foto::after { margin-left: auto; }
.opcao-foto { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: color-mix(in srgb, var(--dourado) 12%, var(--cartao)); }
.opcao-foto-vazia { display: grid; place-items: center; color: var(--dourado-texto); font-size: 15px; font-weight: 700; }
.opcao.marcada .opcao-foto { box-shadow: 0 0 0 2px var(--dourado); }
@media (min-width: 900px) { .opcoes-pessoas { grid-template-columns: 1fr 1fr; } }
/* quiz aberto: página toda branca, inclusive atrás das barras do iPhone (topo e barra do endereço) */
html.vd-travado, html.vd-travado body { background: #fff; }
