/**
 * Libero — inner page design system (исти блокови како homepage, нов layout).
 */

.libero-inner {
	font-family: var(--lib-sans);
	color: var(--lib-ink);
	background: var(--lib-cream);
}

/* без дуплиран theme banner кога имаме lib hero */
body.lib-inner-page:has(.lib-hero--page) .cs-page_heading,
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 {
	display: none !important;
}
.libero-inner .container {
	max-width: 1220px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* Hero dimensions → assets/hero-unified.css */

/* ── Page hero ── */
.lib-tour-content .lib-hero--page,
body.lib-tour-single .lib-hero--page {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

body.lib-tour-single .cs-page_heading,
body.lib-tour-single .cs_page_heading {
	display: none !important;
}

/* tour-header од WP editor — full-bleed hero (Копаоник, Пампорово, …) */
.lib-tour-content .tour-header,
body.lib-tour-single .tour-header {
	margin-bottom: 0 !important;
	text-align: center;
	justify-content: center;
}

body.lib-tour-single .tour-header.tour-header--photo {
	background-image: linear-gradient(135deg, rgba(15,31,56,.78) 0%, rgba(15,31,56,.52) 45%, rgba(197,134,42,.35) 100%), var(--tour-hero-image) !important;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}

body.lib-tour-single .tour-header .container {
	max-width: 900px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
	padding-left: clamp(16px, 4vw, 24px);
	padding-right: clamp(16px, 4vw, 24px);
}

body.lib-tour-single .tour-header h1 {
	font-family: "Playfair Display", Georgia, serif !important;
	font-size: clamp(36px, 5vw, 52px) !important;
	font-weight: 800 !important;
	color: #fff !important;
	margin: 0 0 14px !important;
	line-height: 1.08 !important;
	text-shadow: 0 8px 32px rgba(0,0,0,.25);
}

body.lib-tour-single .tour-header p {
	font-family: "Manrope", sans-serif !important;
	color: rgba(255,255,255,.88) !important;
	font-size: clamp(16px, 2.2vw, 22px) !important;
	line-height: 1.55 !important;
	margin: 0 0 18px !important;
}

body.lib-tour-single .tour-header div[style*="rgba(255,255,255"] {
	background: rgba(255,255,255,.14) !important;
	border: 1px solid rgba(255,255,255,.22) !important;
	backdrop-filter: blur(8px);
	border-radius: 14px !important;
	padding: 16px 22px !important;
}

body.lib-tour-single .lib-tour-body--has-hero {
	background: var(--lib-cream);
}

body.lib-tour-single .lib-tour-body--has-hero > .lib-hero--page:first-child,
body.lib-tour-single .lib-tour-body--has-hero > .turkey-hero:first-child,
body.lib-tour-single .lib-tour-body--has-hero > .greece-hero:first-child,
body.lib-tour-single .lib-tour-body--has-hero > [class$="-hero"]:first-child {
	margin-top: 0;
}

body.lib-tour-single .libero-inner.lib-tour-content {
	background: var(--lib-cream);
}

body.lib-tour-single .lib-tour-page-hero .lib-hero__inner {
	text-align: center;
	max-width: 900px;
}

body.lib-tour-single .lib-tour-products-section {
	padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
	background: #fff;
}

body.lib-tour-single .lib-tour-products-section .lib-section__head {
	text-align: center;
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

body.lib-tour-single .lib-tour-products-section .lib-section__head .lib-h2 {
	margin: 0;
	color: var(--lib-navy);
}

/* Greece / Turkey bootstrap sub-grids — gap + padding */
body.lib-tour-single #sub-destinations-section .row,
body.lib-tour-single #micro-destinations-section .row,
body.lib-tour-single #micro-destinations-grid,
body.lib-tour-single #micro-variants-grid,
body.lib-tour-single #hotels-section .row {
	display: flex !important;
	flex-wrap: wrap !important;
	margin-left: -12px !important;
	margin-right: -12px !important;
	row-gap: 24px;
}

body.lib-tour-single #sub-destinations-section .row > [class*="col-"],
body.lib-tour-single #micro-destinations-section .row > [class*="col-"],
body.lib-tour-single #micro-destinations-grid > [class*="col-"],
body.lib-tour-single #micro-variants-grid > [class*="col-"],
body.lib-tour-single #hotels-section .row > [class*="col-"] {
	padding-left: 12px !important;
	padding-right: 12px !important;
}

/* Cards always visible on tour pages */
body.lib-tour-single .lib-offer,
body.lib-tour-single .lib-dest-pick,
body.lib-tour-single .destination-card {
	opacity: 1 !important;
	transform: none !important;
}

body.lib-tour-single .lib-offer--past:hover {
	transform: none !important;
	box-shadow: 0 18px 50px rgba(15,31,56,.10);
}

body.lib-tour-single .lib-tour-offer-grid .lib-offer__img {
	height: 220px;
}

.libero-inner .lib-hero--page {
	position: relative;
	background: var(--lib-navy);
	color: #fff;
	overflow: hidden;
}
.libero-inner .lib-hero--page .lib-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	animation: libHeroZoom 22s ease-in-out infinite alternate;
}
.libero-inner .lib-hero--page .lib-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(10,20,38,.55) 0%, rgba(10,20,38,.25) 40%, rgba(10,20,38,.82) 100%),
		linear-gradient(90deg, rgba(10,20,38,.7) 0%, rgba(10,20,38,.15) 55%);
	pointer-events: none;
}
.libero-inner .lib-hero--page .lib-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
}
.libero-inner .lib-kicker {
	display: inline-block;
	color: var(--lib-gold);
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	font-size: 12px;
	margin-bottom: 14px;
}
.libero-inner .lib-h2 {
	font-family: var(--lib-serif);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	color: var(--lib-navy);
	margin: 0;
}
.libero-inner .lib-section__head .lib-h2::after {
	content: '';
	display: block;
	width: 64px;
	height: 3px;
	margin: 18px auto 0;
	background: linear-gradient(90deg, var(--lib-gold), var(--lib-gold-2));
	border-radius: 3px;
}
.libero-inner .lib-section__head {
	text-align: center;
	margin-bottom: 48px;
}
.libero-inner .lib-section__sub {
	max-width: 560px;
	margin: 16px auto 0;
	color: var(--lib-muted);
	font-size: 17px;
	line-height: 1.65;
}
.libero-inner .lib-section {
	padding: 72px 0;
}
.libero-inner .lib-section--soft {
	background: var(--lib-bg-soft);
}
.libero-inner .lib-section--white {
	background: #fff;
}

