/* Botao de favoritar (coracao) — base do componente "plastic-moth-91" do
   Uiverse (by catraco), adaptado: tamanho controlado por --heart-size para
   caber no canto do card, e contorno neo no tema claro. */
.heart-container {
  --heart-color: rgb(255, 91, 137);
  --heart-size: 2.25rem;
  position: relative;
  width: var(--heart-size);
  height: var(--heart-size);
  transition: .3s;
}

.heart-container .checkbox {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 20;
  cursor: pointer;
  margin: 0;
}

.heart-container .svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heart-container .svg-outline,
.heart-container .svg-filled {
  fill: var(--heart-color);
  position: absolute;
  width: 60%;
  height: 60%;
}

.heart-container .svg-filled {
  animation: keyframes-svg-filled 1s;
  display: none;
}

.heart-container .svg-celebrate {
  position: absolute;
  animation: keyframes-svg-celebrate .5s;
  animation-fill-mode: forwards;
  display: none;
  stroke: var(--heart-color);
  fill: var(--heart-color);
  stroke-width: 2px;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.heart-container .checkbox:checked ~ .svg-container .svg-filled {
  display: block;
}

.heart-container .checkbox:checked ~ .svg-container .svg-celebrate {
  display: block;
}

@keyframes keyframes-svg-filled {
  0% { transform: scale(0); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); filter: brightness(1.5); }
}

@keyframes keyframes-svg-celebrate {
  0% { transform: scale(0); }
  50% { opacity: 1; filter: brightness(1.5); }
  100% { transform: scale(1.4); opacity: 0; display: none; }
}

/* Variante usada no canto do card: pastilha para o coracao nao sumir
   sobre a foto do destino. */
.heart-container--badge {
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

html.light .heart-container--badge {
  background: #fff;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
}

html.dark .heart-container--badge {
  background: rgba(16, 16, 16, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: none;
}
