/* ============================================================
   LISTINGS — nouveau design (refresh 2026)
   Remplace listing.css (conserve, plus charge sauf par map.php).
   S'appuie sur les variables de nouveau.css. Bootstrap reste
   charge : les overrides ciblent body.listing uniquement.
   ============================================================ */

body.listing {
	background: var(--fond);
}

.listing .listing-content {
	padding: 0 32px;
}

/* ---------- Barre sticky recherche + filtres ---------- */
.barre-recherche {
	background: var(--blanc);
	border-bottom: 1px solid var(--gris-clair);
	padding: 12px 0;
	position: sticky;
	top: 64px; /* hauteur du header compact, une fois le scroll entame */
	z-index: 1040;
}
.barre-recherche-inner {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	padding: 0 32px;
}
.mini-recherche {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--gris-clair);
	border-radius: 999px;
	padding: 0 16px;
	flex: 0 1 320px;
	min-width: 220px;
}
.mini-recherche svg {
	flex: none;
	opacity: .5;
}
.mini-recherche input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	outline: none;
	box-shadow: none;
	padding: 9px 0;
	font-size: 14px;
	font-family: inherit;
	color: var(--ink);
}
.mini-recherche .suggestions {
	right: auto;
	min-width: 360px;
	max-width: 90vw;
}
form.filtres-listing {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
}
.filtre {
	border: 1.5px solid #d9e2e1;
	background: var(--blanc);
	border-radius: 999px;
	padding: 7px 15px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	cursor: pointer;
	margin: 0;
	display: inline-flex;
	align-items: center;
	position: relative;
}
.filtre input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.filtre:hover {
	border-color: var(--teal);
	color: var(--teal-dark);
}
.filtre:has(input:checked) {
	background: var(--teal-light);
	border-color: var(--teal);
	color: var(--teal-dark);
	font-weight: 700;
}
.filtre-select {
	padding: 0;
	border: none;
	background: none;
}
.filtre-select select {
	border: 1.5px solid #d9e2e1;
	border-radius: 999px;
	padding: 7px 12px;
	font-family: inherit;
	font-size: 14px;
	background: var(--blanc);
	color: var(--ink);
	cursor: pointer;
}
.filtre-select:has(option:checked:not([value=""])) select {
	background: var(--teal-light);
	border-color: var(--teal);
	color: var(--teal-dark);
	font-weight: 700;
}

/* ---------- Fil d'ariane (override des chips de main.css) ---------- */
.listing .page-content ol.breadcrumb {
	background: none;
	padding: 0;
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--gris);
}
.listing .breadcrumb li {
	color: var(--gris);
}
.listing .breadcrumb > li + li::before {
	content: "\203A\00a0";
	color: var(--gris);
	padding: 0 2px;
}
.listing .breadcrumb a {
	box-shadow: none;
	padding: 0;
	margin-bottom: 0;
	border-radius: 0;
	color: var(--gris);
	display: inline;
}
.listing .breadcrumb a:hover {
	color: var(--teal-dark);
	text-decoration: underline;
}

/* ---------- Entete ---------- */
.listing .page-content h1 {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.5px;
	color: var(--ink);
	margin: 4px 0 8px;
}

.listing p.description {
	color: var(--gris);
	font-size: 15px;
	margin-bottom: 22px;
}
.listing p.description a {
	color: var(--teal-dark);
	font-weight: 600;
}

.listing .illustration {
	float: right;
	margin: 0 0 12px 16px;
	padding: 0;
	border: none;
	border-radius: 10px;
	box-shadow: var(--ombre);
}

.listing .nb-results {
	border-bottom: none;
	padding: 0;
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 500;
	color: var(--gris);
}

.listing .alert-info {
	background: var(--teal-light);
	border: none;
	border-radius: 12px;
	color: var(--ink);
	font-size: 14px;
	padding: 14px 18px;
}
/* Compteur en rouge inline dans les vues ville : on l'aligne sur le theme */
.listing .alert-info span[style] {
	color: var(--teal-dark) !important;
	font-weight: 700;
}

/* Grille de cartes : composant global dans nouveau.css (.grille / .carte) */

