/* Ponto da carne (V517): corte em SVG com camadas que trocam de opacity, e os 3 botoes. */

.ponto {
  display: grid;
  grid-template-areas:
    "corte titulo"
    "botoes botoes";
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  padding: 8px 12px 10px;
  border: 1px solid rgba(212, 174, 104, 0.4);
  border-radius: 14px;
  background: rgba(212, 174, 104, 0.07);
}

.ponto__svg {
  grid-area: corte;
  display: block;
  width: 78px;
  height: auto;
  stroke: none;
}

.ponto__texto {
  grid-area: titulo;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ponto__rotulo {
  color: rgba(244, 239, 230, 0.82);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.ponto__nome {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.ponto__botoes {
  grid-area: botoes;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ponto__op {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 4px 4px;
  border: 1.5px solid rgba(244, 239, 230, 0.5);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.ponto__op[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #140f06;
}

/* Quantas linhas ja ha com este ponto (um selo no canto do botao) */
.ponto__qtd {
  position: absolute;
  top: -9px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: #f4efe6;
  color: #140f06;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
}

/* O miolo muda de cor com uma troca de camadas por opacity (imediata com prefers-reduced-motion). */
.ponto__camada {
  opacity: 0;
  transition: opacity 700ms ease;
}

.ponto__camada.is-ativo {
  opacity: 1;
}

.ponto__brilho {
  opacity: 0;
}

.ponto__brilho.is-flash {
  animation: ponto-brilho 700ms ease-out;
}

@keyframes ponto-brilho {
  25% {
    opacity: 0.4;
  }
}


/* V647: o seletor do ponto fica à vista sem rolar. No tablet na vertical a foto ocupava 48 % da altura e deixava ao painel de informação
   pouco mais de 500 px: o seletor (que ficava no fim) caía fora do ecrã. Nos cortes com ponto a foto é um pouco mais baixa. */
@media (max-aspect-ratio: 1/1) {
  .detail--ponto:not(.detail--nophoto) .detail__media img {
    max-height: 40vh;
  }
}
