/*
 * Results page: mobile top bar + full-screen search/filter panel, layered
 * over Listeo Core's own archive-listing-split-sidebar.php (untouched —
 * see results-page.php's docblock).
 *
 * Tokens match the approved v9 prototype exactly (#202733 ink, #e8ff40
 * lime, #70891d olive, #eef3e8 sage, #e1e6dd line, #626c66 muted) rather
 * than the rest of the site's own close-but-different palette — this page
 * was explicitly asked to match the approved design 1:1, overriding the
 * usual "match the site, not the mockup" convention used elsewhere
 * (pro-dashboard.css etc.) for this one build.
 */

:root {
	--mfr-ink: #202733;
	--mfr-muted: #626c66;
	--mfr-line: #e1e6dd;
	--mfr-lime: #d5eb45; /* brief: primary action lime */
	--mfr-sage: #eef3e8;
	--mfr-olive: #70891d;
}

/* ---- Top bar: replaces Listeo's own filter button + category slider on
   mobile (hidden below, not removed — results-page.js still reads their
   real underlying fields). Both stay visible side-by-side on desktop,
   since desktop keeps Listeo's native sidebar per this pass's scope. ---- */

.mf-results-topbar {
	display: flex;
	gap: 12px;
	max-width: 830px;
}

/* Search trigger + Filtres summary read as ONE bordered control with an
   internal divider (approved design's .merged-search), not two separate
   boxes — the border lives on the wrapper; both buttons inside are
   borderless/transparent. */
.mf-results-merged-search {
	display: flex;
	flex: 1;
	min-width: 0;
	border: 1px solid var(--mfr-line);
	border-radius: 15px;
	align-items: center;
	background: #fff;
}

.mf-results-search-trigger {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 0;
	border-radius: 15px;
	padding: 9px 12px;
	cursor: pointer;
	text-align: start;
}

.mf-results-search-trigger .mf-icon-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	inline-size: 42px;
	block-size: 42px;
	border-radius: 12px;
	background: var(--mfr-sage);
	color: var(--mfr-olive);
}

.mf-results-search-trigger .mf-icon-tile .mf-icon {
	inline-size: 18px;
	block-size: 18px;
}

.mf-results-search-text {
	min-width: 0;
	display: grid;
}

.mf-results-search-text strong {
	font-size: 16px;
	color: var(--mfr-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mf-results-search-text small {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 14px;
	color: var(--mfr-muted);
}

.mf-results-filters-trigger {
	flex-shrink: 0;
	border: 0;
	border-inline-start: 1px solid var(--mfr-line);
	border-radius: 0;
	background: transparent;
	margin-inline-end: 7px;
	padding: 5px 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: var(--mfr-ink);
	white-space: nowrap;
	cursor: pointer;
	min-block-size: 44px;
}

.mf-results-filters-trigger .mf-icon {
	inline-size: 15px;
	block-size: 15px;
	margin-inline-start: 4px;
}

.mf-results-view-toggle {
	flex-shrink: 0;
	min-inline-size: 98px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--mfr-line);
	border-radius: 15px;
	padding-inline: 14px;
	color: var(--mfr-ink);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	min-block-size: 44px;
}

.mf-results-view-toggle .mf-icon {
	inline-size: 20px;
	block-size: 20px;
}

.mf-results-filter-count {
	font-weight: 750;
}

@media (max-width: 992px) {
	/* Spec: the site header is hidden on mobile results/map views — this
	   page's own sticky top bar (below) replaces its job, and the mobile
	   tab bar (mobile-tabbar.css, unaffected) still covers navigation.
	   Desktop and the homepage keep the real header (site-header-footer.css,
	   untouched). */
	.mf-header {
		display: none;
	}

	.mf-results-topbar {
		position: sticky;
		inset-block-start: 0;
		z-index: 50;
		background: #fff;
		padding-block: 10px;
	}

	/* Listeo's own controls stay functional (fields live underneath), just
	   visually replaced by the top bar above. Specificity matched to
	   listeo/style.css's own ".halfsidebar-archive-listings-layout
	   .filter-button-container" rule (0-2-0) — a plain ".filter-button-
	   container" loses to it regardless of source order. */
	body.halfsidebar-archive-listings-layout .filter-button-container,
	.sticky-filter-button,
	.slider-container {
		display: none;
	}

	/* Listeo's own split-view map (eagerly initialized, own tile fetches)
	   otherwise shows above the fold on mobile before any "Carte" tap —
	   exactly what the spec says never to do. Our own map view
	   (.mf-results-map-view) is the mobile Carte experience instead. */
	.full-page-map-container {
		display: none;
	}
}

/* ---- Active-filter chips above the results (approved design's
   #active-filters) ---- */

.mf-results-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block: 10px;
}

.mf-results-active-filters[hidden] {
	display: none;
}

.mf-results-active-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: var(--mfr-sage);
	color: var(--mfr-ink);
	border-radius: 999px;
	padding: 5px 10px;
	min-block-size: 36px;
	font-size: 13px;
	cursor: pointer;
}

.mf-results-active-chip .mf-icon {
	inline-size: 14px;
	block-size: 14px;
}

/* ---- Result heading (spec §3's required H1) — matches the approved
   design's global h1 exactly (25px desktop / 21px mobile). ---- */

.mf-results-heading {
	margin: 2px 0 0;
	font-size: 25px;
	line-height: 1.25;
	letter-spacing: -.8px;
	font-weight: 700;
	color: var(--mfr-ink);
}

@media (max-width: 760px) {
	.mf-results-heading {
		font-size: 21px;
		letter-spacing: -.5px;
	}
}

/* ---- Full-screen panel ---- */

.mf-results-dialog {
	margin: 0;
	inset: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	border: none;
	border-radius: 0;
	padding: 0;
	/* A native <dialog>'s closed state relies on the UA stylesheet's
	   `dialog:not([open]){display:none}` — but author styles always beat
	   UA styles regardless of specificity, so an unconditional
	   `display:flex` here would show the panel's content inline in the
	   page even while closed. Only apply flex once [open] is present. */
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--mfr-ink);
}

.mf-results-dialog[open] {
	display: flex;
}

.mf-results-dialog::backdrop {
	background: rgba(32, 39, 51, .55);
}

@media (min-width: 993px) {
	.mf-results-dialog {
		inset: 0;
		margin: auto;
		width: 680px;
		max-width: calc(100vw - 32px);
		height: auto;
		max-height: 90dvh;
		border: 1px solid var(--mfr-line);
		border-radius: 24px;
		box-shadow: 0 24px 60px rgba(32, 39, 51, .3);
	}
}

.mf-results-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px;
	border-block-end: 1px solid var(--mfr-line);
	flex-shrink: 0;
}

.mf-results-panel-head h2 {
	margin: 0;
	font-size: 20px;
}

.mf-results-icon-button {
	inline-size: 44px;
	block-size: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--mfr-line);
	border-radius: 12px;
	background: #fff;
	color: var(--mfr-ink);
	cursor: pointer;
}

.mf-results-icon-button .mf-icon {
	inline-size: 18px;
	block-size: 18px;
}

.mf-results-text-button {
	border: none;
	background: none;
	color: inherit;
	font-size: 14px;
	text-decoration: underline;
	padding: 6px;
	cursor: pointer;
}

.mf-results-panel-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.mf-results-query-field {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #a2af93;
	border-radius: 12px;
	padding: 3px 12px;
}

