/* MEC Advanced Map – OpenStreetMap */

/* Carte */
.mec-wrap .leaflet-container,
.leaflet-container { font: inherit; z-index: 0; }
.leaflet-container img { max-width: none !important; box-shadow: none !important; }
.leaflet-container.mec-loading { opacity: .6; transition: opacity .2s; }

/* Contrôles précédent / suivant / position / plein écran */
.mec-osm-tools a.mec-osm-btn {
	display: block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	font-size: 18px;
	color: #333;
	background: #fff;
	text-decoration: none;
}
.mec-osm-tools a.mec-osm-btn:hover { background: #f4f4f4; }
.leaflet-container:fullscreen { width: 100% !important; height: 100% !important; }

/* Popup */
.leaflet-popup-content { margin: 10px 12px; }
.leaflet-popup-content .mec-map-lightbox-wp { width: auto !important; padding: 0; }
.mec-osm-popup-link { margin-top: 8px; padding-top: 6px; border-top: 1px solid #eee; font-size: 12px; }
.mec-osm-popup-link a { color: inherit; }

/* Contenu « lightbox » MEC (popup + liste latérale) */
.mec-map-lightbox-wp.mec-event-list-classic { padding: 0; background: #fff; }
.mec-map-lightbox-wp.mec-event-list-classic .mec-event-article { padding: 0; overflow: hidden; }
.mec-map-lightbox-wp.mec-event-list-classic .mec-event-date {
	position: relative;
	float: left;
	width: 44px;
	height: 50px;
	margin: 0 10px 0 0;
	padding: 0;
	border-radius: 3px;
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	background-color: #40d9f1;
}
.mec-map-lightbox-wp.mec-event-list-classic .mec-event-date i,
.mec-map-lightbox-wp.mec-event-list-classic .mec-map-lightbox-year { display: none; }
.mec-map-lightbox-wp.mec-event-list-classic .mec-map-lightbox-day { display: block; padding-top: 6px; font-size: 20px; font-weight: 700; line-height: 1; }
.mec-map-lightbox-wp.mec-event-list-classic .mec-map-lightbox-month { display: block; font-size: 11px; }
.mec-map-lightbox-wp.mec-event-list-classic .mec-event-image { float: right; max-width: 74px; margin-left: 8px; }
.mec-map-lightbox-wp.mec-event-list-classic .mec-event-image img { height: 54px; width: auto; border-radius: 3px; }
.mec-map-lightbox-wp.mec-event-list-classic .mec-event-title { margin: 4px 0; font-size: 14px; font-weight: 600; text-transform: none; }
.mec-map-lightbox-wp .mec-map-time { display: block !important; font-size: 11px; font-weight: 400; color: #7b7f81; }

/* Mode « Carte + liste » (remplace bootstrap-grid) */
.mec-map-events-wrap.row,
.mec-map-events-wrap.row > * { box-sizing: border-box; }
.mec-map-events-wrap.row { display: flex; flex-wrap: wrap; margin: 0 0 20px; border: 1px solid #efefef; background: #fff; overflow: hidden; }
.mec-map-events-wrap.row > .col-sm-7 { flex: 0 0 58.333%; max-width: 58.333%; padding: 0; }
.mec-map-events-wrap.row > .col-sm-5 { flex: 0 0 41.667%; max-width: 41.667%; padding: 0; border-left: 1px solid #efefef; max-height: 600px; overflow-y: auto; position: relative; }
@media (max-width: 767px) {
	.mec-map-events-wrap.row > .col-sm-7,
	.mec-map-events-wrap.row > .col-sm-5 { flex-basis: 100%; max-width: 100%; border-left: 0; }
	.mec-map-events-wrap.row > .col-sm-5 { max-height: 400px; border-top: 1px solid #efefef; }
}
.mec-map-boxshow { padding: 12px 15px; border-bottom: 1px solid #efefef; cursor: pointer; transition: background .2s; }
.mec-map-boxshow:last-child { border-bottom: 0; }
.mec-map-boxshow:hover,
.mec-map-boxshow:focus,
.mec-map-boxshow.mec-osm-active { background: #f6fbfc; outline: none; }
.mec-osm-empty { padding: 20px 15px; margin: 0; }
