/**
 * ==========================================================
 * MetrYMMO V2
 * PROPERTY FILTER
 * Barre de filtres du catalogue
 * ==========================================================
 */


/* ==========================================================
   CONTENEUR
   ========================================================== */

.property-filters {
	position: relative;
	z-index: 20;

	width: 100%;

	margin: -38px 0 42px;
	padding: 22px 28px;

	box-sizing: border-box;

	border: 1px solid rgba(11, 11, 11, 0.07);
	border-radius: 20px;

	background: #FFFFFF;

	box-shadow:
		0 20px 50px rgba(11, 11, 11, 0.10);
}


/* ==========================================================
   INNER
   ========================================================== */

.property-filters__inner {
	width: 100%;
	margin: 0;
	padding: 0;
}


/* ==========================================================
   FORMULAIRE
   ========================================================== */

.property-filters__form {
	display: block !important;

	width: 100%;
	margin: 0;
	padding: 0;
}


/* ==========================================================
   GRILLE DES 6 FILTRES
   ========================================================== */

.property-filters__grid {
	display: grid !important;

	grid-template-columns:
		minmax(0, 1.15fr)
		minmax(0, 1.15fr)
		minmax(0, 1fr)
		minmax(0, 1fr)
		minmax(0, .9fr)
		minmax(0, 1fr) !important;

	gap: 14px !important;

	width: 100%;
	margin: 0;
	padding: 0;
}


/* ==========================================================
   CHAQUE FILTRE
   ========================================================== */

.property-filter {
	display: flex;
	flex-direction: column;

	min-width: 0;

	margin: 0 !important;
	padding: 0 !important;
}

.property-filter__label {
	display: block;

	height: 14px;

	margin: 0 0 7px !important;

	color: #5A351D;

	font-family: inherit;
	font-size: 10px;
	font-weight: 800;
	line-height: 14px;

	letter-spacing: 0.07em;
	text-transform: uppercase;
}


/* ==========================================================
   INPUTS / SELECTS
   ========================================================== */

.property-filter__input,
.property-filter__select {
	display: block;

	width: 100% !important;
	height: 48px !important;

	min-height: 48px;

	box-sizing: border-box;

	margin: 0 !important;
	padding: 0 13px !important;

	border: 1px solid rgba(33, 22, 15, 0.12) !important;
	border-radius: 10px !important;

	background: #F7F4EE !important;

	color: #21160F !important;

	font-family: inherit;
	font-size: 12px;
	line-height: 48px;

	outline: none;

	transition:
		background .2s ease,
		border-color .2s ease,
		box-shadow .2s ease;
}

.property-filter__select {
	cursor: pointer;
}


/* ==========================================================
   INPUT AVEC SUFFIXE
   ========================================================== */

.property-filter__input-wrap {
	display: flex !important;
	align-items: center;

	width: 100%;
	height: 48px;

	box-sizing: border-box;

	margin: 0 !important;
	padding: 0 !important;

	border: 1px solid rgba(33, 22, 15, 0.12) !important;
	border-radius: 10px !important;

	background: #F7F4EE !important;

	overflow: hidden;
}

.property-filter__input-wrap .property-filter__input {
	flex: 1 1 auto;

	width: 1% !important;

	height: 46px !important;
	min-height: 46px;

	border: 0 !important;

	background: transparent !important;

	box-shadow: none !important;
}

.property-filter__suffix {
	flex: 0 0 auto;

	padding: 0 12px 0 5px;

	color: #A86F3D;

	font-size: 10px;
	font-weight: 800;
	line-height: 48px;
}


/* ==========================================================
   PLACEHOLDER
   ========================================================== */

.property-filter__input::placeholder {
	color: rgba(33, 22, 15, 0.45);
	opacity: 1;
}


/* ==========================================================
   FOCUS
   ========================================================== */

.property-filter__input:focus,
.property-filter__select:focus {
	border-color: #C99A55 !important;

	background: #FFFFFF !important;

	box-shadow:
		0 0 0 3px rgba(201, 154, 85, 0.09) !important;
}

.property-filter__input-wrap:focus-within {
	border-color: #C99A55 !important;

	background: #FFFFFF !important;

	box-shadow:
		0 0 0 3px rgba(201, 154, 85, 0.09);
}


/* ==========================================================
   ACTIONS
   ========================================================== */

.property-filters__actions {
	display: flex !important;
	align-items: center;

	width: 100%;

	margin: 14px 0 0 !important;
	padding: 0 !important;

	gap: 14px;
}