.mf-results-query-field .mf-icon {
	inline-size: 20px;
	block-size: 20px;
	color: var(--mfr-muted);
	flex-shrink: 0;
}

.mf-results-query-field input {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	outline: none;
	font: inherit;
	font-size: 16px;
	color: var(--mfr-ink);
	background: none;
	padding: 12px 0;
}

.mf-results-clear-query {
	border: none;
	background: none;
	color: var(--mfr-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.mf-results-suggestions {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--mfr-line);
	border-radius: 14px;
	overflow: hidden;
	margin-block-start: -8px;
}

.mf-results-suggestions[hidden] {
	display: none;
}

.mf-results-suggestions-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 700;
	color: var(--mfr-muted);
	text-transform: uppercase;
	letter-spacing: .6px;
}

.mf-results-suggestions-head button {
	border: none;
	background: none;
	color: var(--mfr-olive);
	font-size: 12px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.mf-results-suggestion-item {
	display: flex;
	align-items: center;
	gap: 10px;
	border: none;
	background: none;
	padding: 10px 14px;
	font-size: 15px;
	color: var(--mfr-ink);
	text-align: start;
	cursor: pointer;
}

.mf-results-suggestion-item .mf-icon {
	inline-size: 16px;
	block-size: 16px;
	color: var(--mfr-muted);
	flex-shrink: 0;
}

@media (hover: hover) {
	.mf-results-suggestion-item:hover {
		background: #F5F5F5;
	}
}

.mf-results-field-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mf-results-field-pair label {
	font-size: 14px;
	font-weight: 650;
	color: var(--mfr-ink);
	display: block;
}

.mf-results-field-pair select {
	min-block-size: 48px;
	border: 1px solid var(--mfr-line);
	border-radius: 10px;
	padding: 10px;
	padding-inline-end: 28px;
	width: 100%;
	margin-block-start: 6px;
	font: inherit;
	font-size: 16px;
	color: var(--mfr-ink);
	background: #fff;
}

/* Plain flex row, not a bordered box — matches the approved design's
   .location-row exactly (no card treatment here). */
.mf-results-location-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-block-start: 18px;
}

.mf-results-place-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: var(--mfr-ink);
}

.mf-results-place-label .mf-icon {
	inline-size: 18px;
	block-size: 18px;
	color: var(--mfr-olive);
	flex-shrink: 0;
}

.mf-results-city-choice {
	font-size: 14px;
	font-weight: 650;
	color: var(--mfr-ink);
	margin-block: 10px;
}

.mf-results-city-choice select {
	min-block-size: 48px;
	border: 1px solid var(--mfr-line);
	border-radius: 10px;
	padding: 10px;
	width: 100%;
	margin-block-start: 6px;
	font: inherit;
	font-size: 16px;
	color: var(--mfr-ink);
	background: #fff;
}

.mf-results-section h3 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
}

.mf-results-section-subtitle {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--mfr-muted);
}

.mf-results-essentials {
	background: #f6f8f0;
	border-radius: 16px;
	padding: 20px;
}

.mf-results-essentials h3 {
	margin-bottom: 4px;
}

/* One grid style for every tile section (Essentiels, Services, Confiance)
   — the approved design reuses a single .feature-grid everywhere, always
   2 columns, not a large-single-column treatment for Essentiels. */
.mf-results-tile-grid,
.mf-results-tile-grid-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-block-start: 12px;
}

@media (max-width: 350px) {
	.mf-results-tile-grid,
	.mf-results-tile-grid-2col {
		grid-template-columns: 1fr;
	}
}

.mf-results-tile {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	min-block-size: 44px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--mfr-line);
	border-radius: 12px;
	color: var(--mfr-ink);
	font-size: 14px;
	text-align: start;
	cursor: pointer;
}

.mf-results-tile .mf-icon {
	inline-size: 20px;
	block-size: 20px;
	flex-shrink: 0;
	color: var(--mfr-ink);
}

.mf-results-tile-plus {
	margin-inline-start: auto;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
	color: var(--mfr-muted);
}

.mf-results-tile.is-active {
	background: var(--mfr-ink);
	border-color: var(--mfr-ink);
	color: #fff;
}

.mf-results-tile.is-active .mf-icon {
	color: var(--mfr-lime);
}

.mf-results-tile.is-active .mf-results-tile-plus {
	color: #fff;
}

.mf-results-budget-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-block-end: 4px;
}

.mf-results-budget-row output {
	font-weight: 800;
}

.mf-results-budget-slider {
	--fill: 0%;
	/* Listeo gives every input horizontal padding, which pushed the thumb
	   short of the bar's ends — none here, so it ends flush like the approved design. */
	padding: 0;
	width: 100%;
	appearance: none;
	height: 5px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--mfr-olive) var(--fill), #e7ebdf var(--fill));
	margin: 24px 0 20px;
	cursor: pointer;
	display: block;
}

.mf-results-budget-slider::-webkit-slider-thumb {
	appearance: none;
	inline-size: 30px;
	block-size: 30px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #c8d0bd;
	box-shadow: 0 2px 5px rgba(32, 39, 51, .08);
	cursor: pointer;
}

.mf-results-budget-slider::-moz-range-thumb {
	inline-size: 28px;
	block-size: 28px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #c8d0bd;
	cursor: pointer;
}

.mf-results-budget-ends {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: var(--mfr-muted);
}

.mf-results-panel-footer {
	flex-shrink: 0;
	padding: 17px 24px;
	padding-block-end: calc(17px + env(safe-area-inset-bottom, 0px));
	border-block-start: 1px solid var(--mfr-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mf-results-primary-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 50px;
	min-inline-size: 240px;
	border: 1px solid var(--mfr-lime);
	border-radius: 999px;
	background: var(--mfr-lime);
	color: var(--mfr-ink);
	font-size: 15px;
	font-weight: 750;
	cursor: pointer;
}

.mf-results-primary-btn .mf-icon {
	inline-size: 18px;
	block-size: 18px;
}

@media (max-width: 760px) {
	.mf-results-panel-footer {
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
		display: block;
	}

	.mf-results-primary-btn {
		width: 100%;
		min-inline-size: 0;
		min-block-size: 52px;
		font-size: 16px;
	}
}

/* ---- Sort sheet: reuses the dialog base but as a smaller bottom sheet ---- */

.mf-results-sheet {
	height: auto;
	max-height: 60vh;
	inset: auto 0 0 0;
	border-radius: 20px 20px 0 0;
}

@media (min-width: 993px) {
	.mf-results-sheet {
		inset: 0;
		margin: auto;
		max-width: 420px;
		border-radius: 20px;
	}
}

.mf-results-sort-options {
	overflow-y: auto;
	padding: 8px 12px 20px;
}

.mf-results-sort-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: none;
	background: none;
	padding: 13px 12px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--mfr-ink);
	text-align: start;
	cursor: pointer;
}

.mf-results-sort-option.is-active {
	background: var(--mfr-sage);
	font-weight: 750;
}

.mf-results-ranking-link {
	display: block;
	width: 100%;
	margin: 4px 0 16px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mfr-olive);
	text-decoration: underline;
	text-align: start;
}

.mf-results-toast {
	position: fixed;
	inset-inline: 16px;
	inset-block-end: 84px;
	z-index: 70;
	margin-inline: auto;
	max-width: 400px;
	padding: 12px 18px;
	background: var(--mfr-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(32, 39, 51, .25);
	opacity: 1;
	transition: opacity .3s ease;
}

.mf-results-toast-hide {
	opacity: 0;
}

.mf-results-ranking-note {
	margin: 0 12px 16px;
	padding: 12px 14px;
	background: var(--mfr-sage);
	border-radius: 12px;
}

.mf-results-ranking-note p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--mfr-ink);
}

