/*
 * 29 Roads homepage and overview blocks (shortcodes from includes/home.php).
 * House style "Licht & simpel": white base, colour in rounded blocks (24px), pill buttons.
 */

.fdv-h-stats {
	margin: 20px 0 0;
	font-size: 15px;
	color: #5E5B57;
	text-align: center;
}

.fdv-h-count {
	margin: 0;
	text-align: center;
}
.fdv-h-count a,
.fdv-h-count .fdv-h-count-in {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 16px 0 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: #2D2C2B;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.fdv-h-count a:hover,
.fdv-h-count a:focus-visible {
	background: #FFFFFF;
	color: #2D2C2B;
}
.fdv-h-count .fdv-ic {
	flex: none;
	color: #0061EF;
}

/* Trip types */
.fdv-h-types {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.fdv-h-types .fdv-h-type {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-height: 200px;
	padding: 28px;
	box-sizing: border-box;
	border-radius: 24px;
	background: var(--fdv-tile, #F9F4F2);
	color: #2D2C2B;
	text-decoration: none;
	transition: transform .15s ease;
}
.fdv-h-types a.fdv-h-type:hover,
.fdv-h-types a.fdv-h-type:focus-visible {
	color: #2D2C2B;
	transform: translateY(-3px);
}
.fdv-h-types .fdv-h-type.is-light,
.fdv-h-types a.fdv-h-type.is-light:hover,
.fdv-h-types a.fdv-h-type.is-light:focus-visible {
	color: #FFFFFF;
}
.fdv-h-type-ic {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: #FFFFFF;
	color: #2D2C2B;
}
.fdv-h-type-txt {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
}
.fdv-h-type .fdv-h-type-txt strong {
	color: inherit;
	font-size: 22px;
	line-height: 1.2;
}
.fdv-h-type-txt span {
	font-size: 15px;
	line-height: 1.4;
}
.fdv-h-type.is-soon .fdv-h-type-txt span {
	font-weight: 600;
}

/* Route cards */
.fdv-h-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 16px;
}
.fdv-h-pills .fdv-h-pill {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border: 1.5px solid #E2DED9;
	border-radius: 999px;
	background: #FFFFFF;
	color: #2D2C2B;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}
.fdv-h-pills .fdv-h-pill:hover {
	border-color: #2D2C2B;
	background: #FFFFFF;
	color: #2D2C2B;
}
.fdv-h-pills .fdv-h-pill[aria-pressed="true"],
.fdv-h-pills .fdv-h-pill[aria-pressed="true"]:hover {
	border-color: #2D2C2B;
	background: #2D2C2B;
	color: #FFFFFF;
}
.fdv-h-pills + .fdv-h-cards {
	margin-top: 24px;
}
.fdv-h-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.fdv-h-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1.5px solid #E2DED9;
	border-radius: 24px;
	background: #FFFFFF;
	transition: border-color .15s ease;
}
.fdv-h-card[hidden] {
	display: none;
}
.fdv-h-card:hover {
	border-color: #2D2C2B;
}
.fdv-h-card-photo {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #F9F4F2;
}
.fdv-h-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fdv-h-card-photo figcaption {
	display: none;
}
.fdv-h-card-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 24px 26px;
}
.fdv-h-card-body .fdv-h-card-where {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #02873E;
}
.fdv-h-card-body .fdv-h-card-title {
	margin: 0;
	font-size: 23px;
	line-height: 1.2;
}
.fdv-h-card .fdv-h-card-title a,
.fdv-h-card .fdv-h-card-title a:hover {
	color: #2D2C2B;
	text-decoration: none;
}
.fdv-h-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.fdv-h-card-title a:focus-visible {
	outline: none;
}
.fdv-h-card:focus-within {
	outline: 2px solid #0061EF;
	outline-offset: 2px;
}
.fdv-h-card .fdv-h-card-body .fdv-h-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	margin: 0;
	padding: 0 !important;
	list-style: none;
	font-size: 14px;
	color: #5E5B57;
}
.fdv-h-card-body .fdv-h-line li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.fdv-h-line li::after {
	content: "";
	order: -1;
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #0061EF;
}
.fdv-h-line li + li::before {
	content: "";
	order: -2;
	flex: none;
	width: 18px;
	height: 2px;
	margin-left: 6px;
	background: #E2DED9;
}
.fdv-h-card .fdv-h-card-body .fdv-h-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 2px 0 0;
	padding: 0 !important;
	list-style: none;
}
.fdv-h-card-body .fdv-h-facts li {
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: #F9F4F2;
	font-size: 14px;
	color: #2D2C2B;
}
.fdv-h-none {
	margin: 24px 0 0;
	text-align: center;
	color: #5E5B57;
}
.fdv-h-none[hidden] {
	display: none;
}
.fdv-h-none .fdv-h-reset {
	padding: 0;
	border: 0;
	background: none;
	color: #0061EF;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.fdv-h-none .fdv-h-reset:hover {
	background: none;
	color: #004BB8;
}
.fdv-h-more {
	margin: 40px 0 0;
	text-align: center;
}
.fdv-h-more .fdv-h-btn.is-ghost {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 24px;
	border: 1.5px solid #E2DED9;
	border-radius: 999px;
	color: #2D2C2B;
	font-weight: 600;
	text-decoration: none;
}
.fdv-h-more .fdv-h-btn.is-ghost:hover {
	border-color: #2D2C2B;
	color: #2D2C2B;
}

/* Countries */
.fdv-h-countries {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.fdv-h-countries .fdv-h-country {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 24px;
	background: #F9F4F2;
	color: #2D2C2B;
	text-decoration: none;
}
.fdv-h-countries .fdv-h-country:hover {
	color: #2D2C2B;
}
.fdv-h-country-photo {
	margin: 0;
	height: 150px;
	overflow: hidden;
}
.fdv-h-country-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.fdv-h-country:hover .fdv-h-country-photo img {
	transform: scale(1.04);
}
.fdv-h-country-photo figcaption {
	display: none;
}
.fdv-h-country-txt {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px 18px;
}
.fdv-h-country-txt strong {
	font-size: 18px;
}
.fdv-h-country-txt span {
	font-size: 14px;
	color: #5E5B57;
}
.fdv-h-soon {
	margin: 20px 0 0;
	text-align: center;
	font-size: 16px;
	color: #5E5B57;
}

@media (max-width: 960px) {
	.fdv-h-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 720px) {
	.fdv-h-types {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.fdv-h-type {
		min-height: 170px;
		padding: 20px;
		gap: 16px;
	}
	.fdv-h-type-ic {
		width: 48px;
		height: 48px;
	}
	.fdv-h-type-txt strong {
		font-size: 18px;
	}
	.fdv-h-type-txt span {
		font-size: 14px;
	}
	.fdv-h-cards {
		grid-template-columns: minmax(0, 1fr);
	}
	.fdv-h-pills {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		margin-left: -16px;
		margin-right: -16px;
		padding: 0 16px 4px;
		scrollbar-width: none;
	}
	.fdv-h-pills::-webkit-scrollbar {
		display: none;
	}
	.fdv-h-pills .fdv-h-pill {
		flex: none;
	}
	.fdv-h-countries {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.fdv-h-country-photo {
		height: 110px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.fdv-h-type,
	.fdv-h-country-photo img {
		transition: none;
	}
}
