/*
Theme Name: Forum Wakacyjne
Theme URI: https://forum-wakacyjne.pl
Description: Motyw potomny dla strony głównej Forum Wakacyjne. Dane z feeda produktowego.
Author: Forum Wakacyjne
Template: twentytwentyfive
Version: 1.0.0
Text Domain: forumwakacyjne
*/

@import url('../twentytwentyfive/style.min.css');

/* ========== STRONA GŁÓWNA — reset i kontener ========== */
body.home {
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	background: #f5f7fa;
}
body.home .wp-site-blocks,
body.home .entry-content,
body.home main:not(#tn-main) {
	max-width: none;
	padding: 0;
	margin: 0;
}
body.home #tn-main.tn-page {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
/* Wyzerowanie layoutu blokowego na stronie głównej */
body.home .alignfull,
body.home .wp-block-group.alignfull,
body.home [class*="alignfull"] {
	max-width: 100%;
	width: 100%;
}
body.home .has-global-padding {
	padding-left: 0;
	padding-right: 0;
}
body.home .entry-header,
body.home .post-inner {
	max-width: none;
}

/* Strony listingu wakacje — ten sam layout co strona główna (pełny header + treść) */
body.wakacje-listing {
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	background: #f5f7fa;
}
body.wakacje-listing .wp-site-blocks,
body.wakacje-listing .entry-content,
body.wakacje-listing main:not(#tn-main) {
	max-width: none;
	padding: 0;
	margin: 0;
}
body.wakacje-listing #tn-main.tn-page {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body.wakacje-listing .alignfull,
body.wakacje-listing .wp-block-group.alignfull,
body.wakacje-listing [class*="alignfull"] {
	max-width: 100%;
	width: 100%;
}
body.wakacje-listing .has-global-padding {
	padding-left: 0;
	padding-right: 0;
}
body.wakacje-listing .entry-header,
body.wakacje-listing .post-inner {
	max-width: none;
}

/* Nagłówki — globalnie czarne (wyjątki mają własne reguły) */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
	color: #000;
}

/* Wyłącz dublującą sekcję bloga z pogody (awaryjnie, niezależnie od cache/wersji plików) */
.to-weather-blog,
.to-weather-blog__heading,
.to-weather-blog__grid,
.to-weather-blog__card {
	display: none !important;
}

/* Okruszki — globalnie (header.php), bez travel-offers.css */
.tn-site-breadcrumbs {
	background: #f5f7fa;
	border-bottom: 1px solid #e9ecef;
}
.tn-site-breadcrumbs .to-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	padding: 10px 0 12px;
	margin: 0;
	font-size: 0.875rem;
	color: #6c757d;
}
.tn-site-breadcrumbs .to-breadcrumbs__link {
	color: #457b9d;
	text-decoration: none;
}
.tn-site-breadcrumbs .to-breadcrumbs__link:hover {
	text-decoration: underline;
}
.tn-site-breadcrumbs .to-breadcrumbs__current {
	color: #333;
	font-weight: 600;
}
.tn-site-breadcrumbs .to-breadcrumbs__sep {
	color: #aaa;
}

/* Ogólne — box-sizing i kontener */
.tn-page *,
.tn-page *::before,
.tn-page *::after {
	box-sizing: border-box;
}
.tn-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ========== Zmienne ========== */
:root {
	--fw-dark: #1e3a5f;
	--fw-mid: #2d5a87;
	--fw-accent: #f0c14b;
	--fw-orange: #e67e22;
	--fw-orange-dk: #d35400;
	--fw-white: #fff;
	--fw-bg: #f5f7fa;
	--fw-shadow: 0 2px 12px rgba(0,0,0,.08);
	--fw-radius: 12px;
	--fw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
	/* aliasy dla inline style w szablonach */
	--tn-bg: var(--fw-bg);
	--tn-dark-blue: var(--fw-dark);
}