@media (hover: hover) {
	.mf-results-sort-option:hover,
	.mf-results-tile:hover {
		background: #F5F5F5;
	}
	.mf-results-tile.is-active:hover {
		background: var(--mfr-ink);
	}
}

/* ---- Full-screen map view ---- */

.mf-results-map-view {
	position: fixed;
	inset: 0;
	/* Higher than Listeo's own desktop split-map pane, which uses z-index
	   values in the same 200-range internally for its own panes/markers
	   and otherwise shows through at the edges. */
	z-index: 9999;
	display: flex;
	flex-direction: column;
	background: #fff;
}

.mf-results-map-view[hidden] {
	display: none;
}

.mf-results-map-topbar {
	position: absolute;
	top: env(safe-area-inset-top, 0px);
	inset-inline: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	pointer-events: none;
}

.mf-results-map-topbar > * {
	pointer-events: auto;
}

.mf-results-map-topbar .mf-results-icon-button {
	background: #fff;
	box-shadow: 0 2px 10px rgba(32, 39, 51, .18);
}

.mf-results-search-area-btn {
	position: absolute;
	top: 66px;
	left: 50%;
	transform: translateX(-50%);
	border: 1px solid var(--mfr-ink);
	border-radius: 999px;
	background: var(--mfr-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 650;
	white-space: nowrap;
	min-block-size: 44px;
	padding-inline: 16px;
	box-shadow: 0 2px 10px rgba(32, 39, 51, .25);
	cursor: pointer;
}

#mf-results-map-canvas {
	flex: 1 1 auto;
	min-height: 0;
}

.mf-map-pin {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border-radius: 99px;
	padding: 7px 12px;
	min-block-size: 36px;
	font-size: 14px;
	font-weight: 750;
	color: var(--mfr-ink);
	box-shadow: 0 2px 7px rgba(32, 39, 51, .19);
	white-space: nowrap;
}

.mf-map-pin.is-selected {
	background: var(--mfr-ink);
	color: #fff;
}

.mf-map-dot {
	display: block;
	inline-size: 14px;
	block-size: 14px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--mfr-ink);
	box-shadow: 0 2px 6px rgba(32, 39, 51, .25);
}

.mf-map-dot.is-selected {
	background: var(--mfr-ink);
}

.mf-results-map-bottom {
	flex-shrink: 0;
	background: #fff;
	padding-block: 12px;
	padding-block-end: calc(12px + env(safe-area-inset-bottom, 0px));
}

.mf-results-unmapped-note {
	margin: 0 16px 10px;
	font-size: 12px;
	color: var(--mfr-muted);
	text-align: center;
}

.mf-results-map-carousel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding-inline: 16px;
}

.mf-map-card {
	scroll-snap-align: start;
	flex: 0 0 240px;
	display: flex;
	gap: 10px;
	align-items: center;
	background: #fff;
	border: 1px solid var(--mfr-line);
	border-radius: 14px;
	padding: 8px;
	text-decoration: none;
	color: var(--mfr-ink);
	box-shadow: 0 4px 16px rgba(32, 39, 51, .1);
}

.mf-map-card img {
	inline-size: 65px;
	block-size: 72px;
	border-radius: 9px;
	object-fit: cover;
	flex-shrink: 0;
}

.mf-map-card-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mf-map-card-body strong {
	font-size: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mf-map-card-body span {
	font-size: 14px;
	color: var(--mfr-muted);
	text-decoration: underline;
	font-weight: 750;
}

/* ---- "Trier" trigger, appended into category-quick-filters.js's own
   .mf-quick-filters bar (last item, per the approved design) — matches
   that bar's chip styling exactly so it reads as one row, not a bolt-on. ---- */

.mf-results-sort-trigger {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid var(--mfr-line);
	background: #fff;
	color: var(--mfr-ink);
	cursor: pointer;
	/* Directly after the last chip, as in the approved design (was pushed to the far right). */
	margin-inline-start: 0;
}

.mf-results-sort-trigger .mf-icon {
	inline-size: 18px;
	block-size: 18px;
}

@media (hover: hover) {
	.mf-results-sort-trigger:hover {
		border-color: var(--mfr-ink);
	}
}

/* ---- Return-to-card highlight (spec §12) ---- */

.listing-card-container-nl.mf-flash {
	outline: 3px solid var(--mfr-olive);
	outline-offset: 2px;
	border-radius: 12px;
	transition: outline-color 1.4s ease;
}


/* ---- Results v10 top bar (approved prototype) ---- */

.mf-sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.mf-results-merged-search {
	min-block-size: 60px;
}

.mf-results-search-trigger {
	padding: 8px;
	gap: 7px;
}

/* Search icon without the tile background. */
.mf-results-search-trigger .mf-icon-tile {
	inline-size: 20px;
	block-size: 42px;
	background: transparent;
	color: #70891d;
	margin-inline-start: 9px;
}

/* Muted prompt on top, ? Cat?gorie ? Ville ? below. */
.mf-results-search-text strong {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #626c66;
}

.mf-results-search-text small {
	font-size: 12px;
	line-height: 1.5;
	color: #626c66;
}

.mf-results-filters-trigger {
	font-size: 13px;
	padding: 4px 8px;
}

/* ? Carte ?: map icon above its label. */
.mf-results-view-toggle {
	flex-direction: column;
	gap: 1px;
	min-inline-size: 58px;
	padding: 7px;
	font-size: 12px;
	font-weight: 400;
}

@media (max-width: 760px) {
	.mf-results-topbar {
		gap: 7px;
	}
}


/* ---- Results v10 desktop layout, measured against the approved prototype
   (here, not in category-quick-filters.css: that file only loads on category pages) ---- */

/* Listeo's own category slider + Filter button row: replaced by the top bar's
   Filtres and the chips, so hidden at every width. (The copy of the container
   inside the sidebar holds the real filter fields and is left alone.) */
.filters-container > .filter-button-container {
	display: none;
}

/* No visible scrollbar between the list and the map (the list still scrolls). */
.full-page-content-container {
	scrollbar-width: none;
}

.full-page-content-container::-webkit-scrollbar {
	display: none;
}

.mf-chip-icon {
	inline-size: 20px;
	block-size: 20px;
	flex: none;
	fill: none;
	stroke: currentColor;
}

.mf-results-sort-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

@media (min-width: 993px) {
	.mf-results-sort-trigger {
		block-size: 50px;
		min-block-size: 50px;
		padding: 10px 16px;
		font-size: 16px;
	}

	/* List 52% / map 48%, as in the prototype (616px list, 557px map at 1280). */
	.full-page-container.full-page-jobs .full-page-content-container {
		flex: 0 0 52%;
		max-inline-size: 52%;
	}

	.full-page-container.full-page-jobs .full-page-map-container {
		flex: 0 0 48%;
		max-inline-size: 48%;
	}
}

/* Beats Listeo's "body.halfsidebar-archive-listings-layout .filter-button-container" display rules. */
body.halfsidebar-archive-listings-layout .filters-container > .filter-button-container,
body.archive .filters-container > .filter-button-container {
	display: none;
}

/* Chips/? Trier ? bar and heading padding, on every results page (not only category pages). */
.mf-quick-filters {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	overflow-x: auto;
	scrollbar-width: none;
}

.mf-quick-filters::-webkit-scrollbar {
	display: none;
}

.mf-quick-filters > * {
	flex-shrink: 0;
}

.mf-quick-filters + .mf-results-heading {
	margin-block-start: 6px;
	padding-inline: 20px;
}

@media (min-width: 781px) {
	.mf-quick-filters {
		padding: 12px 30px;
	}

	.mf-quick-filters + .mf-results-heading {
		padding-inline: 30px;
	}
}


/* ==== Desktop: full-width search header (approved design) ==== */

.mf-results-filter-chevron {
	display: none;
}

@media (min-width: 993px) {
	.mf-results-header {
		padding: 18px 32px 12px;
		background: #fff;
	}

	/* Search bar + Carte on one 1000px row; chips full width underneath. */
	.mf-results-header .mf-results-topbar {
		max-inline-size: 1000px;
		gap: 12px;
		position: static;
		padding: 0;
	}

	.mf-results-header .mf-results-merged-search {
		min-block-size: 62px;
	}

	.mf-results-header .mf-results-search-trigger {
		padding: 9px 12px;
		gap: 8px;
	}

	/* Desktop shows the search icon on a sage tile. */
	.mf-results-header .mf-results-search-trigger .mf-icon-tile {
		inline-size: 42px;
		block-size: 42px;
		margin: 0;
		background: #eef3e8;
		color: #70891d;
	}

	.mf-results-header .mf-results-search-trigger .mf-icon-tile .mf-icon {
		inline-size: 21px;
		block-size: 21px;
	}

	.mf-results-header .mf-results-search-text strong,
	.mf-results-header .mf-results-search-text small {
		font-size: 14px;
		line-height: 1.5;
	}

	.mf-results-header .mf-results-filters-trigger {
		font-size: 14px;
		padding: 5px 12px;
		gap: 4px;
	}

	.mf-results-header .mf-results-filter-chevron {
		display: inline-flex;
	}

	.mf-results-header .mf-results-filter-chevron .mf-icon {
		inline-size: 15px;
		block-size: 15px;
		transform: rotate(-90deg);
	}

	/* ? Carte ?: icon left of the label on desktop. */
	.mf-results-header .mf-results-view-toggle {
		flex-direction: row;
		gap: 8px;
		min-inline-size: 104px;
		min-block-size: 62px;
		padding: 10px 16px;
		font-size: 16px;
	}

	.mf-results-header .mf-results-view-toggle .mf-icon {
		inline-size: 21px;
		block-size: 21px;
	}

	.mf-results-header .mf-quick-filters {
		padding: 12px 0 0;
		gap: 9px;
		overflow-x: auto;
	}

	/* The split container takes what is left under the site header + this block. */
	body.mf-results-wide-head .full-page-container.full-page-jobs {
		height: calc(100vh - var(--mf-results-offset, 0px));
	}

	body.mf-results-wide-head .full-page-content-container,
	body.mf-results-wide-head .full-page-map-container,
	body.mf-results-wide-head .full-page-map-container #map-container {
		height: 100%;
		max-height: none;
	}

	/* Heading back in the list column. */
	body.mf-results-wide-head .mf-results-heading {
		padding-inline: 32px;
		margin-block-start: 14px;
	}
}


