/* =====================================================================
   HRI Rooms — three room columns + photo viewer.   v1.1

   Figma frame 2359 × 1066 (file "7"); sizes = Figma px ÷ 2359 (vw):
     columns        three equal thirds; hovered = #4D452E
     text start     78 / 71 / 63 px into the columns (3.306 / 3.010 / 2.671vw)
     top            191 (8.097vw) — name box top
     name           Inter Regular 32 (1.3565vw), lh 1.21
     tagline        Inter Light 20, 13.9 below (0.589vw)
     price          Inter Medium 16 (0.6783vw), 13.7 below (0.581vw)
     description    Inter Light 20/24, 55.9 below the price (2.368vw)
     buttons        64 (2.713vw) high, 64.3 below (2.724vw), radius 10,
                    11 apart; widths 218 / 177 / 173 → 10.9 / 8.85 / 8.65em
     "Amenities:"   Inter Regular 20, 148.6 below the buttons (6.299vw)
     chips          28.2 below (1.195vw); 56 (2.374vw) high, radius 17,
                    5 / 8 apart, padding 15 + icon 20 + 15 … 14
     content width  660 (27.978vw) — chips wrap into Figma's 3 rows

   v1.1 behaviour (rooms.js):
     desktop  pinned stage (100svh + --hri-rm-pin); the rooms rise in one
              by one with the scroll; the arriving room is .is-active (dark
              + details), the previous one returns to normal; afterwards the
              room under the mouse becomes .is-active. No CSS :hover rules —
              JS owns .is-active, so the room stays dark behind the viewer.
     ≤1024    rooms stacked; the room reaching the middle of the screen is
              .is-active and expands, the others shrink.
   ===================================================================== */

.hri-rm {
	--hri-rm-bg: #fff6ea;
	--hri-rm-dark: #4d452e;
	--hri-rm-ease: cubic-bezier(0.19, 1, 0.22, 1);

	--hri-rm-top: 8.097vw;
	--hri-rm-w: 27.978vw;
	--hri-rm-name: clamp(18px, 1.3565vw, 32px);
	--hri-rm-fs: clamp(12px, 0.8478vw, 20px);
	--hri-rm-price: clamp(11px, 0.6783vw, 16px);
	--hri-rm-g1: 0.589vw;
	--hri-rm-g2: 0.581vw;
	--hri-rm-g3: 2.368vw;
	--hri-rm-g4: 2.724vw;
	--hri-rm-g5: 6.299vw;
	--hri-rm-g6: 1.195vw;
	--hri-rm-btn-h: clamp(36px, 2.713vw, 64px);
	--hri-rm-btn-r: clamp(6px, 0.4239vw, 10px);
	--hri-rm-btn-gap: clamp(6px, 0.4663vw, 11px);
	--hri-rm-chip-h: clamp(32px, 2.374vw, 56px);
	--hri-rm-chip-r: clamp(10px, 0.7206vw, 17px);
	--hri-rm-chip-gap: clamp(3px, 0.212vw, 5px);
	--hri-rm-chip-row: clamp(5px, 0.339vw, 8px);
	--hri-rm-chip-pl: clamp(9px, 0.636vw, 15px);
	--hri-rm-chip-pr: clamp(9px, 0.5935vw, 14px);
	--hri-rm-icon: clamp(13px, 0.8478vw, 20px);
	--hri-rm-chip-fs: var(--hri-rm-fs);

	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--hri-rm-bg);
	font-family: "HRI Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
}

.hri-rm *,
.hri-rm *::before,
.hri-rm *::after {
	box-sizing: border-box;
}

/* Pinned (desktop, motion on): the stage sticks while the rooms arrive. */
.hri-rm--fx {
	height: calc(100vh + var(--hri-rm-pin, 0) * 1vh);
	height: calc(100svh + var(--hri-rm-pin, 0) * 1svh);
}

