.rooms-page {
	padding-top: 0;
}

.rooms-page .reveal-up {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

/* Prevent the global footer top margin from showing the page background as a band. */
.rooms-page + .site-footer {
	margin-top: 0;
}

.rooms-group-title {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	line-height: 1.1;
	font-weight: 900;
	letter-spacing: 0.02em;
	margin: 0 0 22px;
	color: #4f2f38;
	padding: 12px 18px;
	border-radius: 22px;
	background: rgba(214, 173, 96, 0.12);
	border: 1px solid rgba(31, 41, 55, 0.08);
	box-shadow: 0 10px 30px rgba(120, 90, 100, 0.12);
}
.rooms-group-title::after {
	content: '';
	flex: 1;
	height: 2px;
	background: rgba(31, 41, 55, 0.12);
}

.rooms-shell {
	position: relative;
	z-index: 0;
	isolation: isolate;
	padding: 170px 0 110px;
	overflow: hidden;
	background: #fffaf6;
}

.rooms-shell::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 50vh;
	background:
		linear-gradient(rgba(9, 15, 24, 0.46), rgba(9, 15, 24, 0.72)),
		linear-gradient(rgba(190, 120, 75, 0.16), rgba(28, 22, 20, 0.26)),
		url('../images/HotelHomePage.webp') center center / cover no-repeat;
	z-index: -2;
	pointer-events: none;
}

.rooms-shell::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(255, 250, 246, 0) 0%,
		rgba(255, 250, 246, 0) 62%,
		rgba(255, 250, 246, 0.55) 80%,
		#fffaf6 100%
	);
	z-index: -1;
	pointer-events: none;
}

.rooms-shell > .container {
	position: relative;
	z-index: 1;
}

.rooms-card {
	position: relative;
	z-index: 2;
	border-radius: var(--radius-xl);
	padding: 44px;
	background: #ffffff;
}

/* Ensure nested content cards are also fully opaque on this page. */
.rooms-page .content-card {
	background: #ffffff;
}

.rooms-header {
	max-width: 920px;
	margin: 0 auto 26px;
}

.rooms-title {
	font-size: clamp(2.1rem, 4.8vw, 3.4rem);
	line-height: 1.05;
	font-weight: 700;
	margin-bottom: 12px;
}

.rooms-subtitle {
	color: var(--text-soft);
	font-size: 1.05rem;
}

.rooms-filters {
	border: 1px solid rgba(31, 41, 55, 0.12);
	border-radius: var(--radius-lg);
	padding: 22px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(120, 90, 100, 0.08);
	margin-top: 18px;
}

.rooms-filters .filter-block {
	border: 1px solid rgba(31, 41, 55, 0.10);
	border-radius: 18px;
	padding: 14px 14px 12px;
	background: #ffffff;
	height: 100%;
}

.filter-title {
	font-weight: 800;
	color: #4f2f38;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.85rem;
	margin-bottom: 8px;
}

.filter-block-accessibility {
	display: flex;
	flex-direction: column;
}

.filter-block-accessibility .filter-title {
	text-align: center;
}

.filter-block-accessibility .form-check-single {
	display: flex;
	margin-top: auto;
}

.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rooms-filters .form-check {
	position: relative;
	padding-left: 0;
}

.rooms-filters .form-check-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.rooms-filters .form-check-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(31, 41, 55, 0.14);
	background: #ffffff;
	color: #5c3a44;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.filter-block-accessibility .form-check-label {
	width: 100%;
	min-height: 54px;
	padding-inline: 12px;
	justify-content: center;
	text-align: center;
	line-height: 1.15;
	white-space: normal;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.rooms-filters .form-check-label:hover {
	border-color: rgba(184, 134, 69, 0.35);
	background: rgba(214, 173, 96, 0.10);
}

.rooms-filters .form-check-input:checked + .form-check-label {
	border-color: rgba(184, 134, 69, 0.45);
	background: rgba(214, 173, 96, 0.18);
	color: #2f1a21;
	transform: translateY(-1px);
}

