/* =====================================================================
   HRI Quick Inquiry bar — floating glass pill.   v1.0

   Figma (2359 frame, "Group 56" + quick_inquiry_flow), all sizes × --k:
     pill       517 × 72, radius 36, glass + black 20%
     capsule    same glass + black 50% on top (two glass layers stacked,
                hence darker):  default  x 330, w 187  "Quick Inquiry"
                                phone    x   0, w 416  input + "Go →"
                                done     x 394, w 123  smiley
     text       Inter Medium 20, white, baseline 42 of 72
                Check-in at 48, ▾ (12 × 7) 10 after · Check-out at 187
                "Enter your phone number" at 50 · Go at 435, → at 469
                "Our team will confirm soon!" at 42 · smiley 42 at 435
     glass      Figma: refraction 100, depth 24, dispersion 100, frost 3,
                light −45° 80% → quick-bar.js adds a real lens (SVG
                displacement, Chromium) or a frosted fallback; the rim
                light is .hri-qb__rim.
   Position (quick-bar.js): centred in the hero, then glides to top 43.
   ===================================================================== */

.hri-qb {
	--k: clamp(0.62px, calc(100vw / 2359), 1px);
	--hri-qb-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hri-qb-y: 43px;
	--cap-l: 330;
	--cap-w: 187;

	position: fixed;
	top: 0;
	left: 50%;
	z-index: 54; /* above sections, under the navigation (60) and the room photo viewer (55) */
	width: calc(517 * var(--k));
	height: calc(72 * var(--k));
	margin: 0;
	padding: 0;
	transform: translate3d(-50%, var(--hri-qb-y), 0);
	font-family: "HRI Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-weight: 500;
	font-size: calc(20 * var(--k));
	line-height: 1;
	letter-spacing: 0;
	color: #ffffff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	visibility: hidden; /* until quick-bar.js runs (the bar needs it) */
	pointer-events: none;
	box-sizing: border-box;
}

.hri-qb *,
.hri-qb *::before,
.hri-qb *::after {
	box-sizing: border-box;
}

.hri-qb.is-live {
	visibility: visible;
}

.hri-qb.is-shown .hri-qb__pill,
.hri-qb.is-shown .hri-qb__cal {
	pointer-events: auto;
}

.hri-qb__pill {
	position: absolute;
	inset: 0;
}

.hri-qb__pill[data-state="phone"] { --cap-l: 0;   --cap-w: 416; }
.hri-qb__pill[data-state="done"]  { --cap-l: 394; --cap-w: 123; }

/* ---------------------------------------------------------------------
   Glass
   --------------------------------------------------------------------- */
.hri-qb__glass {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	border-radius: calc(36 * var(--k));
	background: rgba(0, 0, 0, 0.2);
	-webkit-backdrop-filter: blur(calc(3 * var(--k))) saturate(1.15);
	backdrop-filter: blur(calc(3 * var(--k))) saturate(1.15);
	pointer-events: none;
}

.hri-qb__glass--cap {
	left: calc(var(--cap-l) * var(--k));
	width: calc(var(--cap-w) * var(--k));
	background: rgba(0, 0, 0, 0.5);
	transition:
		left 0.85s var(--hri-qb-ease),
		width 0.85s var(--hri-qb-ease);
}