/* hero stats pills */
.libero-inner .lib-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}
.libero-inner .lib-hero-stat {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.2);
	backdrop-filter: blur(10px);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}
.libero-inner .lib-hero-stat i {
	color: var(--lib-gold);
}

/* ── Category cards (Празнични…) ── */
.libero-inner .lib-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	max-width: 960px;
	margin: 0 auto;
}
.libero-inner .lib-cat-card {
	position: relative;
	height: 380px;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	border: none;
	padding: 0;
	text-align: left;
	background: var(--lib-navy);
	box-shadow: 0 22px 60px rgba(15,31,56,.14);
	transition: transform .45s cubic-bezier(.23,1,.32,1), box-shadow .45s ease;
}
.libero-inner .lib-cat-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 32px 70px rgba(15,31,56,.22);
}
.libero-inner .lib-cat-card.is-disabled {
	opacity: .65;
	cursor: default;
	pointer-events: none;
}
.libero-inner .lib-cat-card__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	/*
	 * Исечокот се зема од горната третина, не од средината.
	 *
	 * Откако сликата на папката доаѓа од првата тура во неа, тоа се
	 * фотографии што персоналот ги качува за производ — најчесто
	 * портретни (533x800, 640x800). Картичката е хоризонтална, па
	 * „center“ ја сечеше токму низ средината и градот или пејзажот
	 * горе целосно испаѓаше.
	 */
	background-position: center 30%;
	transition: transform .7s ease;
}
.libero-inner .lib-cat-card:hover .lib-cat-card__img {
	transform: scale(1.06);
}
.libero-inner .lib-cat-card__shade {
	position: absolute;
	inset: 0;
	/*
	 * Потемно засенчување отколку порано (.15 → .45 горе, .88 → .96 долу).
	 *
	 * Белиот текст стои врз фотографија што ја избира персоналот, па не
	 * може да се знае колку е светла. Кај есенски и снежни мотиви —
	 * токму такви се октомвриските и декемвриските папки — насловот
	 * „11 Октомври“ се губеше во позадината.
	 *
	 * Средната точка држи повеќе темнина таму каде што паѓа текстот,
	 * наместо линеарен премин што темни дури при дното.
	 */
	background: linear-gradient(
		180deg,
		rgba(15,31,56,.45) 0%,
		rgba(15,31,56,.62) 45%,
		rgba(15,31,56,.96) 100%
	);
	z-index: 1;
}
.libero-inner .lib-cat-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 30px;
	z-index: 2;
	color: #fff;
	/* Втор слој заштита ако сликата е светла точно под буквите. */
	text-shadow: 0 1px 3px rgba(15,31,56,.55);
}
.libero-inner .lib-cat-card__body h3,
.libero-inner .lib-cat-card__body p,
.libero-inner .lib-cat-card__body span {
	/* Ниедно заглавие или пасус тука не смее да добие темна боја. */
	color: inherit;
}
.libero-inner .lib-cat-card__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--lib-gold-soft);
	margin-bottom: 8px;
}
.libero-inner .lib-cat-card__title {
	font-family: var(--lib-serif);
	font-size: 30px;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.15;
	/*
	 * Белата боја се пишува ИЗРЕЧНО, не се наследува од картичката.
	 *
	 * Насловот е <h3>, а некаде подалеку во родителската тема стои
	 * правило за боја на заглавија — темно бордо. Тоа го газеше белото
	 * што доаѓаше по наследство од .lib-cat-card__body, па „11 Октомври“
	 * излегуваше со темни букви врз темна слика и воопшто не се читаше.
	 *
	 * !important е тука намерно: изворот што гази е во родителска тема
	 * што не смее да се менува, а селекторот му е понесреден од овој.
	 */
	color: #fff !important;
	text-shadow: 0 2px 10px rgba(10,20,40,.85), 0 1px 3px rgba(10,20,40,.7);
}
.libero-inner .lib-cat-card__desc {
	font-size: 14px;
	color: rgba(255,255,255,.82);
	line-height: 1.55;
	margin: 0 0 18px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .35s ease, transform .35s ease;
}
.libero-inner .lib-cat-card:hover .lib-cat-card__desc {
	opacity: 1;
	transform: translateY(0);
}
.libero-inner .lib-cat-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.libero-inner .lib-cat-card__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255,255,255,.15);
	border: 1px solid rgba(255,255,255,.22);
	font-size: 13px;
	font-weight: 600;
}
.libero-inner .lib-cat-card__arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--lib-gold);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateX(-12px);
	transition: opacity .35s ease, transform .35s ease;
}
.libero-inner .lib-cat-card:hover .lib-cat-card__arrow {
	opacity: 1;
	transform: translateX(0);
}