/* ---------- Pagination (override Bootstrap) ---------- */
.listing .nav-pagination {
	display: flex;
	justify-content: center;
}
.listing ul.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 40px 0 10px;
	padding: 0;
}
.listing ul.pagination li {
	display: block;
	margin: 0;
}
.listing ul.pagination li a,
.listing ul.pagination li span {
	min-width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 12px !important;
	background: var(--blanc);
	box-shadow: var(--ombre);
	color: var(--ink);
	font-weight: 600;
	font-size: 15px;
	padding: 0 14px;
	margin: 0;
}
.listing ul.pagination li a:hover {
	background: var(--teal-light);
	color: var(--teal-dark);
}
.listing ul.pagination li.active span {
	background: var(--teal);
	color: #fff;
}

/* ---------- Maillage interne (aside) + editorial regions ---------- */
.listing .page-content aside,
.listing #presentation-region,
.listing #links-region {
	background: var(--blanc);
	border-radius: var(--radius);
	box-shadow: var(--ombre);
	padding: 30px 34px;
	margin-top: 44px;
	border-top: none;
}
.listing .page-content aside nav {
	margin-bottom: 0;
}
.listing .page-content aside h4 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--gris);
	font-weight: 700;
	border-bottom: none;
	padding-bottom: 0;
	margin: 0 0 14px;
}
.listing .page-content aside p {
	font-size: 14.5px;
	line-height: 1.9;
}
.listing .page-content aside a {
	color: var(--teal-dark);
}
.listing #presentation-region hr {
	display: none;
}
.listing #presentation-region h2,
.listing #links-region h2 {
	font-size: 20px;
	letter-spacing: -.3px;
	margin: 0 0 14px;
}
.listing #presentation-region p,
.listing #links-region p {
	font-size: 15px;
	color: var(--gris);
}
.listing #presentation-region a,
.listing #links-region a {
	color: var(--teal-dark);
	font-weight: 600;
}

/* ---------- Carte : overlay par defaut (mobile, promos, standby) ---------- */
section#section-map {
	display: none;
}
section#section-map.ouvert {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 1100;
	background: #fff;
}
section#section-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
section#section-map #map-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 5;
}
section#section-map #map-bottom .comment-map {
	background: rgba(255, 255, 255, .95);
	margin: 0 12px 12px;
	padding: 10px 14px;
	font-size: 12px;
	border-radius: 10px;
	box-shadow: var(--ombre);
}
section#section-map #map-bottom .close-map {
	position: fixed;
	top: 14px;
	right: 14px;
	background: var(--ink);
	color: #fff;
	border-radius: 999px;
	padding: 10px 22px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

/* Bouton flottant "Afficher la carte" (masque en mode panneau lateral) */
.listing .link-map {
	position: fixed;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1040;
	background: var(--ink);
	border: none;
	color: #fff !important;
	border-radius: 999px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
	text-decoration: none !important;
}
.listing .link-map:hover,
.listing .link-map:focus {
	background: #000;
	color: #fff;
}
.listing .link-map svg {
	margin-right: 8px;
	vertical-align: -2px;
}

/* Colonnes de l'aside "Affinez votre recherche" (ex .row/.col-sm-6 Bootstrap) */
.listing .page-content aside .aside-colonnes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 0 32px;
}

/* Bulles d'info de la carte (map.php charge dans l'iframe garde
   l'ancien listing.css ; styles conserves ici si migration future) */
div.big {
	height: 300px;
}

/* ---------- Panneau carte lateral sticky (>= 992px) ---------- */
@media only screen and (min-width: 992px) {
	body.listing .page-content:has(> #section-map) {
		display: flex;
		align-items: flex-start;
	}
	body.listing .page-content:has(> #section-map) .listing-content {
		flex: 1;
		min-width: 0;
	}
	body.listing .page-content > #section-map {
		display: block;
		position: sticky;
		top: 134px; /* sous le header compact (64) + barre de filtres (~58) */
		flex: 0 0 35%;
		height: calc(100vh - 158px);
		margin-right: 24px;
		border-radius: var(--radius);
		box-shadow: var(--ombre);
		overflow: hidden;
		background: #dcebe9;
	}
	body.listing .page-content > #section-map .close-map {
		display: none;
	}
	body.listing .page-content:has(> #section-map) .link-map {
		display: none;
	}
	/* 3 colonnes fixes sur desktop (l'auto-fill global en creerait 4-5 sur ecran large) */
	.listing .grille {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 991px) {
	.listing .listing-content {
		padding: 0 20px;
	}
	/* de la place pour le bouton carte flottant */
	.listing .page-content {
		padding-bottom: 70px;
	}
}

@media only screen and (max-width: 560px) {
	.listing .illustration {
		display: none;
	}
	.listing .page-content aside,
	.listing #presentation-region,
	.listing #links-region {
		padding: 22px 20px;
	}
}
