/* ハートアイコンのアニメーションスタイル */
.heart-icon-container {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
}

.heart-icon-svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ff4b4b;
  stroke-width: 2;
  transform-origin: center;
  transition: all 0.35s ease;
}

.favorite-button,
.property-favorite-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.favorite-button:hover,
.property-favorite-button:hover {
  background-color: #f8f8f8;
}

.favorite-button.active,
.property-favorite-button.active {
  background-color: #fff0f0;
  border-color: #ff4b4b;
  color: #ff4b4b;
}

.favorite-button.active .heart-icon-svg,
.property-favorite-button.active .heart-icon-svg {
  fill: #ff4b4b;
  transform: scale(1.2);
}

/* アニメーション効果 */
@keyframes heartbeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.3); }
  60% { transform: scale(1); }
}

.favorite-button.just-added .heart-icon-svg,
.property-favorite-button.just-added .heart-icon-svg {
  animation: heartbeat 0.8s ease-in-out;
  fill: #ff4b4b;
}
