/* Styles spécifiques pour la page poiList */

/* Gestion des cards responsives avec CSS Grid */
.cardcontainer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 400px));
	gap: 10px;
	padding: 5px 15px 15px 15px;
	max-width: 1680px; /* 4 cartes x 400px + gaps + padding */
	margin: 0 auto;
	justify-content: center;
}

/* 2 colonnes pour tablettes */
@media (min-width: 768px) {
	.cardcontainer {
		grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
	}
}

/* 3 colonnes pour écrans moyens */
@media (min-width: 1200px) {
	.cardcontainer {
		grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
	}
}

/* 4 colonnes pour grands écrans */
@media (min-width: 1600px) {
	.cardcontainer {
		grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
	}
}

.card {
	cursor: pointer;
	background: white;
	border-radius: 4px;
	box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
	overflow: hidden;
	transition: box-shadow 0.3s;
	width: 100%;
}

.card:hover {
	box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
}

/* Titres */
h1 {
	margin: 0;
	font-size: 18px;
	color: #666;
	font-weight: normal;
	flex: 1;
}

h2 {
	font-size: 20px;
	font-weight: 500;
}

/* Image de la card */
.card-image {
	position: relative;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.card-image-container {
	position: relative;
	height: 200px;
	overflow: hidden;
}

/* Badge de distance */
.distance-badge {
	background-color: rgba(100, 200, 100, 0.8);
	width: 80px;
	height: 26px;
	padding: 3px 3px 3px 3px;
	text-align: center;
	border-radius: 2px;
	font-size: 0.8rem;
	color: white;
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
}

.distance-badge .material-icons {
	font-size: 16px;
	color: white;
	margin-right: 2px;
}

/* Badge de date/événement */
.date-badge {
	line-height: 1;
	padding: 6px;
	border-top-left-radius: 4px;
	display: inline-block;
	position: absolute;
	top: 0;
	left: 0;
	color: white;
	font-size: 0.875rem;
}

.date-badge.today {
	background-color: rgb(252, 210, 42);
}

.date-badge.upcoming {
	background-color: rgb(91, 200, 236);
}

.date-badge .material-icons {
	font-size: 16px;
	color: white;
	vertical-align: middle;
	margin-right: 2px;
}

/* Titre de la card avec overlay */
.card-title-overlay {
	text-shadow: 1px 1px 2px #555;
	margin-top: auto;
	height: 180px;
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	font-size: 1.25rem;
	letter-spacing: 0.0125em;
	line-height: 2rem;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
}

.card-title {
	font-weight: 700;
	backdrop-filter: blur(5px);
	padding: 10px;
	margin:0px;
	padding-left: 15px;
	width: 100%;
	color: white;
}

/* Contenu de la card */
.card-content {
	padding: 16px;
	min-height: 80px;
}

.card-description {
	color: rgba(0, 0, 0, 0.6);
	font-size: 0.875rem;
	line-height: 1.375rem;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Messages d'état */
.loading-container {
	text-align: center;
	padding: 20px;
}

.loading-container img {
	width: 50px;
	height: 50px;
}

.no-results-container {
	text-align: center;
	padding: 20px;
}

.chip {
	display: inline-block;
	padding: 8px 16px;
	background-color: #e0e0e0;
	border-radius: 16px;
	font-size: 14px;
	margin-bottom: 10px;
}

/* Lien "Autour de moi" */
.around-me-link {
	text-decoration: none;
	color: #666;
	white-space: nowrap;
	background-color: transparent;
	padding: 8px 16px;
	border-radius: 4px;
	border: 1px solid #ddd;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: all 0.3s;
}

.around-me-link:hover {
	background-color: #f5f5f5;
	border-color: #999;
}

.around-me-link .material-icons {
	font-size: 18px;
	color: #666;
}

/* Villes à proximité */
.citiesAround {
	font-size: 10px;
	margin: 10px;
	color: #999;
}

.citiesAround a {
	text-decoration: none;
	color: #999 !important;
}

/* Description de la ville */
.city-description {
	font-size: 10px;
	margin: 0;
	margin-top: 8px;
	color: #999;
}

.city-description-text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Page title section */
.page-title-section {
	margin-top: 15px;
	padding: 15px 30px;
	padding-bottom: 5px;
	max-width: 1680px;
	margin-left: auto;
	margin-right: auto;
}

.title-and-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}
