/* ==========================================================================
   Modal "Avaliações com imagens" — foto grande + a avaliação ao lado,
   igual ao do site de origem. As fotos NUNCA abrem em outra aba.
   ========================================================================== */

.modal-fotos { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.modal-fotos[hidden] { display: none; }

.mf-fundo {
  position: absolute; inset: 0;
  background: rgba(20, 22, 26, .55);
  backdrop-filter: blur(2px);
  animation: mfFundo .2s ease;
}
@keyframes mfFundo { from { opacity: 0; } }

.mf-caixa {
  position: relative;
  width: min(96vw, 1060px);
  max-height: 92vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: mfEntra .24s cubic-bezier(.2, 1.1, .35, 1);
}
@keyframes mfEntra { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.mf-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--borda); flex: none;
}
.mf-topo h3 { font-size: 17px; margin: 0; }
.mf-fechar {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.5px solid #e04b4b; border-radius: 5px;
  background: #fff; color: #e04b4b; cursor: pointer;
  transition: background .2s, color .2s;
}
.mf-fechar:hover { background: #e04b4b; color: #fff; }

.mf-corpo {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px;
  padding: 22px; overflow-y: auto;
}

/* ---- foto grande ---- */
.mf-palco {
  position: relative; background: var(--fundo2); border-radius: 8px;
  display: grid; place-items: center; overflow: hidden; min-height: 300px;
}
.mf-palco img {
  width: 100%; height: 100%; max-height: 62vh;
  object-fit: contain; display: block;
}
.mf-seta {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--borda); background: rgba(255, 255, 255, .92);
  color: var(--texto2); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  transition: background .2s, color .2s;
}
.mf-seta:hover { background: #fff; color: var(--texto); }
.mf-seta.ant { left: 12px; }
.mf-seta.prox { right: 12px; }
.mf-seta[hidden] { display: none; }

/* ---- a avaliacao ---- */
.mf-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mf-estrelas .estrelas { font-size: 19px; }
.mf-nome { font-size: 17px; font-weight: 700; margin: 0; }
.mf-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--texto2); margin: 0; }
.mf-meta .ca-data, .mf-meta .ca-local { display: inline-flex; align-items: center; gap: 6px; }
.mf-texto { font-size: 14.5px; line-height: 1.7; color: var(--texto); margin: 4px 0 0; }
.mf-info .ca-recomenda { margin-top: 4px; }

.mf-minis { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mf-mini {
  width: 88px; height: 88px; padding: 2px; cursor: pointer;
  border: 2px solid transparent; border-radius: 8px; background: none;
  transition: border-color .2s;
}
.mf-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.mf-mini:hover { border-color: var(--borda); }
.mf-mini.ativa { border-color: #1274e0; }

/* as fotos viraram botao: tirar a aparencia de botao */
.ca-foto, .ga-item {
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 8px; overflow: hidden; display: block;
}
.ca-fotos .ca-foto img { width: 120px; height: 120px; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .mf-corpo { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .mf-palco img { max-height: 44vh; }
  .mf-caixa { width: 96vw; max-height: 94vh; }
  .mf-mini { width: 70px; height: 70px; }
}
