/**
 * Szoba részletek (/room/…) — mockup 2026-06
 * v=roomvisual20260602a
 */

.sec3--room-detail {
	--room-hero-aspect: 16 / 9;
	--room-hero-max-h: min(52vh, 540px);
	--room-car-gap: 20px;
	--room-dot-size: 10px;
	--room-content-gap: clamp(1.5rem, 4vw, 3rem);
	--room-ink: #ffffff;
	--room-muted: #e5e5e5;
	--room-accent: #eb5757;
	--room-panel: #353535;
	background: #212121;
}

/* ===== Hero + galéria ===== */
.room-detail-hero {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

/* Vonat-slider: mozdony (széles) + négyzetes kocsik, 20px gap */
.room-detail-hero__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: var(--room-hero-aspect);
	max-height: var(--room-hero-max-h);
	overflow: hidden;
	background: #1a1a1a;
}

.room-detail-hero__train {
	position: absolute;
	inset: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--room-car-gap);
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	touch-action: pan-x;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.room-detail-hero__train.is-dragging {
	scroll-snap-type: none;
	cursor: grabbing;
	scroll-behavior: auto;
}

.room-detail-hero__train::-webkit-scrollbar {
	display: none;
}

.room-detail-hero__car {
	flex-shrink: 0;
	overflow: hidden;
	background: #1a1a1a;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.room-detail-hero__car--wide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 0;
}

/* Négyzetes kocsi: ugyanolyan magas mint a mozdony, oldal arány 1:1 */
.room-detail-hero__car--square {
	flex: 0 0 auto;
	height: 100%;
	width: auto;
	aspect-ratio: 1 / 1;
	align-self: stretch;
}

.room-detail-hero__car img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none !important;
	pointer-events: none;
	border: 0;
}

.room-detail-hero__car--wide img {
	object-fit: contain;
	object-position: center top;
}

.room-detail-hero__car--square img {
	object-fit: cover;
	object-position: center;
}

/* Fehér pontok — jobb oldalon */
.room-detail-hero__dots {
	position: absolute;
	top: 50%;
	right: clamp(14px, 2.5vw, 28px);
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	z-index: 10;
	margin: 0;
	padding: 8px 6px;
	list-style: none;
	max-height: calc(var(--room-dot-size) * 6 + 50px);
	overflow-y: auto;
	scrollbar-width: none;
	pointer-events: auto;
}

.room-detail-hero__dots::-webkit-scrollbar {
	display: none;
}

.room-detail-hero__dots li {
	margin: 0;
	padding: 0;
}

.room-detail-hero__dot {
	display: block;
	width: var(--room-dot-size);
	height: var(--room-dot-size);
	min-width: var(--room-dot-size);
	min-height: var(--room-dot-size);
	padding: 0;
	margin: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
	touch-action: manipulation;
	position: relative;
	z-index: 11;
	box-sizing: border-box;
}

.room-detail-hero__dot::before {
	content: "";
	position: absolute;
	inset: -14px;
}

.room-detail-hero__dot:hover,
.room-detail-hero__dot.is-active {
	opacity: 1;
	background: #ffffff;
	border-color: #ffffff;
}

.room-detail-hero__dot.is-active {
	transform: scale(1.15);
}

body.room-detail-lightbox-open {
	overflow: hidden;
}

/* Lightbox — négyzetes kép */
.room-detail-lightbox[hidden] {
	display: none !important;
}

.room-detail-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.room-detail-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	border: 0;
	cursor: pointer;
}

.room-detail-lightbox__panel {
	position: relative;
	z-index: 1;
	width: min(92vw, 400px);
	aspect-ratio: 1 / 1;
	max-height: min(92vh, 400px);
}

.room-detail-lightbox__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.room-detail-lightbox__close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

/* ===== Tartalom ===== */
.sec3--room-detail .room-detail__inner {
	padding-top: var(--room-content-gap);
	padding-bottom: var(--room-content-gap);
}

.room-detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas:
		"title aside"
		"story aside";
	gap: var(--room-content-gap) clamp(1.25rem, 3vw, 2.5rem);
	align-items: start;
}

.room-detail__title {
	grid-area: title;
	margin: 0 0 1.25rem;
	padding: 0;
	font-family: "Montserrat", sans-serif;
	font-weight: 800;
	font-size: clamp(1.35rem, 3.2vw, 2.75rem);
	line-height: 0.85;
	max-height: 108px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-transform: uppercase;
	color: var(--room-muted);
}