/* ── Product grid (lib-offer cards) ── */
.libero-inner .lib-offer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.libero-inner .lib-offer {
	position: relative;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	background: #fff;
	border-radius: var(--lib-radius);
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(15,31,56,.10);
	border: 1px solid var(--lib-line);
	transition: transform .35s ease, box-shadow .35s ease;
	color: inherit;
}
/* Whole card clickable: stretch the title link over the entire card.
   (The card is the offset parent — __media is overflow:hidden, so we
   anchor the overlay to the title link in the body instead.) */
.libero-inner .lib-offer__body h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
/* Keep the foot button individually clickable above the overlay. */
.libero-inner .lib-offer__foot a {
	position: relative;
	z-index: 2;
}
.libero-inner .lib-offer:hover {
	transform: translateY(-8px);
	box-shadow: 0 28px 60px rgba(15,31,56,.16);
	color: inherit;
}
.libero-inner .lib-offer__media {
	position: relative;
	overflow: hidden;
}
.libero-inner .lib-offer__img {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-color: #d8d2c4;
	transition: transform .55s ease;
}
.libero-inner .lib-offer:hover .lib-offer__img {
	transform: scale(1.06);
}
.libero-inner .lib-offer__badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(15,31,56,.72);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
}
.libero-inner .lib-offer__past {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #dc2626;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 999px;
}
.libero-inner .lib-offer__body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.libero-inner .lib-offer__body h3 {
	font-family: var(--lib-serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--lib-navy);
	margin: 0 0 8px;
	line-height: 1.35;
}
.libero-inner .lib-offer__loc {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--lib-muted);
	margin-bottom: 16px;
}
.libero-inner .lib-offer__loc i {
	color: var(--lib-gold-2);
}
.libero-inner .lib-offer__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid var(--lib-line);
	gap: 12px;
	flex-wrap: wrap;
}
.libero-inner .lib-offer__price {
	font-family: var(--lib-serif);
	font-size: 20px;
	font-weight: 700;
	color: var(--lib-navy);
}
.libero-inner .lib-offer__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--lib-gold), var(--lib-gold-2));
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(197,134,42,.32);
	transition: transform .2s ease, box-shadow .2s ease;
}
.libero-inner .lib-offer__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(197,134,42,.42);
	color: #fff !important;
}
.libero-inner .lib-offer__btn.is-disabled {
	background: #cbd5e1;
	box-shadow: none;
	cursor: not-allowed;
	pointer-events: none;
}

