/*
 * Verdi Hotels Booking Selector – front-end styles.
 * Everything is scoped to .vhbs; colours/sizes come from CSS custom
 * properties generated from Verdi Booking → Design.
 */

.vhbs {
	--vhbs-card-bg: #fff;
	--vhbs-card-border: #e2e2e2;
	--vhbs-card-border-width: 1px;
	--vhbs-card-radius: 20px;
	--vhbs-card-padding: 24px;
	--vhbs-max-width: 420px;
	--vhbs-shadow: none;
	--vhbs-font: inherit;
	--vhbs-heading: #111;
	--vhbs-heading-size: 28px;
	--vhbs-sub: #5c5c5c;
	--vhbs-field-bg: #fff;
	--vhbs-field-border: #dcdcdc;
	--vhbs-focus: #2b3b3a;
	--vhbs-field-radius: 14px;
	--vhbs-label: #555;
	--vhbs-field-text: #111;
	--vhbs-btn-bg: #2b3b3a;
	--vhbs-btn-text: #fff;
	--vhbs-btn-hover-bg: #1c2726;
	--vhbs-btn-hover-text: #fff;
	--vhbs-btn-radius: 12px;
	--vhbs-btn-size: 17px;
	--vhbs-error: #b3261e;
	--vhbs-footer: #6b6b6b;

	box-sizing: border-box;
	width: 100%;
	max-width: var(--vhbs-max-width);
	margin: 0 auto;
	font-family: var(--vhbs-font);
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

.vhbs *,
.vhbs *::before,
.vhbs *::after {
	box-sizing: inherit;
}

.vhbs--align-left {
	margin-left: 0;
}

/* Card ------------------------------------------------------------------ */

.vhbs .vhbs__form {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: var(--vhbs-card-padding);
	background: var(--vhbs-card-bg);
	border: var(--vhbs-card-border-width) solid var(--vhbs-card-border);
	border-radius: var(--vhbs-card-radius);
	box-shadow: var(--vhbs-shadow);
	text-align: center;
}

.vhbs--align-left .vhbs__form {
	text-align: left;
}

.vhbs .vhbs__intro {
	display: grid;
	gap: 6px;
}

.vhbs .vhbs__heading {
	margin: 0;
	padding: 0;
	color: var(--vhbs-heading);
	font-family: inherit;
	font-size: clamp(20px, 6vw, var(--vhbs-heading-size));
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: none;
	border: 0;
	background: none;
}

.vhbs--upper .vhbs__heading,
.vhbs--upper .vhbs__button {
	text-transform: uppercase;
}

.vhbs .vhbs__sub {
	margin: 0;
	color: var(--vhbs-sub);
	font-size: 15px;
	line-height: 1.45;
}

/* Hotel selector -------------------------------------------------------- */

.vhbs .vhbs__field {
	position: relative;
	text-align: left;
	background: var(--vhbs-field-bg);
	border: 1px solid var(--vhbs-field-border);
	border-radius: var(--vhbs-field-radius);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vhbs .vhbs__field:hover {
	border-color: color-mix(in srgb, var(--vhbs-focus) 45%, var(--vhbs-field-border));
}

.vhbs .vhbs__field:focus-within {
	border-color: var(--vhbs-focus);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--vhbs-focus) 18%, transparent);
}

.vhbs .vhbs__label {
	position: absolute;
	top: 14px;
	left: 22px;
	right: 52px;
	margin: 0;
	padding: 0;
	color: var(--vhbs-label);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none; /* clicks fall through to the native select */
}

.vhbs .vhbs__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	min-height: 72px;
	margin: 0;
	padding: 34px 52px 14px 22px;
	color: var(--vhbs-field-text);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	background: transparent;
	border: 0;
	border-radius: var(--vhbs-field-radius);
	box-shadow: none;
	outline: none;
	cursor: pointer;
	text-overflow: ellipsis;
}

.vhbs .vhbs__select::-ms-expand {
	display: none;
}

.vhbs .vhbs__select option {
	color: #111;
	background: #fff;
	font-weight: 400;
}

.vhbs .vhbs__chevron {
	position: absolute;
	top: 50%;
	right: 20px;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	color: var(--vhbs-label);
	pointer-events: none;
}

.vhbs .vhbs__field[data-invalid] {
	border-color: var(--vhbs-error);
}

/* Button ---------------------------------------------------------------- */

.vhbs .vhbs__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 28px;
	color: var(--vhbs-btn-text);
	font-family: inherit;
	font-size: var(--vhbs-btn-size);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	background: var(--vhbs-btn-bg);
	border: 0;
	border-radius: var(--vhbs-btn-radius);
	box-shadow: none;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.vhbs .vhbs__button:hover {
	color: var(--vhbs-btn-hover-text);
	background: var(--vhbs-btn-hover-bg);
}

.vhbs .vhbs__button:focus {
	outline: none;
}

.vhbs .vhbs__button:focus-visible {
	outline: 3px solid var(--vhbs-focus);
	outline-offset: 3px;
}

.vhbs .vhbs__arrow {
	display: inline-block;
	font-weight: 400;
	transition: transform 0.18s ease;
}

.vhbs .vhbs__arrow[hidden] {
	display: none;
}

.vhbs .vhbs__button:hover .vhbs__arrow {
	transform: translateX(3px);
}

/* Messages & footer ----------------------------------------------------- */

.vhbs .vhbs__message {
	margin: -4px 0 0;
	color: var(--vhbs-error);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.vhbs .vhbs__message:empty {
	display: none;
}

.vhbs .vhbs__footer {
	margin: 0;
	color: var(--vhbs-footer);
	font-size: 13px;
	line-height: 1.45;
}

.vhbs [hidden] {
	display: none !important;
}

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

/* Horizontal layout: BOOK YOUR STAY | SELECT YOUR HOTEL ▼ | BOOK NOW ------ */

.vhbs--horizontal {
	max-width: none;
}

@media (min-width: 640px) {
	.vhbs--horizontal .vhbs__form {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: stretch;
	}

	.vhbs--horizontal .vhbs__intro,
	.vhbs--horizontal .vhbs__message,
	.vhbs--horizontal .vhbs__footer {
		grid-column: 1 / -1;
	}

	.vhbs--horizontal .vhbs__button {
		width: auto;
		min-height: 74px;
	}
}

@media (min-width: 960px) {
	.vhbs--horizontal .vhbs__form {
		grid-template-columns: auto minmax(260px, 1fr) auto;
		align-items: center;
		gap: 20px 28px;
		text-align: left;
	}

	.vhbs--horizontal .vhbs__intro {
		grid-column: auto;
		padding-right: 28px;
		border-right: 1px solid var(--vhbs-card-border);
	}

	.vhbs--horizontal .vhbs__message,
	.vhbs--horizontal .vhbs__footer {
		text-align: center;
	}
}

/* Small screens --------------------------------------------------------- */

@media (max-width: 480px) {
	.vhbs .vhbs__form {
		padding: max(16px, calc(var(--vhbs-card-padding) - 6px));
	}

	.vhbs .vhbs__select {
		font-size: 17px;
	}

	.vhbs .vhbs__button {
		min-height: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vhbs *,
	.vhbs *::before,
	.vhbs *::after {
		transition: none !important;
	}
}

@media (forced-colors: active) {
	.vhbs .vhbs__field:focus-within,
	.vhbs .vhbs__button:focus-visible {
		outline: 2px solid CanvasText;
	}
}