/* ==== Desktop: ONE scrolling page (approved design), not a fixed split ====
   Listeo's results layout locks the body and scrolls the list inside a fixed-height
   box next to the map, which divides the page in two and leaves the footer
   unreachable. Here the page scrolls normally: header, then cards (left) with the
   map pinned beside them (right), then the full-width footer. */
@media (min-width: 993px) {
	body.mf-results-wide-head {
		overflow-y: auto;
	}

	body.mf-results-wide-head .full-page-container.full-page-jobs {
		height: auto;
		align-items: flex-start;
	}

	body.mf-results-wide-head .full-page-content-container {
		height: auto;
		max-height: none;
		overflow: visible;
	}

	body.mf-results-wide-head .full-page-map-container {
		position: sticky;
		inset-block-start: var(--mf-site-header, 84px);
		align-self: flex-start;
		height: calc(100vh - var(--mf-site-header, 84px));
		max-height: none;
	}

	body.mf-results-wide-head .full-page-map-container #map-container {
		height: 100%;
		max-height: none;
	}
}

/* Listeo's own "(c) All Rights Reserved" strip: the Fivva footer carries the copyright. */
.full-page-job-listings-container > .copyrights {
	display: none;
}


/* ==== Section A/C: static map, offline banner, empty state ==== */

/* Desktop static map image (replaces the live map until a click). */
.mf-map-static {
	position: absolute;
	inset: 0;
	z-index: 5;
	background: #eef3e8;
	overflow: hidden;
}

.mf-map-static-img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.mf-map-static-btn {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 28px;
	margin-inline: auto;
	inline-size: max-content;
	min-block-size: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #202733;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(32, 39, 51, .25);
}

.mf-map-static-btn:hover {
	background: #2e3646;
}

.mf-map-static-btn:focus-visible {
	outline: 2px solid var(--mfr-lime);
	outline-offset: 3px;
}

.mf-desktop-map-canvas {
	position: absolute;
	inset: 0;
	z-index: 4;
}

/* Offline banner. */
.mf-results-offline {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: 2000;
	padding: 10px 16px;
	background: #202733;
	color: #fff;
	font-size: 14px;
	text-align: center;
}

.mf-results-offline[hidden] {
	display: none;
}

/* ? Aucun r?sultat avec ces filtres ? + the three ways out. */
.mf-results-empty {
	padding: 28px 20px 8px;
	text-align: center;
}

.mf-results-empty h2 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--mfr-ink);
}

.mf-results-empty p {
	margin: 0 auto 18px;
	max-inline-size: 36ch;
	font-size: 14px;
	color: var(--mfr-muted);
}

.mf-results-empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.mf-results-empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 44px;
	padding: 0 18px;
	border: 1px solid #202733;
	border-radius: 999px;
	background: #fff;
	color: #202733;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.mf-results-empty-main {
	background: #202733;
	color: #fff;
}

.mf-results-empty-btn:focus-visible {
	outline: 2px solid var(--mfr-lime);
	outline-offset: 3px;
}

/* Empty state: no gray Listeo box, comfortable spacing before the buttons. */
#listings-not-found.mf-results-empty {
	background: transparent;
	padding: 28px 20px 12px;
}

#listings-not-found.mf-results-empty p {
	margin: 0 auto 22px;
	line-height: 1.5;
}


/* ==== Results map as in the approved design: framed street map, city card,
   price pills, ? Voir sur la carte ?. ==== */

/* Listeo's own map container (? Afficher les N annonces suivantes ??) is replaced. */
.full-page-map-container #map-container {
	display: none;
}

@media (min-width: 993px) {
	.full-page-map-container {
		padding: 0 32px 24px 8px;
		box-sizing: border-box;
	}

	.mf-map-static,
	.mf-desktop-map-canvas {
		inset: 0 32px 24px 8px;
		border: 1px solid var(--mfr-line);
		border-radius: 20px;
		overflow: hidden;
	}
}