.hri-rm--fx .hri-rm__stage {
	position: sticky;
	top: 0;
	background: var(--hri-rm-bg);
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

.admin-bar .hri-rm--fx .hri-rm__stage {
	top: 32px;
	height: calc(100svh - 32px);
}

.hri-rm__row {
	display: grid;
	grid-template-columns: repeat(var(--hri-rm-n, 3), minmax(0, 1fr));
	min-height: 100vh;
	min-height: 100svh;
}

.hri-rm--fx .hri-rm__row {
	height: 100%;
	min-height: 0;
}

/* ---------------------------------------------------------------------
   Column
   --------------------------------------------------------------------- */
.hri-rm__col {
	position: relative;
	min-width: 0;
	padding: var(--hri-rm-top) 0 120px var(--hri-rm-pad, 3.010vw);
	background: var(--hri-rm-bg);
	outline: none;
	transform-origin: 50% 0;
	transition: background-color 0.7s var(--hri-rm-ease);
	cursor: default;
}

.hri-rm__col:nth-child(1) { --hri-rm-pad: 3.306vw; }
.hri-rm__col:nth-child(2) { --hri-rm-pad: 3.010vw; }
.hri-rm__col:nth-child(3) { --hri-rm-pad: 2.671vw; }

.hri-rm__inner {
	max-width: var(--hri-rm-w);
}

.hri-rm .hri-rm__name {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: var(--hri-rm-name);
	font-weight: 400;
	line-height: 1.21;
	letter-spacing: 0;
	text-transform: none;
	color: #000000;
	transition: color 0.6s var(--hri-rm-ease);
}

.hri-rm .hri-rm__tag {
	margin: var(--hri-rm-g1) 0 0;
	padding: 0;
	font-size: var(--hri-rm-fs);
	font-weight: 300;
	line-height: 1.21;
	color: rgba(0, 0, 0, 0.7);
	transition: color 0.6s var(--hri-rm-ease);
}

.hri-rm .hri-rm__price {
	margin: var(--hri-rm-g2) 0 0;
	padding: 0;
	font-size: var(--hri-rm-price);
	font-weight: 500;
	line-height: 1.21;
	color: #ffffff;
}

.hri-rm .hri-rm__text {
	margin: var(--hri-rm-g3) 0 0;
	padding: 0;
	font-size: var(--hri-rm-fs);
	font-weight: 300;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.7);
	transition: color 0.6s var(--hri-rm-ease);
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.hri-rm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hri-rm-btn-gap);
	margin-top: var(--hri-rm-g4);
}

.hri-rm .hri-rm__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--hri-rm-btn-h);
	margin: 0;
	padding: 0 1em;
	border: 1px solid #ffffff;
	border-radius: var(--hri-rm-btn-r);
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-size: var(--hri-rm-fs);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	color: #ffffff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.4s ease, color 0.4s ease;
}

.hri-rm .hri-rm__btn--avail { min-width: 10.9em; }
.hri-rm .hri-rm__btn--call { min-width: 8.85em; }

.hri-rm .hri-rm__btn--images {
	min-width: 8.65em;
	background: #ffffff;
	color: #000000;
}

@media (hover: hover) and (pointer: fine) {
	.hri-rm .hri-rm__btn--avail:hover,
	.hri-rm .hri-rm__btn--call:hover {
		background: rgba(255, 255, 255, 0.12);
		color: #ffffff;
	}

	.hri-rm .hri-rm__btn--images:hover {
		background: #f3eadc;
		color: #000000;
	}
}

.hri-rm .hri-rm__btn:focus {
	outline: none;
}

.hri-rm .hri-rm__btn:focus-visible {
	outline: 1px solid #ffffff;
	outline-offset: 3px;
}

/* ---------------------------------------------------------------------
   Amenities
   --------------------------------------------------------------------- */
.hri-rm__amen {
	margin-top: var(--hri-rm-g5);
}

.hri-rm .hri-rm__amen-label {
	margin: 0;
	padding: 0;
	font-size: var(--hri-rm-fs);
	font-weight: 400;
	line-height: 1.21;
	color: rgba(255, 255, 255, 0.7);
}

.hri-rm .hri-rm__chips {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--hri-rm-chip-gap);
	row-gap: var(--hri-rm-chip-row);
	margin: var(--hri-rm-g6) 0 0;
	padding: 0;
	list-style: none;
}

.hri-rm .hri-rm__chip {
	display: inline-flex;
	align-items: center;
	gap: var(--hri-rm-chip-pl);
	height: var(--hri-rm-chip-h);
	margin: 0;
	padding: 0 var(--hri-rm-chip-pr) 0 var(--hri-rm-chip-pl);
	border: 1px solid #ffffff;
	border-radius: var(--hri-rm-chip-r);
	font-size: var(--hri-rm-chip-fs);
	font-weight: 300;
	line-height: 1;
	white-space: nowrap;
	color: #ffffff;
	opacity: 0.5;
	list-style: none;
	transition: opacity 0.35s ease;
}

.hri-rm .hri-rm__chip:hover {
	opacity: 1;
}

.hri-rm__icon {
	display: block;
	flex: none;
	width: var(--hri-rm-icon);
	height: var(--hri-rm-icon);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.25;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------------------------------------------------------------------
   Hidden until the column is hovered / active
   --------------------------------------------------------------------- */
.hri-rm .hri-rm__more {
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, 14px, 0);
	transition:
		opacity 0.35s ease,
		transform 0.5s var(--hri-rm-ease),
		visibility 0s linear 0.35s;
}

/* Active room (.is-active is set by rooms.js: scroll sequence, mouse,
   keyboard focus, or the room in the middle of a phone screen). */
