/* Above-the-fold portal menu hub: nav + breadcrumb + title + first tile row ({@see critical-home.css} nav tokens). */
:root {
	--red: #da251d;
	--red-dark: #b81e18;
	--dark: #333;
	--text: #555;
	--bg: #fafaf7;
	--white: #fff;
	--font: "PT Sans", Arial, sans-serif;
	--portal-nav-height: calc(70.98px + 1.2rem);
}

html {
	overflow-x: hidden;
}

body {
	font-family: var(--font);
	color: var(--dark);
	background-color: var(--bg);
	margin: 0;
	overflow-x: hidden;
}

.navbar {
	padding: 0.6rem 0;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.hp-logo {
	height: 70.98px;
	width: auto;
	max-width: 100%;
}

.portal-breadcrumb {
	margin-top: 20px;
}

.portal-menu-page-heading {
	margin-top: 20px;
}

.hp-events-title {
	font-family: var(--font);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	color: #333;
	margin-bottom: 0;
}

.hp-category-card {
	display: block;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
}

.hp-category-card::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 0;
	background-color: #e30613;
	z-index: 2;
	pointer-events: none;
	transition: height 0.35s ease;
	border-radius: 0 0 12px 12px;
}

.hp-category-card > .hp-tile-picture {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	overflow: hidden;
}

.hp-category-card > .hp-tile-picture .hp-tile-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hp-category-card > .hp-tile-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Ubytování / výlety – stejná media vrstva jako hub kachle (defer style.css doplní zbytek) */
.accommodation-tile-grid > .accommodation-tile-col {
	min-width: 0;
}

.accommodation-tile-col > .accommodation-tile {
	width: 100%;
	min-width: 0;
}

.accommodation-tile__media > .hp-tile-picture {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	overflow: hidden;
	width: 100%;
	height: 100%;
}

.accommodation-tile__media {
	position: relative;
	width: 100%;
}

.hp-tile-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	display: block;
}

.hp-tile-media .hp-tile-picture {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	overflow: hidden;
}

.hp-tile-media .hp-tile-picture .hp-tile-photo,
.hp-tile-media > .hp-tile-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: none;
}

.accommodation-tile__media > .hp-tile-picture .hp-tile-photo,
.accommodation-tile__media > .hp-tile-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hp-card-lg {
	height: 280px;
}

.hp-card-label {
	position: absolute;
	z-index: 3;
	font-family: var(--font);
	font-weight: 700;
	color: var(--white);
}

.hp-card-label--plain {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	bottom: 1rem;
	left: 1rem;
	right: 0.875rem;
	font-size: clamp(1.05rem, 1.35vw, 1.375rem);
	line-height: 1.25;
	letter-spacing: 0;
	color: #ffffff;
}

@media (max-width: 991.98px) {
	:root {
		--portal-nav-height: calc(58px + 2.4rem + 3.25rem);
	}

	.navbar.portal-nav .hp-logo {
		height: 58px;
	}
}

/* Detail pages – first paint (hero + breadcrumbs), synced from style.css */
.route-detail-hero {
	width: 100%;
	max-height: 420px;
	overflow: hidden;
	background: var(--dark);
}

.route-detail-hero__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}

.portal-detail__head {
	padding-top: calc(2.75rem + 20px);
}

.route-detail-hero + .hp-section,
.facility-detail--has-hero.hp-section {
	padding-top: 0 !important;
}

.portal-detail__head--has-hero {
	padding-top: 0;
}

.portal-detail__breadcrumb.portal-breadcrumb {
	margin-top: 15px;
	margin-bottom: 0;
}

.portal-breadcrumb__link {
	color: var(--red);
	text-decoration: underline;
	text-underline-offset: 2px;
}
