/* =========================================================================
 * MediTravel — 06-home.css
 * Homepage sekce dle prototypu index.html. Kontrakt: Divi drží obsah,
 * šablona drží vzhled — každá Section dostane v Divi RUČNĚ jen CSS Class
 * (mt-hero / mt-benefity / mt-nabidka / mt-rodina) + případně CSS ID
 * jako kotvu. Žádné nastavování vzhledu v Divi UI (výjimka: obrázek
 * pozadí u mt-hero a mt-rodina — to je obsah, mění ho klient).
 * Postup stavby: exports/homepage.html.
 * ======================================================================= */

/* =========================================================================
 * Společný základ obsahových sekcí (světlé pozadí + section head)
 * ======================================================================= */
:is(.mt-benefity, .mt-nabidka),
:is(.mt-benefity, .mt-nabidka).et_pb_section {
	background: var(--mt-surface-white) !important;
	padding: var(--mt-section-gap) 0 !important;
	position: relative;
	z-index: 1; /* pod fixní hlavičkou */
	gap: 0 !important;
	column-gap: 0 !important;
	row-gap: 0 !important;
}
:is(.mt-benefity, .mt-nabidka) .et_pb_row,
:is(.mt-benefity, .mt-nabidka) .et_pb_row_inner {
	max-width: calc(var(--mt-container) + 2 * var(--mt-gutter)) !important;
	width: 100% !important;
	padding: 0 var(--mt-gutter) !important;
	margin: 0 auto !important;
	box-sizing: border-box;
}
:is(.mt-benefity, .mt-nabidka) .et_pb_row + .et_pb_row {
	margin-top: 56px !important;
}
/* Divi 5: sloupec je flex s gap 30px — vynulovat, rytmus řídí typografie */
:is(.mt-benefity, .mt-nabidka, .mt-hero, .mt-rodina) .et_pb_column {
	gap: 0 !important;
	column-gap: 0 !important;
	row-gap: 0 !important;
}
:is(.mt-benefity, .mt-nabidka, .mt-hero, .mt-rodina) .et_pb_module {
	margin-bottom: 0;
}

/* Typografie section headů */
:is(.mt-benefity, .mt-nabidka) h2 {
	margin: 0; /* font/barva = výchozí h2 z 01-base.css */
}

/* =========================================================================
 * HERO (.mt-hero) — fullscreen foto (pozadí Section v Divi), gradient
 * overlay a scroll šipka jsou CSS-only, nejdou rozbít editací.
 * ======================================================================= */
.mt-hero,
.mt-hero.et_pb_section {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(560px, calc(100vh - var(--mt-header-h)), 972px);
	padding: 96px 0 !important;
	gap: 0 !important;
	column-gap: 0 !important;
	row-gap: 0 !important;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
/* Gradient overlay dle prototypu (hero-gradient) */
.mt-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(44, 38, 33, 0.4) 0%, rgba(44, 38, 33, 0.1) 60%, rgba(44, 38, 33, 0.6) 100%);
	pointer-events: none;
}
.mt-hero .et_pb_row {
	position: relative;
	z-index: 2;
	max-width: 896px !important; /* max-w-4xl */
	width: 100% !important;
	padding: 0 var(--mt-gutter) !important;
	margin: 0 auto !important;
	box-sizing: border-box;
	text-align: center;
}
/* Divi Text modul si nese vlastní text-align: left (.et_pb_text_align_left)
   — centrování musí být explicitní s !important, jinak vyhraje modul.
   KOREKCE 1: rozšířeno na VŠECHNY moduly v hero (klient si přidal text
   s modrým pozadím a nešel mu vystředit) — centruje se obsah i samotný
   box modulu. */
.mt-hero .et_pb_text,
.mt-hero .et_pb_text_inner,
.mt-hero .et_pb_text p,
.mt-hero .et_pb_module,
.mt-hero .et_pb_module :is(h1, h2, h3, h4, p, li),
.mt-hero h1 {
	text-align: center !important;
}
.mt-hero .et_pb_row .et_pb_module {
	margin-left: auto !important;
	margin-right: auto !important;
}
.mt-hero .et_pb_button_module_wrapper,
.mt-hero .et_pb_module.et_pb_button_module_wrapper {
	text-align: center !important;
	margin: 0 auto;
}
.mt-hero h1 {
	font-family: var(--mt-font-display);
	font-size: clamp(36px, 6vw, 72px);
	font-weight: 700;
	line-height: 1.25; /* měřeno 90px/72px */
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 32px;
	padding: 0;
}
.mt-hero .et_pb_text p {
	font-family: var(--mt-font-body);
	font-size: clamp(17px, 1.8vw, 24px);
	font-weight: 300;
	letter-spacing: 0.025em;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.95);
	margin: 0 auto 48px;
	max-width: 672px;
}
.mt-hero .et_pb_text h1 + * { margin-top: 0; }
.mt-hero .et_pb_button_module_wrapper { text-align: center; }