/* ========== HEADER ========== */
.tn-header {
	background: var(--fw-white);
	box-shadow: 0 1px 0 rgba(0,0,0,.08);
	padding: 0;
	width: 100%;
}
.tn-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.tn-header__row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2rem;
}
.tn-header__row--primary {
	padding: 14px 0 10px;
}
.tn-header__row--secondary {
	padding: 6px 0 14px;
	border-top: 1px solid rgba(0,0,0,.06);
}
.tn-header__row--search {
	padding: 0;
	border-top: 1px solid rgba(0,0,0,.06);
}
.tn-header__row--search .tn-search-wrap {
	margin: 0 -24px;
	width: calc(100% + 48px);
}
.tn-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--fw-dark);
	font-weight: 700;
	font-size: 1.25rem;
	font-family: var(--fw-font);
}
.tn-logo__img {
	height: 57px;
	width: auto;
	max-width: 364px;
	display: block;
	object-fit: contain;
}
.tn-logo img.tn-logo__img {
	height: 57px;
	width: auto;
	max-width: 364px;
}
.tn-logo .tn-logo__text span:last-child {
	color: var(--fw-mid);
}

/* Menu górne (poziom 1) — ikonki w stylu flat gradient */
.tn-nav-primary-wrap {
	display: flex;
	align-items: center;
}
.tn-nav-primary {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.tn-nav-primary li {
	margin: 0;
}
.tn-nav-primary a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	color: var(--fw-dark);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 10px;
	transition: background .2s, color .2s, transform .15s;
}
.tn-nav-primary a:hover {
	background: var(--fw-bg);
	color: var(--fw-mid);
}
.tn-nav-primary .menu-item-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(135deg, var(--fw-orange) 0%, var(--fw-accent) 100%);
	box-shadow: 0 2px 8px rgba(230, 126, 34, .35);
	color: #fff;
}
.tn-nav-primary .menu-item-icon:has(.menu-item-icon-svg) {
	background: transparent;
	box-shadow: none;
}
.tn-nav-primary .menu-item-icon .menu-item-icon-svg {
	width: 28px;
	height: 28px;
	object-fit: contain;
	display: block;
}
.tn-nav-primary .menu-item-icon svg {
	width: 16px;
	height: 16px;
	filter: drop-shadow(0 1px 1px rgba(0,0,0,.1));
}
.tn-nav-primary a:hover .menu-item-icon:not(:has(.menu-item-icon-svg)) {
	background: linear-gradient(135deg, #d96d1e 0%, #e5ad38 100%);
	box-shadow: 0 2px 10px rgba(230, 126, 34, .45);
}

/* Menu drugie (poziom 2 — Hotele, Last Minute Konakli itd.) */
.tn-nav-secondary-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.tn-nav-secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.tn-nav-secondary li { margin: 0; }
.tn-nav-secondary a {
	padding: 8px 14px;
	color: var(--fw-mid);
	text-decoration: none;
	font-size: 0.9rem;
	border-radius: 8px;
	transition: background .2s, color .2s;
}
.tn-nav-secondary a:hover {
	background: var(--fw-bg);
	color: var(--fw-dark);
}

/* ========== WYSZUKIWARKA ========== */
.tn-search-wrap {
	background: var(--fw-bg);
	padding: 28px 0;
	width: 100%;
}
.tn-search-wrap .tn-container {
	max-width: 1280px;
}

/* ========== SEKCJE OGÓLNE ========== */
.tn-section {
	width: 100%;
	padding: 48px 0;
}
.tn-section__title {
	font-size: 1.75rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 8px;
	font-family: var(--fw-font);
}
.tn-section__subtitle {
	color: #666;
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 28px;
	line-height: 1.5;
}
.tn-section--alt {
	background: var(--fw-bg);
}

/* ========== LAST MINUTE — 3 kafelki (zrzut 2) ========== */
.tn-last-minute {
	background: var(--fw-bg);
}
.tn-last-minute .tn-container {
	max-width: 1280px;
}
.tn-last-minute-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 900px) {
	.tn-last-minute-grid {
		grid-template-columns: 1fr;
	}
}
.tn-lm-tile {
	background: var(--fw-white);
	border-radius: var(--fw-radius);
	box-shadow: var(--fw-shadow);
	padding: 22px;
	width: 100%;
	min-width: 0;
}
.tn-lm-tile__title {
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0 0 6px;
	color: #333;
}
.tn-lm-tile__dates {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 18px;
}
.tn-lm-tile__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tn-lm-tile__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	gap: 12px;
}
.tn-lm-tile__list li:last-child {
	border-bottom: 0;
}
.tn-lm-tile__list a {
	color: var(--fw-dark);
	text-decoration: none;
	flex: 1;
	min-width: 0;
	font-size: 0.95rem;
}
.tn-lm-tile__list a:hover {
	text-decoration: underline;
}
.tn-lm-tile__list .price {
	color: var(--fw-orange);
	font-weight: 700;
	white-space: nowrap;
	font-size: 0.95rem;
}
.tn-lm-tile__more {
	display: block;
	text-align: center;
	margin-top: 18px;
	padding-top: 12px;
	color: var(--fw-orange);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}
