/* Discover Donosti Pinchos - front-end styles */

.ddp-wrap {
	max-width: 1100px;
	margin: 0 auto;
	box-sizing: border-box;
}
.ddp-wrap * {
	box-sizing: border-box;
}

.ddp-filters {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 22px;
	font-size: 14px;
}
.ddp-filter {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
	color: #333;
}
.ddp-filter select {
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #ccc;
	font-weight: normal;
	background: #fff;
}

.ddp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
}

.ddp-card {
	border: 1px solid #e6e2da;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ddp-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.ddp-card-image {
	aspect-ratio: 4 / 3;
	background: #f4efe6;
	overflow: hidden;
}
.ddp-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ddp-card-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 42px;
}

.ddp-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.ddp-card-title {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
}
.ddp-card-bar {
	margin: 0;
	font-size: 13px;
	color: #6b6b6b;
}
.ddp-card-price {
	margin: 0;
	font-weight: 700;
	color: #c0392b;
}
.ddp-card-desc {
	margin: 4px 0 10px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #444;
	flex: 1;
}

.ddp-upvote-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	border: 1px solid #ddd;
	background: #fafafa;
	border-radius: 20px;
	padding: 7px 16px;
	cursor: pointer;
	font-weight: 700;
	font-size: 14px;
	color: #333;
	transition: all 0.15s ease;
}
.ddp-upvote-btn:hover:not(:disabled) {
	background: #fff3ec;
	border-color: #e67e22;
	color: #e67e22;
}
.ddp-upvote-btn.voted {
	background: #fdece0;
	border-color: #e67e22;
	color: #e67e22;
	cursor: default;
}
.ddp-upvote-btn:disabled {
	opacity: 0.9;
}
.ddp-upvote-icon {
	font-size: 11px;
	line-height: 1;
}

.ddp-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #888;
	padding: 50px 0;
}

@media (max-width: 480px) {
	.ddp-grid {
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}
	.ddp-filters {
		gap: 12px;
	}
}
