/* Odyseus brand chrome — header/footer edge gutters (green stays full-bleed) */
:root {
	--ody-edge: 24px;
}

@media (min-width: 782px) {
	:root {
		--ody-edge: 32px;
	}
}

@media (min-width: 1200px) {
	:root {
		--ody-edge: 40px;
	}
}

/* Header: keep green full width; inset logo + nav */
#masthead .site-header-row-container-inner,
.site-main-header-wrap .site-header-row-container-inner,
#mobile-header .site-header-row-container-inner {
	padding-left: max(var(--ody-edge), env(safe-area-inset-left, 0px)) !important;
	padding-right: max(var(--ody-edge), env(safe-area-inset-right, 0px)) !important;
	box-sizing: border-box;
}

/* Footer widget row + bottom bar */
#colophon .site-footer-row-container-inner,
.site-footer-wrap .site-footer-row-container-inner,
.site-bottom-footer-wrap .site-footer-row-container-inner {
	padding-left: max(var(--ody-edge), env(safe-area-inset-left, 0px)) !important;
	padding-right: max(var(--ody-edge), env(safe-area-inset-right, 0px)) !important;
	box-sizing: border-box;
}

/* Hide header "Mapa" item — homepage is the map */
.primary-menu-container a[href*="mapa"],
#site-navigation a[href*="mapa"],
.header-navigation a[href*="mapa"],
.main-navigation .menu-item a[href*="mapa"],
.menu-item a[href*="/mapa"] {
	display: none !important;
}

/* ---------- 0.8.2 header: menu links, search, CTA ---------- */
.odyseus-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

