/* ==========================================================================
   Svylety.cz – výpisy (kraje, okresy, rubriky, štítky), detail výletu
   a tematické výběry na homepage. Navazuje na front-page.css (proměnné .svh).
   ========================================================================== */

/* ---------- Společné ---------- */

.svh-section--tight {
	padding-block: 28px;
}

.svh-h2--sm {
	font-size: clamp(24px, 2.4vw, 32px);
}

.svh-h3 {
	margin-bottom: 14px !important;
	font-size: 22px;
	line-height: 1.2;
}

.svh-chips--wrap {
	flex-wrap: wrap;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
	overflow: visible;
}

.svh-btn--ghost,
.svh a.svh-btn--ghost {
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--svh-forest);
	color: var(--svh-forest) !important;
}

.svh-btn--ghost:hover {
	background: var(--svh-forest-soft);
}

/* ---------- Mřížka karet ---------- */

.svh-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.svh-gcard > a {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	color: var(--svh-ink) !important;
	text-decoration: none !important;
}

.svh-gcard__img {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 14px;
	background: var(--svh-ph);
}

.svh-gcard__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.svh-gcard > a:hover .svh-gcard__img img {
	transform: scale(1.03);
}

.svh-gcard__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.svh-gcard__title {
	font-size: 20px;
	line-height: 1.25;
}

.svh-gcard > a:hover .svh-gcard__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.svh-gcard__excerpt {
	color: var(--svh-muted);
	font-size: 16px;
	line-height: 1.5;
}

@media (min-width: 600px) {
	.svh-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 24px;
	}
}

@media (min-width: 1024px) {
	.svh-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 36px 28px;
	}
}

/* ---------- Hlavička výpisu ---------- */

.svh-ahero {
	padding-block: 28px 20px;
	background: var(--svh-forest-soft);
}

.svh-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
	color: var(--svh-muted-2);
	font-size: 15px;
}

.svh-crumbs a {
	color: var(--svh-forest) !important;
}

.svh-ahero__h1 {
	max-width: 22em;
}

.svh-ahero__lead,
.svh-ahero__desc {
	max-width: 46em;
	margin-top: 14px !important;
	color: #3E463C;
}

.svh-ahero__desc p + p {
	margin-top: 10px;
}

.svh-ahero__count {
	margin-top: 14px !important;
	color: var(--svh-muted-2);
	font-size: 15px;
	font-weight: 700;
}

.svh-ahero__filter {
	margin-top: 18px !important;
}

@media (min-width: 1024px) {
	.svh-ahero {
		padding-block: 48px 36px;
	}
}

/* ---------- Okresy ---------- */

.svh-okresy {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.svh-okresy .svh-kraj {
	justify-content: space-between;
	gap: 8px;
	box-shadow: inset 0 0 0 1px var(--svh-line);
}

.svh-okres__count {
	color: var(--svh-muted-2);
	font-size: 14px;
	font-weight: 700;
}

@media (min-width: 768px) {
	.svh-okresy {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.svh-okresy {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.svh-cats--small .svh-cat {
	min-height: 96px;
	padding: 14px 16px;
}

.svh-cats--small .svh-cat__name {
	font-size: 19px;
}

/* ---------- Stránkování a prázdný výpis ---------- */

.svh .svh-pagination,
.svh .navigation.pagination {
	margin-top: 40px;
}

.svh .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.svh .nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	background: var(--svh-white);
	box-shadow: inset 0 0 0 1px var(--svh-line);
	color: var(--svh-ink) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.svh .nav-links .page-numbers.current {
	background: var(--svh-forest);
	box-shadow: none;
	color: #fff !important;
}

.svh .nav-links a.page-numbers:hover {
	box-shadow: inset 0 0 0 2px var(--svh-forest);
}

.svh-empty {
	padding: 28px;
	border-radius: 16px;
	background: var(--svh-white);
	text-align: center;
}

.svh-empty p + p {
	margin-top: 14px;
}

/* ---------- Detail výletu (vloženo do obsahu článku) ---------- */

.svh.svh-embed {
	padding: 0;
	background: transparent;
	font-size: inherit;
	overflow-x: visible;
}

.svh-info {
	margin: 0 0 28px !important;
	padding: 20px 22px;
	border-radius: 16px;
	background: var(--svh-forest-soft);
}

.svh-info__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
	margin: 0 !important;
}

.svh.svh-info .svh-info__list dt {
	margin: 0;
	color: var(--svh-muted-2);
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.svh.svh-info .svh-info__list dd {
	margin: 2px 0 0 !important;
	font-size: 17px !important;
	font-weight: 600;
	line-height: 1.35 !important;
}

.svh-info__flags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px !important;
}

.svh.svh-info .svh-info__flags li {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--svh-white);
	font-size: 14px !important;
	font-weight: 700;
}

.svh-info__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.svh-info__actions .svh-btn {
	text-decoration: none !important;
}

@media (min-width: 768px) {
	.svh-info__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.svh-related {
	margin-top: 48px !important;
	padding-top: 32px !important;
	border-top: 1px solid var(--svh-line);
}

.svh-related section + section {
	margin-top: 40px;
}

.svh-related .svh-head {
	margin-bottom: 18px;
}

.svh-related h2,
.svh-related h3 {
	margin: 0 !important;
}

.svh-related ul,
.svh-info ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.svh-related li,
.svh-info li {
	margin: 0 !important;
}

.svh-related li::before,
.svh-info li::before {
	content: none !important;
}

/* V obsahu článku (užší sloupec se sidebarem) stačí 2 karty vedle sebe. */
@media (min-width: 600px) {
	.svh-grid--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.svh-grid--compact {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}

	.svh-grid--compact .svh-gcard__title {
		font-size: 18px;
	}

	.svh-grid--compact .svh-gcard__excerpt {
		display: none;
	}
}

/* ---------- Stránky „Akce dnes“ a „Tento víkend“ ---------- */

.svh-special__h2 {
	margin-bottom: 16px !important;
}

.svh-tip--wide {
	display: block;
	height: 300px;
	margin-top: 0;
}

@media (min-width: 768px) {
	.svh-tip--wide {
		height: 420px;
	}
}

.svh-callout {
	display: grid;
	gap: 18px;
	padding: 24px;
	border-radius: 18px;
	background: var(--svh-forest);
	color: #fff;
}

.svh-callout .svh-h2,
.svh-callout p {
	color: #fff;
}

.svh-callout p {
	margin-top: 8px !important;
	opacity: 0.9;
}

.svh-callout__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.svh-callout .svh-btn {
	background: #fff;
	color: var(--svh-forest) !important;
}

.svh-callout .svh-btn--ghost {
	background: transparent;
	box-shadow: inset 0 0 0 2px #fff;
	color: #fff !important;
}

@media (min-width: 1024px) {
	.svh-callout {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		align-items: center;
		padding: 36px 40px;
	}

	.svh-callout__actions {
		justify-content: flex-end;
	}
}

.svh-special .svh-kzn {
	margin-top: 0;
}
