/* Modern Listings Page CSS - Adaptado de places-list.css */

.listings-page {
	background-color: #f0f8ff; /* AliceBlue - Light Blue */
	width: 100%;
	min-height: 100vh;
}

.listings-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Header */
.listings-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 15px;
}

.listings-header h1 {
	font-size: 2rem;
	font-weight: 700;
	color: #333;
	margin: 0;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.sort-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sort-wrapper select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: white;
	font-size: 0.95rem;
	cursor: pointer;
}

/* Filters Panel */
.filters-panel {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 30px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	width: 100%; /* Ensure it takes full width of container */
	box-sizing: border-box; /* Include padding in width */
}

.filters-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 25px;
	margin-bottom: 20px;
}

.filter-group h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: #444;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 8px;
}

.filter-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 200px;
	overflow-y: auto;
	padding-right: 5px;
}

/* Scrollbar styling for filters */
.filter-options::-webkit-scrollbar {
	width: 6px;
}

.filter-options::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.filter-options::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.checkbox-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	color: #555;
}

.checkbox-item input {
	accent-color: var(--primary-color, #007bff);
	width: 16px;
	height: 16px;
}

.filters-actions {
	display: flex;
	justify-content: flex-end;
	border-top: 1px solid #eee;
	padding-top: 15px;
	margin-top: 20px;
}

select {
	background-color: #fff;
}

/* Places Grid - Reutilizado para eventos */
.places-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

/* Place Card - Reutilizado para eventos */
.place-card {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

.place-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.place-card a {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.place-img {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.place-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.place-card:hover .place-img img {
	transform: scale(1.05);
}

.place-info {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 10px;
}

.place-header h3 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.place-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 0.9rem;
	color: #666;
}

.place-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cat-badge {
	background: #f0f2f5;
	color: #555;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 500;
}

/* Ad Card */
.ad-card {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9f9f9;
	border: 1px dashed #ddd;
}

.events-description {
	margin-top: 20px;
	padding: 10px 30px 30px;
	box-sizing: border-box;
}

.block-publi {
	width:100%;
	height: auto;
}

@media (max-width: 600px) {
	.places-grid {
		grid-template-columns: 1fr;
	}
}

/* Tablet Styles */
@media (min-width: 601px) and (max-width: 1024px) {
	.listings-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.header-actions {
		width: 100%;
		justify-content: space-between;
		margin-top: 10px;
	}
	.places-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}