/*
 * Annuaire : bloc de recherche, page de résultats, fiche, carte.
 * Mesures et couleurs reprises du site sous MyListing : bleu #1C5C9C, rose #E26291.
 */
:root {
	--rz-bleu: #1C5C9C;
	--rz-bleu-clair: #E8F0F8;
	--rz-rose: #DB447B;
	--rz-encre: #242429;
	--rz-gris: #6B6E7A;
	--rz-ligne: #E1E3EA;
	--rz-fond: #F6F8FE;
	--rz-ombre: 0 1px 4px rgba(0, 0, 0, .07);
	--rz-ombre-forte: 0 6px 18px rgba(30, 35, 64, .14);
}
.rz-icone { flex: none; }

/* Formulaires de recherche */
.rz-r { font-size: 14px; color: var(--rz-encre); }
.rz-r label, .rz-r legend { display: block; font-size: 14px; line-height: 20px; color: #232328; padding: 0; margin: 0 0 2px; }
.rz-r fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rz-r input[type="text"], .rz-r input[type="search"], .rz-r select {
	width: 100%; border: 0; border-bottom: 1px solid var(--rz-ligne); border-radius: 0; background-color: transparent;
	padding: 10px 0; font: 500 14px/18px inherit; font-family: inherit; color: var(--rz-encre); min-height: 40px;
}
.rz-r input[type="text"]:focus, .rz-r input[type="search"]:focus, .rz-r select:focus { outline: none; border-bottom-color: var(--rz-bleu); box-shadow: 0 1px 0 var(--rz-bleu); }
.rz-r input::placeholder { color: #8A8D99; font-weight: 400; }
.rz-r__champ { position: relative; min-width: 0; }
.rz-r__adresse { position: relative; }
.rz-r__adresse input { padding-right: 36px !important; }
.rz-r__localiser { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; padding: 6px; background: none; border: 0; cursor: pointer; color: var(--rz-bleu); }
.rz-r__localiser.is-occupe { opacity: .5; cursor: progress; }
.rz-r__propositions { position: absolute; z-index: 50; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff; border-radius: 6px; box-shadow: var(--rz-ombre-forte); max-height: 280px; overflow: auto; }
.rz-r__propositions li { padding: 9px 14px; cursor: pointer; line-height: 1.35; }
.rz-r__propositions li small { color: var(--rz-gris); }
.rz-r__propositions li:hover, .rz-r__propositions li[aria-selected="true"] { background: var(--rz-bleu-clair); }
.rz-r__alerte { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #A1261B; }
.rz-r__champ--distance label, .rz-r__champ--distance output { font-weight: 600; }
.rz-r input[type="range"] { width: 100%; margin: 14px 0 6px; accent-color: var(--rz-bleu); }
.rz-r__cases { display: grid; gap: 2px; margin-top: 6px; }
.rz-r .rz-r__case { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 5px 0; cursor: pointer; }
.rz-r__case input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--rz-bleu); }
.rz-r__bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 12px 20px; border: 0; border-radius: 5px; cursor: pointer; background: var(--rz-bleu); color: #fff; font: 600 14px/16px inherit; font-family: inherit; transition: filter .15s; }
.rz-r__bouton:hover { filter: brightness(1.12); }

/* Bloc de l'accueil */
.rz-r--bloc { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 2px 10px rgba(28, 92, 156, .25); text-align: left; }
.rz-r--bloc .rz-r__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; align-items: end; }
@media (max-width: 900px) {
	.rz-r--bloc { padding: 22px; }
	.rz-r--bloc .rz-r__grille { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Page de résultats : filtres | résultats | carte */
.rz-x { display: grid; grid-template-columns: 400px minmax(320px, 450px) minmax(0, 1fr); height: calc(100vh - var(--rz-entete, 100px)); min-height: 560px; background: #fafafa; }
body.admin-bar .rz-x { height: calc(100vh - var(--rz-entete, 100px) - 32px); }
.rz-x__filtres { background: #fff; padding: 20px 30px 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.rz-x__filtres-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rz-x__titre { font-size: 20px; font-weight: 600; margin: 0; color: var(--rz-encre); }
.rz-x__fermer { display: none; }
.rz-x__reinit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--rz-gris); text-decoration: none; font-size: 14px; }
.rz-x__reinit:hover { color: var(--rz-bleu); }
.rz-x__resultats { overflow-y: auto; padding: 0 15px 15px; background: #fafafa; box-shadow: inset 1px -4px 4px rgba(0, 0, 0, .07); position: relative; }
.rz-x.is-chargement .rz-x__resultats { opacity: .55; transition: opacity .2s; }
.rz-x__barre-mobile { display: none; }
.rz-x__entete-resultats { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 4px; background: #fafafa; }
.rz-x__compte { margin: 0; text-align: center; font-size: 14px; }
.rz-x__fleche { display: inline-flex; padding: 6px; color: var(--rz-encre); border-radius: 50%; }
.rz-x__fleche:hover { background: var(--rz-bleu-clair); }
.rz-x__fleche.is-inactive { color: #C9CBD3; }
.rz-x__liste { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 14px; }
.rz-carte { background: #fff; border-radius: 5px; box-shadow: var(--rz-ombre); transition: box-shadow .15s; }
.rz-carte:hover, .rz-carte:focus-within { box-shadow: var(--rz-ombre-forte); }
.rz-carte.is-actif { box-shadow: 0 0 0 2px var(--rz-bleu), var(--rz-ombre); }
.rz-carte__lien { display: grid; gap: 4px; padding: 15px 18px; color: inherit; text-decoration: none; }
.rz-carte__titre { font-weight: 600; font-size: 14px; line-height: 1.25; color: #000; }
.rz-carte__adresse { font-size: 13px; color: var(--rz-gris); line-height: 1.35; }
.rz-carte__infos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rz-carte__infos:empty { display: none; }
.rz-pastille { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 18px; background: #F0F1F5; color: #44475A; }
.rz-pastille--distance { background: var(--rz-bleu); color: #fff; font-weight: 600; }
.rz-x__vide { margin: 10px; padding: 20px; background: #fff; border-radius: 5px; box-shadow: var(--rz-ombre); }
.rz-x__vide p:last-child { margin-bottom: 0; }
.rz-x__pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 20px 0 10px; }
.rz-x__page { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; background: #fff; color: var(--rz-encre); text-decoration: none; box-shadow: var(--rz-ombre); font-weight: 500; }
.rz-x__page:hover { background: var(--rz-bleu-clair); }
.rz-x__page.is-courante { background: var(--rz-rose); color: #fff; }
.rz-x__page.is-ellipse { background: none; box-shadow: none; }
.rz-x__carte { position: relative; background: #e9eef2; }
.rz-x .rz-x__carte-map { position: absolute; inset: 0; } /* MapLibre remet `relative` : spécificité plus forte */
.rz-x__suivre { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-radius: 5px; box-shadow: var(--rz-ombre-forte); font-size: 14px; cursor: pointer; }
.rz-x__suivre input { width: 18px; height: 18px; margin: 0; accent-color: var(--rz-bleu); }
.rz-x__sans-js { position: absolute; inset: auto 10px 10px; background: #fff; padding: 10px; border-radius: 5px; }
@media (max-width: 1280px) {
	.rz-x { grid-template-columns: 330px minmax(300px, 400px) minmax(0, 1fr); }
	.rz-x__filtres { padding: 20px; }
}
@media (max-width: 1024px) {
	.rz-x { display: block; height: auto; min-height: 0; background: var(--rz-fond); }
	.rz-x__filtres { position: fixed; inset: 0; z-index: 1200; display: none; padding: 20px 20px 40px; }
	.rz-x.is-filtres-ouverts .rz-x__filtres { display: flex; }
	.rz-x__fermer { display: inline-flex; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--rz-bleu); color: #fff; font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; }
	.rz-x__resultats { overflow: visible; padding: 0 10px 20px; box-shadow: none; background: var(--rz-fond); }
	.rz-x__barre-mobile { display: flex; gap: 10px; padding: 12px 0 0; }
	.rz-x__bouton-mobile { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 6px; background: #fff; color: var(--rz-encre); box-shadow: var(--rz-ombre); font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; }
	.rz-x__entete-resultats { position: static; background: none; }
	.rz-x__liste { padding: 0; }
	.rz-x__carte { display: none; height: calc(100vh - 170px); min-height: 360px; margin: 0 10px 20px; border-radius: 6px; overflow: hidden; }
	.rz-x[data-vue="carte"] .rz-x__carte { display: block; }
	.rz-x[data-vue="carte"] .rz-x__liste, .rz-x[data-vue="carte"] .rz-x__pagination, .rz-x[data-vue="carte"] .rz-x__vide { display: none; }
	.rz-x[data-vue="carte"] .rz-x__resultats { padding-bottom: 0; }
}

/* Carte : marqueurs et bulles */
.rz-marqueur {
	display: block; width: 30px; height: 38px; padding: 0; border: 0; cursor: pointer; background: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 38'%3E%3Cpath d='M15 1C7.3 1 1 7.2 1 14.8 1 25.1 15 37 15 37s14-11.9 14-22.2C29 7.2 22.7 1 15 1z' fill='%231C5C9C' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='15' cy='14.5' r='5' fill='%23fff'/%3E%3C/svg%3E");
	background-size: contain; background-repeat: no-repeat; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); transition: transform .12s;
}
.rz-marqueur.is-actif, .rz-marqueur:hover, .rz-marqueur:focus-visible { transform: scale(1.25); z-index: 3; }
.rz-marqueur-position { display: block; width: 16px; height: 16px; border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(26, 115, 232, .35); }
.rz-popup { display: grid; gap: 4px; font-family: inherit; }
.rz-popup__titre { font-weight: 600; color: var(--rz-encre); text-decoration: none; font-size: 15px; line-height: 1.3; padding-right: 8px; }
.rz-popup__titre:hover { color: var(--rz-bleu); }
.rz-popup__infos { font-size: 12.5px; font-weight: 500; color: var(--rz-bleu); }
.rz-popup__adresse { font-size: 12.5px; line-height: 1.4; color: var(--rz-gris); }
.rz-popup__voir { display: flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 8px; padding: 0 14px; border-radius: 50px; background: var(--rz-bleu); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.rz-popup__voir:hover { filter: brightness(1.12); color: #fff; }
.rz-popup__geste { display: flex; align-items: center; justify-content: center; min-height: 36px; margin-top: 6px; padding: 0 10px; border-radius: 50px; border: 1.5px solid var(--rz-ligne); color: var(--rz-bleu); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.rz-popup__geste:hover { border-color: var(--rz-bleu); background: var(--rz-bleu-clair); }
.rz-popup a:focus:not(:focus-visible) { outline: none; }
.rz-popup a:focus-visible { outline: 2px solid var(--rz-bleu); outline-offset: 2px; }
.maplibregl-popup-content { border-radius: 10px; padding: 14px 32px 14px 16px; box-shadow: var(--rz-ombre-forte); }
.maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 18px; color: var(--rz-gris); border-radius: 0 10px 0 6px; }
.maplibregl-ctrl-group button { width: 32px; height: 32px; }

/* Fiche publique */
.rz-fiche { max-width: 1180px; margin: 0 auto; padding: 18px 20px 40px; }
.rz-fiche__modifier { text-align: center; margin: 0 0 18px; }
.rz-fiche__modifier a { color: inherit; text-decoration: none; }
.rz-fiche__modifier a:hover { text-decoration: underline; }
.rz-fiche__retour { text-align: center; margin: 22px 0; }
.rz-bouton-retour { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; min-width: 300px; padding: 12px 15px; border: 1.5px solid rgba(0, 0, 0, .15); border-radius: 50px; color: #3B3B3B; font-weight: 600; font-size: 16px; text-decoration: none; transition: all .3s cubic-bezier(.23, 1, .32, 1); }
.rz-bouton-retour:hover { color: #fff; background: #1A1A1A; box-shadow: rgba(0, 0, 0, .25) 0 8px 15px; transform: translateY(-2px); }
.rz-fiche__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; }
.rz-fiche__action { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 50px; border: 1px solid rgba(0, 0, 0, .15); background: transparent; color: var(--rz-encre); text-decoration: none; font-size: 14px; }
.rz-fiche__action .rz-icone { color: var(--rz-gris); }
.rz-fiche__action:hover { border-color: var(--rz-bleu); color: var(--rz-bleu); }
.rz-fiche__colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.rz-fiche__colonne { display: grid; gap: 25px; min-width: 0; }
.rz-fiche__bloc { background: #fff; border-radius: 5px; box-shadow: var(--rz-ombre); padding: 20px; font-size: 15px; }
.rz-fiche__bloc h2 { font-size: 14px; font-weight: 600; margin: 0 0 15px; line-height: 20px; color: var(--rz-encre); }
.rz-fiche__bloc p { margin: 0; }
.rz-fiche__bloc a { overflow-wrap: anywhere; color: inherit; text-decoration: none; }
.rz-fiche__bloc a:hover { text-decoration: underline; }
.rz-fiche__nom { font-size: 15px; font-weight: 400; line-height: 1.5; margin: 0; color: var(--rz-encre); }
.rz-fiche__terme { display: inline-flex; align-items: center; gap: 10px; margin-right: 12px; }
.rz-fiche__terme::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--rz-rose); }
.rz-fiche__carte { height: 280px; border-radius: 4px; overflow: hidden; margin-bottom: 14px; background: #e9eef2; }
.rz-fiche__adresses { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rz-fiche__adresses li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.rz-fiche__itineraire { flex: none; padding: 10px 14px; border-radius: 4px; background: #F2F3F5; color: var(--rz-encre); text-decoration: none; font-size: 14px; }
.rz-fiche__itineraire:hover { background: var(--rz-bleu-clair); color: var(--rz-bleu); }
.rz-fiche__horaires { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.rz-fiche__horaires dt { color: var(--rz-gris); }
.rz-fiche__horaires dd { margin: 0; }
@media (max-width: 767px) {
	.rz-fiche { padding: 12px 12px 30px; }
	.rz-fiche__nom { font-size: 20px; font-weight: 600; line-height: 1.3; }
	.rz-fiche__colonnes { grid-template-columns: minmax(0, 1fr); }
	.rz-fiche__colonne { gap: 16px; margin-bottom: 16px; }
	.rz-bouton-retour { min-width: 0; width: 100%; }
}
