/* Página do lote (.lo-*). Usa também leilao.css (trilha, etiquetas, .lv-texto). */
.lo { color: var(--mv-texto); padding: 4px 4px 10px; }

.lo-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.lo-numero {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mv-ouro);
  margin: 0 0 6px;
}

.lo-numero span { color: #8a8aa6; font-weight: 600; }

.lo .lo-principal h1 {
  color: var(--mv-navy);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  margin: 0 0 8px;
}

.lo-leilao { color: #6b6b85; font-size: .92rem; margin-bottom: 20px; }
.lo-leilao a { color: var(--mv-navy); font-weight: 600; }

/* Galeria */
.lo-galeria { margin-bottom: 26px; }

.lo-foto {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #ececf3;
}

.lo-foto img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #f4f4f8; }

.lo-miniaturas {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 4px;
}

.lo-miniaturas button {
  flex: 0 0 84px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #ececf3;
  cursor: pointer;
  opacity: .75;
}

.lo-miniaturas button.is-active { border-color: var(--mv-ouro); opacity: 1; }
.lo-miniaturas img { width: 100%; height: 100%; object-fit: cover; }

.lo-descricao h2 { color: var(--mv-navy); font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.lo-arquivos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.lo-arquivos a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid var(--mv-navy);
  color: var(--mv-navy);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: .92rem;
}

.lo-arquivos a:hover { background: var(--mv-navy); color: #fff; text-decoration: none; }

.lo-navegacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #ececf3;
  font-weight: 700;
}

.lo-navegacao a { color: var(--mv-navy); }
.lo-navegacao .lo-todos { color: #8a8aa6; font-weight: 600; }

/* Painel de lance */
.lo-lateral { position: sticky; top: 140px; }

.lo-painel {
  border: 1px solid #e4e4ee;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 23, 47, .08);
}

.lo-painel-topo { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.lo .time {
  background: #fdecec;
  color: #b42318;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.lo-valor { display: flex; flex-direction: column; margin-bottom: 12px; }
.lo-valor-rotulo { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8a8aa6; font-weight: 700; }
.lo-valor strong { font-size: 2rem; color: var(--mv-navy); line-height: 1.2; font-variant-numeric: tabular-nums; }

.lo-detalhes { margin: 0 0 14px; padding: 12px 0; border-top: 1px solid #f0f0f5; border-bottom: 1px solid #f0f0f5; }
.lo-detalhes div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .9rem; }
.lo-detalhes dt { color: #8a8aa6; font-weight: 600; }
.lo-detalhes dd { margin: 0; text-align: right; font-weight: 600; }
.lo-detalhes small { font-weight: 400; color: #6b6b85; }

.lo-obs { font-size: .82rem; color: #6b6b85; }

.lo-form label { font-weight: 700; color: var(--mv-navy); font-size: .9rem; margin-bottom: 6px; display: block; }

.lo-campo-lance {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  border: 2px solid #d6d6e3;
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.lo-campo-lance:focus-within { border-color: var(--mv-navy); box-shadow: 0 0 0 3px rgba(35, 35, 72, .12); }

.lo-campo-lance span {
  font-size: 1.25rem;
  font-weight: 700;
  color: #8a8aa6;
  line-height: 1;
}

.lo-form .lo-campo-lance input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 0 0 10px;
  margin: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--mv-navy);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lo-form .lo-campo-lance input::placeholder { color: #c3c3d3; }

.lo-btn-lance {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  padding: 14px;
  background: #1f8a4c;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background .15s;
}

.lo-btn-lance:hover { background: #18703d; }
.lo-btn-lance i { margin-right: 6px; }

.lo-login { font-size: .88rem; color: #6b6b85; margin: 10px 0 0; text-align: center; }
.lo-login a { font-weight: 700; color: var(--mv-navy); }

.lo-encerrado {
  background: #f0f0f6;
  color: var(--mv-navy);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-weight: 800;
}

#bidResult .alert { border-radius: 10px; font-size: .92rem; }

/* Último lance e histórico */
.lo-ultimo { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0f0f5; }
.lo-ultimo .noBid { display: flex; flex-direction: column; text-align: center; color: #6b6b85; }
.lo-ultimo .noBid.hidden { display: none; }
.lo-ultimo .noBid strong { color: var(--mv-navy); }
.lo-ultimo-rotulo { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #8a8aa6; font-weight: 700; margin-bottom: 4px; }
.lo-ultimo-linha { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--mv-navy); }
.lo-ultimo-linha strong { color: #1f8a4c; }
.lo-ultimo .currentBidDate { font-size: .82rem; color: #8a8aa6; }

.lo-historico { margin-top: 14px; }
.lo-historico ol { list-style: none; padding: 0; margin: 0; }
.lo-historico li { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; padding: 5px 0; border-bottom: 1px dashed #ececf3; }
.lo-historico li strong { font-variant-numeric: tabular-nums; }
.lo-historico em { font-size: .78rem; color: #8a8aa6; }

.lo-apresentacao { display: block; text-align: center; margin-top: 12px; font-size: .85rem; color: #8a8aa6; }

@media (max-width: 991.98px) {
  .lo-grade { grid-template-columns: 1fr; }
  .lo-lateral { position: static; }
}

@media (max-width: 575.98px) {
  .lo .lo-principal h1 { font-size: 1.35rem; }
  .lo-valor strong { font-size: 1.7rem; }
}

/* ---------- Foto principal: indica que amplia ---------- */
.lo-foto { position: relative; cursor: zoom-in; }

.lo-foto-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(23, 23, 47, .78);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  pointer-events: none;
  transition: background .15s;
}

.lo-foto:hover .lo-foto-zoom { background: var(--mv-navy); }

/* ---------- Lightbox (galeria.js) ---------- */
html.gl-travado, html.gl-travado body { overflow: hidden; }

.gl {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0a0a18;
  display: none;
  flex-direction: column;
}

.gl.is-aberto { display: flex; }

.gl-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #c9c9de;
  font-weight: 600;
}

.gl-dica { font-size: .85rem; opacity: .7; }
.gl.is-zoom .gl-dica { visibility: hidden; }

.gl-fechar, .gl-nav {
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.gl-fechar:hover, .gl-nav:hover { background: rgba(255, 255, 255, .22); }

.gl-palco {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 70px;
}

.gl-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  transition: opacity .2s;
}

.gl-img.is-carregando { opacity: .35; }

/* Zoom: foto no tamanho real dentro de uma área rolável */
.gl.is-zoom .gl-palco { overflow: auto; display: block; padding: 0; cursor: zoom-out; -webkit-overflow-scrolling: touch; }
.gl.is-zoom .gl-img { max-width: none; max-height: none; height: auto; cursor: zoom-out; }
.gl.is-zoom .gl-nav, .gl.is-zoom .gl-tiras { display: none; }

.gl-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gl-ant { left: 14px; }
.gl-prox { right: 14px; }

.gl-tiras {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding: 12px 16px 16px;
}

.gl-tira {
  flex: 0 0 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #222;
  opacity: .55;
  cursor: pointer;
}

.gl-tira img { width: 100%; height: 100%; object-fit: cover; }
.gl-tira.is-active { border-color: var(--mv-ouro); opacity: 1; }

@media (max-width: 575.98px) {
  .gl-palco { padding: 0; }
  .gl-nav { width: 40px; height: 40px; background: rgba(0, 0, 0, .45); }
  .gl-ant { left: 6px; }
  .gl-prox { right: 6px; }
  .gl-dica { display: none; }
  .gl-tira { flex-basis: 56px; height: 42px; }
}

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

.gl.is-zoom .gl-palco { scrollbar-width: none; }
.gl.is-zoom .gl-palco::-webkit-scrollbar { display: none; }

.gl-tiras { scrollbar-width: none; }
.gl-tiras::-webkit-scrollbar { display: none; }
