/*
 * Recherche rapide du header. Mise en page de la maquette Framer (colonne
 * « Recherche rapide » : « Trouvez leur prochaine aventure », exemples,
 * thématiques, séjours correspondants, « Affinez par âge, dates ou budget »),
 * avec la police et les couleurs du site, comme le bloc Filtres : Poppins,
 * bleu nuit #1E2C63 (titres), bordeaux #91284D (complet), bleu roi #0C41B8
 * (liens, champ actif).
 * Ordinateur : panneau centré sous l'en-tête. Mobile : plein écran.
 */
.qs {
	--qs-night: #1e2c63;
	--qs-text: #2b3245;
	--qs-muted: #6d7789;
	--qs-faint: #a9afbd;
	--qs-line: #e6e9f0;
	--qs-soft: #f4f5f9;
	--qs-bordeaux: #91284d;
	--qs-royal: #0c41b8;
	--qs-royal-soft: #eef2fb;
	bottom: 0;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 2000;
}

.qs[hidden] {
	display: none;
}

html.qs-is-open {
	overflow: hidden;
}

.qs svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.qs-backdrop {
	background: rgba(30, 44, 99, .35);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.qs-panel {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(30, 44, 99, .25);
	color: var(--qs-text);
	display: flex;
	flex-direction: column;
	font-family: Poppins, "Open Sans", sans-serif;
	font-size: 14px;
	margin: 72px auto 0;
	max-height: calc(100vh - 104px);
	max-width: 720px;
	overflow: hidden;
	position: relative;
	width: calc(100% - 32px);
}

/* En-tête */

.qs-head {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 22px 24px 0;
}

.qs-title {
	color: var(--qs-night);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

.qs-subtitle {
	color: var(--qs-muted);
	font-size: 13px;
	margin: 2px 0 0;
}

.qs-close,
.qs-clear {
	align-items: center;
	background: var(--qs-soft);
	border: 0;
	border-radius: 50%;
	color: var(--qs-night);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	height: 36px;
	justify-content: center;
	padding: 0;
	width: 36px;
}

.qs-close svg,
.qs-clear svg {
	height: 18px;
	width: 18px;
}

.qs-close:hover,
.qs-clear:hover {
	background: var(--qs-line);
}

/* Champ */

.qs-form {
	margin: 0;
	padding: 14px 24px 0;
}

.qs-label {
	color: var(--qs-night);
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 8px;
}

.qs-field {
	align-items: center;
	background: #fff;
	border: 1.5px solid var(--qs-line);
	border-radius: 14px;
	display: flex;
	transition: border-color .1s, box-shadow .1s;
}

.qs-field:focus-within {
	border-color: var(--qs-royal);
	box-shadow: 0 0 0 3px rgba(12, 65, 184, .12);
}

.qs-field__icon {
	color: var(--qs-royal);
	flex-shrink: 0;
	height: 20px;
	margin-left: 14px;
	width: 20px;
}

.qs-input {
	background: transparent;
	border: 0;
	color: var(--qs-text);
	flex: 1;
	font-family: inherit;
	font-size: 16px;
	height: 48px;
	min-width: 0;
	outline: 0;
	padding: 0 12px;
}

.qs-input::-webkit-search-cancel-button {
	display: none;
}

.qs-input::placeholder {
	color: var(--qs-faint);
}

.qs-clear {
	background: transparent;
	color: var(--qs-muted);
	height: 32px;
	margin-right: 8px;
	width: 32px;
}

.qs-clear[hidden] {
	display: none;
}

.qs-try {
	align-items: center;
	color: var(--qs-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 6px;
	margin: 10px 0 0;
}

/* Pastilles */

.qs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qs-chip {
	align-items: center;
	background: #fff;
	border: 1px solid var(--qs-line);
	border-radius: 999px;
	color: var(--qs-night);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.2;
	padding: 7px 13px;
	text-decoration: none;
}

.qs-chip:hover,
.qs-chip:focus-visible {
	background: var(--qs-soft);
	border-color: #d5dae6;
	color: var(--qs-night);
	text-decoration: none;
}

.qs-chip--try {
	background: var(--qs-royal-soft);
	border-color: transparent;
	color: var(--qs-royal);
	font-size: 12px;
	padding: 3px 10px;
}

.qs-chip--theme {
	background: var(--qs-royal-soft);
	border-color: transparent;
	color: var(--qs-royal);
	font-weight: 600;
}

/* Corps */

.qs-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 24px 6px;
}

.qs-group {
	margin-bottom: 18px;
}

.qs-group[hidden] {
	display: none;
}

.qs-group__head {
	align-items: baseline;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.qs-group__title {
	color: var(--qs-night);
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 8px;
}

.qs-show-all {
	border-radius: 8px;
	color: var(--qs-royal);
	font-size: 13px;
	font-weight: 600;
	padding: 2px 6px;
	text-decoration: none;
}

.qs-show-all:hover,
.qs-show-all.is-active {
	background: var(--qs-royal-soft);
	color: var(--qs-royal);
	text-decoration: none;
}

.qs-shortcut {
	color: var(--qs-faint);
	font-size: 12px;
	margin: 0 0 12px;
}

.qs--loading .qs-results {
	opacity: .55;
}

/* Suggestions */

.qs-item {
	align-items: center;
	border-radius: 14px;
	color: var(--qs-text);
	display: flex;
	gap: 12px;
	padding: 10px 12px;
	text-decoration: none;
}

.qs-item:hover,
.qs-item.is-active {
	background: var(--qs-soft);
	color: var(--qs-text);
	text-decoration: none;
}

.qs-item.is-active {
	box-shadow: inset 0 0 0 1.5px var(--qs-royal);
}

.qs-offer {
	border: 1px solid var(--qs-line);
	margin-bottom: 8px;
}

.qs-offer__img {
	background: var(--qs-soft);
	border-radius: 10px;
	flex-shrink: 0;
	height: 56px;
	object-fit: cover;
	width: 76px;
}

.qs-offer__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.qs-offer__name {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--qs-night);
	display: -webkit-box;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
}

.qs-offer__meta {
	color: var(--qs-muted);
	font-size: 12px;
}

.qs-offer__side {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 6px;
	text-align: right;
}

.qs-offer__ref {
	background: var(--qs-royal-soft);
	border-radius: 999px;
	color: var(--qs-royal);
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	white-space: nowrap;
}

.qs-offer__price {
	color: var(--qs-muted);
	font-size: 11px;
	white-space: nowrap;
}

.qs-offer__price s {
	margin-left: 4px;
}

.qs-offer__price strong {
	color: var(--qs-night);
	font-size: 15px;
	margin-left: 4px;
}

.qs-offer__full {
	color: var(--qs-bordeaux);
	font-size: 12px;
	font-weight: 600;
}

.qs-link__icon {
	align-items: center;
	background: var(--qs-royal-soft);
	border-radius: 10px;
	color: var(--qs-royal);
	display: flex;
	flex-shrink: 0;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.qs-link__icon svg {
	height: 18px;
	width: 18px;
}

.qs-link__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.qs-link__name {
	color: var(--qs-night);
	font-size: 14px;
	font-weight: 600;
}

.qs-link__context {
	color: var(--qs-muted);
	font-size: 12px;
}

.qs-empty {
	border: 1px dashed var(--qs-line);
	border-radius: 14px;
	margin-bottom: 18px;
	padding: 24px 16px;
	text-align: center;
}

.qs-empty__title {
	color: var(--qs-night);
	font-weight: 600;
	margin: 0 0 4px;
}

.qs-empty__text {
	color: var(--qs-muted);
	font-size: 13px;
	margin: 0;
}

.qs-status {
	clip: rect(0 0 0 0);
	height: 1px;
	margin: 0;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* Pont vers les filtres */

.qs-refine {
	align-items: center;
	background: var(--qs-royal-soft);
	border-radius: 14px;
	color: var(--qs-night);
	display: flex;
	gap: 12px;
	margin: 0 24px 20px;
	padding: 12px 16px;
	text-decoration: none;
}

.qs-refine:hover,
.qs-refine:focus-visible {
	background: #e3e9f8;
	color: var(--qs-night);
	text-decoration: none;
}

.qs-refine__icon,
.qs-refine__arrow {
	color: var(--qs-royal);
	flex-shrink: 0;
	height: 22px;
	width: 22px;
}

.qs-refine__text {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.qs-refine__title {
	color: var(--qs-royal);
	font-size: 14px;
	font-weight: 600;
}

.qs-refine__hint {
	color: var(--qs-muted);
	font-size: 12px;
}

/* Mobile : plein écran */

@media (max-width: 767px) {
	.qs-backdrop,
	.qs-shortcut {
		display: none;
	}

	.qs-panel {
		border-radius: 0;
		height: 100%;
		margin: 0;
		max-height: none;
		max-width: none;
		width: 100%;
	}

	.qs-head {
		padding: 16px 16px 0;
	}

	.qs-title {
		font-size: 18px;
	}

	.qs-form {
		padding: 12px 16px 0;
	}

	.qs-body {
		padding: 16px 16px 4px;
	}

	.qs-refine {
		margin: 0 16px 16px;
	}

	.qs-offer {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.qs-offer__body {
		flex-basis: calc(100% - 88px);
	}

	.qs-offer__side {
		align-items: center;
		flex-basis: 100%;
		flex-direction: row;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qs-field {
		transition: none;
	}
}