/* Trouver une mosquée — islamaudio.fr */

.mf-widget {
	--mf-accent: #f56a6a;
	--mf-heading: #336699;
	--mf-text: #3d4449;
	--mf-muted: #7f888f;
	--mf-border: rgba(210, 215, 217, 0.75);
	--mf-radius: 0.375em;
	font-family: "Open Sans", sans-serif;
	color: var(--mf-text);
}

.mf-widget * { box-sizing: border-box; }

.mf-intro {
	font-size: 0.92em;
	line-height: 1.6;
	color: var(--mf-muted);
	margin: 0 0 1.25em;
}

.mf-controls {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 0.85em;
	align-items: end;
	margin-bottom: 1em;
}

.mf-controls__field {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	margin: 0;
}

.mf-controls__field--city {
	grid-column: 1 / -1;
}

.mf-controls__label {
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--mf-muted);
}

.mf-controls select,
.mf-controls input[type="text"] {
	width: 100%;
	height: 2.75em;
	font-size: 0.9em;
}

.mf-field-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.mf-suggest {
	position: absolute;
	z-index: 500;
	top: calc(100% + 2px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 14em;
	overflow-y: auto;
	background: #fff;
	border: solid 1px var(--mf-border);
	border-radius: var(--mf-radius);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.mf-suggest li {
	padding: 0.55em 0.75em;
	font-size: 0.88em;
	cursor: pointer;
	border-bottom: solid 1px var(--mf-border);
}

.mf-suggest li:last-child { border-bottom: 0; }

.mf-suggest li:hover {
	background: rgba(245, 106, 106, 0.12);
}

.mf-btn-geo {
	height: 2.75em;
	padding: 0 1.1em;
	border: 0;
	border-radius: var(--mf-radius);
	background: var(--mf-accent);
	color: #fff !important;
	font-family: "Roboto Slab", serif;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	white-space: nowrap;
}

.mf-btn-geo:hover { background: #f67878; }
.mf-btn-geo:disabled { opacity: 0.55; cursor: not-allowed; }

.mf-status {
	font-size: 0.88em;
	color: var(--mf-muted);
	margin: 0 0 0.75em;
}

.mf-error { color: var(--mf-accent); }

.mf-result-count {
	font-size: 0.85em;
	color: var(--mf-heading);
	font-weight: 600;
	margin: 0 0 0.75em;
}

.mf-layout {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 1em;
	min-height: 420px;
}

.mf-map {
	min-height: 420px;
	border: solid 1px var(--mf-border);
	border-radius: var(--mf-radius);
	background: #eef1f3;
	z-index: 1;
}

.mf-list-wrap {
	border: solid 1px var(--mf-border);
	border-radius: var(--mf-radius);
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: 420px;
}

.mf-list-title {
	font-family: "Roboto Slab", serif;
	font-size: 0.95em;
	color: var(--mf-heading);
	margin: 0;
	padding: 0.85em 1em;
	border-bottom: solid 1px var(--mf-border);
}

.mf-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1;
}

.mf-list__item {
	padding: 0.85em 1em;
	border-bottom: solid 1px var(--mf-border);
	cursor: pointer;
	transition: background 0.12s ease;
}

.mf-list__item:hover,
.mf-list__item.is-active {
	background: rgba(51, 102, 153, 0.06);
}

.mf-list__name {
	display: block;
	font-weight: 700;
	font-size: 0.9em;
	color: var(--mf-heading);
	margin-bottom: 0.2em;
}

.mf-list__meta {
	display: block;
	font-size: 0.78em;
	color: var(--mf-muted);
	line-height: 1.45;
}

.mf-list__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-top: 0.55em;
}

.mf-list__actions a {
	display: inline-block;
	font-size: 0.68em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.35em 0.65em;
	border-radius: var(--mf-radius);
	background: #f5f6f7;
	color: var(--mf-heading) !important;
	text-decoration: none;
}

.mf-marker-label { display: block; font-weight: 700; }
.mf-marker-addr { font-size: 0.85em; color: var(--mf-muted); }

.mf-list__actions a:hover {
	background: var(--mf-accent);
	color: #fff !important;
}

.mf-list__empty {
	padding: 1.5em 1em;
	text-align: center;
	color: var(--mf-muted);
	font-size: 0.88em;
}

.mf-marker-label {
	font-family: "Open Sans", sans-serif;
	font-size: 0.85em;
	font-weight: 700;
	color: var(--mf-heading);
}

@media screen and (max-width: 980px) {
	.mf-layout {
		grid-template-columns: 1fr;
	}
	.mf-map { min-height: 300px; }
	.mf-list-wrap { max-height: none; }
}

@media screen and (max-width: 736px) {
	.mf-controls {
		grid-template-columns: 1fr 1fr;
	}
	.mf-controls__field--city { grid-column: 1 / -1; }
	.mf-btn-geo { grid-column: 1 / -1; width: 100%; }
}