/* tours panel header */
.libero-inner .lib-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}
.libero-inner .lib-panel-head__title {
	display: flex;
	align-items: center;
	gap: 16px;
}
.libero-inner .lib-panel-head__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--lib-gold), var(--lib-gold-2));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
}
.libero-inner .lib-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	border-radius: 999px;
	border: 1px solid var(--lib-line);
	background: #fff;
	color: var(--lib-navy);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
}
.libero-inner .lib-back-btn:hover {
	background: var(--lib-bg-soft);
	transform: translateX(-4px);
}
.libero-inner .lib-tours-group {
	margin-bottom: 48px;
}
.libero-inner .lib-tours-group__title {
	font-family: var(--lib-serif);
	font-size: 22px;
	color: var(--lib-navy);
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--lib-line);
}
.libero-inner .lib-empty {
	text-align: center;
	padding: 32px 24px;
	color: var(--lib-muted);
	background: #fff;
	border-radius: 16px;
	border: 1px dashed var(--lib-line);
}

/* destination pick (Грција…) */
.libero-inner .lib-dest-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	width: 100%;
}

@media (min-width: 576px) {
	.libero-inner .lib-dest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.libero-inner .lib-dest-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.libero-inner .lib-dest-pick {
	position: relative;
	padding: 32px 26px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--lib-line);
	box-shadow: 0 16px 44px rgba(15,31,56,.08);
	cursor: pointer;
	text-align: center;
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.libero-inner .lib-dest-pick:hover {
	transform: translateY(-8px);
	box-shadow: 0 26px 56px rgba(15,31,56,.14);
	border-color: rgba(197,134,42,.35);
}
.libero-inner .lib-dest-pick__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--lib-gold), var(--lib-gold-2));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 26px;
	box-shadow: 0 10px 28px rgba(197,134,42,.35);
}
.libero-inner .lib-dest-pick h3 {
	font-family: var(--lib-serif);
	font-size: 22px;
	color: var(--lib-navy);
	margin: 0 0 10px;
}
.libero-inner .lib-dest-pick p {
	font-size: 14px;
	color: var(--lib-muted);
	line-height: 1.6;
	margin: 0 0 16px;
}
.libero-inner .lib-dest-pick__count {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(197,134,42,.12);
	color: var(--lib-gold-2);
	font-size: 12px;
	font-weight: 700;
}

/* features strip */
.libero-inner .lib-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.libero-inner .lib-feature {
	text-align: center;
	padding: 28px 20px;
}
.libero-inner .lib-feature__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--lib-gold), var(--lib-gold-2));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 24px;
}
.libero-inner .lib-feature h4 {
	font-family: var(--lib-serif);
	font-size: 17px;
	color: #fff;
	margin: 0 0 8px;
}
.libero-inner .lib-feature p {
	font-size: 13px;
	color: rgba(255,255,255,.72);
	margin: 0;
	line-height: 1.55;
}
.libero-inner .lib-strip--navy {
	background: var(--lib-navy);
	padding: 64px 0;
}

/* reveal */
.libero-inner .lib-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .65s ease, transform .65s ease;
	transition-delay: var(--lib-delay, 0s);
}
.libero-inner .lib-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 991px) {
	.libero-inner .lib-cat-grid,
	.libero-inner .lib-offer-grid,
	.libero-inner .lib-features {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Parent shortcode inline heroes (Турција, …) — без 120px cream gap */
	body.lib-tour-single .turkey-hero,
	body.lib-tour-single .lib-tour-body--has-hero > [class$="-hero"]:first-child[style*="padding"] {
		padding-top: var(--lib-hero-pad-top) !important;
		padding-bottom: var(--lib-hero-pad-bottom) !important;
	}
}

@media (max-width: 640px) {
	.libero-inner .lib-hero--page {
		padding-top: var(--lib-hero-pad-top);
		padding-bottom: var(--lib-hero-pad-bottom);
	}

	.libero-inner .lib-cat-grid,
	.libero-inner .lib-offer-grid,
	.libero-inner .lib-features {
		grid-template-columns: 1fr;
	}
	.libero-inner .lib-cat-card {
		height: 320px;
	}
}