/* Scroll šipka dole — klikatelný odkaz (vkládá mt-header.js) */
.mt-hero__scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	width: 44px;
	height: 44px;
	margin-left: -22px;
	opacity: 0.7;
	z-index: 3;
	cursor: pointer;
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: mt-bounce 1.6s infinite;
}
.mt-hero__scroll:hover { opacity: 1; }
@keyframes mt-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
	.mt-hero__scroll { animation: none; }
}

/* =========================================================================
 * BENEFITY (.mt-benefity) — 3 karty z nativních modulů:
 * Row 2 má 3 sloupce, každý sloupec = Image (SVG ikona) + Text (h3) + Text (p).
 * Sloupec se vykreslí jako karta.
 * ======================================================================= */

/* Section head: H2 s oranžovou linkou pod (CSS-only) */
.mt-benefity .mt-sekce-nadpis,
.mt-benefity .mt-sekce-nadpis .et_pb_text,
.mt-benefity .mt-sekce-nadpis .et_pb_text_inner,
.mt-benefity .mt-sekce-nadpis h2 {
	text-align: center !important;
}
.mt-benefity .mt-sekce-nadpis {
	margin-bottom: 40px;
}
.mt-benefity .mt-sekce-nadpis h2::after {
	content: "";
	display: block;
	width: 96px;
	height: 2px;
	background: var(--mt-secondary);
	margin: 24px auto 0;
}

/* Řada karet */
.mt-benefity .et_pb_row.mt-benefity__karty {
	display: flex;
	gap: 48px !important;
	align-items: stretch;
}
.mt-benefity .mt-benefity__karty .et_pb_column {
	flex: 1 1 0;
	width: auto !important;
	margin: 0 !important;
	background: var(--mt-surface-white);
	border: 1px solid var(--mt-border-soft);
	border-radius: var(--mt-r-lg);
	padding: 40px;
	box-sizing: border-box;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.mt-benefity .mt-benefity__karty .et_pb_column:hover {
	box-shadow: var(--mt-shadow-card);
	transform: translateY(-2px);
}

/* Ikona v kruhu — Image modul */
.mt-benefity .mt-benefity__karty .et_pb_image {
	margin: 0 0 40px !important;
	text-align: left;
}
.mt-benefity .mt-benefity__karty .et_pb_image .et_pb_image_wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: var(--mt-r-full); /* design: rounded-full = 12px, ne kruh */
	background: var(--mt-surface-container);
}
.mt-benefity .mt-benefity__karty .et_pb_image img {
	width: 48px !important;
	height: 48px !important;
	max-width: 48px;
}

/* Nadpis + text karty */
.mt-benefity .mt-benefity__karty h3 {
	margin: 0 0 20px; /* font = výchozí h3 z 01-base.css */
}
.mt-benefity .mt-benefity__karty .et_pb_text p {
	font-family: var(--mt-font-body);
	font-size: var(--mt-fs-body); /* měřeno 16px */
	line-height: 1.625;
	color: var(--mt-on-surface-variant);
	margin: 0;
}

/* =========================================================================
 * NABÍDKA POBYTŮ (.mt-nabidka) — head z Divi modulů + shortcode [mt_nabidka]
 * ======================================================================= */
.mt-nabidka,
.mt-nabidka.et_pb_section {
	background: var(--mt-surface-container-low) !important;
}

/* Head řádek: vlevo H2 + popis, vpravo dole tlačítko.
 * Cílí se na PRVNÍ Row v sekci — žádná třída na Row není potřeba. */
.mt-nabidka .et_pb_row:first-of-type {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 0 !important; /* mezeru dělá jen .et_pb_row + .et_pb_row (jinak se sčítaly) */
}
.mt-nabidka .et_pb_row:first-of-type .et_pb_column {
	margin: 0 !important;
	width: auto !important;
}
.mt-nabidka .et_pb_row:first-of-type .et_pb_column:last-child {
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
}
.mt-nabidka .et_pb_row:first-of-type h2 { margin-bottom: 12px; }
.mt-nabidka .et_pb_row:first-of-type .et_pb_text p {
	font-family: var(--mt-font-body);
	font-size: var(--mt-fs-body);
	color: var(--mt-on-surface-variant);
	max-width: 512px;
	margin: 0;
}
/* KOREKCE 1: tlačítko „Všechny pobyty" větší = dominantní.
 * Specificita (0,3,1) > 02-buttons (0,2,1) — vyhrává mezi !important. */
