/**
 * Libero — еден идентичен hero box на целиот сајт.
 * Почетна, Лето, Зима, tour, празнични, interactive shortcodes.
 */

.lib-hero--page,
.lib-hero.lib-hero--page,
.tour-header,
body.lib-tour-single [class$="-hero"]:not(.lib-tour-body):not([class*="lib-tour-body"]),
body.lib-tour-single .exotic-hero,
body.lib-holiday-page .holiday-hero-section,
.cs-page_heading.cs-style1 {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	min-height: var(--lib-hero-min) !important;
	min-height: var(--lib-hero-min-svh) !important;
	height: var(--lib-hero-min) !important;
	height: var(--lib-hero-min-svh) !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: var(--lib-hero-pad-top) 24px var(--lib-hero-pad-bottom) !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	overflow: hidden !important;
	position: relative !important;
	border: none !important;
}

/* Editor / shortcode inline styles — ист box */
.tour-header[style],
body.lib-tour-single [class$="-hero"][style]:not(.lib-tour-body):not([class*="lib-tour-body"]) {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	min-height: var(--lib-hero-min) !important;
	min-height: var(--lib-hero-min-svh) !important;
	height: var(--lib-hero-min) !important;
	height: var(--lib-hero-min-svh) !important;
	padding-top: var(--lib-hero-pad-top) !important;
	padding-bottom: var(--lib-hero-pad-bottom) !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
}

/* Theme banner — исти димензии како lib-hero */
.cs-page_heading.cs-style1 {
	background-color: var(--lib-navy) !important;
	background-size: cover !important;
	background-position: center !important;
}

.cs-page_heading .cs-page_heading_in {
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

/* Дупликат banner кога страницата има свој hero */
body.lib-holiday-page .cs-page_heading,
body.lib-day-trips .cs-page_heading,
body.lib-winter-hub .cs-page_heading,
body.lib-summer-hub .cs-page_heading,
body.lib-about-page .cs-page_heading,
body.lib-contact-page .cs-page_heading,
body.lib-tour-single .cs-page_heading {
	display: none !important;
}

/* Homepage hero — full bleed; desktop/tablet tall box, phone = content height */
.lp-hero {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	overflow: hidden !important;
	position: relative !important;
	border: none !important;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (min-width: 992px) {
	.lp-hero {
		min-height: var(--lib-hero-min) !important;
		min-height: var(--lib-hero-min-svh) !important;
		padding: var(--lib-hero-pad-top) 24px var(--lib-hero-pad-bottom) !important;
	}
}

/* Phone + tablet portrait — no vh min-height (Safari/Samsung interpret svh differently) */
@media (max-width: 991px) {
	.lp-hero {
		min-height: 0 !important;
		align-items: flex-start !important;
		padding: var(--lp-hero-mobile-pad-top) 16px var(--lp-hero-mobile-pad-bottom) !important;
	}
}

/* Background слоеви */
.lp-hero__bg,
.lp-hero__overlay,
.lib-hero--page .lib-hero__bg,
.lib-hero--page .lib-hero__overlay {
	position: absolute;
	inset: 0;
}

.lp-hero__inner,
.lib-hero--page .lib-hero__inner,
.tour-header > .container,
body.lib-tour-single [class$="-hero"] > .container,
body.lib-tour-single [class$="-hero"] .container:first-child {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(16px, 4vw, 24px);
	padding-right: clamp(16px, 4vw, 24px);
	box-sizing: border-box;
}

.lp-hero__inner {
	max-width: 920px;
}

/* Interactive hero overlay (greece, turkey, …) */
body.lib-tour-single [class$="-hero"]::before {
	inset: 0 !important;
}

@media (max-width: 767px) {
	.lib-hero--page,
	body.lib-tour-single [class$="-hero"],
	.cs-page_heading.cs-style1 {
		padding-top: var(--lib-hero-pad-top) !important;
		padding-bottom: var(--lib-hero-pad-bottom) !important;
	}

	/*
	 * На телефон hero-от НЕ смее да има фиксна висина.
	 *
	 * Горе (ред 19-20) стои `height: var(--lib-hero-min-svh)` + `overflow:hidden`.
	 * На телефон таа променлива е 44svh (style.css:33) — на 390×844 тоа е 371px.
	 * Содржината на /tours-2/ бара 414px, па последното пилче „24/7 поддршка"
	 * беше пресечено на половина. На потесен екран е полошо: на 360px бараше
	 * 428px, значи 57px исечени.
	 *
	 * Зошто не се стесни пилчињата да се соберат две во ред:
	 * `flex-wrap: wrap` веќе стои, ама трите се 170 + 187 + 153px наспроти
	 * контејнер од 310px — ни две не се собираат. Би морал да кастрам ~20%
	 * од секое пилче, што го расипува дизајнот и пак паѓа на 360px.
	 *
	 * Затоа: `min-height` наместо `height` — 44svh останува ДОЛНА граница
	 * (краток hero, како кај tour, не се собира и кутијата останува иста
	 * насекаде), а повисока содржина сама си ја зема висината.
	 *
	 * `align-items: flex-start` е задолжителен пар. Со центрирање во прекратка
	 * flex-кутија содржината се прелева на ОБЕ страни — на 360px мереше
	 * top:-5px, значи и одозгора излегуваше.
	 *
	 * Десктопот не се допира.
	 */
	.lib-hero--page,
	.lib-hero.lib-hero--page,
	.tour-header,
	body.lib-tour-single [class$="-hero"]:not(.lib-tour-body):not([class*="lib-tour-body"]),
	body.lib-tour-single .exotic-hero,
	body.lib-holiday-page .holiday-hero-section,
	.cs-page_heading.cs-style1 {
		height: auto !important;
		min-height: var(--lib-hero-min-svh) !important;
		align-items: flex-start !important;
	}
}
