/* RIC Carto — styles de la carte et de l'étiquette */

.ric-carto-map {
	width: 100%;
	min-height: 250px;
	border-radius: 4px;
	overflow: hidden;
	z-index: 0; /* reste sous les menus déroulants du thème */
}

/* Neutralise les styles d'images hérités du thème à l'intérieur de la carte.
   Sans cela, une règle comme « .entry-content img { border: 10px ... } »
   s'applique aux dalles Leaflet et crée des marges/joints entre elles. */
.ric-carto-map img {
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: none !important;
}

/* Marqueur combiné : pin + étiquette (nom du lieu) dans un seul élément.
   L'élément Leaflet (0×0) est positionné sur la coordonnée ; pin et label
   sont placés en absolu par rapport à ce point. */
.ric-carto-divicon {
	background: none;
	border: 0;
}

.ric-carto-pin {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
}

/* Le pin : pointe centrée sur la coordonnée */
.ric-carto-pin__img {
	position: absolute;
	left: -20px;   /* centre les 40px de large sur le point */
	bottom: 0;     /* pointe du pin sur le point */
	width: 40px;
	height: 52px;
	display: block;
}

/* L'étiquette : juste au-dessus du pin */
.ric-carto-pin__label {
	position: absolute;
	left: 0;
	bottom: 58px;  /* 52px (pin) + 6px d'écart */
	transform: translateX( -50% );
	background: #bf451f;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	padding: 5px 11px;
	border-radius: 4px;
	white-space: nowrap;
	box-shadow: 0 1px 5px rgba( 0, 0, 0, 0.35 );
}

/* Petite flèche sous l'étiquette, pointant vers le pin */
.ric-carto-pin__label::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	margin-left: -6px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #bf451f;
}