.mt-nabidka .et_pb_row:first-of-type a.et_pb_button.et_pb_button,
.mt-nabidka .et_pb_row:first-of-type a.et_pb_button.et_pb_button:hover {
	padding: 16px 36px !important;
	font-size: var(--mt-fs-body-lg) !important;
}
/* Tlačítko v headu dostane šipku automaticky (bez třídy) */
.mt-nabidka .et_pb_row:first-of-type a.et_pb_button.et_pb_button::after {
	content: "→" !important;
	display: inline-block !important;
	margin-left: 8px;
	font-family: var(--mt-font-body) !important;
	font-size: inherit;
	line-height: 1;
	opacity: 1 !important;
	position: static !important;
	transform: none !important;
	transition: transform 0.25s ease;
}
.mt-nabidka .et_pb_row:first-of-type a.et_pb_button.et_pb_button:hover::after {
	transform: translateX(4px) !important;
}

/* ---- Výpis (markup ze shortcode [mt_nabidka]) ---- */
.mt-pobyty { font-family: var(--mt-font-body); }
.mt-pobyty__empty {
	font-size: var(--mt-fs-body);
	color: var(--mt-on-surface-variant);
}

/* Karty — společné */
.mt-pobyty article {
	background: var(--mt-surface-white);
	border: 1px solid var(--mt-border-soft);
	border-radius: var(--mt-r-lg);
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.mt-pobyty article:hover {
	box-shadow: var(--mt-shadow-card);
	transform: translateY(-2px);
}
.mt-pobyty article img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s ease;
}
.mt-pobyty article:hover img { transform: scale(1.04); }
.mt-pobyty h3 {
	margin: 0; /* font = výchozí h3 z 01-base.css */
}
.mt-pobyty h3 a {
	color: inherit;
	text-decoration: none;
}
.mt-pobyty h3 a:hover { color: var(--mt-primary); }

/* Štítky (badges) na fotce */
.mt-stitky {
	position: absolute;
	top: 20px;
	left: 20px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.mt-stitek {
	display: inline-block;
	padding: 6px 14px;
	border-radius: var(--mt-r-full);
	font-size: var(--mt-fs-label-sm);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--mt-primary);
	color: #fff;
}
/* KOREKCE 1: barvu pozadí nese inline style z mt_stitek_html()
 * (vlastní barva z adminu > výchozí dle slugu > paleta — mt-stitky.php).
 * Pravidla níže jsou jen fallback, kdyby se někde vykreslil .mt-stitek
 * mimo helper. */
