.custom-leaflet-popup {
    max-width: 300px;
}

.map-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.leaflet-distance {
    font-size: 14px;
    padding: 0.5rem;
}

/*=== fil arianne ITINERAIRE ====*/

.fil-ariane .lieu-hors-itineraire,
.fil-ariane .oeuvre-hors-itineraire {
    text-decoration: line-through;
    color: #999;
    font-style: italic;
}
.lieu-hors-itineraire,
.oeuvre-hors-itineraire {
    text-decoration: line-through;
    opacity: 0.7;
}
ul.ch-grid.itineraire li.past {
	 opacity: 0.5;
}
ul.ch-grid.itineraire li.active {
	 opacity: 1;
}
ul.ch-grid.itineraire li.active {
	border: solid 2px red;
}
/*============================
 * MAP CADRE
 * ***************************/
.leaflet_map, .leaflet-container {
	min-height: 400px; 
	width: 100%;
}
/*********************************
 * LEAFLET MAP selection à droite de la carte
 * ******************************/
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 200,
  'GRAD' 0,
  'opsz' 24
}
.material-icon-map .material-symbols-outlined {
            font-family: "Material Symbols Outlined";
            
            font-size: 20px !important;
            color: #fff; /* Couleur par défaut (modifiable) */
            /*border: solid 1px;
             background-color: #fff;
	*/
            text-align: center;
            border-radius: 5px;
            line-height: 20px; /* Ajuster l'alignement vertical */
            padding: 2px;
        }

.material-symbols-outlined:before {
		width : 100%;
	height: 100%;
	/*padding: 5px!important; */
	padding-bottom: 5px;
	border-radius: 50%;
}
.material-symbols-outlined.museum:before {
	content: '\ea36';
	 background-color: #4A90E2!important; /* Bleu doux */
	
}
.material-symbols-outlined.church:before {
	content: '\eaae';
	 background-color: #A85D9C!important; /* Violet pastel */
}

.material-symbols-outlined.local_dining:before {
	content: '\e556';
	background-color: #F5A623!important; /* Orange doux */
}

.material-symbols-outlined.restaurant:before {
	content: '\e56c';
	background-color: #F5A623!important; /* Orange doux */
}
.material-symbols-outlined.street_food:before {
	content: '\e57a';
	background-color: #F5A623!important; /* Orange doux */
}
.material-symbols-outlined.glacier:before {
	content: '\ea69';
	background-color: #F5A623!important; /* Orange doux */
}
.material-symbols-outlined.place:before {
	content: '\e412';
	background-color: #4A90E2; /* bleu doux */
}

.material-symbols-outlined.local_cafe:before {
	content: '\e541';
	background-color: #F5A623!important; /* Orange doux */
}
.material-symbols-outlined.storefront:before {
	content: '\ea12';
	background-color: #2A9D8F; /* Teal doux */
}

.material-symbols-outlined.apartment:before {
	content: '\ea40';
	background-color: #2137AA!important; /* Bleu profond */
}
.material-symbols-outlined.mosque:before {
	content: '\eab2';
	background-color: #6A994E!important; /* Vert doux */
}
.material-symbols-outlined.travel_explore:before {
	content: '\e2db';
	background-color: #FF6F61!important; /* Rouge corail pastel */
}

.material-symbols-outlined.location_on:before {
	content: '\e0c8';
	background-color: #2D9CDB!important; /* Bleu ciel */
}
/* itineraire */
.material-symbols-outlined.itineraire:before { /* assistant_direction */
	content: '\e988';
	content : '\f72d';
	font-size: 35px;
	font-weight: 300;
	
	background-color: transparent!important; /* Bleu ciel */
}

/*****/
.item-leaflet-container .item_auteur {
	display: none;
}
.item-leaflet-container .ch_grid_content {
    display: flex;
    flex-direction: column; /* Par défaut, les éléments sont empilés en colonne */
}

.item-leaflet-container .ch_grid_description {
    order: -1; /* Place .item_titre avant les autres éléments */
}

.item-leaflet-container .item_image {
    order: 0; /* Assure que l'image vient après */
}

.item-leaflet-container .main-title {
    font-size: 1.0em;
    font-weight: 400;
	text-align: center;
	margin-top: 5px;
	padding: 5px 0px 5px 0px;
    color: var(--ch_grid_color_titre);

}

/*======================
 * POPUP
 * =====================*/
 * .popup-content {
  max-width: 200px;
}
.popup-thumbnail {
  width: 100%;
  max-height: 100px;
  object-fit: cover;
  margin-bottom: 0.5em;
  border-radius: 4px;
}
.popup-content h4 {
  margin: 0.3em 0;
  font-size: 1em;
}
.popup-excerpt {
  font-size: 0.85em;
  margin: 0 0 0.5em;
}
.popup-link {
  font-size: 0.85em;
  color: #3366cc;
  text-decoration: underline;
}

/*==============================
 * ICONE material
 * ============================*/
/* Base style */
.tmp_leaflet-material-icon .material-symbols-outlined {

	background: #A42E2B;
    font-size: 20px !important;
    color: #fff;
    text-align: center;
	width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 20px;
    padding: 5px 0px 5px 0;
	box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* Spécifique par type_lieu */
/*.custom-marker.type-eglise .material-symbols-outlined::before {
    content: 'church';
}
.custom-marker.type-restaurant .material-symbols-outlined::before {
    content: 'restaurant';
	background-color: #F5A623!important; 
}
.custom-marker.type-musee .material-symbols-outlined::before {
    content: 'museum';
}
.custom-marker.type-monument .material-symbols-outlined::before {
    content: 'temple_buddhist';
}
.custom-marker.type-place .material-symbols-outlined::before {
    content: 'location_city';
	content: 'photo_camera';
	background-color: #4A90E2; 
}
.custom-marker.type-parc .material-symbols-outlined::before {
    content: 'park';
}
.custom-marker.type-boutique .material-symbols-outlined::before {
    content: 'store';
}
.custom-marker.type-default .material-symbols-outlined::before {
    content: 'location_on';
}*/
/*******************/
.leaflet-bootstrap-icon .bi {
     display: flex;               /* forcer block + centrage */
    align-items: center;
    justify-content: center;
    background: #A42E2B;
    font-size: 18px;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* exemples de couleurs spécifiques */
.custom-marker {
	width: 30px; height: 30px;
}
.custom-marker.type-restaurant .bi {
    background-color: #F5A623 !important;
}
.custom-marker.type-place .bi {
    background-color: #4A90E2 !important;
}

/* font awesome */

/* Base */
.leaflet-fa-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #A42E2B; /* fallback */
    font-size: 16px;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* personnalisations par type */
.custom-marker.type-eglise i {
    background-color: #A42E2B !important;  /* rouge brique */
}
.custom-marker.type-mosquee i {
    background-color: #81C784 !important;  /* vert tendre */
}
.custom-marker.type-musee i {
    background-color: #5C6BC0 !important;  /* bleu gris élégant */
}
.custom-marker.type-monument i,
.custom-marker.type-architecture i {
    background-color: #A1887F !important;  /* sable clair */
}
.custom-marker.type-restaurant i {
    background-color: #FFB74D !important;  /* orange pastel */
}
.custom-marker.type-parc i {
    background-color: #66BB6A !important;  /* vert frais */
}
.custom-marker.type-place i,
.custom-marker.type-curiosite i {
    background-color: #64B5F6 !important;  /* bleu pastel */
}
.custom-marker.type-boutique i {
    background-color: #F06292 !important;  /* rose doux */
}
.custom-marker.type-default i {
    background-color: #BA68C8 !important;  /* violet pastel */
}