.mf-static-pins {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Pills sit on their coordinates (same look as the live map's pins). */
.mf-static-pins .mf-map-pin,
.mf-static-pins .mf-map-dot {
	position: absolute;
	transform: translate(-50%, -50%);
}

.mf-static-pins .mf-map-pin {
	padding: 7px 12px;
	border-radius: 999px;
	background: #fff;
	color: #202733;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(32, 39, 51, .18);
}

.mf-static-pins .mf-map-dot {
	inline-size: 14px;
	block-size: 14px;
	border-radius: 50%;
	background: #202733;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(32, 39, 51, .25);
}

/* ? Casablanca ? N r?sultats ? card, top-left. */
.mf-static-card {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	max-inline-size: calc(100% - 28px);
	padding: 12px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 2px 12px rgba(32, 39, 51, .1);
}

.mf-static-card strong {
	display: block;
	font-size: 16px;
	line-height: 1.3;
	color: #202733;
}

.mf-static-card span {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	color: #626c66;
}

.mf-map-illu {
	position: absolute;
	inset: 0;
}

.mf-map-illu svg {
	display: block;
	inline-size: 100%;
	block-size: 100%;
}


/* ==== Search sheet: same look as the approved design. Scoped under the
   dialog so Listeo's global input/button styles don't leak in. ==== */
.mf-results-dialog .mf-results-panel-head h2 {
	font-size: 20px;
	font-weight: 700;
	color: var(--mfr-ink);
}

.mf-results-dialog .mf-results-panel-head .mf-results-icon-button {
	border: 0;
	background: none;
	box-shadow: none;
}

.mf-results-dialog .mf-results-query-field {
	margin: 0;
	background: #fff;
}

.mf-results-dialog .mf-results-query-field input[type="text"] {
	border: 0;
	box-shadow: none;
	background: transparent;
	height: auto;
	margin: 0;
	padding: 12px 0;
}

.mf-results-dialog .mf-results-query-field .mf-icon {
	display: block;
	color: var(--mfr-ink);
}

.mf-results-dialog .mf-results-clear-query {
	color: var(--mfr-ink);
	font-weight: 700;
	padding: 4px;
	inline-size: 35px;
	box-shadow: none;
}

.mf-results-dialog .mf-results-field-pair select {
	font-size: 15px;
	font-weight: 600;
}

.mf-results-draft-description {
	font-size: 13px;
	color: var(--mfr-muted);
	max-inline-size: 170px;
}

.mf-results-dialog .mf-results-primary-btn {
	background: #202733;
	border-color: #202733;
	color: #fff;
}

@media (hover: hover) {
	.mf-results-dialog .mf-results-primary-btn:hover {
		background: #2e3646;
	}
}

@media (max-width: 760px) {
	.mf-results-draft-description {
		display: none;
	}
}

.mf-results-budget-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-block-start: 14px;
}

.mf-results-budget-fields label {
	font-size: 14px;
	font-weight: 650;
	color: var(--mfr-ink);
}

.mf-results-budget-fields select {
	display: block;
	inline-size: 100%;
	min-block-size: 48px;
	margin-block-start: 6px;
	padding: 10px;
	border: 1px solid var(--mfr-line);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--mfr-ink);
}

/* ---- Sheet spacing/typography pass (exact values from the approved design) ---- */
.mf-results-dialog .mf-results-panel-scroll {
	gap: 0;
}

.mf-results-dialog .mf-results-query-field input[type="text"] {
	line-height: 1.5;
	min-block-size: 0;
	block-size: auto;
	padding: 12px 0;
}

.mf-results-dialog .mf-results-query-field {
	font-size: 16px;
}

.mf-results-dialog .mf-results-field-pair {
	margin-block-start: 20px;
}

.mf-results-dialog .mf-results-field-pair label {
	margin: 0;
	line-height: 1.5;
}

.mf-results-dialog .mf-results-field-pair select {
	margin-block: 6px 0;
}

.mf-results-dialog .mf-results-section,
.mf-results-dialog .mf-results-city-choice {
	margin-block-start: 22px;
}

.mf-results-dialog .mf-results-place-label {
	font-size: 15px;
	font-weight: 700;
}

.mf-results-dialog .mf-results-draft-description {
	font-size: 14px;
}

.mf-results-dialog .mf-results-primary-btn {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	padding-inline: 24px;
}

/* ---- Tiles and sections as in the approved design: icon box, rule between sections ---- */
.mf-results-dialog .mf-results-tile .mf-icon {
	inline-size: 35px;
	block-size: 35px;
	padding: 8px;
	box-sizing: border-box;
	border-radius: 9px;
	background: #eef3e8;
	color: var(--mfr-olive);
}

.mf-results-dialog .mf-results-tile.is-active .mf-icon {
	background: rgba(255, 255, 255, .11);
	color: var(--mfr-lime);
}

.mf-results-dialog .mf-results-section:not(.mf-results-essentials) {
	padding-block: 24px;
	border-block-start: 1px solid var(--mfr-line);
}

.mf-results-dialog .mf-results-essentials {
	margin-block: 10px 22px;
}

.mf-results-dialog .mf-results-section h3 {
	margin-block-end: 6px;
}

.mf-results-dialog .mf-results-budget-fields label {
	display: block;
	margin: 0;
	line-height: 1.5;
}

.mf-results-dialog .mf-results-budget-fields select {
	margin-block: 6px 0;
}

/* Selects showing a chosen value get the approved design's green highlight. */
.mf-results-dialog select.is-set,
.mf-results-dialog select:focus-visible {
	border-color: var(--mfr-olive);
	outline: 2px solid var(--mfr-olive);
	outline-offset: 0;
}

/* Breathing room above and below ? N r?sultats ?. */
body .mf-results-heading {
	margin-block: 18px 16px;
}

body.mf-results-wide-head .mf-results-heading {
	margin-block: 22px 18px;
}

/* ==== « Voir plus » + skeleton cards ==== */
.full-page-job-listings-container .pagination-container,
.full-page-job-listings-container .listeo-load-more-container {
	display: none;
}

.mf-load-more {
	display: flex;
	justify-content: center;
	padding: 24px 20px 32px;
}

.mf-load-more[hidden] {
	display: none;
}

.mf-load-more-btn {
	min-block-size: 48px;
	padding: 0 32px;
	border: 1px solid #202733;
	border-radius: 999px;
	background: #202733;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.mf-load-more-btn:disabled {
	opacity: .6;
	cursor: progress;
}

.mf-skeleton-card {
	display: grid;
	grid-template-columns: 116px 1fr;
	grid-template-rows: auto auto auto;
	gap: 10px 14px;
	align-content: start;
	min-block-size: 140px;
	padding: 12px;
	border: 1px solid var(--mfr-line);
	border-radius: 16px;
	background: #fff;
}

.mf-skeleton-card i {
	grid-row: 1 / 4;
	border-radius: 12px;
	background: #eef1ea;
}

.mf-skeleton-card span {
	block-size: 14px;
	border-radius: 7px;
	background: #eef1ea;
}

.mf-skeleton-card span:nth-of-type(1) { inline-size: 80%; }
.mf-skeleton-card span:nth-of-type(2) { inline-size: 55%; }
.mf-skeleton-card span:nth-of-type(3) { inline-size: 35%; }

.mf-skeleton-card i,
.mf-skeleton-card span {
	animation: mf-shimmer 1.3s ease-in-out infinite;
}

