/* ============================================================
   styles-fotos.css · BASE Construção
   Visor das fotos reais (interiores 4K) da vitrine.
   Usa os tokens de styles.css (--ouro, --vidro-forte, --texto...).
   ============================================================ */

.fotos-reais-abrir {
  height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--r-pilula);
  background: transparent;
  color: var(--ouro-claro);
  font-size: var(--t-pq);
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 95, .45);
  transition: background var(--t) var(--curva), color var(--t) var(--curva);
}
.fotos-reais-abrir:hover { background: var(--vidro-toque); color: var(--texto); }

.fotos-reais {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 5, 8, .82);
  backdrop-filter: blur(10px);
  animation: fr-surgir .22s var(--curva) both;
}
.fotos-reais[hidden] { display: none; }

.fr-painel {
  width: min(1480px, 100%);
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  background: var(--vidro-forte);
  box-shadow: inset 0 0 0 1px var(--linha), 0 40px 90px rgba(0, 0, 0, .55);
  animation: fr-subir .28s var(--curva) both;
}

.fr-topo {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "rotulo rotulo fechar"
    "titulo contador fechar";
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
}
.fr-eyebrow { grid-area: rotulo; }
.fr-titulo { grid-area: titulo; }
.fr-contador { grid-area: contador; }
.fr-fechar { grid-area: fechar; align-self: start; }
.fr-eyebrow {
  margin: 0 0 4px;
  color: var(--ouro);
  font-size: var(--t-micro);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fr-titulo {
  margin: 0;
  font-family: var(--serifa);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  color: var(--texto);
  letter-spacing: .01em;
}
.fr-contador {
  color: var(--texto-2);
  font-size: var(--t-pq);
  letter-spacing: .06em;
  padding-bottom: 6px;
}
.fr-fechar {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--vidro-leve);
  color: var(--texto);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--linha);
}
.fr-fechar:hover { background: var(--vidro-toque); }

.fr-palco {
  position: relative;
  margin: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0c10;
  box-shadow: inset 0 0 0 1px var(--linha);
}
.fr-imagem {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .3s var(--curva);
}
.fr-imagem.carregando { opacity: .45; }

.fr-selo {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 9px;
  border-radius: var(--r-pilula);
  background: rgba(8, 9, 12, .72);
  color: var(--ouro-claro);
  font-size: var(--t-micro);
  letter-spacing: .16em;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 95, .5);
}
.fr-legenda {
  position: absolute;
  left: 16px;
  bottom: 14px;
  max-width: 70%;
  color: var(--texto);
  font-size: var(--t-pq);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.fr-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 9, 12, .62);
  color: var(--texto);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--linha);
}
.fr-seta:hover { background: rgba(8, 9, 12, .85); }
.fr-antes { left: 14px; }
.fr-depois { right: 14px; }

.fr-tiras {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 148px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.fr-tira {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--texto-2);
  font-size: var(--t-micro);
  letter-spacing: .04em;
  cursor: pointer;
  text-align: left;
}
.fr-tira img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  opacity: .55;
  box-shadow: inset 0 0 0 1px var(--linha);
  transition: opacity var(--t) var(--curva), box-shadow var(--t) var(--curva);
}
.fr-tira:hover img { opacity: .85; }
.fr-tira[aria-selected="true"] img {
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--ouro);
}
.fr-tira[aria-selected="true"] { color: var(--texto); }

body.fotos-reais-ativo { overflow: hidden; }

@keyframes fr-surgir { from { opacity: 0; } to { opacity: 1; } }
@keyframes fr-subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .fotos-reais { padding: 10px; }
  .fr-painel { padding: 14px; gap: 10px; border-radius: 16px; }
  .fr-imagem { max-height: 52vh; }
  .fr-legenda { font-size: var(--t-micro); max-width: 80%; }
  .fr-seta { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .fotos-reais, .fr-painel { animation: none; }
  .fr-imagem, .fr-tira img { transition: none; }
}

/* apartamentos clicaveis sobre a foto da fachada */
.fr-pontos { position: absolute; inset: 0; pointer-events: none; }
.fr-ponto {
  position: absolute;
  pointer-events: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 95, 0);
  cursor: pointer;
  transition: background var(--t) var(--curva), box-shadow var(--t) var(--curva);
}
.fr-ponto:hover, .fr-ponto:focus-visible {
  background: rgba(201, 162, 95, .22);
  box-shadow: inset 0 0 0 1px var(--ouro);
  outline: none;
}
@media (prefers-reduced-motion: reduce) { .fr-ponto { transition: none; } }
