/* Carte des points de vente Breizh Cola, mise en page d'après le wireframe.
   Couleurs neutres : le thème enfant (GeneratePress/GenerateBlocks) peut surcharger. */

.bpv-wrap {
	/* Couleurs tirées des variables du thème (repli si non définies). */
	--bpv-accent:  var(--accent, #e0362a);       /* rouge : titres, picto d'en-tête, bulles */
	--bpv-teal:    var(--bleu-fonce, #87CEDC);   /* bleu clair : picto de fiche + distance */
	--bpv-heading: var(--rouge-fonce, #621300);  /* compteur */
	--bpv-addr:    #6e7c81;                       /* gris : adresses */
	--bpv-blue:    var(--accent, #e0362a);        /* bouton de recherche */
	--bpv-border:  var(--bleu, #dbe7ea);
	--bpv-radius:  10px;
	max-width: 1180px;
	margin: 0 auto;
}

/* Barre de recherche */
.bpv-search {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin: 0 0 22px;
	flex-wrap: wrap;
}
.bpv-search-field {
	position: relative;
	flex: 1 1 260px;
	min-width: 200px;
	max-width: 600px;
}
.bpv-search-input {
	width: 100%;
	padding: 14px 20px;
	border-radius: 999px;
	font-size: 15px;
}
/* Fond bleu de la charte. Sélecteur volontairement plus spécifique que celui de
   GeneratePress (input[type="text"]{background-color:var(--base-2)}), au repos comme au focus. */
.bpv-wrap input.bpv-search-input,
.bpv-wrap input.bpv-search-input:focus {
	background-color: var(--bleu, #E9F6FD);
	border: 0;
	color: var(--contrast, #222);
}
.bpv-search-input:focus {
	outline: 2px solid var(--bpv-teal);
	outline-offset: 1px;
}

/* Autocomplétion */
.bpv-suggestions {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 1000;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--bpv-border);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(0,0,0,.10);
	max-height: 280px;
	overflow-y: auto;
}
.bpv-suggestion {
	padding: 9px 18px;
	font-size: 14px;
	cursor: pointer;
	color: #1a1a1a;
}
.bpv-suggestion:hover,
.bpv-suggestion.is-active {
	background: #f1f4fb;
	color: var(--bpv-blue);
}
/* Bouton de recherche : typo de la charte + masque « coup de pinceau » (.btn-brush du thème).
   Le masque impose un fond plein et pas d'arrondi : c'est la forme du masque qui découpe le bouton. */
.bpv-search-btn {
	padding: 12px 38px;
	border: 0;
	border-radius: 0;
	background: var(--rouge, #C20012);
	color: #fff;
	font-family: var(--gp-font--citrus-gothic);
	font-size: 18px;
	line-height: 1.1;
	cursor: pointer;
	transition: background-color .15s;
}
.bpv-search-btn:hover,
.bpv-search-btn:focus {
	background: var(--rouge-fonce, #621300);
	color: #fff;
}

/* Bouton « autour de moi » : l'image de la charte contient déjà le rond rouge,
   le bouton reste donc transparent. */
.bpv-geoloc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	cursor: pointer;
	transition: transform .15s, opacity .15s;
}
.bpv-geoloc-btn:hover { transform: scale(1.08); }
.bpv-geoloc-btn.is-loading { opacity: .5; pointer-events: none; }
.bpv-geoloc-ico {
	display: block;
	width: 50px;
	height: 50px;
	background: url("img/icon-se-localiser.webp") center / contain no-repeat;
}

/* Message de feedback (géoloc / recherche), visible sous la barre, y compris sur mobile */
.bpv-geo-msg {
	margin: -10px 0 18px;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--bleu, #E9F6FD);
	color: var(--bpv-heading);
	font-size: 14px;
	text-align: center;
}

/* Carte | liste */
.bpv-layout {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 22px;
	align-items: start;
}
.bpv-map {
	height: 560px;
	border-radius: var(--bpv-radius);
	border: 1px solid var(--bpv-border);
	overflow: hidden;
	z-index: 0;
}

/* Liste */
.bpv-list-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
}
/* Picto rouge de l'en-tête (image de la charte, 96x124) */
.bpv-head-pin {
	display: block;
	flex: 0 0 auto;
	width: 20px;
	height: 26px;
	background: url("img/icon-nombre-point-vente.webp") center / contain no-repeat;
}
.bpv-count {
	font-weight: 700;
	color: var(--bpv-heading);
	margin: 0;
	font-size: 19px;
}
.bpv-results {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 560px;
	overflow-y: auto;
	padding-right: 4px;
}
.bpv-card {
	display: flex;
	align-items: stretch;
	gap: 12px;
	border: 1px solid var(--bpv-border);
	border-radius: var(--bpv-radius);
	padding: 16px 18px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.bpv-card:hover,
.bpv-card:focus {
	border-color: var(--bpv-teal);
	box-shadow: 0 4px 14px rgba(0,0,0,.07);
	outline: none;
}
.bpv-card.is-selected {
	border-color: var(--bpv-accent);
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.bpv-card-body {
	flex: 1 1 auto;
	min-width: 0;
}
.bpv-name {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--bpv-accent);
}
.bpv-addr {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--bpv-addr);
}
/* Colonne de droite : picto turquoise en haut, distance en bas */
.bpv-card-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	flex: 0 0 auto;
	color: var(--bpv-teal);
}
/* Picto turquoise de fiche (image de la charte, 128x172) */
.bpv-card-pin {
	display: block;
	width: 26px;
	height: 35px;
	background: url("img/icon-distance.webp") center / contain no-repeat;
}
.bpv-dist {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--bpv-teal);
	white-space: nowrap;
}
.bpv-empty { color: #888; }

/* Bulles de regroupement (clusters) en rouge et plus grandes.
   La taille extérieure vient de iconCreateFunction (carte.js), le CSS centre le cercle intérieur. */
.bpv-wrap .marker-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-clip: padding-box;
}
.bpv-wrap .marker-cluster-small,
.bpv-wrap .marker-cluster-medium,
.bpv-wrap .marker-cluster-large {
	background-color: rgba(222, 39, 31, .3); /* repli navigateurs anciens */
	background-color: color-mix(in srgb, var(--bpv-accent) 30%, transparent);
}
.bpv-wrap .marker-cluster div {
	width: 76%;
	height: 76%;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--bpv-accent);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}
.bpv-wrap .marker-cluster span {
	line-height: 1;
}

/* Message « X points affichés sur N » */
.bpv-more {
	margin: 6px 2px 0;
	font-size: 12px;
	color: #888;
	font-style: italic;
}

/* Liste de repli rendue côté serveur (SEO / sans JavaScript), remplacée par le JS au chargement */
.bpv-seo-list {
	margin: 0;
	padding: 0 0 0 18px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--bpv-blue);
}
.bpv-seo-list li { margin-bottom: 6px; }

/* Libellé « On est déjà partout » sur la Bretagne grisée */
.bpv-bzh-label {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #2b2f36;
	font-size: 18px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
	text-shadow: 0 1px 2px rgba(255,255,255,.8);
	white-space: nowrap;
}
.bpv-bzh-label::before { display: none; } /* retire la flèche de l'infobulle */

/* Responsive : la liste passe sous la carte */
@media (max-width: 782px) {
	.bpv-layout { grid-template-columns: 1fr; }
	.bpv-map { height: 380px; }
	.bpv-results { max-height: none; }
}