.mt-stitek--vyprodano { background: #44403c; }
.mt-stitek--posledni-volna-mista { background: #b91c1c; }
.mt-stitek--jen-na-vyzadani { background: #c2410c; }

/* Featured karta */
.mt-pobyt-featured {
	display: flex;
	min-height: 500px;
	margin-bottom: 64px;
}
.mt-pobyt-featured__media {
	position: relative;
	flex: 0 0 60%;
	overflow: hidden;
	display: block;
}
.mt-pobyt-featured__body {
	flex: 1 1 40%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
	box-sizing: border-box;
}
.mt-pobyt-featured__body h3 {
	font-family: var(--mt-font-display);
	font-size: var(--mt-fs-h2);
	margin-bottom: 16px;
}
.mt-pobyt-featured__popis {
	font-size: var(--mt-fs-body); /* měřeno 16px */
	line-height: 1.65;
	color: var(--mt-on-surface-variant);
	margin: 0 0 32px;
}
.mt-pobyt-featured__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(190, 200, 209, 0.4);
}
.mt-pobyt-featured__termin {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: var(--mt-fs-body); /* měřeno 16px/400 */
	font-weight: 400;
	color: var(--mt-muted);
}
.mt-pobyt-featured__termin svg { width: 22px; height: 22px; flex: 0 0 auto; }
.mt-pobyt-featured__cena { text-align: right; }
.mt-pobyt-featured__cena small {
	display: block;
	font-size: var(--mt-fs-label-sm);
	text-transform: uppercase;
	letter-spacing: -0.02em;
	color: var(--mt-muted);
}
/* KOREKCE 1: cena větší a bold */
.mt-pobyt-featured__cena strong {
	font-family: var(--mt-font-display);
	font-size: var(--mt-fs-h3);
	font-weight: 700;
	color: var(--mt-secondary);
	white-space: nowrap;
}
/* KOREKCE 1: místo velkého tlačítka jen lehké „Zobrazit →" vpravo */
.mt-pobyt-featured__vice {
	align-self: flex-end;
	font-size: var(--mt-fs-body);
	font-weight: 400;
	color: var(--mt-secondary);
	text-decoration: none;
}
.mt-pobyt-featured__vice:hover {
	text-decoration: underline;
	text-underline-offset: 8px;
}

/* Grid menších karet */
.mt-pobyty__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.mt-pobyt-karta__media {
	position: relative;
	display: block;
	height: 256px;
	overflow: hidden;
}
.mt-pobyt-karta__body { padding: 32px; }
.mt-pobyt-karta__body h3 { margin-bottom: 8px; }
.mt-pobyt-karta__termin {
	font-size: var(--mt-fs-body); /* měřeno 16px/400 */
	font-weight: 400;
	color: var(--mt-muted);
	margin: 0 0 24px;
}
.mt-pobyt-karta__pata {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid var(--mt-border-soft);
}
/* KOREKCE 1: „Od" nad cenou (jako na archivu), cena větší a bold */
.mt-pobyt-karta__cena small {
	display: block;
	font-size: var(--mt-fs-label-sm);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--mt-muted);
}
.mt-pobyt-karta__cena {
	font-family: var(--mt-font-display);
	font-size: var(--mt-fs-h3);
	font-weight: 700;
	color: var(--mt-secondary);
	white-space: nowrap;
}
.mt-pobyt-karta__cena strong { font-weight: 700; color: inherit; }
.mt-pobyt-karta__vice {
	font-size: var(--mt-fs-body); /* měřeno 16px/400 */
	font-weight: 400;
	color: var(--mt-secondary);
	text-decoration: none;
}
.mt-pobyt-karta__vice:hover {
	text-decoration: underline;
	text-underline-offset: 8px;
}

/* KOREKCE 1: „Všechny pobyty" i pod výpisem — vpravo, dominantní jako
 * tlačítko v headu (padding/font přebije základ .mt-btn z 02-buttons
 * specificitou 0,2,0 > 0,1,0). */
.mt-pobyty__vice {
	display: flex;
	justify-content: flex-end;
	margin-top: 48px;
}
.mt-pobyty__vice .mt-btn,
.mt-pobyty__vice .mt-btn:hover {
	padding: 16px 36px !important;
	font-size: var(--mt-fs-body-lg) !important;
}

/* =========================================================================
 * RODINA VÍTÁNA (.mt-rodina) — foto pozadí Section (v Divi, parallax),
 * vpravo karta = sloupec s Image (ikona) + Text (h3) + Text (p).
 * ======================================================================= */
.mt-rodina,
.mt-rodina.et_pb_section {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(600px, 85vh, 820px);
	padding: 96px 0 !important;
	gap: 0 !important;
	column-gap: 0 !important;
	row-gap: 0 !important;
	background-size: cover;
	background-position: center;
}
/* Ztmavení fotky (brightness .85 v prototypu) */
.mt-rodina::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(44, 38, 33, 0.15);
	pointer-events: none;
}
.mt-rodina .et_pb_row {
	position: relative;
	z-index: 2;
	max-width: calc(var(--mt-container) + 2 * var(--mt-gutter)) !important;
	width: 100% !important;
	padding: 0 var(--mt-gutter) !important;
	margin: 0 auto !important;
	box-sizing: border-box;
}
/* Karta = sloupec */
.mt-rodina .et_pb_column {
	max-width: 672px; /* max-w-2xl */
	margin-left: auto !important;
	background: rgba(255, 252, 249, 0.95);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid var(--mt-border-soft);
	border-radius: var(--mt-r-lg);
	box-shadow: 0 25px 50px -12px rgba(44, 38, 33, 0.35);
	padding: clamp(40px, 5vw, 64px);
	box-sizing: border-box;
}
.mt-rodina .et_pb_image {
	margin: 0 0 40px !important;
	text-align: left;
}
.mt-rodina .et_pb_image .et_pb_image_wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: var(--mt-r-full); /* design: 12px, ne kruh */
	background: var(--mt-surface-container);
}
.mt-rodina .et_pb_image img {
	width: 32px !important;
	height: 32px !important;
	max-width: 32px;
}
.mt-rodina h3 {
	/* ODCHYLKA: velikost h2 (headline-lg); font = výchozí h3 (Playfair) z 01-base */
	font-size: var(--mt-fs-h2);
	font-weight: 600;
	line-height: 1.3;
	color: var(--mt-ink);
	margin: 0 0 28px;
	padding: 0;
}
.mt-rodina .et_pb_text p {
	font-family: var(--mt-font-body);
	font-size: var(--mt-fs-body); /* měřeno 16px */
	line-height: 1.625;
	color: var(--mt-on-surface-variant);
	margin: 0;
}