.rooms-filters .form-check-input:focus-visible + .form-check-label {
	outline: none;
	box-shadow: 0 0 0 0.25rem rgba(214, 173, 96, 0.18);
}

.filters-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.filters-count {
	color: #5c3a44;
	font-weight: 800;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(31, 41, 55, 0.12);
	background: #ffffff;
}

.rooms-filters .js-clear-filters {
	border-radius: 999px;
	font-weight: 700;
}

.rooms-group {
	margin-top: 30px;
}

@keyframes roomsFilterBounceIn {
	0% {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
	60% {
		opacity: 1;
		transform: translateY(-6px) scale(1.02);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes roomsFilterBounceOut {
	0% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
}

.js-room-card {
	will-change: transform, opacity;
}

.js-room-card.filter-enter {
	animation: roomsFilterBounceIn 420ms cubic-bezier(0.22, 1.45, 0.36, 1) both;
}

.js-room-card.filter-leave {
	animation: roomsFilterBounceOut 220ms ease both;
}

.room-card {
	overflow: hidden;
	padding: 0;
}

.room-media {
	height: 200px;
	overflow: hidden;
}

.room-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.room-body {
	padding: 20px;
	display: grid;
	gap: 12px;
}

.room-name {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0;
	color: #4f2f38;
}

.room-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.room-desc {
	margin: 0;
	color: var(--text-soft);
}

.room-price {
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--text-dark);
}

.room-price span {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text-soft);
}

.room-bottom {
	display: grid;
	gap: 10px;
	margin-top: 2px;
}

.room-modal-price {
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--text-dark);
}

.rooms-modal-section {
	letter-spacing: 0.08em;
	color: rgba(31, 41, 55, 0.78);
}

.rooms-modal-list {
	margin: 0;
	padding-left: 18px;
	color: var(--text-soft);
}

.room-dates-summary {
	border: 1px solid rgba(31, 41, 55, 0.12);
	border-radius: 16px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.85);
}

.room-dates-total {
	font-weight: 800;
	color: var(--text-dark);
	font-size: 1.05rem;
}

.room-details-modal.modal.fade .modal-dialog {
	transform: none;
	transition: none;
}

@keyframes roomsModalSpringIn {
	0% {
		opacity: 0;
		transform: translateY(34px);
	}
	55% {
		opacity: 1;
		transform: translateY(-10px);
	}
	78% {
		transform: translateY(4px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.room-details-modal .modal-content.is-springing {
	will-change: transform, opacity;
	animation: roomsModalSpringIn 560ms cubic-bezier(0.22, 1.45, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	.room-details-modal .modal-content.is-springing {
		animation-duration: 200ms;
		animation-timing-function: ease-out;
	}
}

.rooms-page .room-dates .form-control[type="date"] {
	border-radius: 16px;
	padding: 12px 14px;
	border: 1px solid rgba(31, 41, 55, 0.14);
	background: rgba(255, 255, 255, 0.92);
	font-size: 1.05rem;
	font-weight: 700;
	color: #4f2f38;
}

.rooms-page .room-dates .form-control[type="date"]:focus {
	border-color: rgba(214, 173, 96, 0.65);
	box-shadow: 0 0 0 0.25rem rgba(214, 173, 96, 0.18);
}

.rooms-page .room-dates .form-control[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.95;
	background-color: rgba(214, 173, 96, 0.16);
	border-radius: 10px;
	padding: 7px;
}

.rooms-page .room-dates .form-control[type="date"]::-webkit-datetime-edit {
	padding: 0;
}

.room-media-area {
	position: relative;
}

#roomCarousel .carousel-inner {
	max-height: 420px;
}

#roomCarousel .carousel-item img {
	width: 100%;
	height: 420px;
	object-fit: cover;
}

.room-tour {
	position: absolute;
	inset: 0;
	height: 420px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	user-select: none;
	cursor: ew-resize;
	transition: opacity 200ms ease;
}

.room-tour.is-dragging {
	cursor: grabbing;
}

.room-media-area.is-touring .room-tour {
	opacity: 1;
	pointer-events: auto;
}

.room-media-area.is-touring #roomCarousel {
	opacity: 0;
	pointer-events: none;
}

.room-tour-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.room-tour-interactive {
	position: relative;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at top, rgba(214, 173, 96, 0.22), transparent 42%),
		#111827;
}