#masthead .header-navigation .header-menu-container ul li.menu-item > a,
#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a {
	color: #F5F0E6;
	font-weight: 600;
	letter-spacing: 0.01em;
}
#masthead .header-navigation .header-menu-container ul li.menu-item > a:hover,
#masthead .header-navigation .header-menu-container ul li.menu-item > a:focus,
#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: #C65D3B;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.odyseus-hsearch {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.odyseus-hsearch__icon {
	display: block;
	flex: none;
}
.odyseus-hsearch__toggle {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 40px;
	padding: 0.45rem 0.85rem;
	border: 1px solid rgba(245, 240, 230, 0.55);
	border-radius: 999px;
	background: rgba(245, 240, 230, 0.1);
	color: #F5F0E6;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.odyseus-hsearch__toggle:hover,
.odyseus-hsearch__toggle:focus-visible {
	background: rgba(245, 240, 230, 0.2);
	color: #fff;
	outline: none;
}
.odyseus-hsearch__field {
	display: none;
	align-items: center;
	position: relative;
}
.odyseus-hsearch.is-open .odyseus-hsearch__toggle {
	display: none;
}
.odyseus-hsearch.is-open .odyseus-hsearch__field {
	display: inline-flex;
}
.odyseus-hsearch__input,
.odyseus-hsearch input[type="search"].odyseus-hsearch__input {
	width: 260px;
	max-width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 2.6rem 0 1rem;
	border: 1px solid #F5F0E6;
	border-radius: 999px;
	background: #F5F0E6;
	color: #1a2e22;
	font: inherit;
	font-size: 0.95rem;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.odyseus-hsearch__input::placeholder {
	color: #5a6e62;
	opacity: 1;
}
.odyseus-hsearch__input:focus {
	outline: 2px solid #C65D3B;
	outline-offset: 1px;
	border-color: #C65D3B;
}
.odyseus-hsearch__submit {
	appearance: none;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: #2D5A3D;
	color: #F5F0E6;
	cursor: pointer;
	box-shadow: none;
}
.odyseus-hsearch__submit:hover,
.odyseus-hsearch__submit:focus-visible {
	background: #C65D3B;
	color: #fff;
}

/* Wide desktop: field always visible */
@media (min-width: 1200px) {
	.odyseus-hsearch .odyseus-hsearch__toggle {
		display: none;
	}
	.odyseus-hsearch .odyseus-hsearch__field {
		display: inline-flex;
	}
}

/* Phone/tablet: icon only; opened field drops under the header full width */
@media (max-width: 1024px) {
	.odyseus-hsearch__toggle {
		width: 40px;
		padding: 0;
		justify-content: center;
	}
	.odyseus-hsearch__toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.odyseus-hsearch.is-open .odyseus-hsearch__toggle {
		display: inline-flex;
		background: #F5F0E6;
		color: #2D5A3D;
	}
	.odyseus-hsearch.is-open .odyseus-hsearch__field {
		position: fixed;
		left: 12px;
		right: 12px;
		top: calc(var(--ody-header-h, 64px) + var(--ody-adminbar-h, 0px) + 8px);
		z-index: 100000;
		display: flex;
		filter: drop-shadow(0 6px 18px rgba(26, 46, 34, 0.28));
	}
	.odyseus-hsearch.is-open .odyseus-hsearch__input {
		width: 100%;
		height: 46px;
		font-size: 16px; /* no iOS zoom */
	}
}

.odyseus-header-cta,
a.odyseus-header-cta {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	background: #C65D3B;
	color: #fff !important;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	transition: background 0.15s ease, transform 0.15s ease;
}
.odyseus-header-cta:hover,
.odyseus-header-cta:focus-visible {
	background: #a94c2e;
	color: #fff !important;
	transform: translateY(-1px);
	outline: none;
}
@media (max-width: 480px) {
	.odyseus-header-actions {
		gap: 0.4rem;
	}
	.odyseus-header-cta {
		padding: 0.45rem 0.8rem;
		font-size: 0.8rem;
	}
}

/* 0.8.3 — mobile hamburger: cream on dark-green header */
#mobile-header .mobile-toggle-open-container .menu-toggle-open,
#mobile-header .mobile-toggle-open-container .menu-toggle-open:focus,
.site-header .mobile-toggle-open-container .menu-toggle-open,
.site-header .mobile-toggle-open-container .menu-toggle-open:focus {
	color: #F5F0E6 !important;
	background: transparent !important;
}
#mobile-header .mobile-toggle-open-container .menu-toggle-open:hover,
#mobile-header .mobile-toggle-open-container .menu-toggle-open:focus-visible,
.site-header .mobile-toggle-open-container .menu-toggle-open:hover,
.site-header .mobile-toggle-open-container .menu-toggle-open:focus-visible {
	color: #fff !important;
}
.mobile-toggle-open-container .menu-toggle-open .menu-toggle-icon,
.mobile-toggle-open-container .menu-toggle-open .kadence-svg-iconset,
.mobile-toggle-open-container .menu-toggle-open .kadence-menu-svg {
	color: inherit !important;
	fill: currentColor !important;
}
.mobile-toggle-open-container .menu-toggle-open .kadence-menu-svg path {
	fill: currentColor !important;
}
.mobile-toggle-open-container .menu-toggle-open.menu-toggle-style-bordered {
	border-color: rgba(245, 240, 230, 0.6) !important;
}

/* ---------- 0.8.9 header time strip: „cestovný kalendár“ — tear-off calendar leaves on a dashed route ---------- */
.ody-tstrip {
	--ts-paper: #FFFDF8;
	--ts-paper-2: #F3EADA;
	--ts-ink: #1a2e22;
	--ts-muted: #5b6b60;
	--ts-green: #2D5A3D;
	--ts-tab: #10281C;
	--ts-terra: #C65D3B;
	--ts-cream: #F5F0E6;
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 10px 12px 6px 6px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1;
}
/* the route the leaves are pinned to */
.ody-tstrip__route {
	position: absolute;
	left: 18px;
	right: 18px;
	top: 55%;
	height: 0;
	border-top: 2px dashed rgba(245, 240, 230, 0.42);
	pointer-events: none;
	z-index: 0;
}
html body .ody-tstrip a.ody-tleaf {
	position: relative;
	z-index: 1;
	display: block !important;
	flex: none;
	width: 70px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--ts-ink) !important;
	text-decoration: none !important;
	transform: rotate(var(--tilt, 0deg));
	transform-origin: 50% 0;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
	filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.18)) drop-shadow(0 5px 7px rgba(0, 0, 0, 0.22));
	-webkit-tap-highlight-color: transparent;
}
.ody-tleaf__sheet {
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	border-radius: 5px 5px 2px 2px;
	background:
		repeating-linear-gradient(0deg, transparent 0 9px, rgba(27, 67, 50, 0.05) 9px 10px),
		linear-gradient(180deg, var(--ts-paper) 0%, var(--ts-paper-2) 100%);
	/* perforated tear-off bottom edge */
	-webkit-mask: radial-gradient(circle 2.6px at 50% 100%, transparent 96%, #000 100%) 0 0 / 7px 100% repeat-x;
	mask: radial-gradient(circle 2.6px at 50% 100%, transparent 96%, #000 100%) 0 0 / 7px 100% repeat-x;
	padding-bottom: 5px;
}
.ody-tleaf__tab {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 100%;
	box-sizing: border-box;
	padding: 7px 4px 4px;
	background: var(--ts-tab);
	color: var(--ts-cream);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}
/* binding rings */
.ody-tleaf__tab::before,
.ody-tleaf__tab::after {
	content: "";
	position: absolute;
	top: 2px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ts-paper);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
}
.ody-tleaf__tab::before { left: 6px; }
.ody-tleaf__tab::after { right: 6px; }
.ody-tleaf__pin { flex: none; display: block; color: #F2B8A2; }
.ody-tleaf__big {
	display: block;
	padding: 5px 2px 1px;
	font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ts-ink);
	white-space: nowrap;
}
.ody-tleaf--vikend .ody-tleaf__big,
.ody-tleaf--7dni .ody-tleaf__big { font-size: 16px; padding-top: 7px; padding-bottom: 2px; }
.ody-tleaf__small {
	display: block;
	padding: 0 2px;
	font-size: 9px;
	font-weight: 600;
	color: var(--ts-muted);
	white-space: nowrap;
}
/* count = little postmark stamp */
.ody-tleaf__count {
	position: absolute;
	top: -11px;
	right: -12px;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--ts-terra);
	border: 1.5px dashed rgba(255, 253, 248, 0.85);
	color: #fff;
	font-size: 9.5px;
	font-weight: 800;
	line-height: 16px;
	text-align: center;
	transform: rotate(10deg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
/* active = taped to the route, terracotta header, lifted & straight */
html body .ody-tstrip a.ody-tleaf.is-active {
	transform: translateY(-3px) rotate(0deg);
	filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2)) drop-shadow(0 9px 10px rgba(0, 0, 0, 0.3));
}
.ody-tleaf.is-active .ody-tleaf__tab { background: var(--ts-terra); }
.ody-tleaf.is-active .ody-tleaf__count { background: var(--ts-green); }
.ody-tleaf.is-active::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -6px;
	left: 50%;
	width: 34px;
	height: 11px;
	margin-left: -17px;
	background: repeating-linear-gradient(45deg, rgba(227, 176, 75, 0.85) 0 4px, rgba(240, 200, 120, 0.85) 4px 8px);
	transform: rotate(-4deg);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}