.tn-lm-tile__more:hover {
	color: #d35400;
	text-decoration: underline;
}

/* ========== POPULARNE KRAJE — 3 rzędy × 4 kraje ========== */
.tn-countries-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
@media (max-width: 900px) {
	.tn-countries-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.tn-countries-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.tn-countries-grid {
		grid-template-columns: 1fr;
	}
}
.tn-country-card {
	position: relative;
	border-radius: var(--fw-radius);
	overflow: hidden;
	aspect-ratio: 4/3;
	background: #ddd;
	width: 100%;
}
.tn-country-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease, filter 0.4s ease;
}
.tn-country-card:hover img {
	transform: scale(1.08);
	filter: brightness(1.15);
}
.tn-country-card__link {
	position: absolute;
	inset: 0;
	display: block;
	text-decoration: none;
}
.tn-country-card__inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px;
	background: linear-gradient(transparent 20%, rgba(0,0,0,.75) 100%);
}
.tn-country-card__name {
	color: var(--fw-white);
	font-weight: 800;
	font-size: 1.1rem;
	flex-shrink: 0;
}
.tn-country-card__link:hover .tn-country-card__name {
	text-decoration: underline;
}
.tn-country-card__price {
	display: inline-block;
	padding: 8px 14px;
	background: var(--fw-orange);
	color: var(--fw-white);
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	border-radius: 999px;
	white-space: nowrap;
	flex-shrink: 0;
}
.tn-country-card__link:hover .tn-country-card__price {
	background: var(--fw-orange-dk, #d35400);
	color: var(--fw-white);
}

/* ========== KARTY OFERT — 5 kolumn, 2 rzędy (zrzut 4) ========== */
.tn-offers-section .tn-container {
	max-width: 1280px;
}
.tn-offers-section .tn-offers-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
@media (max-width: 1000px) {
	.tn-offers-section .tn-offers-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 768px) {
	.tn-offers-section .tn-offers-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.tn-offers-section .tn-offers-grid {
		grid-template-columns: 1fr;
	}
}

/* ========== BLOG — 4 kolumny (zrzut 5) ========== */
.tn-blog-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
@media (max-width: 1000px) {
	.tn-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.tn-blog-grid {
		grid-template-columns: 1fr;
	}
}
.tn-blog-card {
	background: var(--fw-white);
	border-radius: var(--fw-radius);
	box-shadow: var(--fw-shadow);
	overflow: hidden;
	width: 100%;
}
.tn-blog-card__img {
	position: relative;
	aspect-ratio: 16/10;
	overflow: hidden;
	background: #eee;
	display: block;
}
.tn-blog-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tn-blog-card__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
}
.tn-blog-card__body {
	padding: 18px;
}
.tn-blog-card__title {
	margin: 0 0 8px;
	font-size: 1rem;
	line-height: 1.35;
}
.tn-blog-card__title a {
	color: #333;
	text-decoration: none;
}
.tn-blog-card__title a:hover {
	text-decoration: underline;
}
.tn-blog-card__author {
	font-size: 0.85rem;
	color: #666;
}

/* ========== FACEBOOK CTA (globalnie pod wyszukiwarką) ========== */
.tn-fb-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	background: #fff;
	border-radius: var(--fw-radius);
	box-shadow: var(--fw-shadow);
	padding: 22px 24px;
	border: 1px solid #e9ecef;
}
.tn-fb-cta__text .tn-section__subtitle { margin-bottom: 0; }
.tn-fb-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--fw-orange, #e67e22) 0%, var(--fw-accent, #f0c14b) 100%);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 900;
	white-space: nowrap;
}
.tn-fb-cta__btn:hover { opacity: 0.95; }
@media (max-width: 900px) {
	.tn-fb-cta { flex-direction: column; align-items: stretch; }
	.tn-fb-cta__btn { width: 100%; }
}

