/**
 * Libero header — logo + navigation spacing.
 */

/* Logo */
.lib-header .lib-header-brand,
.lib-header a.lib-header-brand {
	display: inline-flex;
	align-items: center;
	background: transparent !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	filter: none !important;
}

.lib-header .lib-header-logo,
.lib-header .lib-header-brand img,
.lib-header .cs_site_branding img {
	max-height: 52px !important;
	width: auto !important;
	height: auto !important;
	display: block;
	object-fit: contain;
}

/* Header grid — повеќе простор за nav */
.lib-header .cs_main_header_in {
	gap: 28px;
	height: 84px;
}

/* Родителот во travelpro-core.css:3248 го става овој контејнер на
   position:absolute; left:50%; width:100%. Така менито се протега преку
   целата лента и невидливо лежи ВРЗ телефонот и копчето „Резервирај
   сега" — кликот удира во менито, не во линкот. style.css:169 во
   родителот се обидува да го поништи тоа, но travelpro-core.css се
   вчитува подоцна и победува. Затоа го враќаме во нормален flex тек. */
.lib-header .cs_main_header_center {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	transform: none !important;
	width: auto !important;
	max-width: none !important;
	flex: 1 1 auto;
	min-width: 0;
	justify-content: center;
}

.lib-header .cs_main_header_left {
	flex: 0 0 auto;
	min-width: 140px;
}

.lib-header .cs_main_header_right {
	flex: 0 0 auto;
	min-width: 0;
}

/* Nav — воздушно spacing помеѓу линкови */
.lib-header .cs_nav .cs_nav_list {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0 !important;
	padding: 0 !important;
}

.lib-header .cs_nav .cs_nav_list > li {
	margin: 0 !important;
	height: auto !important;
	position: relative;
}

.lib-header .cs_nav .cs_nav_list > li + li::before {
	content: "";
	position: absolute;
	left: -2px;
	top: 50%;
	width: 1px;
	height: 14px;
	margin-top: -7px;
	background: rgba(255, 255, 255, 0.14);
	pointer-events: none;
}

.lib-header .cs_nav .cs_nav_list > li > a,
.lib-header .cs_nav .cs_nav_list > li > a.nav-links {
	font-family: var(--lib-sans) !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	text-transform: none !important;
	color: rgba(255, 255, 255, 0.9) !important;
	text-shadow: none !important;
	padding: 10px 18px !important;
	margin: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	border: none !important;
	position: relative;
	white-space: nowrap;
	transition: color 0.25s ease, background 0.25s ease;
}

.lib-header .cs_nav .cs_nav_list > li > a::after {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 6px;
	height: 2px;
	background: linear-gradient(90deg, var(--lib-gold), var(--lib-gold-2));
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}

.lib-header .cs_nav .cs_nav_list > li > a:hover,
.lib-header .cs_nav .cs_nav_list > li.current-menu-item > a,
.lib-header .cs_nav .cs_nav_list > li.current-menu-ancestor > a {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.06) !important;
	box-shadow: none !important;
	transform: none !important;
}

.lib-header .cs_nav .cs_nav_list > li > a:hover::after,
.lib-header .cs_nav .cs_nav_list > li.current-menu-item > a::after,
.lib-header .cs_nav .cs_nav_list > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.lib-header .cs_nav .cs_nav_list > li.current-menu-item > a,
.lib-header .cs_nav .cs_nav_list > li.current-menu-ancestor > a {
	color: var(--lib-gold-soft) !important;
}

/* CTA — малку покомпактен за да има простор за nav */
.lib-head-actions {
	gap: 12px;
}

.lib-head-cta {
	font-size: 11.5px;
	padding: 11px 18px;
}

/* Tablet */
@media (max-width: 1399px) {
	.lib-header .cs_nav .cs_nav_list > li > a,
	.lib-header .cs_nav .cs_nav_list > li > a.nav-links {
		padding: 10px 14px !important;
		font-size: 13px !important;
	}

	.lib-header .cs_nav .cs_nav_list > li > a::after {
		left: 14px;
		right: 14px;
	}

	.lib-head-phone span {
		display: none;
	}

	.lib-head-phone {
		padding: 8px;
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: 50%;
		width: 40px;
		height: 40px;
		justify-content: center;
	}

	.lib-head-phone i {
		margin: 0;
		font-size: 15px;
	}
}

@media (max-width: 1199px) {
	.lib-header .cs_main_header_in {
		height: 72px;
		gap: 16px;
	}

	.lib-header .lib-header-logo,
	.lib-header .lib-header-brand img,
	.lib-header .cs_site_branding img {
		max-height: 44px !important;
	}

	/*
	 * На десктоп .cs_nav_list е хоризонтална лента, па горе има
	 * justify-content:center + align-items:center. На мобилен истиот
	 * <ul> е вертикална фиока преку цел екран — тогаш „center" ги
	 * туркаше сите линкови во средината на висината и фиоката
	 * изгледаше празна одозгора. Тука се враќа нормален редослед.
	 */
	.lib-header .cs_nav .cs_nav_list {
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		flex-wrap: nowrap;
	}

	.lib-header .cs_nav .cs_nav_list > li + li::before {
		display: none;
	}

	.lib-header .cs_nav .cs_nav_list > li > a,
	.lib-header .cs_nav .cs_nav_list > li > a.nav-links {
		font-size: 14px !important;
		padding: 14px 24px !important;
		border-radius: 0 !important;
		letter-spacing: 0 !important;
	}

	.lib-header .cs_nav .cs_nav_list > li > a::after {
		display: none;
	}
}
