/* Largeur alignée sur les autres sections de la home (80% centré).
   Deux colonnes égales : l'info à gauche et la carte à droite. */
.dalalu-carte-experts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 160px;
	/* Pas d'align-items : les colonnes s'étirent (stretch par défaut),
	   la carte prend donc la même hauteur que la colonne de gauche */
	width: 80%;
	margin: 0 auto;
	padding: 40px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #000;
	box-sizing: border-box;
}

.dalalu-carte-experts * {
	box-sizing: border-box;
}

/* Mode fiche franchisé : carte seule, pleine largeur de son conteneur. */
.dalalu-carte-experts--single {
	display: block;
	width: 100%;
	padding: 0;
	gap: 0;
}
.dalalu-carte-experts--single .dalalu-carte-experts__col--carte {
	width: 100%;
}

/* ---- Colonne infos ---- */

.dalalu-carte-experts__titre {
	font-size: clamp(2rem, 2vw, 34px);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 24px;
	font-weight: 700;
	line-height: normal;
}

.dalalu-carte-experts__marque {
	color: #E30613;
}

.dalalu-carte-experts__search-wrapper {
	position: relative;
	margin-bottom: 24px;
}

.dalalu-carte-experts__recherche {
	display: flex;
	gap: 0;
	border: 2px solid #E30613;
	border-right: none;
	border-radius: 60px;
	overflow: hidden;
}

.dalalu-carte-experts__recherche:has(.dalalu-carte-experts__btn:hover) {
	border: 2px solid #c10510;
	border-right: none;
}

.dalalu-carte-experts__input-wrap {
	position: relative;
	flex: 1;
	display: flex;
}

.dalalu-carte-experts__input {
	flex: 1;
	width: 100%;
	padding: 24px 42px 20px 24px;
	/* Place à droite pour la croix */
	border: none;
	font-size: 16px;
	outline: none;
}

/* Pas de contour au focus/clic (annule la règle globale input:focus-visible) */
.dalalu-carte-experts__input:focus,
.dalalu-carte-experts__input:focus-visible {
	outline: none;
	box-shadow: none;
}

/* Croix pour effacer la recherche */
.dalalu-carte-experts__clear {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: none;
	padding: 0;
	color: #9a9a9a;
	cursor: pointer;
	transition: color 0.15s ease;
}

.dalalu-carte-experts__clear:hover {
	color: #E30613;
}

/* L'attribut hidden doit gagner sur le display: flex ci-dessus,
   sinon la croix reste visible même champ vide */
.dalalu-carte-experts__clear[hidden] {
	display: none;
}

.dalalu-carte-experts__input::placeholder {
	color: #9a9a9a;
}

.dalalu-carte-experts__btn {
	padding: 14px 48px;
	background: #E30613;
	color: #fff;
	border: 2px solid #E30613;
	border-radius: 50px 0 0 50px;
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.dalalu-carte-experts__btn:hover {
	background: #c10510;
	border: 2px solid #c10510;
}

/* Icône loupe : uniquement sur mobile (voir media query 600px) */
.dalalu-carte-experts__btn-icon {
	display: none;
}

.dalalu-carte-experts__erreur {
	color: #E30613;
	font-size: 13px;
	margin: 6px 0 0;
}

.dalalu-carte-experts__resultats-liste {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 200;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #eee;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	max-height: 280px;
	overflow-y: auto;
}

.dalalu-carte-experts__resultats-liste li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 16px 16px;
	font-size: 14px;
	cursor: pointer;
	border-bottom: 1px solid #f2f2f2;
	transition: background 0.1s ease;
}

.dalalu-carte-experts__resultats-liste li:last-child {
	border-bottom: none;
}

.dalalu-carte-experts__resultats-liste li:hover,
.dalalu-carte-experts__resultats-liste li.is-active {
	background: #fdecec;
}

.dalalu-resultat-nom {
	font-weight: 500;
}

.dalalu-resultat-ville {
	color: #888;
	font-size: 14px;
	font-weight: 400;
}

.dalalu-resultat-distance {
	font-size: 12px;
	font-weight: 700;
	color: #E30613;
	white-space: nowrap;
}

.dalalu-carte-experts__texte {
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	margin-top: 32px;
}

.dalalu-carte-experts__avantages {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 13px 42px;
	font-size: 16px;
	font-weight: 400;
}

.dalalu-carte-experts__avantages strong {
	font-weight: 800;
}

.dalalu-carte-experts__avantages li {
	display: flex;
	align-items: center;
	margin-left: 20px;
	gap: 12px;
}

.dalalu-carte-experts__puce {
	width: 14px;
	height: 14px;
	min-width: 14px;
	border-radius: 50%;
	background: #E30613;
	display: inline-block;
	transform: translateY(-2px);
}

.dalalu-carte-experts__image {
	border-radius: 16px;
	overflow: hidden;
	line-height: 0;
}

.dalalu-carte-experts__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---- Colonne carte ---- */

.dalalu-carte-experts__col--carte {
	position: relative;
}

/* Pastille rouge décorative qui déborde à droite de la carte
   (miroir de celle de la première carte projet). Le max() borne le
   débordement au bord du viewport pour éviter un scroll horizontal. */