.room-tour-scene-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.room-tour-hotspots {
	position: absolute;
	inset: 0;
}

.room-tour-hotspot {
	position: absolute;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.room-tour-hotspot::before {
	content: '';
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #d6ad60;
	border: 3px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 0 10px rgba(214, 173, 96, 0.18);
	animation: roomTourPulse 1.8s ease-out infinite;
}

.room-tour-hotspot span {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.82);
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	white-space: nowrap;
	letter-spacing: 0.02em;
}

.room-tour-scene-info {
	position: absolute;
	top: 16px;
	left: 16px;
	display: grid;
	gap: 4px;
	max-width: min(320px, calc(100% - 32px));
	padding: 12px 14px;
	border-radius: 18px;
	background: rgba(17, 24, 39, 0.74);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
}

.room-tour-scene-title {
	font-size: 0.96rem;
	font-weight: 800;
}

.room-tour-scene-desc {
	font-size: 0.78rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.84);
}

.room-tour-back {
	position: absolute;
	left: 16px;
	bottom: 16px;
	border: 0;
	border-radius: 999px;
	padding: 8px 14px;
	background: rgba(255, 255, 255, 0.92);
	color: #111827;
	font-size: 0.78rem;
	font-weight: 800;
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}

.room-tour-back[hidden] {
	display: none;
}

.room-tour-canvas {
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
	user-select: none;
}

.room-tour-hint {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(17, 24, 39, 0.72);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	letter-spacing: 0.03em;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms ease;
}

.room-tour-hint.is-visible {
	opacity: 1;
}

@keyframes roomTourPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(214, 173, 96, 0.42);
	}
	70% {
		box-shadow: 0 0 0 16px rgba(214, 173, 96, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(214, 173, 96, 0);
	}
}

.room-media-toolbar {
	position: absolute;
	bottom: 14px;
	right: 14px;
	z-index: 10;
}

.btn-tour {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	background: rgba(17, 24, 39, 0.68);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background 160ms ease, transform 160ms ease;
	cursor: pointer;
}

.btn-tour:hover {
	background: rgba(17, 24, 39, 0.88);
	transform: translateY(-1px);
	color: #fff;
}

.btn-tour[aria-pressed="true"] {
	background: rgba(214, 173, 96, 0.88);
	border-color: rgba(214, 173, 96, 0.5);
	color: #1f2937;
}

@media (max-width: 767.98px) {
	.rooms-shell {
		padding: 140px 0 90px;
	}

	.rooms-card {
		padding: 26px;
	}

	.room-media {
		height: 180px;
	}

	.rooms-group {
		margin-top: 24px;
	}

	.rooms-group-title {
		font-size: clamp(1.6rem, 6vw, 2.05rem);
		gap: 12px;
		padding: 12px 14px;
		border-radius: 18px;
	}
	#roomCarousel .carousel-inner,
	#roomCarousel .carousel-item img,
	.room-tour {
		height: 260px;
		max-height: 260px;
	}

	.room-tour-hotspot span {
		font-size: 0.68rem;
		padding: 5px 8px;
	}

	.room-tour-scene-info {
		max-width: calc(100% - 24px);
		top: 12px;
		left: 12px;
		padding: 10px 12px;
	}

	.room-tour-back {
		left: 12px;
		bottom: 12px;
	}

	.filters-actions {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 1199.98px) {
	.filter-block-accessibility .form-check-label {
		max-width: 280px;
		margin-inline: auto;
	}
}