/* ==========================================================
   BOUTON RECHERCHER
   ========================================================== */

.property-filters__submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;

	flex: 0 0 auto;

	gap: 11px;

	height: 48px !important;
	min-width: 132px;

	margin: 0 !important;
	padding: 0 20px !important;

	border: 0 !important;
	border-radius: 10px !important;

	background:
		linear-gradient(
			135deg,
			#C99A55 0%,
			#E0BB80 100%
		) !important;

	color: #0B0B0B !important;

	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;

	cursor: pointer;

	box-shadow:
		0 9px 22px rgba(201, 154, 85, 0.15);

	transition:
		transform .2s ease,
		box-shadow .2s ease,
		background .2s ease;
}

.property-filters__submit:hover {
	transform: translateY(-1px);

	background:
		linear-gradient(
			135deg,
			#E0BB80 0%,
			#C99A55 100%
		) !important;

	box-shadow:
		0 13px 26px rgba(201, 154, 85, 0.20);
}

.property-filters__submit span:last-child {
	font-size: 16px;
	line-height: 1;
}


/* ==========================================================
   RÉINITIALISER
   ========================================================== */

.property-filters__reset {
	display: inline-flex;
	align-items: center;

	height: 48px;

	margin: 0 !important;
	padding: 0;

	color: rgba(33, 22, 15, 0.55) !important;

	font-size: 11px;
	font-weight: 500;

	text-decoration: none;

	transition:
		color .2s ease;
}

.property-filters__reset:hover {
	color: #A86F3D !important;
}


/* ==========================================================
   MOBILE TOGGLE
   ========================================================== */

.property-filters__mobile-toggle {
	display: none;

	width: 100%;

	margin: 0;
	padding: 14px 16px;

	border: 1px solid rgba(33, 22, 15, 0.10);
	border-radius: 10px;

	background: #F7F4EE;

	color: #21160F;

	font-family: inherit;
	font-size: 12px;
	font-weight: 700;

	cursor: pointer;
}

.property-filters__mobile-icon {
	margin-right: 8px;
}

.property-filters__mobile-arrow {
	float: right;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 1100px) {

	.property-filters {
		padding: 20px 22px;
	}

	.property-filters__grid {
		grid-template-columns:
			repeat(3, minmax(0, 1fr)) !important;

		gap: 14px !important;
	}

	.property-filters__actions {
		margin-top: 14px !important;
	}

}


/* ==========================================================
   PETITE TABLETTE
   ========================================================== */

@media (max-width: 800px) {

	.property-filters {
		margin-top: -30px;
		padding: 19px;
	}

	.property-filters__grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;
	}

}


/*
 * Entre 701 et 768 px, buttons.css rend tous les boutons pleine largeur.
 * Dans la rangée d’actions du filtre, cela pousse « Réinitialiser » hors
 * de son conteneur. Le bouton de recherche reste compact et la rangée peut
 * passer à la ligne si le libellé ne tient pas.
 */
@media (min-width: 701px) and (max-width: 768px) {

	.property-filters__actions {
		flex-wrap: wrap;
	}

	.property-filters__actions > .property-filters__submit {
		width: auto !important;
		max-width: 100%;
		flex: 0 0 auto;
	}

	.property-filters__actions > .property-filters__reset {
		flex: 0 0 auto;
		white-space: nowrap;
	}

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

	.property-filters {
		margin-top: -24px;
		margin-bottom: 32px;

		padding: 16px;

		border-radius: 16px;
	}

	.property-filters__mobile-toggle {
		display: block;
	}

	.property-filters__form {
		display: none !important;

		margin-top: 14px;
	}

	.property-filters__form.is-open {
		display: block !important;
	}

	.property-filters__grid {
		grid-template-columns: 1fr !important;

		gap: 11px !important;
	}

	.property-filter__label {
		height: auto;

		margin-bottom: 6px !important;
	}

	.property-filters__actions {
		flex-direction: column;
		align-items: stretch;

		gap: 8px;

		margin-top: 13px !important;
	}

	.property-filters__submit {
		width: 100%;
	}

	.property-filters__reset {
		justify-content: center;

		height: 36px;
	}

}


/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

.property-filters__submit:focus-visible,
.property-filters__reset:focus-visible,
.property-filters__mobile-toggle:focus-visible,
.property-filter__input:focus-visible,
.property-filter__select:focus-visible {
	outline: 2px solid #C99A55;
	outline-offset: 2px;
}