.room-detail__aside {
	grid-area: aside;
}

.room-detail__copy {
	grid-area: story;
}

.room-detail__story-heading {
	margin: 0 0 1rem;
	padding: 0;
	font-family: "Montserrat", sans-serif;
	font-weight: 800;
	font-size: 18px;
	line-height: 1;
	min-height: 18px;
	text-transform: uppercase;
	color: var(--room-ink);
}

.room-detail__story-body,
.room-detail__story-body p,
.room-detail__story-body li {
	font-family: "Space Mono", monospace;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.55;
	color: var(--room-ink);
}

.room-detail__story-body p {
	margin: 0 0 0.85em;
}

.room-detail__story-body p:last-child {
	margin-bottom: 0;
}

/* ===== Statok (personsdata) — 2 oszlop, nem csúszik szét ===== */
.sec3--room-detail .room-detail__stats.sec3right {
	padding-top: 0;
	float: none !important;
	width: 100%;
	max-width: 420px;
}

.sec3--room-detail .room-detail__stats .personsdata {
	display: grid;
	grid-template-columns: minmax(0, 42%) minmax(0, 58%);
	column-gap: 0.75rem;
	row-gap: 0;
	align-items: center;
	width: 100%;
	max-width: none;
	float: none !important;
	clear: both;
	line-height: normal;
	padding-bottom: 14px;
	box-sizing: border-box;
}

.sec3--room-detail .room-detail__stats .personsdata::after {
	content: none;
	display: none;
}

.sec3--room-detail .room-detail__stats .prsnleft,
.sec3--room-detail .room-detail__stats .prsnright {
	float: none !important;
	width: auto !important;
	min-width: 0;
}

.sec3--room-detail .room-detail__stats .prsnleft {
	grid-column: 1;
	justify-self: start;
}

.sec3--room-detail .room-detail__stats .prsnright {
	grid-column: 2;
	justify-self: stretch;
}

.sec3--room-detail .room-detail__stats .prsnleft p,
.sec3--room-detail .room-detail__stats .prsnright p,
.sec3--room-detail .room-detail__stats .personsdata > p {
	margin: 0;
	padding: 0 !important;
	font-family: "Space Mono", monospace;
	font-size: 14px;
	line-height: 1.35;
}

.sec3--room-detail .room-detail__stats .prsnleft p,
.sec3--room-detail .room-detail__stats .personsdata > p {
	color: var(--room-accent) !important;
	text-transform: lowercase;
}

.sec3--room-detail .room-detail__stats .prsnright p {
	color: var(--room-ink) !important;
	text-transform: none;
}

.sec3--room-detail .room-detail__stats .prsnright .progress {
	height: 3px;
	margin-top: 0;
	margin-bottom: 0;
	width: 100%;
	background: #ffffff !important;
	border-radius: 0;
	box-shadow: none !important;
	overflow: hidden;
}

.sec3--room-detail .room-detail__stats .progress-bar {
	opacity: 1 !important;
	background-color: var(--room-accent) !important;
	border-radius: 0;
}

.sec3--room-detail .room-detail__stats .room-detail__actions.personsdata {
	display: block;
	grid-template-columns: none;
	padding-top: 0.35rem;
	padding-bottom: 0;
}

.room-detail__book-btn.btn-primary {
	display: inline-block;
	width: auto;
	min-height: 44px;
	padding: 0.55rem 1.35rem;
	border: 1px solid #ffffff;
	border-radius: 7px;
	background: transparent;
	color: #ffffff;
	font-family: "Montserrat", sans-serif;
	font-weight: 400;
	font-size: 14px;
	text-decoration: none;
	line-height: 1.3;
	height: auto;
}

.room-detail__book-btn.btn-primary:hover {
	color: #ffffff;
	border-color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

/* ===== FAQ — szürke buborék nyúlik, nincs extra fekete keret ===== */
.sec3--room-book .room-detail-faq {
	width: 100%;
	float: none !important;
	clear: both;
	margin-top: 2rem;
	padding: 0 !important;
	background: transparent !important;
}

.sec3--room-book .room-detail-faq__row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin-left: -8px;
	margin-right: -8px;
}

