.aop-carte-app {
	--aop-carte-height: 700px;
	display: flex;
	flex-direction: column;
	height: var(--aop-carte-height);
	border: 1px solid #e0ddd5;
	border-radius: 8px;
	overflow: hidden;
	font-family: inherit;
	background: #fff;
}

/* Header pleine largeur : recherche + filtres + navigation, au-dessus du corps. */
.aop-carte-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	padding: 12px 14px;
	border-bottom: 1px solid #e0ddd5;
	background: #f7f5ee;
}

/* Corps : drawer (liste/fiches) + carte. */
.aop-carte-body {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
}
.aop-carte-panel {
	flex: 0 0 320px;
	display: flex;
	flex-direction: column;
	border-right: 1px solid #e0ddd5;
	min-width: 0;
}
.aop-carte-panel-head {
	padding: 10px 14px;
	font-weight: 800;
	font-size: 14px;
	color: #e10078;
	border-bottom: 1px solid #eee;
}
.aop-carte-mapwrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}
.aop-carte-map {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
}

/* Recherche d'adresse (dans le header). */
.aop-carte-search {
	position: relative;
	display: flex;
	gap: 6px;
	flex: 1 1 300px;
	min-width: 220px;
}
.aop-carte-search input {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	min-width: 0;
}
.aop-carte-search button {
	padding: 8px 12px;
	border: 0;
	border-radius: 4px;
	background: #e10078;
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
}
.aop-carte-search button:hover { background: #b8005f; }
.aop-carte-suggest {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e0ddd5;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	z-index: 1200;
	overflow: hidden;
}
.aop-carte-suggest:empty { display: none; }
.aop-suggest-item {
	padding: 6px 8px;
	font-size: 13px;
	cursor: pointer;
	border-radius: 4px;
}
.aop-suggest-item:hover { background: #f2f0e8; }
.aop-carte-list {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 10px 14px;
}
.aop-carte-hint {
	color: #888;
	font-size: 13px;
	font-style: italic;
}
.aop-carte-count {
	font-weight: 700;
	font-size: 13px;
	color: #555;
	margin: 0 0 8px;
}
.aop-shop {
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid transparent;
	margin-bottom: 6px;
}
.aop-shop:hover {
	background: #f7f5ee;
	border-color: #e0ddd5;
}
.aop-shop.selected {
	background: #fdf3e3;
	border-color: #c8860a;
	box-shadow: inset 3px 0 0 #c8860a;
}
.aop-shop-name {
	font-weight: 700;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.aop-dist {
	color: #e10078;
	font-weight: 600;
	white-space: nowrap;
	margin-left: auto;
}
.aop-shop-addr {
	font-size: 13px;
	color: #666;
	margin-top: 2px;
}
.aop-carte-contact {
	padding: 12px 14px;
	border-top: 1px solid #eee;
	font-size: 12px;
	color: #777;
}
.aop-carte-contact a { color: #e10078; }

/* ---------- Marqueur coloré (divIcon) ---------- */
.aop-pin {
	background: transparent;
	border: 0;
}
.aop-pin svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

/* ---------- Filtre catégories (chips) ---------- */
.aop-carte-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.aop-carte-filters:empty { display: none; }
.aop-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid #d6d2c7;
	background: #fff;
	border-radius: 999px;
	font-size: 12px;
	cursor: pointer;
	color: #444;
}
.aop-chip:hover { background: #f7f5ee; }
.aop-chip.active {
	background: #e10078;
	border-color: #e10078;
	color: #fff;
}
.aop-chip-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}
.aop-chip-n { opacity: .7; font-size: 11px; }

/* ---------- Navigation région -> département (dropdown du header) ---------- */
.aop-carte-browse { position: relative; }
.aop-browse-toggle {
	background: #fff;
	border: 1px solid #d6d2c7;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	display: flex;
	gap: 8px;
	align-items: center;
	white-space: nowrap;
}
.aop-browse-toggle:hover { background: #f0ede2; }
.aop-browse-caret { transition: transform .15s; }
.aop-browse-toggle.open .aop-browse-caret { transform: rotate(90deg); }
.aop-browse-panel {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: auto;
	width: 300px;
	max-width: 80vw;
	background: #fff;
	border: 1px solid #e0ddd5;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
	padding: 8px;
	max-height: 320px;
	overflow-y: auto;
	z-index: 1200;
}
.aop-region-list { list-style: none; margin: 0; padding: 0; }
.aop-region-list li { margin: 0; }
.aop-region, .aop-dept {
	display: flex;
	justify-content: space-between;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	padding: 7px 4px;
	font-size: 13px;
	cursor: pointer;
	color: #444;
	border-radius: 4px;
}
.aop-region:hover, .aop-dept:hover { background: #f2f0e8; }
.aop-region { font-weight: 600; }
.aop-dept-list { padding-left: 12px; border-left: 2px solid #eee; margin: 2px 0 6px; }
.aop-dept { font-size: 12px; color: #666; }
.aop-browse-clear {
	display: block;
	width: 100%;
	text-align: left;
	background: #fdf3e3;
	border: 1px solid #e3c98a;
	color: #8a5d00;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	margin-bottom: 8px;
}

/* ---------- Pastille catégorie dans la liste ---------- */
.aop-shop-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
	flex: 0 0 auto;
}

/* ---------- Badge catégorie (popup / fiche) ---------- */
.aop-cat-badge {
	display: inline-block;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	margin-bottom: 6px;
}
.aop-pop-actions { margin-top: 6px; display: flex; gap: 12px; }

/* ---------- Panneau détail (fiche) ---------- */
.aop-carte-detail {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 12px 14px;
}
.aop-detail-back {
	background: none;
	border: 0;
	color: #e10078;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0 0 8px;
}
.aop-d-photo img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 6px;
}
.aop-d-head { margin: 10px 0 4px; }
.aop-d-head h3 { margin: 4px 0 0; font-size: 18px; }
.aop-d-addr { color: #666; font-size: 13px; margin-bottom: 10px; }
.aop-d-row { font-size: 13px; margin: 4px 0; }
.aop-d-row a, .aop-d-links a { color: #e10078; }
.aop-d-block { font-size: 13px; margin: 10px 0; line-height: 1.5; }
.aop-d-present { font-size: 13px; line-height: 1.6; margin: 10px 0; color: #333; }
.aop-d-present img { max-width: 100%; height: auto; border-radius: 6px; }
.aop-d-links { display: flex; gap: 14px; margin: 10px 0; flex-wrap: wrap; }
.aop-d-itineraire {
	display: inline-block;
	margin-top: 8px;
	background: #e10078;
	color: #fff;
	padding: 8px 14px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
}
.aop-d-itineraire:hover { background: #b8005f; }

@media (max-width: 782px) {
	.aop-carte-app { height: auto; }
	.aop-carte-body { flex-direction: column-reverse; }
	.aop-carte-panel {
		flex: none;
		border-right: 0;
		border-top: 1px solid #e0ddd5;
	}
	.aop-carte-list { max-height: 260px; }
	.aop-carte-detail { max-height: 75vh; }
	.aop-carte-mapwrap { height: 60vh; min-height: 380px; }
	.aop-carte-search { flex-basis: 100%; }
	.aop-browse-panel { max-height: 240px; }
}
