/* =============================================================================
 * TUM Map — mini-carte statique + popup plein écran
 * ========================================================================== */

/* ---- Mini-carte statique (fiche église / commune) ---- */
.tum-map-mini {
	position: relative;
	width: 100%;
	height: 340px;
	border-radius: 12px;
	overflow: hidden;
	background: #e8eef3;
	cursor: pointer;
	isolation: isolate;
}
.tum-map-mini--wide { height: 340px; }
/* Aperçu Leaflet : purement visuel, tous les clics passent au conteneur → ouvre la popup */
.tum-map-mini__canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.tum-map-mini__btn {
	position: absolute;
	left: 50%;
	bottom: 12px;
	z-index: 2;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px !important; /* neutralise .elementor-kit-XX button { padding: 1.5em 3em } */
	border: 0;
	border-radius: 999px;
	background: var(--color-primary, #031632);
	color: #fff;
	font-family: var(--font-secondary, 'Inter', sans-serif);
	font-size: .92rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(3,22,50,.35);
	transition: background .15s, transform .15s;
	white-space: nowrap;
	font-size: .92rem !important; /* neutralise .elementor-kit-XX button { font-size: 1.1rem } */
}
.tum-map-mini__btn:hover { background: #0a2748; transform: translateX(-50%) translateY(-1px); }
.tum-map-mini__btn svg { width: 16px; height: 16px; }

/* ---- Popup plein écran ---- */
.tum-map-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #fff;
	display: flex;
	flex-direction: column;
	font-family: var(--font-secondary, 'Inter', sans-serif);
}
.tum-map-modal[hidden] { display: none; }

.tum-map-modal__bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: var(--color-primary, #031632);
	color: #fff;
}
.tum-map-modal__title {
	font-family: var(--font-primary, 'Newsreader', serif);
	font-size: 1.1rem;
	font-weight: 500;
}
.tum-map-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	padding: 0 !important; /* neutralise .elementor-kit-XX button { padding: 1.5em 3em } */
	border: 0;
	border-radius: 999px;
	background: rgba(255,255,255,.10);
	color: #fff; font-size: 40px !important; line-height: 1;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.tum-map-modal__close:hover,
.tum-map-modal__close:focus-visible {
	background: #fff;
	color: var(--color-primary, #031632);
	transform: scale(1.06);
	outline: none;
}

.tum-map-modal__body {
	flex: 1 1 auto;
	display: flex;
	min-height: 0;
}
.tum-map-modal__list {
	flex: 0 0 340px;
	max-width: 40%;
	overflow-y: auto;
	border-inline-end: 1px solid #e7e9ee;
	padding: 8px 0;
}
.tum-map-modal__count {
	padding: 10px 20px;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #75777e;
}
.tum-map-modal__capped { color: #b8860b; text-transform: none; font-weight: 500; letter-spacing: 0; }
.tum-map-modal__list ul { list-style: none; margin: 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.tum-map-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	color: #1a1c1c;
	text-decoration: none;
	background: #fff;
	border: 1px solid #eceef2;
	border-radius: 12px;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tum-map-item a:hover {
	border-color: #d8c074;
	box-shadow: 0 6px 18px rgba(3,22,50,.1);
	transform: translateY(-1px);
}
.tum-map-item__pin {
	flex: 0 0 auto;
	width: 12px; height: 12px;
	border-radius: 50% 50% 50% 0;
	background: #031632;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(3,22,50,.25);
	transform: rotate(-45deg);
}
.tum-map-item__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tum-map-item__title { font-size: .96rem; font-weight: 600; line-height: 1.25; }
.tum-map-item__addr {
	font-size: .8rem;
	color: #75777e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tum-map-item__arrow { flex: 0 0 auto; color: #b5b8bd; font-size: 1rem; transition: color .15s, transform .15s; }
.tum-map-item a:hover .tum-map-item__arrow { color: #7a5c00; transform: translateX(2px); }
.tum-map-item.is-current a {
	border-color: #e9c349;
	background: rgba(233,195,73,.1);
}
.tum-map-item.is-current .tum-map-item__pin { background: #e9c349; border-color: #7a5c00; box-shadow: none; }

/* Petite popup église sur la carte */
.tum-map-pop { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.tum-map-pop__title { font-size: .98rem; font-weight: 600; color: #1a1c1c; }
.tum-map-pop__addr { font-size: .82rem; color: #75777e; line-height: 1.3; }
.tum-map-pop__link { font-size: .85rem; font-weight: 600; color: #7a5c00; text-decoration: none; margin-top: 2px; }
.tum-map-pop__link:hover { text-decoration: underline; }

/* Cluster "groupe" thémé midnight/or */
.tum-map-modal .marker-cluster {
	background: rgba(3,22,50,.18);
}
.tum-map-modal .marker-cluster div {
	background: var(--color-primary, #031632);
	color: #fff;
	font-family: var(--font-secondary, 'Inter', sans-serif);
	font-weight: 600;
	border: 2px solid #e9c349;
}

.tum-map-modal__mapwrap {
	flex: 1 1 auto;
	position: relative;
	min-width: 0;
}
.tum-map-modal__map { position: absolute; inset: 0; }
.tum-map-modal__research {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px !important; /* neutralise .elementor-kit-XX button { padding: 1.5em 3em } */
	border: 0; border-radius: 999px;
	background: var(--color-primary, #031632);
	color: #fff; font-size: .78rem !important; font-weight: 500;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(3,22,50,.4);
}
.tum-map-modal__research:hover { background: #0a2748; }
.tum-map-modal__empty {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%,-50%);
	z-index: 1000;
	max-width: 280px;
	padding: 16px 22px;
	text-align: center;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(3,22,50,.18);
	color: #44474d;
	font-size: .95rem;
}

@media (max-width: 760px) {
	.tum-map-modal__body { flex-direction: column-reverse; }
	.tum-map-modal__list { flex: 0 0 40%; max-width: 100%; border-inline-end: 0; border-top: 1px solid #e7e9ee; }
	.tum-map-modal__mapwrap { flex: 1 1 60%; }
	.tum-map-modal__research { font-size: 0.8rem !important; }
}