@keyframes mf-shimmer {
	50% { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
	.mf-skeleton-card i,
	.mf-skeleton-card span {
		animation: none;
	}
}

@media (min-width: 781px) {
	.mf-skeleton-card {
		grid-template-columns: 1fr;
		grid-template-rows: 180px auto auto auto;
	}

	.mf-skeleton-card i {
		grid-row: auto;
	}
}

/* ---- Search header (2026-10-13): mobile = [search field] [filter icon + count] [map icon], no visible « Filtres » / « Carte » labels (kept for screen readers) ---- */
.mf-results-filter-icon { display: none; position: relative; }
@media (max-width: 760px) {
	.mf-results-merged-search { display: contents; }
	.mf-results-search-trigger { flex: 1 1 auto; min-width: 0; border: 1px solid var(--mfr-line); border-radius: 15px; background: #fff; }
	.mf-results-filters-trigger,
	.mf-results-view-toggle { flex: none; inline-size: 52px; min-inline-size: 52px; block-size: 52px; min-block-size: 52px; padding: 0; margin: 0; justify-content: center; align-items: center; border: 1px solid var(--mfr-line); border-radius: 15px; background: #fff; align-self: center; }
	.mf-results-filters-trigger .mf-results-filter-chevron { display: none; }
	.mf-results-filter-icon { display: inline-flex; align-items: center; justify-content: center; }
	.mf-results-filters-trigger .mf-results-filter-icon .mf-icon { inline-size: 22px; block-size: 22px; margin: 0; }
	.mf-results-filter-icon .mf-results-filter-count { position: absolute; inset-block-start: -9px; inset-inline-end: -10px; min-inline-size: 18px; block-size: 18px; padding: 0 5px; border-radius: 999px; background: #1a2120; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-sizing: border-box; }
	.mf-results-btn-label { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
	.mf-results-view-toggle .mf-icon { inline-size: 22px; block-size: 22px; }
}
/* ---- Map preview card: photo · name · rating + quartier / En ligne · price (+ Promo) ---- */
.mf-map-card { flex-basis: 280px; align-items: stretch; }
.mf-map-card img { inline-size: 76px; block-size: auto; min-block-size: 84px; }
.mf-map-card-body { justify-content: center; gap: 3px; }
.mf-map-card-body .mf-map-card-meta { font-size: 13px; font-weight: 500; color: var(--mfr-muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-map-card-body .mf-map-card-price-row { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mf-map-card-body .mf-map-card-price { font-size: 14px; font-weight: 800; color: var(--mfr-ink); text-decoration: none; white-space: nowrap; }
.mf-map-card-body .mf-map-card-price.is-none { font-weight: 500; color: var(--mfr-muted); }
.mf-map-card-body .mf-map-card-offer { font-size: 11px; font-weight: 800; color: #3f5e1a; background: #e4f2b8; border-radius: 999px; padding: 2px 8px; text-decoration: none; }
/* ---- Focused map (2026-10-13): Fivva black / lime pins, clusters, ONE preview card, no carousel, no price bubbles ---- */
.mfx-pin-wrap, .mfx-cluster-wrap { background: transparent; border: 0; }
.mfx-pin { display: block; inline-size: 44px; block-size: 56px; transform-origin: 50% 93%; transform: scale(.66); transition: transform .16s ease; filter: drop-shadow(0 2px 3px rgba(20, 32, 28, .35)); }
.mfx-pin.is-selected { transform: scale(1); }
.mfx-pin svg { display: block; }
.mfx-cluster { display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 50%; background: #14201c; color: #ccff00; font: 800 15px/1 var(--mf-font, inherit); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(20, 32, 28, .35); }
.mf-results-map-view, .full-page-map-container { position: relative; }
.mf-results-map-view { position: fixed; }
.mf-results-map-bottom { background: transparent; padding: 0 12px; pointer-events: none; position: absolute; inset-inline: 0; inset-block-end: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mf-results-map-bottom > * { pointer-events: auto; }
.mf-results-unmapped-note { margin: 0; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(32, 39, 51, .18); font-size: 13px; color: var(--mfr-ink); text-align: center; }
.mf-results-unmapped-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--mfr-ink); text-decoration: underline; cursor: pointer; }
.mf-mapcard { position: absolute; z-index: 6; inset-inline: 12px; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 12px; align-items: stretch; padding: 10px; background: #fff; border: 1px solid var(--mfr-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(20, 32, 28, .22); color: var(--mfr-ink); text-decoration: none; animation: mfx-card-in .18s ease-out; }
.mf-mapcard[hidden] { display: none; }
.mf-mapcard img { flex: none; inline-size: 84px; block-size: 84px; border-radius: 12px; object-fit: cover; background: #eef0f3; }
.mf-mapcard-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.mf-mapcard-name { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-mapcard-meta, .mf-mapcard-spec { font-size: 13px; color: var(--mfr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-mapcard-row { display: flex; align-items: center; gap: 8px; margin-block-start: 2px; flex-wrap: wrap; }
.mf-mapcard-price { font-size: 15px; font-weight: 800; }
.mf-mapcard-price.is-none { font-weight: 500; color: var(--mfr-muted); }
.mf-mapcard-tag { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.mf-mapcard-tag[hidden] { display: none; }
.mf-mapcard-tag.is-promo { background: #e4f2b8; color: #3f5e1a; }
.mf-mapcard-tag.is-cert { background: #14201c; color: #ccff00; }
@keyframes mfx-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 993px) {
	.mf-mapcard { inset-inline: auto; inset-inline-start: 16px; inline-size: 360px; }
}
@media (prefers-reduced-motion: reduce) { .mf-mapcard { animation: none; } .mfx-pin { transition: none; } }
.mf-results-search-area-btn.is-loading { opacity: .9; }
.mf-load-more-error { margin: 10px 0 0; text-align: center; font-size: 14px; color: #9b1c1c; }
.mf-load-more-retry { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---- One map entry point (2026-10-14): no header « Carte » on desktop (the embedded preview's « Voir sur la carte » opens the immersive map); « ← Résultats » always on top of the immersive map ---- */
@media (min-width: 993px) {
	.mf-results-view-toggle, .mf-results-header .mf-results-view-toggle { display: none; }
}
.mf-results-back-btn { display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: #fff; color: var(--mfr-ink); font-size: 15px; font-weight: 800; box-shadow: 0 2px 10px rgba(32, 39, 51, .18); cursor: pointer; }
.mf-results-back-btn .mf-icon { inline-size: 20px; block-size: 20px; }
.mf-results-map-topbar { padding-block-start: calc(12px + env(safe-area-inset-top, 0px)); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); top: 0; z-index: 20; }
/* Canonical filters: « Ce qui compte pour vous » with 1-2 available filters is a compact row; 3 keep the grouped grid. */
.mf-results-tile-grid.mf-results-tile-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mf-results-tile-grid.mf-results-tile-grid-compact .mf-results-tile:only-child { grid-column: 1 / -1; }
.mf-results-tile[hidden], .mf-quick-filter-chip[hidden] { display: none; }

/* Android QA (360 px): a tile label never wraps to two lines; the tile tightens instead. */
.mf-results-tile > span:not(.mf-results-tile-plus) { white-space: nowrap; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .mf-results-tile { gap: 8px; padding: 10px; } }
/* Essentiels stay a 2-column grid at every phone width (360/390/430); a lone last tile takes the full row. */
#mf-results-essentials.mf-results-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#mf-results-essentials.mf-results-tile-grid .mf-results-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Two columns need the room back: tighter panel + tile padding and a 28 px icon box so « À domicile » / « Femmes » are never cut. */
@media (max-width: 440px) {
	.mf-results-dialog .mf-results-essentials { padding: 16px 14px; }
	.mf-results-dialog #mf-results-essentials.mf-results-tile-grid { gap: 8px; }
	.mf-results-dialog #mf-results-essentials .mf-results-tile { gap: 6px; padding: 8px 10px; }
	.mf-results-dialog #mf-results-essentials .mf-results-tile .mf-icon { inline-size: 28px; block-size: 28px; padding: 6px; }
	.mf-results-dialog #mf-results-essentials .mf-results-tile-plus { font-size: 14px; }
}

/* Android QA: the active-filter chips share the 20 px gutter of the quick-filter row and the heading (they sat flush against the screen edge). */
.mf-results-active-filters { padding-inline: 20px; }

/* Android QA: Leaflet's panes (z-index 400-1000) must not outrank the « ← Résultats » bar and the selected-professional card: the map is its own stacking context. */
#mf-results-map-canvas { isolation: isolate; }

/* ===== Map visual refinement: price pills, quiet clusters, light basemap (presentation only) ===== */
.mfx-pin-wrap { background: transparent; border: 0; }
/* Price pill anchored on the coordinates: the 0x0 icon box IS the point; the pill sits above it with a small pointer. */
.mfx-price, .mfx-dot { position: absolute; left: 0; top: 0; display: block; cursor: pointer; }
.mfx-price {
	transform: translate(-50%, calc(-100% - 7px));
	min-block-size: 30px; padding: 0 11px; display: inline-flex; align-items: center;
	background: #fff; color: #14201c; border: 1px solid rgba(20, 32, 28, .18); border-radius: 999px;
	font: 700 13px/1 var(--mf-font, inherit); white-space: nowrap;
	box-shadow: 0 1px 4px rgba(20, 32, 28, .2);
	transition: transform .14s ease, background-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.mfx-price::after { content: ''; position: absolute; left: 50%; bottom: -5px; inline-size: 8px; block-size: 8px; background: inherit; border-right: 1px solid rgba(20, 32, 28, .18); border-bottom: 1px solid rgba(20, 32, 28, .18); transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; }
.mfx-price::before { content: ''; position: absolute; inset: -9px -7px -15px; } /* touch target around the visible marker (>= 44 px tall) */
.mfx-price.is-selected { background: #14201c; color: #fff; border-color: #14201c; transform: translate(-50%, calc(-100% - 9px)) scale(1.1); transform-origin: 50% 100%; box-shadow: 0 5px 14px rgba(20, 32, 28, .4); }
.mfx-price.is-selected::after { border-color: #14201c; }
/* No valid public tariff: a small neutral location marker (never a price, never « Voir le profil »). */
.mfx-dot { inline-size: 16px; block-size: 16px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 2px solid #14201c; box-shadow: 0 1px 4px rgba(20, 32, 28, .25); transition: transform .14s ease, background-color .14s ease; }
.mfx-dot::before { content: ''; position: absolute; inset: -14px; }
.mfx-dot.is-selected { background: #14201c; transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 4px 10px rgba(20, 32, 28, .4); }
/* Clusters: quiet, compact, neutral. */
.mfx-cluster { display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 50%; background: #f4f5f2; color: #14201c; font: 800 14px/1 var(--mf-font, inherit); border: 1px solid rgba(20, 32, 28, .2); box-shadow: 0 1px 5px rgba(20, 32, 28, .22); }
/* Basemap: light, neutral, labels untouched (one filter on the tile pane, no overlay, no label hiding): the price markers are the strongest layer. */
#mf-results-map-canvas { background: #eceeea; }
#mf-results-map-canvas .leaflet-tile-pane { filter: grayscale(.85) saturate(.6) contrast(.9) brightness(1.07); }
@media (prefers-reduced-motion: reduce) { .mfx-price, .mfx-dot { transition: none; } }
/* Desktop preview speaks the same marker language as the live map. */
.mf-static-pins .mf-map-pin { border: 1px solid rgba(20, 32, 28, .18); box-shadow: 0 1px 4px rgba(20, 32, 28, .2); font-weight: 700; color: #14201c; }
.mf-static-pins .mf-map-dot { background: #fff; border: 2px solid #14201c; box-shadow: 0 1px 4px rgba(20, 32, 28, .25); }

/* Several professionals at the same place: a light bottom sheet instead of an unbreakable cluster. */
.mf-colo-sheet { position: absolute; z-index: 7; inset-inline: 12px; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); max-block-size: 55%; overflow: auto; background: #fff; border: 1px solid var(--mfr-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(20, 32, 28, .22); padding: 6px 8px 8px; animation: mfx-card-in .18s ease-out; }
.mf-colo-sheet[hidden] { display: none; }
.mf-colo-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 6px; font-size: 15px; color: var(--mfr-ink); }
.mf-colo-close { inline-size: 44px; block-size: 44px; margin-block: -8px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--mfr-muted); cursor: pointer; }
.mf-colo-row { display: flex; align-items: center; gap: 12px; inline-size: 100%; min-block-size: 56px; padding: 6px; border: 0; border-radius: 12px; background: transparent; text-align: start; font: 600 15px/1.25 var(--mf-font, inherit); color: var(--mfr-ink); cursor: pointer; }
.mf-colo-row:hover, .mf-colo-row:focus-visible { background: #f2f4f1; }
.mf-colo-row img { flex: none; inline-size: 44px; block-size: 44px; border-radius: 10px; object-fit: cover; background: #eef0f3; }
@media (min-width: 993px) { .mf-colo-sheet { inset-inline: auto; inset-inline-start: 16px; inline-size: 360px; } }
a.mf-colo-row { text-decoration: none; }
.mf-unmapped-sheet { z-index: 8; }

/* Branded cluster: Fivva mark on a light disc + overlapping count badge. */
.mfx-cluster { position: relative; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: #fff; color: #14201c; border: 1px solid rgba(20, 32, 28, .18); box-shadow: 0 1px 5px rgba(20, 32, 28, .24); cursor: pointer; font-size: 0; }
.mfx-cluster::before { content: ''; position: absolute; inset: -8px; } /* touch target */
.mfx-cluster-mark { display: block; inline-size: 16px; block-size: 22px; }
.mfx-cluster-count { position: absolute; inset-block-start: -7px; inset-inline-end: -9px; min-inline-size: 20px; block-size: 20px; padding: 0 5px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #14201c; color: #fff; border: 2px solid #fff; font: 800 11px/1 var(--mf-font, inherit); }
/* (the font shorthand with an undefined var() is dropped at computed time: set the longhands) */
.mfx-cluster { font-size: 0; }
.mfx-cluster-count { font-size: 11px; font-weight: 800; line-height: 1; }
.mfx-price { font-size: 13px; font-weight: 700; line-height: 1; }
.mfx-colo-row, .mf-colo-row { font-size: 15px; }

/* Back button: contextual label on ONE line (ellipsis when long). */
.mf-results-back-btn { max-inline-size: min(60vw, 240px); }
.mf-results-back-btn .mf-back-label { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-results-back-btn .mf-icon { flex: none; }
/* Rich selected card (distinct from the compact group chooser). */
.mf-mapcard { align-items: flex-start; }
.mf-mapcard img { inline-size: 96px; block-size: 96px; }
.mf-mapcard-body { gap: 4px; }
.mf-mapcard-meta { font-size: 13px; color: var(--mfr-muted); }
.mf-mapcard-specs, .mf-mapcard-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-mapcard-specs[hidden], .mf-mapcard-badges[hidden], .mf-mapcard-price[hidden] { display: none; }
.mf-mapcard-spec { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f1f3ef; color: #3f4d48; white-space: nowrap; }
.mf-mapcard-tag.is-women { background: #f6e3ee; color: #7a2b57; }
.mf-mapcard-row { justify-content: space-between; inline-size: 100%; margin-block-start: 2px; }
.mf-mapcard-go { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--mfr-muted); }
/* Group chooser: compact rows, a hint that each row is tappable. */
.mf-colo-row .mf-colo-name { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-colo-row .mf-colo-price { flex: none; font-weight: 700; }
.mf-colo-row .mf-colo-chev { flex: none; font-size: 22px; line-height: 1; color: var(--mfr-muted); }

/* A selected marker's enlarged touch target must not swallow a co-located professional's own marker (re-tapping the other one has to work). */
.mfx-dot.is-selected::before { inset: -4px; }
.mfx-price.is-selected::before { inset: -9px -7px -2px; }

/* Search V1 suggestions: grouped, compact (about 5-7 rows), scrolls inside the sheet, never wider than the screen. */
.mf-results-suggestions { max-block-size: min(46vh, 340px); overflow-y: auto; overscroll-behavior: contain; }
.mf-sugg-group-title { padding: 10px 14px 4px; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--mfr-muted); }
.mf-results-suggestion-item { box-sizing: border-box; max-inline-size: 100%; }
.mf-results-suggestion-item.is-active, .mf-results-suggestion-item:focus-visible { background: #f2f4f1; }
.mf-sugg-text { display: flex; flex-direction: column; min-inline-size: 0; text-align: start; }
.mf-sugg-text strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-sugg-text small { font-size: 12px; color: var(--mfr-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-results-suggestions { flex: 0 0 auto; background: #fff; margin-block-end: 14px; }
.mf-results-suggestions > * { flex-shrink: 0; }

/* Près de moi: selected check, loading, recoverable notice. */
.mf-quick-filter-chip.active[data-mf-chip="mf-results-near-field"]::before { content: '\2713\00a0'; }
.mf-quick-filter-chip[aria-busy="true"], .mf-results-near-btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.mf-near-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 20px 0; padding: 10px 12px; background: #fff8e6; border: 1px solid #f0dca0; border-radius: 14px; }
.mf-near-notice[hidden] { display: none; }
.mf-near-notice-text { display: flex; flex-direction: column; min-inline-size: 0; }
.mf-near-notice-text strong { font-size: 14px; }
.mf-near-notice-text small { font-size: 12px; color: var(--mfr-muted); }
.mf-near-notice-cta { flex: none; min-block-size: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--mfr-ink); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }

/* Certifié stays visible in Confiance even with nothing to filter on: subdued and inert */
.mf-results-tile.is-unavailable:not(.is-active) {
	opacity: .72;
	cursor: default;
	background: #f6f7f4;
	border-color: #e3e7e1;
	color: #6b756f;
	pointer-events: none; /* inert: no tap, no hover, no request */
}
.mf-results-tile.is-unavailable:not(.is-active) .mf-results-tile-plus { visibility: hidden; }

/* ---- Filter sheet: one Ville row (Près de moi lives on the Explore quick chip), Spécialité = registry select, controls never wider than the sheet ---- */
.mf-results-city-row {
	display: block;
	margin-block-start: 20px;
	font-size: 14px;
	font-weight: 650;
	color: var(--mfr-ink);
	line-height: 1.5;
}
.mf-results-city-row select {
	display: block;
	min-block-size: 48px;
	border: 1px solid var(--mfr-line);
	border-radius: 10px;
	padding: 10px;
	padding-inline-end: 28px;
	inline-size: 100%;
	max-inline-size: 100%;
	margin-block-start: 6px;
	font: inherit;
	font-size: 15px;
	color: var(--mfr-ink);
	background: #fff;
	box-sizing: border-box;
	text-overflow: ellipsis;
}
.mf-results-dialog .mf-results-field-pair select {
	font-size: 14px;
	padding-inline: 10px 24px;
	box-sizing: border-box;
	max-inline-size: 100%;
	text-overflow: ellipsis;
}
.mf-results-dialog .mf-results-field-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 480px) {
	.mf-results-dialog .mf-results-field-pair { grid-template-columns: minmax(0, 1fr); } /* phones (360 / 390 / 430): stacked, so « Parapharmacie & Nutrition » and long specialties stay whole */
}
.mf-results-rating-note { grid-column: 1 / -1; margin: -2px 0 0; }

/* ---- Final mobile pass: compact quick actions, icon-only sort, red count badge, recognisable map + locate glyphs, live CTA ---- */
.mf-quick-filters { gap: 8px; }
.mf-quick-filters .mf-quick-filter-chip {
	block-size: 40px;
	min-block-size: 40px;
	padding: 6px 12px;
	font-size: 14px;
	gap: 6px;
}
.mf-quick-filters .mf-results-sort-trigger {
	position: relative;
	flex: none;
	inline-size: 44px;
	block-size: 44px;
	min-block-size: 44px;
	padding: 0;
	justify-content: center;
}
.mf-quick-filters .mf-results-sort-trigger .mf-icon { inline-size: 22px; block-size: 22px; }
.mf-results-sort-trigger.has-sort::after {
	content: '';
	position: absolute;
	inset-block-start: 8px;
	inset-inline-end: 8px;
	inline-size: 9px;
	block-size: 9px;
	border-radius: 50%;
	background: #657900;
	border: 2px solid #fff;
	box-sizing: content-box;
}
.mf-results-filter-icon { position: relative; }
.mf-results-filter-icon .mf-results-filter-count {
	position: absolute;
	inset-block-start: -8px;
	inset-inline-end: -10px;
	min-inline-size: 19px;
	block-size: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: #d92d20; /* strictly a notification / count semantic, not a Fivva accent */
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 19px;
	text-align: center;
	box-sizing: border-box;
	box-shadow: 0 0 0 2px #fff;
}
.mf-results-view-toggle { min-inline-size: 48px; min-block-size: 48px; color: #14201c; }
.mf-results-view-toggle .mf-map-glyph { inline-size: 26px; block-size: 26px; flex: none; }
#mf-results-locate svg { inline-size: 26px; block-size: 26px; }
.mf-results-primary-btn[disabled] { opacity: .5; cursor: not-allowed; }
.mf-results-primary-btn.is-loading .mf-icon { display: none; }
.mf-results-primary-btn.is-loading::after {
	content: '';
	inline-size: 16px;
	block-size: 16px;
	margin-inline-start: 8px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mf-cta-spin .7s linear infinite;
}
@keyframes mf-cta-spin { to { transform: rotate(360deg); } }
/* Spécialité waits for a category: visibly disabled but readable, with a one-line hint. */
#mf-results-subcategory:disabled { opacity: 1; color: #5b655f; background-color: #f1f3ef; cursor: not-allowed; }
.mf-results-field-hint { margin: 6px 2px 0; font-size: 13px; line-height: 1.3; color: #5b655f; }
.mf-results-field-hint[hidden] { display: none; }
.mf-mapcard-star { color: #f5a623; }

/* Explorer top search at 360-400 px: the canonical placeholder "Rechercher une activité, un pro…" shows whole. The trigger gives back a little padding and the label is 12 px; the filter / map buttons keep their 52 px touch size. */
@media (max-width: 400px) {
	.mf-results-search-trigger { padding: 8px 6px; gap: 5px; }
	.mf-results-search-trigger .mf-icon-tile { margin-inline-start: 4px; }
	.mf-results-search-text strong { font-size: 12px; letter-spacing: -.01em; }
}