/* Rim light (Figma light −45°, 80%): bright top-left, softer bottom-right. */
.hri-qb__rim {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: max(1px, calc(1.4 * var(--k)));
	background:
		linear-gradient(135deg,
			rgba(255, 255, 255, 0.8) 0%,
			rgba(255, 255, 255, 0.22) 18%,
			rgba(255, 255, 255, 0.04) 42%,
			rgba(255, 255, 255, 0.04) 62%,
			rgba(255, 255, 255, 0.3) 86%,
			rgba(255, 255, 255, 0.55) 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	opacity: 0.85;
	pointer-events: none;
}

.hri-qb__glass::after {
	/* a faint inner sheen from the light side */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(120% 140% at 12% 0%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 55%);
	box-shadow:
		inset calc(1.5 * var(--k)) calc(1.5 * var(--k)) calc(2 * var(--k)) rgba(255, 255, 255, 0.12),
		inset calc(-1 * var(--k)) calc(-2 * var(--k)) calc(6 * var(--k)) rgba(0, 0, 0, 0.06);
	pointer-events: none;
}

/* Light sweep (appearance + success) */
.hri-qb__shine {
	position: absolute;
	inset: 0;
	border-radius: calc(36 * var(--k));
	overflow: hidden;
	pointer-events: none;
}

.hri-qb__shine-band {
	position: absolute;
	top: -60%;
	left: 0;
	width: 22%;
	height: 220%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 252, 245, 0.42) 50%, rgba(255, 255, 255, 0));
	transform: translateX(-160%) rotate(18deg);
	opacity: 0;
}

.hri-qb__shine.is-sweep .hri-qb__shine-band {
	animation: hri-qb-sweep 1.5s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

/* Appearance bloom */
.hri-qb__glow {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 150%;
	height: 520%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 249, 236, 0.85), rgba(255, 236, 205, 0.38) 38%, rgba(255, 236, 205, 0) 72%);
	transform: translate(-50%, -50%) scale(0.12);
	opacity: 0;
	pointer-events: none;
}

/* ---------------------------------------------------------------------
   Content layers
   --------------------------------------------------------------------- */
.hri-qb__layer {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}

.hri-qb__pill[data-state="default"] .hri-qb__layer--default,
.hri-qb__pill[data-state="phone"] .hri-qb__layer--phone,
.hri-qb__pill[data-state="done"] .hri-qb__layer--done {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.5s ease 0.22s, visibility 0s linear 0s;
}

/* Words drift in from a slight blur, words out into it. */
.hri-qb__layer > * {
	transition: filter 0.45s ease, transform 0.7s var(--hri-qb-ease);
	filter: blur(calc(5 * var(--k)));
}

.hri-qb__pill[data-state="default"] .hri-qb__layer--default > *,
.hri-qb__pill[data-state="phone"] .hri-qb__layer--phone > *,
.hri-qb__pill[data-state="done"] .hri-qb__layer--done > * {
	filter: none;
	transition: filter 0.6s ease 0.22s, transform 0.8s var(--hri-qb-ease) 0.18s;
}

.hri-qb__layer--phone > .hri-qb__hp,
.hri-qb__layer--phone > .hri-qb__sr {
	filter: none;
}

/* Text: Medium 20, baseline at 42 of 72 (CSS centring puts it at 43.27). */
.hri-qb__t {
	display: inline-block;
	transform: translateY(calc(-1.27 * var(--k)));
	white-space: nowrap;
}

.hri-qb button,
.hri-qb input {
	font: inherit;
	letter-spacing: 0;
	text-transform: none;
	-webkit-tap-highlight-color: transparent;
}