.hri-rm__col.is-active {
	background: var(--hri-rm-dark);
}

.hri-rm__col.is-active .hri-rm__name { color: #ffffff; }
.hri-rm__col.is-active .hri-rm__tag { color: rgba(255, 255, 255, 0.7); }
.hri-rm__col.is-active .hri-rm__text { color: rgba(255, 255, 255, 0.5); }

.hri-rm__col.is-active .hri-rm__more {
	opacity: 1;
	visibility: visible;
	transform: translate3d(0, 0, 0);
	transition:
		opacity 0.6s ease calc(0.1s + var(--d, 0) * 0.07s),
		transform 0.9s var(--hri-rm-ease) calc(0.1s + var(--d, 0) * 0.07s),
		visibility 0s linear 0s;
}

/* ---------------------------------------------------------------------
   Tablets and phones: rooms stacked; the active one expands
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hri-rm {
		--hri-rm-top: 56px;
		--hri-rm-w: 640px;
		--hri-rm-name: 26px;
		--hri-rm-fs: 16px;
		--hri-rm-price: 14px;
		--hri-rm-g1: 8px;
		--hri-rm-g2: 10px;
		--hri-rm-g3: 22px;
		--hri-rm-g4: 28px;
		--hri-rm-g5: 36px;
		--hri-rm-g6: 12px;
		--hri-rm-btn-h: 48px;
		--hri-rm-btn-r: 8px;
		--hri-rm-btn-gap: 8px;
		--hri-rm-chip-fs: 14px;
		--hri-rm-chip-h: 38px;
		--hri-rm-chip-r: 11px;
		--hri-rm-chip-gap: 5px;
		--hri-rm-chip-row: 6px;
		--hri-rm-chip-pl: 10px;
		--hri-rm-chip-pr: 11px;
		--hri-rm-icon: 15px;
	}

	/* No pinning on touch layouts. rooms.js holds the page in place
	   while a room above opens or closes, so browser anchoring is off. */
	.hri-rm {
		overflow-anchor: none;
	}

	.hri-rm--fx {
		height: auto;
	}

	.hri-rm--fx .hri-rm__stage,
	.admin-bar .hri-rm--fx .hri-rm__stage {
		position: static;
		height: auto;
		overflow: visible;
	}

	.hri-rm__row,
	.hri-rm--fx .hri-rm__row {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 0;
	}

	.hri-rm__col,
	.hri-rm__col:nth-child(n) {
		padding: 44px 40px 40px;
		transform: none !important;
		opacity: 1 !important;
		transition: background-color 0.6s var(--hri-rm-ease);
	}

	.hri-rm .hri-rm__text {
		line-height: 1.45;
	}

	/* Collapsed: details take no space. Active: they open. */
	.hri-rm .hri-rm__more {
		max-height: 0;
		margin-top: 0;
		overflow: hidden;
		transform: none;
		transition:
			max-height 0.6s var(--hri-rm-ease),
			margin-top 0.6s var(--hri-rm-ease),
			opacity 0.3s ease,
			visibility 0s linear 0.6s;
	}

	.hri-rm__col.is-active .hri-rm__more {
		transform: none;
		transition:
			max-height 0.8s var(--hri-rm-ease),
			margin-top 0.8s var(--hri-rm-ease),
			opacity 0.5s ease calc(0.15s + var(--d, 0) * 0.06s),
			visibility 0s linear 0s;
	}

	.hri-rm__col.is-active .hri-rm__price { max-height: 40px; margin-top: var(--hri-rm-g2); }
	.hri-rm__col.is-active .hri-rm__actions { max-height: 180px; margin-top: var(--hri-rm-g4); }
	.hri-rm__col.is-active .hri-rm__amen { max-height: 560px; margin-top: var(--hri-rm-g5); }

	/* Keep the focus ring of the buttons inside the clipped box visible. */
	.hri-rm__actions {
		padding: 2px;
		margin-left: -2px;
	}
}

@media (max-width: 767px) {
	.hri-rm {
		--hri-rm-name: 24px;
		--hri-rm-fs: 15px;
		--hri-rm-btn-h: 46px;
		--hri-rm-chip-fs: 13px;
		--hri-rm-chip-h: 34px;
		--hri-rm-chip-r: 10px;
		--hri-rm-chip-pl: 9px;
		--hri-rm-chip-pr: 10px;
		--hri-rm-icon: 14px;
	}

	.hri-rm__col,
	.hri-rm__col:nth-child(n) {
		padding: 36px 22px 32px;
	}

	.hri-rm .hri-rm__chip {
		gap: 7px;
	}

	/* Buttons: availability full width, the other two share a row. */
	.hri-rm .hri-rm__btn {
		flex: 1 1 0;
		min-width: 0;
		padding: 0 10px;
	}

	.hri-rm .hri-rm__btn--avail {
		flex-basis: 100%;
	}
}