html body .ody-tstrip a.ody-tleaf:hover {
	transform: translateY(-4px) rotate(calc(var(--tilt, 0deg) * -1));
}
html body .ody-tstrip a.ody-tleaf.is-active:hover { transform: translateY(-5px) rotate(0deg); }
html body .ody-tstrip a.ody-tleaf:focus { outline: none; }
html body .ody-tstrip a.ody-tleaf:focus-visible {
	outline: 2px solid var(--ts-cream) !important;
	outline-offset: 3px;
	border-radius: 6px;
}
.ody-tleaf:not(.is-active):hover .ody-tleaf__tab { background: #8A3F27; }

/* inside Kadence primary menu: the li is just a holder */
#masthead .header-navigation li.menu-item-ody-tstrip,
.header-navigation li.menu-item-ody-tstrip {
	display: flex;
	align-items: center;
	padding: 0 !important;
	margin: 0 6px 0 0 !important;
}
#masthead .header-navigation li.menu-item-ody-tstrip::after,
#masthead .header-navigation li.menu-item-ody-tstrip::before { display: none !important; }

/* mobile drawer: 2×2 calendar grid, bigger leaves, no route */
#mobile-drawer li.menu-item-ody-tstrip,
.mobile-navigation li.menu-item-ody-tstrip {
	padding: 10px 0 18px !important;
	border: 0 !important;
	list-style: none;
}
#mobile-drawer .ody-tstrip,
.mobile-navigation .ody-tstrip {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 14px;
	padding: 10px 4px 2px;
	max-width: 260px;
}
#mobile-drawer .ody-tstrip__route,
.mobile-navigation .ody-tstrip__route { display: none; }
html body #mobile-drawer .ody-tstrip a.ody-tleaf,
html body .mobile-navigation .ody-tstrip a.ody-tleaf {
	width: auto;
	min-height: 0;
}
#mobile-drawer .ody-tleaf__tab,
.mobile-navigation .ody-tleaf__tab { font-size: 11px; padding: 8px 4px 6px; }
#mobile-drawer .ody-tleaf__big,
.mobile-navigation .ody-tleaf__big { font-size: 26px; padding-top: 8px; }
#mobile-drawer .ody-tleaf--vikend .ody-tleaf__big,
#mobile-drawer .ody-tleaf--7dni .ody-tleaf__big,
.mobile-navigation .ody-tleaf--vikend .ody-tleaf__big,
.mobile-navigation .ody-tleaf--7dni .ody-tleaf__big { font-size: 22px; padding-top: 10px; }
#mobile-drawer .ody-tleaf__small,
.mobile-navigation .ody-tleaf__small { font-size: 11px; padding-bottom: 4px; }
#mobile-drawer .ody-tleaf__count,
.mobile-navigation .ody-tleaf__count { min-width: 23px; height: 23px; line-height: 20px; font-size: 11px; }

/* shortcode placed elsewhere on small screens: horizontal scroll strip, never overflows */
@media (max-width: 1024px) {
	.ody-tstrip--shortcode {
		max-width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
		padding-top: 10px;
	}
	.ody-tstrip--shortcode::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html body .ody-tstrip a.ody-tleaf,
	.ody-tleaf__tab { transition: none !important; }
	html body .ody-tstrip a.ody-tleaf:hover { transform: rotate(var(--tilt, 0deg)); }
	html body .ody-tstrip a.ody-tleaf.is-active,
	html body .ody-tstrip a.ody-tleaf.is-active:hover { transform: translateY(-3px); }
}
#mobile-drawer .ody-tstrip,
.mobile-navigation .ody-tstrip { --ts-tab: #2D5A3D; }