.hri-qb button {
	position: absolute;
	top: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #ffffff;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.hri-qb button:hover,
.hri-qb button:focus {
	background: none;
	color: #ffffff;
}

.hri-qb button:focus {
	outline: none;
}

.hri-qb button:focus-visible .hri-qb__t {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

/* Default: Check-in ▾ · Check-out ▾ · Quick Inquiry */
.hri-qb__date--in  { left: calc(48 * var(--k)); }
.hri-qb__date--out { left: calc(187 * var(--k)); }

.hri-qb__date {
	gap: calc(10 * var(--k));
}

.hri-qb__caret {
	display: block;
	flex: none;
	width: calc(12 * var(--k));
	height: calc(7 * var(--k));
	fill: #ffffff;
	transform: translateY(calc(-1 * var(--k)));
	transition: transform 0.5s var(--hri-qb-ease);
}

.hri-qb__date[aria-expanded="true"] .hri-qb__caret {
	transform: translateY(calc(-1 * var(--k))) rotate(180deg);
}

.hri-qb__date.has-value .hri-qb__date-label {
	font-variant-numeric: tabular-nums;
}

.hri-qb__cta {
	left: calc(330 * var(--k));
	width: calc(187 * var(--k));
	justify-content: center;
}

/* Phone */
.hri-qb .hri-qb__input {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(416 * var(--k));
	height: 100%;
	margin: 0;
	padding: 0 calc(24 * var(--k)) calc(2.54 * var(--k)) calc(50 * var(--k));
	border: 0;
	border-radius: calc(36 * var(--k));
	background: transparent;
	box-shadow: none;
	outline: none;
	color: #ffffff;
	caret-color: #ffffff;
	font-weight: 500;
	font-size: calc(20 * var(--k));
	line-height: normal;
	-webkit-appearance: none;
	appearance: none;
}

.hri-qb .hri-qb__input::placeholder {
	color: rgba(255, 255, 255, 0.96);
	opacity: 1;
	transition: color 0.3s ease;
}

.hri-qb .hri-qb__input:focus::placeholder {
	color: rgba(255, 255, 255, 0.62);
}

.hri-qb__go {
	left: calc(416 * var(--k));
	width: calc(101 * var(--k));
	padding-left: calc(19 * var(--k)) !important;
	gap: calc(7 * var(--k));
}

.hri-qb__go .hri-qb__t {
	text-shadow: 0 0 calc(12 * var(--k)) rgba(255, 255, 255, 0.55);
}

.hri-qb__arrow {
	display: block;
	flex: none;
	width: calc(19.36 * var(--k));
	height: calc(17 * var(--k));
	fill: #ffffff;
	filter: drop-shadow(0 0 calc(6 * var(--k)) rgba(255, 255, 255, 0.5));
	transform: translateY(calc(2 * var(--k)));
	transition: transform 0.5s var(--hri-qb-ease);
}

@media (hover: hover) and (pointer: fine) {
	.hri-qb__go:hover .hri-qb__arrow {
		transform: translate(calc(4 * var(--k)), calc(2 * var(--k)));
	}
}

.hri-qb.is-sending .hri-qb__arrow {
	animation: hri-qb-nudge 0.9s var(--hri-qb-ease) infinite;
}

.hri-qb.is-sending .hri-qb__go {
	cursor: progress;
}

/* Done */
.hri-qb__done-text {
	position: absolute;
	top: 0;
	left: calc(42 * var(--k));
	height: 100%;
	display: flex !important;
	align-items: center;
}

.hri-qb__smile {
	position: absolute;
	top: calc(14 * var(--k));
	left: calc(435 * var(--k));
	width: calc(42 * var(--k));
	height: calc(42 * var(--k));
	fill: #ffffff;
	transform: scale(0.55) rotate(-14deg);
	transition: transform 0.9s var(--hri-qb-ease) 0.3s, filter 0.6s ease 0.3s !important;
}

.hri-qb__pill[data-state="done"] .hri-qb__smile {
	transform: none;
}

.hri-qb__smile-eye {
	transform-box: fill-box;
	transform-origin: 50% 100%;
}

.hri-qb__pill[data-state="done"] .hri-qb__smile-eye {
	animation: hri-qb-blink 0.42s ease 1.5s;
}

/* Error shake (wrong number) */
.hri-qb__pill.is-shake {
	animation: hri-qb-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Screen-reader text + honeypot */
.hri-qb__sr,
.hri-qb__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.hri-qb__hp {
	left: -9999px;
}

/* ---------------------------------------------------------------------
   Appearance — a glow blooms, the glass opens from its centre with a
   flash of rim light, a light sweeps across, the words come out of a
   blur. (Glass is animated on its own elements: an opacity/filter on an
   ancestor would cut the backdrop off.)
   --------------------------------------------------------------------- */
.hri-qb:not(.is-shown) .hri-qb__glass--base,
.hri-qb:not(.is-shown) .hri-qb__glass--cap,
.hri-qb:not(.is-shown) .hri-qb__layer--default > * {
	opacity: 0;
}

.hri-qb.is-appear .hri-qb__glow {
	animation: hri-qb-bloom 2.1s cubic-bezier(0.25, 0.6, 0.3, 1) forwards;
}

.hri-qb.is-appear .hri-qb__glass--base {
	animation: hri-qb-open 1.5s var(--hri-qb-ease) 0.18s both;
}

.hri-qb.is-appear .hri-qb__glass--cap {
	animation: hri-qb-open 1.4s var(--hri-qb-ease) 0.5s both;
}

.hri-qb.is-appear .hri-qb__glass--base .hri-qb__rim,
.hri-qb.is-appear .hri-qb__glass--cap .hri-qb__rim {
	animation: hri-qb-rimflash 2s ease 0.3s both;
}

.hri-qb.is-appear .hri-qb__layer--default > * {
	animation: hri-qb-words 1.2s var(--hri-qb-ease) both;
}

.hri-qb.is-appear .hri-qb__date--in  { animation-delay: 0.95s !important; }
.hri-qb.is-appear .hri-qb__date--out { animation-delay: 1.07s !important; }
.hri-qb.is-appear .hri-qb__cta       { animation-delay: 1.19s !important; }

@keyframes hri-qb-bloom {
	0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.12); }
	28%  { opacity: 0.95; }
	100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes hri-qb-open {
	0%   { opacity: 0; clip-path: inset(0 50% 0 50% round calc(36 * var(--k))); }
	22%  { opacity: 1; }
	100% { opacity: 1; clip-path: inset(0 0 0 0 round calc(36 * var(--k))); }
}

@keyframes hri-qb-rimflash {
	0%   { opacity: 0; }
	35%  { opacity: 1; filter: brightness(1.9); }
	100% { opacity: 0.85; filter: none; }
}

@keyframes hri-qb-words {
	0%   { opacity: 0; filter: blur(calc(8 * var(--k))); transform: translateY(calc(10 * var(--k))); }
	100% { opacity: 1; filter: none; transform: none; }
}

@keyframes hri-qb-sweep {
	0%   { opacity: 0;   transform: translateX(-160%) rotate(18deg); }
	15%  { opacity: 1; }
	85%  { opacity: 1; }
	100% { opacity: 0;   transform: translateX(560%) rotate(18deg); }
}

@keyframes hri-qb-nudge {
	0%   { transform: translate(0, calc(2 * var(--k))); opacity: 1; }
	55%  { transform: translate(calc(9 * var(--k)), calc(2 * var(--k))); opacity: 0; }
	56%  { transform: translate(calc(-7 * var(--k)), calc(2 * var(--k))); opacity: 0; }
	100% { transform: translate(0, calc(2 * var(--k))); opacity: 1; }
}

@keyframes hri-qb-shake {
	0%, 100% { transform: translateX(0); }
	15% { transform: translateX(calc(-9 * var(--k))); }
	32% { transform: translateX(calc(7 * var(--k))); }
	50% { transform: translateX(calc(-4 * var(--k))); }
	68% { transform: translateX(calc(2 * var(--k))); }
	84% { transform: translateX(calc(-1 * var(--k))); }
}

@keyframes hri-qb-blink {
	0%, 100% { transform: scaleY(1); }
	50% { transform: scaleY(0.15); }
}

/* ---------------------------------------------------------------------
   Calendar (same glass, darker for legibility)
   --------------------------------------------------------------------- */
.hri-qb__cal {
	position: absolute;
	top: calc(72 * var(--k) + 14 * var(--k));
	left: 0;
	width: 100%;
	transform-origin: 50% 0;
	transform: translateY(calc(-8 * var(--k))) scale(0.985);
	transition: transform 0.6s var(--hri-qb-ease);
}

.hri-qb__cal[hidden] {
	display: none;
}

.hri-qb__cal.is-open {
	transform: none;
}

.hri-qb__glass--cal {
	border-radius: calc(30 * var(--k));
	background: rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(calc(16 * var(--k))) saturate(1.15);
	backdrop-filter: blur(calc(16 * var(--k))) saturate(1.15);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.hri-qb__cal.is-open .hri-qb__glass--cal {
	opacity: 1;
}

.hri-qb__cal-body {
	position: relative;
	padding: calc(26 * var(--k)) calc(28 * var(--k)) calc(24 * var(--k));
	opacity: 0;
	transition: opacity 0.4s ease 0.08s;
	font-size: max(12px, calc(18 * var(--k)));
}

.hri-qb__cal.is-open .hri-qb__cal-body {
	opacity: 1;
}

.hri-qb__cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: calc(16 * var(--k));
}

.hri-qb__cal-title {
	margin: 0;
	font-size: max(13px, calc(20 * var(--k)));
	font-weight: 500;
	line-height: 1.2;
}

.hri-qb__cal-mode {
	display: block;
	margin-top: calc(4 * var(--k));
	font-size: max(11px, calc(15 * var(--k)));
	font-weight: 400;
	color: rgba(255, 255, 255, 0.7);
}

.hri-qb .hri-qb__cal-nav {
	position: relative;
	width: max(30px, calc(44 * var(--k)));
	height: max(30px, calc(44 * var(--k)));
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.3s ease, opacity 0.3s ease;
}

.hri-qb .hri-qb__cal-nav:hover {
	background: rgba(255, 255, 255, 0.14);
}

.hri-qb .hri-qb__cal-nav[disabled] {
	opacity: 0.25;
	cursor: default;
	background: none;
}

.hri-qb__cal-nav svg {
	width: 40%;
	height: 40%;
	fill: none;
	stroke: #ffffff;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hri-qb__cal-navs {
	display: flex;
	gap: calc(4 * var(--k));
}

.hri-qb__cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	row-gap: calc(4 * var(--k));
}

.hri-qb__cal-wd {
	padding-bottom: calc(8 * var(--k));
	font-size: max(10px, calc(14 * var(--k)));
	font-weight: 400;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
}

.hri-qb__cal-cell {
	position: relative;
	height: max(30px, calc(48 * var(--k)));
}

.hri-qb__cal-cell.is-range::before,
.hri-qb__cal-cell.is-start.has-range::before,
.hri-qb__cal-cell.is-end::before {
	content: "";
	position: absolute;
	top: 8%;
	bottom: 8%;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.16);
}