/* ========== FACEBOOK POPUP (1x per karta/sesja) ========== */
.tn-fb-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
}
.tn-fb-popup.is-open { display: block; }
.tn-fb-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
}
.tn-fb-popup__panel {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(520px, calc(100% - 32px));
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 50px rgba(0,0,0,.3);
	overflow: hidden;
}
.tn-fb-popup__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 950;
	color: #111;
}
.tn-fb-popup__close {
	border: 0;
	background: rgba(255,255,255,.75);
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 10px;
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	backdrop-filter: blur(4px);
}
.tn-fb-popup__close:hover { background: #f3f5f7; }
.tn-fb-popup__body {
	padding: 18px;
}
.tn-fb-popup__lead {
	margin: 0 0 14px;
	color: #555;
	line-height: 1.55;
}
.tn-fb-popup__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--fw-orange, #e67e22) 0%, var(--fw-accent, #f0c14b) 100%);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 900;
}
.tn-fb-popup__btn:hover { opacity: 0.95; }

/* ========== OPIS ========== */
.tn-intro {
	background: var(--fw-white);
	padding: 40px 0;
	font-size: 0.9rem;
	text-align: justify;
}
.tn-intro__title,
.tn-intro__heading {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 1.5em 0 0.5em;
	color: var(--fw-dark);
	text-align: left;
}
.tn-intro__title:first-child {
	margin-top: 0;
}
.tn-intro__subheading {
	font-size: 1rem;
	font-weight: 700;
	margin: 1.15em 0 0.4em;
	color: var(--fw-dark);
	text-align: left;
}
.tn-intro p {
	color: #555;
	line-height: 1.7;
	margin: 0 0 1em;
	font-size: inherit;
}
.tn-intro__list {
	margin: 0 0 1em 1.25em;
	padding: 0;
	color: #555;
	line-height: 1.65;
}
.tn-intro__list li {
	margin: 0 0 0.4em;
}

/* ========== STOPKA — 3 kolumny (zrzut 6) ========== */
.tn-footer {
	background: var(--fw-dark);
	color: rgba(255,255,255,.9);
	padding: 48px 0 24px;
	margin-top: 0;
	width: 100%;
}
.tn-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}
@media (max-width: 768px) {
	.tn-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}
.tn-footer__col h4 {
	color: var(--fw-white);
	font-size: 0.95rem;
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 700;
}
.tn-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tn-footer__col li {
	margin-bottom: 10px;
}
.tn-footer__col a {
	color: rgba(255,255,255,.88);
	text-decoration: none;
	font-size: 0.95rem;
}
.tn-footer__col a:hover {
	color: var(--fw-white);
	text-decoration: underline;
}
.tn-footer__contact p {
	margin: 0 0 10px;
	font-size: 0.95rem;
}
.tn-footer__contact a {
	color: rgba(255,255,255,.88);
}
.tn-footer__bottom {
	text-align: center;
	padding-top: 28px;
	margin-top: 28px;
	border-top: 1px solid rgba(255,255,255,.2);
	font-size: 0.85rem;
	color: rgba(255,255,255,.75);
}
.tn-footer__bottom.tn-container {
	max-width: 1280px;
}

/* ========== MOBILE TUNING ========== */
@media (max-width: 768px) {
	.tn-container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.tn-header__inner {
		padding-left: 12px;
		padding-right: 12px;
	}

	.tn-header__row {
		gap: 0.75rem;
	}

	.tn-header__row--primary {
		padding: 10px 0 8px;
	}

	.tn-logo__img,
	.tn-logo img.tn-logo__img {
		max-width: 220px;
		height: auto;
	}

	.tn-nav-primary,
	.tn-nav-secondary {
		justify-content: center;
		gap: 2px;
	}

	.tn-nav-primary a,
	.tn-nav-secondary a {
		padding: 8px 10px;
		font-size: 0.86rem;
	}

	.tn-nav-primary .menu-item-icon {
		width: 24px;
		height: 24px;
	}

	.tn-lm-tile__list li {
		flex-wrap: wrap;
	}

	.tn-lm-tile__list .price {
		white-space: normal;
	}

	.tn-country-card__inner {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.tn-country-card__price {
		padding: 6px 10px;
		font-size: 0.8rem;
	}

	.tn-site-breadcrumbs .to-breadcrumbs {
		font-size: 0.8rem;
		padding: 8px 0 10px;
	}

	.tn-footer__grid {
		padding-left: 16px;
		padding-right: 16px;
	}
}
