/* DV Favorites - Frontend Styles */

/* Favorite Button */
.dvf-favorite-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	border: 2px solid var(--bh-border-color, #333);
	color: var(--bh-text-secondary, #aaa);
	padding: 0.5rem 1rem;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.9rem;
}

.dvf-favorite-btn:hover {
	border-color: #ff6b6b;
	color: #ff6b6b;
}

.dvf-favorite-btn.is-saved {
	background: #ff6b6b;
	border-color: #ff6b6b;
	color: #fff;
}

.dvf-favorite-btn.is-saved .dvf-heart {
	animation: dvfHeartBeat 0.3s ease;
}

@keyframes dvfHeartBeat {
	0% { transform: scale(1); }
	50% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

.dvf-heart {
	font-size: 1.2rem;
	line-height: 1;
}

/* Header Badge */
.dvf-favorites-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--bh-text-secondary, #aaa);
	text-decoration: none;
	padding: 0.5rem;
	border-radius: 4px;
	transition: color 0.2s;
}

.dvf-favorites-link:hover {
	color: #ff6b6b;
}

.dvf-icon {
	font-size: 1.1rem;
}

.dvf-count {
	background: #ff6b6b;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

.dvf-label {
	font-size: 0.9rem;
}

@media (max-width: 768px) {
	.dvf-label {
		display: none;
	}
}

/* Favorites Page */
.dvf-favorites-page {
	padding: 2rem 0;
}

.dvf-favorites-page h2 {
	margin-bottom: 2rem;
}

.dvf-favorites-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}

.dvf-favorites-grid .location-card {
	position: relative;
}

.dvf-favorites-grid .dvf-remove-btn {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: rgba(0,0,0,0.7);
	border: none;
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	transition: background 0.2s;
	z-index: 10;
}

.dvf-favorites-grid .dvf-remove-btn:hover {
	background: #ff6b6b;
}

.dvf-loading,
.dvf-empty {
	text-align: center;
	padding: 3rem;
	color: var(--bh-text-muted, #888);
	grid-column: 1 / -1;
}

/* Add to card button positioning */
.location-card .dvf-favorite-btn {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: rgba(0,0,0,0.7);
	border: none;
	color: #fff;
	z-index: 5;
}

.location-card .dvf-favorite-btn:hover {
	background: rgba(255,107,107,0.9);
}

.location-card .dvf-favorite-btn.is-saved {
	background: #ff6b6b;
}

.location-card .dvf-favorite-btn .dvf-text {
	display: none;
}

/* Single location button */
.single-location-article .dvf-favorite-btn {
	margin-top: 1rem;
}