.sec3--room-book .room-detail-faq__col {
	display: flex;
	flex-direction: column;
	padding-left: 8px;
	padding-right: 8px;
	margin-bottom: 16px;
}

.sec3--room-book .room-detail-faq .faqs {
	float: none !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	background: #353535 !important;
	border-radius: 7px;
	padding: 20px !important;
	box-sizing: border-box;
	text-align: center;
	flex: 1 1 auto;
}

.sec3--room-book .room-detail-faq .faqs h2 {
	padding-top: 0;
	margin: 0 0 0.65rem;
	font-family: "Space Mono", monospace;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.35;
	color: #eb5757;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.sec3--room-book .room-detail-faq .faqs p {
	padding-top: 0;
	margin: 0;
	font-family: "Space Mono", monospace;
	font-size: 13px;
	line-height: 1.5;
	color: #ffffff;
	overflow-wrap: anywhere;
}

/* ===== Lábléc — teljes szélesség, containeren kívül ===== */
.sec3--room-book > .eg-footer--booking {
	--eg-footer-ink: #9e9e9e;
	--eg-footer-line: #333333;
	clear: both;
	float: none !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-top: 0;
	padding: 1.1rem 0.75rem 2rem;
	padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
	background: #1a1a1a;
	border-top: 1px solid var(--eg-footer-line);
	box-sizing: border-box;
}

.sec3--room-book > .eg-footer--booking .eg-footer__inner {
	max-width: 420px;
	margin-inline: auto;
	text-align: center;
}

.sec3--room-book > .eg-footer--booking .eg-footer__guides {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.45rem 0.85rem;
	margin: 0 0 0.85rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--eg-footer-line);
}

.sec3--room-book > .eg-footer--booking .eg-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 0.9rem;
	margin: 0 0 0.75rem;
}

.sec3--room-book > .eg-footer--booking .eg-footer__privacy {
	font-family: "Montserrat", sans-serif;
	font-size: 0.6rem;
	font-weight: 400;
	color: #b0b0b0;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.sec3--room-book > .eg-footer--booking .eg-footer__privacy:hover {
	color: #dcdcdc;
}

.sec3--room-book > .eg-footer--booking .eg-footer__icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	opacity: 0.85;
}

.sec3--room-book > .eg-footer--booking .eg-footer__icon {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.sec3--room-book > .eg-footer--booking .eg-footer__copy,
.sec3--room-book > .eg-footer--booking .eg-footer__legal {
	font-family: "Montserrat", sans-serif;
	font-size: 0.6rem;
	color: var(--eg-footer-ink);
	margin: 0 0 0.3rem;
	line-height: 1.3;
}

.sec3--room-book > .eg-footer--booking .eg-footer__legal {
	font-size: 0.55rem;
	color: #8a8a8a;
	margin-bottom: 0;
}

@media screen and (min-width: 992px) {
	.sec3--room-book > .eg-footer--booking .eg-footer__inner {
		max-width: 720px;
	}
}

@media screen and (min-width: 992px) {
	.sec3--room-detail {
		--room-hero-aspect: 16 / 9;
		--room-hero-max-h: min(56vh, 580px);
	}
}

/* ===== Mobil ===== */
@media screen and (max-width: 991px) {
	.sec3--room-detail {
		--room-hero-aspect: 4 / 3;
		--room-hero-max-h: min(72vw, 420px);
	}

	.room-detail-hero__dots {
		flex-direction: row;
		top: auto;
		bottom: 14px;
		right: 50%;
		transform: translateX(50%);
		gap: 8px;
		max-height: none;
		overflow: visible;
		padding: 0;
	}

	.room-detail__grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"title"
			"aside"
			"story";
		gap: 0;
	}

	.room-detail__title {
		font-size: clamp(1.25rem, 6vw, 2rem);
		line-height: 0.88;
		max-height: 108px;
		-webkit-line-clamp: 2;
		margin-bottom: 1.25rem;
	}

	.room-detail__aside {
		margin-bottom: 1.5rem;
	}

	.room-detail__copy {
		margin-top: 0;
	}

	.sec3--room-book .room-detail-faq__col {
		flex: 0 0 100%;
		max-width: 100%;
	}

	/* Globális mobil .faqs { background:none } felülírása */
	.sec3--room-book .room-detail-faq .faqs {
		background: #353535 !important;
		height: auto !important;
	}
}
