/* Montana – Recherche résidences. Rendu aligné sur l'ancienne recherche JetSearch. */
.mrr {
	--mrr-text: #fff;
	--mrr-muted: rgba(255, 255, 255, 0.72);
	--mrr-field: #5a5a5a;
	--mrr-line: rgba(255, 255, 255, 0.35);
	--mrr-accent: #c6b171;
	--mrr-button: #646464;
	position: relative;
	margin: 0;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	color: var(--mrr-text);
}

.mrr--clair {
	--mrr-text: #000;
	--mrr-muted: #5a5a5a;
	--mrr-field: #f2f2f2;
	--mrr-line: rgba(0, 0, 0, 0.15);
	--mrr-button: #000;
}

.mrr__label,
.mrr__status {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.mrr__field {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--mrr-field);
	border-radius: 9px;
}

.mrr__field:focus-within {
	outline: 2px solid var(--mrr-accent);
	outline-offset: 2px;
}

.mrr__icon {
	position: absolute;
	left: 14px;
	color: var(--mrr-text);
	pointer-events: none;
}

.mrr .mrr__input,
.mrr .mrr__input:focus {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px 0 42px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--mrr-text);
	font: inherit;
	outline: none;
	box-shadow: none;
}

.mrr .mrr__input::placeholder {
	color: var(--mrr-muted);
	opacity: 1;
}

.mrr .mrr__input::-webkit-search-cancel-button {
	filter: grayscale(1);
}

.mrr .mrr__submit {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	padding: 0;
	border: 0;
}

.mrr--loading .mrr__field::after {
	content: "";
	position: absolute;
	right: 16px;
	width: 16px;
	height: 16px;
	border: 2px solid var(--mrr-line);
	border-top-color: var(--mrr-accent);
	border-radius: 50%;
	animation: mrr-spin 0.7s linear infinite;
}

@keyframes mrr-spin {
	to {
		transform: rotate(360deg);
	}
}

.mrr__panel {
	margin-top: 20px;
}

.mrr__panel[hidden] {
	display: none;
}

.mrr__message {
	margin: 0 0 6px;
	color: var(--mrr-muted);
	font-size: 13px;
}

.mrr__list {
	max-height: 320px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.mrr__option {
	margin: 0;
	border-bottom: 1px solid var(--mrr-line);
}

.mrr__option:last-child {
	border-bottom: 0;
}

.mrr .mrr__list .mrr__option a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 12px 0;
	color: var(--mrr-text);
	text-decoration: none;
}

.mrr__title {
	font-weight: 600;
}

.mrr__lieu {
	color: var(--mrr-muted);
	font-size: 13px;
}

.mrr .mrr__list .mrr__option a:hover,
.mrr .mrr__list .mrr__option a:focus-visible,
.mrr .mrr__list .mrr__option[aria-selected="true"] a,
.mrr .mrr__list .mrr__option a:hover .mrr__lieu,
.mrr .mrr__list .mrr__option[aria-selected="true"] a .mrr__lieu {
	color: var(--mrr-accent);
}

.mrr .mrr__all {
	margin-top: 20px;
	padding: 10px 14px;
	border: 0;
	border-radius: 50px;
	background: var(--mrr-button);
	color: #fff;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.mrr .mrr__all:hover,
.mrr .mrr__all:focus-visible {
	background: var(--mrr-accent);
	color: #000;
}

.mrr .mrr__all[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.mrr--loading .mrr__field::after {
		animation: none;
	}
}
