/* Standalone preview – pełna wysokość bez WordPressa */

html,
body {
	height: 100%;
	margin: 0;
}

body.ifil-static {
	display: flex;
	flex-direction: column;
	height: 100dvh;
	max-height: 100dvh;
	overflow: hidden;
	font-family: "Montserrat", sans-serif;
	color: #232222;
	-webkit-font-smoothing: antialiased;
	background: var(--ifil-gray-50);
}

body.ifil-static .ifil-module {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	max-height: none;
}

body.ifil-static .ifil-rooms__layout {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
}

body.ifil-static .ifil-view-panel {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
}

body.ifil-static .ifil-zapisy,
body.ifil-static .ifil-trips,
body.ifil-static .ifil-pokoje__layout {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
}

body.ifil-static .ifil-rooms__main {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
}

body.ifil-static .ifil-rooms__main-scroll {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
}

body.ifil-static .ifil-module__back {
	display: none;
}

/* Mobile: natural page scroll instead of trapped viewport */
@media (max-width: 768px) {
	html,
	body.ifil-static {
		height: auto;
		max-height: none;
		overflow-x: hidden;
		overflow-y: auto;
	}

	body.ifil-static .ifil-module,
	body.ifil-static .ifil-rooms__layout,
	body.ifil-static .ifil-view-panel,
	body.ifil-static .ifil-zapisy,
	body.ifil-static .ifil-trips,
	body.ifil-static .ifil-pokoje__layout,
	body.ifil-static .ifil-rooms__main {
		flex: none;
		min-height: 0;
		height: auto;
		max-height: none;
	}

	body.ifil-static .ifil-view-panel.is-active {
		display: block;
	}
}