.dalalu-carte-experts__col--carte::before {
	content: "";
	position: absolute;
	right: max(-165px, calc(50% - 50vw));
	bottom: 75px;
	width: 400px;
	height: 45%;
	max-height: 235px;
	background: var(--dal-red, #E30613);
	border-radius: 150px;
	/* Décalage horizontal piloté par le scroll page (JS) :
	   plus à droite au repos, revient à sa position en scrollant. */
	transform: translateX(var(--dal-carte-blob-x, 0px));
	will-change: transform;
}

.dalalu-carte-experts__map {
	width: 100%;
	/* Suit la hauteur de la colonne de gauche (colonnes en stretch) */
	height: 100%;
	min-height: 420px;
	border-radius: 16px;
	background: #fff;
	z-index: 1;
	box-shadow: 0 0 29px 0 rgba(0, 0, 0, 0.14);
}

/* Pas de contour au focus/clic sur la carte ni sur les marqueurs
   (Google Maps rend le conteneur et les marqueurs focusables). */
.dalalu-carte-experts__map:focus,
.dalalu-carte-experts__map:focus-visible,
.dalalu-carte-experts__map *:focus,
.dalalu-carte-experts__map *:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

/* Cadre de focus dessiné par Google sur le marqueur actif */
.dalalu-carte-experts__map .gm-style iframe + div {
	border: none !important;
}

/* ---- Contenu de l'InfoWindow Google Maps ---- */

.dalalu-popup {
	/* petit écart en haut + place réservée à droite pour la croix */
	padding: 14px 34px 14px 16px;
	font-family: inherit;
	/* Card resserrée : largeur limitée, le texte passe à la ligne */
	max-width: 220px;
	box-sizing: border-box;
}

.dalalu-popup__nom {
	white-space: normal;
}

.dalalu-popup__badge {
	display: inline-block;
	background: #E30613;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 4px;
	margin-bottom: 8px;
}

.dalalu-popup__nom {
	font-size: 14px;
	font-weight: 800;
	margin: 0 0 2px;
}

.dalalu-popup__adresse {
	font-size: 14px;
	color: #666;
	margin: 0 0 8px;
}

.dalalu-popup__statut {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #1a8a4a;
	background: #e6f6ec;
	padding: 2px 8px;
	border-radius: 10px;
	margin-bottom: 10px;
}

.dalalu-popup__lien {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 800;
	color: #E30613;
	text-decoration: none;
}

.dalalu-popup__lien:hover {
	text-decoration: underline;
}

/* ── Cadre de l'InfoWindow compacté : titre remonté ──
   Google réserve une ligne d'en-tête pour le bouton « fermer » et ajoute
   un padding par défaut, ce qui laisse un grand vide au-dessus du titre.
   On supprime cet espace et on superpose le bouton fermer. */
.gm-style .gm-style-iw-c {
	padding: 0 !important;
}
.gm-style .gm-style-iw-d {
	overflow: hidden !important;
	padding: 0 !important;
}
.gm-style .gm-style-iw-chr {
	height: 0 !important;
	min-height: 0 !important;
}
.gm-style .gm-style-iw-chr .gm-style-iw-ch {
	padding: 0 !important;
}
/* Bouton « fermer » superposé dans le coin haut-droit de la pop-up. */
.gm-style .gm-style-iw button.gm-ui-hover-effect {
	position: absolute !important;
	top: 8px !important;
	right: 0 !important;
	width: 28px !important;
	height: 28px !important;
	z-index: 3 !important;
}
/* Icône X collée au coin (on supprime la marge interne du bouton Google) */
.gm-style .gm-style-iw button.gm-ui-hover-effect > span {
	margin: 0 !important;
	width: 16px !important;
	height: 16px !important;
}

/* ---- Responsive (paliers alignés sur le slider et la section projet) ---- */

@media (max-width: 1150px) {
	.dalalu-carte-experts {
		gap: 48px;
	}
}

@media (max-width: 900px) {

	/* Une colonne. La colonne infos est "aplatie" (display: contents)
	   pour pouvoir intercaler la carte dans ses enfants :
	   titre → recherche → carte → texte → avantages → image */
	.dalalu-carte-experts {
		grid-template-columns: 1fr;
		width: 90%;
		gap: 28px;
	}

	.dalalu-carte-experts__col--infos {
		display: contents;
	}

	/* Tout ce qui doit passer sous la carte */
	.dalalu-carte-experts__texte,
	.dalalu-carte-experts__avantages,
	.dalalu-carte-experts__image {
		order: 1;
	}

	.dalalu-carte-experts__texte {
		margin-top: 0;
	}

	.dalalu-carte-experts__map {
		height: 400px;
	}

	/* Pastille réduite, comme celle des cartes projet en mobile */
	.dalalu-carte-experts__col--carte::before {
		right: max(-85px, calc(50% - 50vw));
		display: none;
		width: 200px;
		height: 30%;
		max-height: 235px;
	}
}

@media (max-width: 600px) {

	.dalalu-carte-experts__titre {
		font-size: 1.625rem; /* ≈ 26px */
		margin-bottom: 0;
	}

	.dalalu-carte-experts__texte{
		margin-bottom: 0;
	}

	.dalalu-carte-experts__avantages {
		margin-bottom: 0;
	}

	.dalalu-carte-experts__search-wrapper {
		margin-bottom: 0;
	}

	/* Les avantages passent en liste simple */
	.dalalu-carte-experts__avantages {
		grid-template-columns: 1fr;
	}

	/* La recherche reste en ligne : on compacte le champ et le bouton */
	.dalalu-carte-experts__input {
		padding: 16px 36px 14px 16px;
	}

	/* Le libellé cède la place à la loupe pour gagner de la largeur */
	.dalalu-carte-experts__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 12px 18px;
	}

	.dalalu-carte-experts__btn-label {
		display: none;
	}

	.dalalu-carte-experts__btn-icon {
		display: block;
	}

	.dalalu-carte-experts__map {
		height: 320px;
	}

	.dalalu-carte-experts__image img {
		object-fit: cover;
		min-height: 150px;
	}
}