.hri-qb__cal-cell.is-start.has-range::before { left: 50%; }
.hri-qb__cal-cell.is-end::before { right: 50%; }

.hri-qb .hri-qb__day {
	position: relative;
	left: 50%;
	width: max(30px, calc(44 * var(--k)));
	height: 100%;
	max-height: max(30px, calc(44 * var(--k)));
	top: 50%;
	transform: translate(-50%, -50%);
	justify-content: center;
	border-radius: 50%;
	font-size: max(12px, calc(17 * var(--k)));
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.hri-qb .hri-qb__day:hover {
	background: rgba(255, 255, 255, 0.18);
}

.hri-qb .hri-qb__day.is-today::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 16%;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.8;
}

.hri-qb .hri-qb__day[disabled] {
	opacity: 0.28;
	cursor: default;
	background: none;
}

.hri-qb .hri-qb__day.is-picked,
.hri-qb .hri-qb__day.is-picked:hover {
	background: #ffffff;
	color: #4d452e;
}

.hri-qb .hri-qb__day:focus-visible {
	box-shadow: 0 0 0 1px #ffffff;
}

.hri-qb__cal-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: calc(14 * var(--k));
	min-height: max(28px, calc(36 * var(--k)));
	font-size: max(11px, calc(15 * var(--k)));
	color: rgba(255, 255, 255, 0.75);
}

.hri-qb .hri-qb__cal-clear {
	position: relative;
	height: auto;
	padding: calc(6 * var(--k)) 0;
	font-size: inherit;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

/* ---------------------------------------------------------------------
   Tablets and phones
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hri-qb {
		--k: min(calc((100vw - 32px) / 517), 0.8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hri-qb *,
	.hri-qb *::before,
	.hri-qb *::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}
}