/* Página de venda de lotes. Complementa styles-v3.css. */

.hero-lotes .hero-content {
  padding-bottom: 40px;
}

.lotes-mapa {
  background: #f2e7d4;
}

.lotes-contagem {
  margin-top: 12px;
  color: var(--orange);
  font-weight: 700;
}

.lotes-condicoes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.lotes-condicoes > div {
  padding: 20px 22px;
  background: var(--forest);
  border-radius: 4px;
  color: #eef0e4;
}

.lotes-condicoes span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ecd9ab;
}

.lotes-condicoes strong {
  display: block;
  margin: 4px 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.lotes-condicoes p {
  font-size: 14px;
  line-height: 1.45;
}

.lotes-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.lotes-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
}

.lotes-legenda span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lotes-legenda i {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #0004;
}

.cor-disponivel { background: #3f9b5f; }
.cor-selecionado { background: var(--orange); }
.cor-reservado { background: var(--gold); }
.cor-vendido { background: #1d2420; }

.lotes-canvas {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #254b2f;
  box-shadow: 0 22px 50px #4a4b2430;
}

.lotes-canvas > img {
  display: block;
  width: 100%;
  height: auto;
}

.lotes-canvas > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke-width: 1;
}

.lote {
  outline: none;
  cursor: pointer;
}

.lote polygon {
  fill: #3f9b5f;
  fill-opacity: .2;
  stroke: #fff;
  stroke-width: 4;
  transition: fill-opacity .2s, fill .2s;
}

.lote:hover polygon {
  fill-opacity: .45;
}

.lote:focus-visible polygon {
  fill-opacity: .45;
  stroke: #ffd466;
  stroke-width: 10;
}

.lote circle {
  fill: #173f2d;
  stroke: #fff;
  stroke-width: 4;
}

.lote text {
  dominant-baseline: central;
  text-anchor: middle;
  font-family: var(--body);
  font-weight: 700;
  fill: #fff;
  stroke: none;
  pointer-events: none;
}

.lote-numero {
  font-size: 36px;
}

.lote-situacao {
  font-size: 32px;
  letter-spacing: 2px;
  paint-order: stroke;
  stroke: #0009 !important;
  stroke-width: 6px;
}

.lote.is-selecionado polygon {
  fill: var(--orange);
  fill-opacity: .62;
  stroke-width: 8;
}

.lote.is-selecionado circle {
  fill: var(--orange);
}

.lote[data-situacao="vendido"],
.lote[data-situacao="indisponivel"],
.lote[data-situacao="reservado"] {
  cursor: not-allowed;
}

.lote[data-situacao="vendido"] polygon,
.lote[data-situacao="indisponivel"] polygon {
  fill: #1d2420;
  fill-opacity: .72;
  stroke-opacity: .55;
}

.lote[data-situacao="vendido"] circle,
.lote[data-situacao="indisponivel"] circle {
  fill: #1d2420;
}

.lote[data-situacao="reservado"] polygon {
  fill: var(--gold);
  fill-opacity: .55;
}

.lote[data-situacao="reservado"] circle {
  fill: #8a6410;
}

.lotes-aviso {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.lotes-form {
  position: sticky;
  top: 20px;
}

.lotes-form h3 {
  margin-bottom: 6px;
}

.lote-resumo {
  margin-bottom: 22px;
  color: var(--muted);
}

.lote-barra {
  display: none;
}

.lotes-motivos {
  background: #fffef9;
}

.lotes-beneficios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lotes-beneficios-tres {
  grid-template-columns: repeat(3, 1fr);
}

.lotes-beneficios > div {
  padding: 26px 24px;
  background: #fffef9;
  border: 1px solid #d0d5c4;
  border-radius: 4px;
}

.lotes-motivos .lotes-beneficios > div {
  background: #f5f1e6;
}

.lotes-beneficios svg {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--orange);
}

.lotes-beneficios h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.lotes-beneficios p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.lotes-fotos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.lotes-fotos .album-foto {
  width: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
}

.lotes-local {
  background: var(--forest);
  color: #eef0e4;
}

.lotes-local h2 {
  margin-bottom: 18px;
  color: #fff;
}

.lotes-local h2 em {
  color: #ecd9ab;
}

.lotes-local .button {
  margin-top: 24px;
}

.lotes-local-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.lotes-distancias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lotes-distancias p {
  padding: 18px 20px;
  background: #ffffff14;
  border-radius: 4px;
}

.lotes-distancias strong {
  display: block;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}

.lotes-distancias span {
  font-size: 15px;
}

.lotes-distancias small {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #d7ddcc;
}

.lotes-perto {
  background: #e9eee2;
}

.lotes-duvidas {
  background: #f5f1e6;
}

.lotes-duvidas-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.lotes-duvidas-layout h2 {
  margin-bottom: 24px;
}

.lotes-rodape {
  justify-content: space-between;
}

/* Painel restrito */

.painel {
  background: #f5f1e6;
}

.painel-conteudo {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 32px 16px 56px;
}

.painel h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.painel-login {
  max-width: 420px;
  margin: 8vh auto 0;
}

.painel-login input {
  width: 100%;
}

.painel-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.painel-topo .eyebrow {
  margin-bottom: 6px;
}

.painel-sair {
  min-height: 44px;
  padding: 0 16px;
  background: none;
  border: 1px solid var(--forest);
  border-radius: 4px;
  color: var(--forest);
  font-weight: 600;
}

.painel-resumo,
.painel-ajuda {
  margin-bottom: 16px;
  color: var(--muted);
}

.painel-ajuda {
  margin-top: 20px;
}

.painel-ajuda a {
  color: var(--orange);
  text-decoration: underline;
}

.painel-ok,
.painel-erro {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 4px;
  font-weight: 600;
}

.painel-ok {
  background: #dcebd8;
  color: var(--forest);
}

.painel-erro {
  background: #f6dcd6;
  color: #7c2413;
}

.painel-lote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
  padding: 14px 16px;
  background: #fffef9;
  border: 1px solid #d0d5c4;
  border-radius: 4px;
}

.painel-lote strong {
  display: block;
  color: var(--forest);
  font-size: 18px;
}

.painel-lote small {
  color: var(--muted);
  font-size: 13px;
}

.painel-opcoes {
  display: flex;
  gap: 6px;
}

.painel-opcao {
  min-height: 44px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid #929a83;
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.painel-disponivel[aria-pressed="true"] {
  background: #2f7d4f;
  border-color: #2f7d4f;
  color: #fff;
}

.painel-reservado[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #26382e;
}

.painel-vendido[aria-pressed="true"] {
  background: #1d2420;
  border-color: #1d2420;
  color: #fff;
}

@media (max-width: 1100px) {
  .lotes-beneficios {
    grid-template-columns: repeat(2, 1fr);
  }

  .lotes-beneficios-tres {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .lotes-condicoes,
  .lotes-layout,
  .lotes-local-layout,
  .lotes-duvidas-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .lotes-coluna-mapa {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .lotes-form {
    position: static;
    scroll-margin-top: 16px;
  }

  .lotes-beneficios-tres,
  .lotes-fotos {
    grid-template-columns: repeat(2, 1fr);
  }

  .lote-barra:not([hidden]) {
    position: fixed;
    z-index: 20;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 9px 9px 16px;
    background: var(--forest);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 8px 24px #0006;
  }

  .form-visivel .lote-barra {
    display: none !important;
  }

  .lote-barra .button {
    min-height: 44px;
    padding: 0 16px;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .lotes-beneficios,
  .lotes-beneficios-tres {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lote polygon {
    transition: none;
  }
}
