/* Favorite Button Styling */
.btn-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-favorite:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-favorite i {
  font-size: 18px;
  color: #dc3545;
  transition: all 0.3s ease;
}

/* Favorited state */
.btn-favorite.favorited i {
  color: #dc3545;
  animation: heartBeat 0.3s ease;
}

/* Not favorited state */
.btn-favorite:not(.favorited) i {
  color: #dc3545;
}

/* Hover effects */
.btn-favorite:not(.favorited):hover i {
  color: #dc3545;
  transform: scale(1.1);
}

.btn-favorite.favorited:hover i {
  animation: pulse 0.5s ease;
}

/* Heart beat animation */
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.4);
  }
  40% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(1.4);
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Loading state */
.btn-favorite.loading {
  pointer-events: none;
  opacity: 0.6;
}

.btn-favorite.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Shortlist badge styling */
.badge-shortlist {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  max-width: 85%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.badge-shortlist i {
  color: #ffc107;
  margin-right: 4px;
}