/* Editor / reduced motion: no pinning. */
.elementor-editor-active .hri-rm--fx {
	height: auto;
}

.elementor-editor-active .hri-rm--fx .hri-rm__stage {
	position: static;
	height: auto;
}

@media (prefers-reduced-motion: reduce) {
	.hri-rm--fx {
		height: auto;
	}

	.hri-rm--fx .hri-rm__stage {
		position: static;
		height: auto;
	}

	.hri-rm__col {
		transform: none !important;
		opacity: 1 !important;
	}
}

/* =====================================================================
   Photo viewer (built by rooms.js, appended to <body>)

   From the Figma prototype (2359 frame): photo square 859 (36.41vw),
   top 45.5 (4.27% of the screen), radius 20; arrows 72 round, centres
   87 px outside the photo edges at 43.7% of its height; page behind
   blurred under a light cream veil. Navigation stays on top (z 60).
   ===================================================================== */
.hri-rm-lb {
	--lb-size: min(36.41vw, 78vh);
	--lb-arrow: clamp(44px, 3.052vw, 72px);
	--lb-off: 3.705vw;

	position: fixed;
	inset: 0;
	z-index: 55;
	display: block;
	visibility: hidden;
	opacity: 0;
	background: rgba(255, 246, 234, 0.3);
	-webkit-backdrop-filter: blur(7px) saturate(0.95);
	backdrop-filter: blur(7px) saturate(0.95);
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
	font-family: "HRI Inter", "Inter", system-ui, sans-serif;
}

.hri-rm-lb.is-open {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.6s ease, visibility 0s linear 0s;
}

.hri-rm-lb__frame {
	position: absolute;
	left: 50%;
	top: 4.27vh;
	width: var(--lb-size);
	height: var(--lb-size);
	margin-left: calc(var(--lb-size) / -2);
	transform: translate3d(0, 18px, 0) scale(0.97);
	transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.hri-rm-lb.is-open .hri-rm-lb__frame {
	transform: none;
}

.hri-rm-lb__clip {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: clamp(10px, 0.848vw, 20px);
	background: #e9dfd0;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.35);
}

.hri-rm-lb__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border: 0;
	transition: opacity 0.55s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.hri-rm-lb__arrow {
	position: absolute;
	top: 43.7%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--lb-arrow);
	height: var(--lb-arrow);
	margin: calc(var(--lb-arrow) / -2) 0 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.75);
	border-radius: 50%;
	background: transparent;
	color: #000000;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.35s ease, border-color 0.35s ease;
}

.hri-rm-lb__arrow--prev {
	left: calc(0px - var(--lb-off) - var(--lb-arrow) / 2);
}

.hri-rm-lb__arrow--next {
	right: calc(0px - var(--lb-off) - var(--lb-arrow) / 2);
}

.hri-rm-lb__arrow svg {
	display: block;
	width: 34%;
	height: 34%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
	.hri-rm-lb__arrow:hover {
		border-color: #ffffff;
		background: #ffffff;
	}
}

.hri-rm-lb__arrow:focus {
	outline: none;
}

.hri-rm-lb__arrow:focus-visible {
	border-color: #ffffff;
	background: #ffffff;
}

.hri-rm-lb__close {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.hri-rm-lb__close:focus-visible {
	top: 16px;
	right: 16px;
	width: auto;
	height: auto;
	padding: 8px 14px;
	clip: auto;
	border: 1px solid #000;
	border-radius: 8px;
	background: #fff;
	color: #000;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.hri-rm-lb {
		--lb-size: min(72vw, 64vh);
		--lb-arrow: 52px;
	}

	.hri-rm-lb__frame {
		top: 10vh;
	}
}

@media (max-width: 767px) {
	.hri-rm-lb {
		--lb-size: min(90vw, 62vh);
		--lb-arrow: 48px;
	}

	.hri-rm-lb__frame {
		top: 12vh;
	}

	.hri-rm-lb__arrow {
		top: auto;
		bottom: calc(-24px - var(--lb-arrow));
		margin: 0;
	}

	.hri-rm-lb__arrow--prev {
		left: calc(50% - var(--lb-arrow) - 8px);
	}

	.hri-rm-lb__arrow--next {
		right: calc(50% - var(--lb-arrow) - 8px);
	}
}

/* Full-bleed, whatever the Elementor container settings are. */
.e-con:has(> .elementor-widget-hri-rooms),
.e-con:has(> .e-con-inner > .elementor-widget-hri-rooms) {
	--content-width: 100% !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	border: 0 !important;
}

.e-con:has(> .e-con-inner > .elementor-widget-hri-rooms) > .e-con-inner {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
}

.elementor-widget-hri-rooms,
.elementor-widget-hri-rooms > .elementor-widget-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}