.hb-booking-wrapper {
	--hb-primary: #b8860b;
	--hb-primary-dark: #8a6508;
	--hb-dark: #2a2a2a;
	--hb-bg: #ffffff;
	--hb-border: #e2ddd3;
	max-width: 1100px;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}
.hb-booking-wrapper *,
.hb-booking-wrapper *::before,
.hb-booking-wrapper *::after { box-sizing: border-box; }

/* ===== Barre de recherche =====
   Mobile-first : grille 2 colonnes pour éviter les grands vides
   causés par le wrap en flexbox. On étend la grille au fil des
   breakpoints (tablette puis desktop). */
.hb-search-bar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	background: var(--hb-bg);
	border: 1px solid var(--hb-border);
	border-radius: 10px;
	padding: 14px;
	box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.hb-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Adultes / Enfants côte à côte sur mobile, pas besoin de large colonne */
.hb-field-small { grid-column: span 1; }

/* Le bouton "Rechercher" prend toute la largeur sur mobile (facile à toucher) */
.hb-field-btn {
	grid-column: 1 / -1;
	justify-content: flex-end;
}

.hb-field label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 6px;
	color: var(--hb-dark);
}

.hb-field input,
.hb-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--hb-border);
	border-radius: 6px;
	font-size: 14px;
}

.hb-btn-search,
.hb-btn-submit {
	background: var(--hb-primary);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: background .2s ease;
	white-space: nowrap;
}
.hb-btn-search { width: 100%; }
.hb-btn-search:hover,
.hb-btn-submit:hover { background: var(--hb-primary-dark); }

/* Tablette : 4 colonnes (arrivée / départ / adultes / enfants), bouton en dessous pleine largeur */
@media (min-width: 600px) {
	.hb-search-bar {
		grid-template-columns: repeat(4, 1fr);
		gap: 12px;
		padding: 18px;
	}
	.hb-field-btn { grid-column: 1 / -1; }
	.hb-btn-search { width: auto; min-width: 200px; margin-left: auto; display: block; }
}

/* Desktop : tout sur une seule ligne, comme avant mais mieux proportionné */
@media (min-width: 900px) {
	.hb-search-bar {
		grid-template-columns: 2fr 2fr 1fr 1fr auto;
		align-items: end;
		padding: 20px;
	}
	.hb-field-btn { grid-column: auto; }
	.hb-btn-search { width: auto; min-width: 0; margin-left: 0; }
}

.hb-search-results {
	margin-top: 16px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

@media (min-width: 480px) {
	.hb-search-results {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 18px;
	}
}

@media (min-width: 900px) {
	.hb-search-results {
		margin-top: 24px;
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 20px;
	}
}

.hb-room-card {
	border: 1px solid var(--hb-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.hb-room-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.hb-room-card-body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.hb-room-card-body h4 { margin: 0; font-size: 17px; }
.hb-room-card-body p { margin: 0; font-size: 13px; color: #666; }

.hb-formule-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px dashed var(--hb-border);
	padding-top: 8px;
	font-size: 14px;
}

.hb-formule-line button {
	background: var(--hb-dark);
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 5px;
	font-size: 12px;
	cursor: pointer;
}
.hb-formule-line button:hover { background: var(--hb-primary); }

.hb-no-results,
.hb-loading { padding: 20px; text-align: center; color: #777; }

/* Modal — mobile-first : quasi plein écran sur mobile pour éviter les
   marges/padding excessifs, puis boîte centrée à partir de la tablette. */
.hb-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 99999;
	padding: 0;
}

.hb-modal {
	background: #fff;
	border-radius: 14px 14px 0 0;
	max-width: 560px;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	padding: 18px 16px 20px;
	position: relative;
}

.hb-modal h3 { font-size: 18px; margin: 4px 24px 0 0; }

.hb-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	cursor: pointer;
	color: #888;
	line-height: 1;
	padding: 4px;
}

.hb-modal-summary {
	background: #f8f5f0;
	border-radius: 8px;
	padding: 10px 14px;
	margin: 10px 0 14px;
	font-size: 13px;
}

.hb-form-row { margin-bottom: 12px; }
.hb-form-row label {
	display: block;
	font-size: 13px;
	margin-bottom: 5px;
	color: var(--hb-dark);
}
.hb-form-row input,
.hb-form-row select,
.hb-form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--hb-border);
	border-radius: 6px;
	font-size: 16px; /* évite le zoom auto iOS sur les champs de formulaire */
}

.hb-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.hb-btn-submit { width: 100%; }

.hb-form-message { margin-top: 10px; font-size: 14px; }
.hb-form-message.hb-success { color: #2a7a2a; }
.hb-form-message.hb-error { color: #b83b3b; }

/* Écran de confirmation après envoi réussi du formulaire */
.hb-confirmation {
	text-align: center;
	padding: 10px 4px 6px;
}

.hb-confirmation-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: #e6f7e6;
	color: #2a7a2a;
	font-size: 28px;
	margin: 0 auto 14px;
}

.hb-confirmation-title {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 10px;
	color: var(--hb-dark);
}

.hb-confirmation-text {
	font-size: 14px;
	color: #555;
	line-height: 1.5;
	margin: 0 0 20px;
}

.hb-btn-confirmation-close { width: 100%; }

@media (min-width: 600px) {
	.hb-confirmation { padding: 14px 20px 8px; }
	.hb-btn-confirmation-close { width: auto; min-width: 160px; }
}

/* Tablette et desktop : modal centré classique, formulaire sur 2 colonnes */
@media (min-width: 600px) {
	.hb-modal-overlay { align-items: center; padding: 16px; }
	.hb-modal {
		border-radius: 10px;
		max-height: 90vh;
		padding: 26px 28px;
	}
	.hb-modal h3 { font-size: 20px; margin: 0; }
	.hb-form-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.hb-form-row input,
	.hb-form-row select,
	.hb-form-row textarea { font-size: 14px; }
	.hb-btn-submit { width: auto; }
}
