/**
 * BCF Locations Filter - styles front
 */
.bcf-locations-filter {
	margin-bottom: 1.5rem;
}

.bcf-locations-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
}

.bcf-filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.bcf-filter-group label {
	font-weight: 600;
	font-size: 0.9em;
}

.bcf-filter-group select {
	min-width: 180px;
	padding: 0.5rem 0.75rem;
}

/* Multi-select checkboxes */
.bcf-filter-multiselect .bcf-filter-label {
	font-weight: 600;
	font-size: 0.9em;
	display: block;
	margin-bottom: 0.5rem;
}

.bcf-filter-options {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	max-height: 180px;
	overflow-y: auto;
	padding: 0.5rem;
	background: #f9f9f9;
	border-radius: 4px;
}

.bcf-filter-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.9em;
}

.bcf-filter-option input {
	margin: 0;
}

.bcf-layout-horizontal .bcf-locations-form {
	flex-direction: row;
}

.bcf-layout-vertical .bcf-locations-form {
	flex-direction: column;
	align-items: stretch;
}

/* Filtres actifs – tags avec croix */
.bcf-activated-filters {
	margin-bottom: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e0e0e0;
}

.bcf-activated-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.bcf-activated-title {
	font-weight: 600;
	font-size: 0.9em;
}

.bcf-clear-all {
	font-size: 0.85em;
	text-decoration: underline;
}

.bcf-activated-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bcf-filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.6rem;
	background: #e8e8e8;
	border-radius: 4px;
	font-size: 0.9em;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s;
}

.bcf-filter-tag:hover {
	background: #d0d0d0;
}

.bcf-tag-remove {
	font-size: 1.2em;
	line-height: 1;
	opacity: 0.7;
}

/* Carte partenaires */
.bcf-map-partners-wrapper {
	margin: 1.5rem 0;
}

.bcf-map-partners {
	border-radius: 8px;
	overflow: hidden;
	background: #f0f0f0;
}

/* Marqueurs : pin visible au-dessus des tuiles */
.bcf-map-partners .leaflet-marker-icon.bcf-map-marker-icon {
	background: none !important;
	border: none !important;
	background-image: none !important;
	z-index: 1000 !important;
}
.bcf-map-partners .leaflet-marker-pane {
	z-index: 650;
}
.bcf-map-partners .leaflet-marker-pane .leaflet-marker-icon {
	z-index: 1000 !important;
}

/* Marqueur : logo uniquement (sans pin) — configurable dans Bon Cadeau Fenua → Partenaires */
.bcf-map-marker-logo .bcf-map-marker-logo-wrap {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	border: 3px solid #fff;
	background: #fff;
}

.bcf-map-marker-logo .bcf-map-marker-logo-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Fallback : pin si logo absent ou erreur 404 */
.bcf-map-marker-logo .bcf-map-marker-logo-wrap.bcf-map-marker-no-logo img {
	display: none;
}
.bcf-map-marker-logo .bcf-map-marker-logo-wrap.bcf-map-marker-no-logo {
	width: 36px;
	height: 48px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 42"><path fill="%233388ff" stroke="%23fff" stroke-width="2" d="M15 0C6.7 0 0 6.7 0 15c0 11.2 15 27 15 27s15-15.8 15-27C30 6.7 23.3 0 15 0z"/><circle fill="%23fff" cx="15" cy="15" r="6"/></svg>') center/contain no-repeat;
}

/* Marqueur par défaut (partenaire sans logo) */
.bcf-map-marker-default .bcf-map-marker-default-pin {
	display: block;
	width: 30px;
	height: 42px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 42"><path fill="%233388ff" stroke="%23fff" stroke-width="2" d="M15 0C6.7 0 0 6.7 0 15c0 11.2 15 27 15 27s15-15.8 15-27C30 6.7 23.3 0 15 0z"/><circle fill="%23fff" cx="15" cy="15" r="6"/></svg>') center/contain no-repeat;
}

.bcf-map-popup {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.bcf-map-popup-logo {
	flex-shrink: 0;
}

.bcf-map-popup-logo img,
.bcf-map-popup-logo .bcf-map-popup-logo-img {
	max-width: 64px;
	max-height: 64px;
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 6px;
	background: #f9f9f9;
}

.bcf-map-popup-body {
	flex: 1;
	min-width: 0;
}

.bcf-map-popup-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
}

.bcf-map-popup-items {
	margin: 0.5em 0 0 0;
	padding-left: 1em;
	list-style: none;
}

.bcf-map-popup-items li {
	margin: 0.25em 0;
}

.bcf-map-popup a {
	text-decoration: none;
}

.bcf-map-partners-empty {
	padding: 2rem;
	text-align: center;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px dashed #ccc;
}
