/**
 * Reuses the 'Archivo' heading font already loaded for the Destination
 * Cards / Surfreise CTA widgets (see functions.php), so this widget
 * doesn't request the font a third time.
 */
:root {
	--wrfc-heading-font: 'Archivo', var(--font-family, 'Source Sans 3'), Arial, Helvetica, sans-serif;
	--wrfc-body-font: var(--font-family, 'Source Sans 3'), Arial, Helvetica, sans-serif;
	--wrfc-bg: #fefcf5;
	--wrfc-text-primary: #171717;
	--wrfc-text-secondary: #525252;
	--wrfc-feature-text: #404040;
	--wrfc-badge-bg: #fdefce;
	--wrfc-badge-border: #fdbf53;
	--wrfc-badge-text: #9c6006;
	--wrfc-badge-icon: #183153;
	--wrfc-radius: 16px;
}

/**
 * max-width + auto margins caps how wide this widget can grow on
 * ultra-wide monitors — whatever section/column it's placed in (often
 * a stretched/full-width one, as on the homepage) can be far wider
 * than is comfortable for a two-column photo+text layout, and it
 * would otherwise just keep stretching edge to edge with it. Same fix
 * as Header Slider (assets/css/header-slider.css) and Destination
 * Hero (assets/css/destination-hero.css).
 */
.wrfc-featured {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 64px;
	width: 100%;
	max-width: 1800px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	background-color: var(--wrfc-bg);
	border-radius: var(--wrfc-radius);
	overflow: hidden;
}

/* Text right of the photo by default; the "Bildposition" style control
 * flips the row direction to put the photo on the right instead. */
.wrfc-featured--image-right {
	flex-direction: row-reverse;
}

.wrfc-featured__media {
	flex: 1 1 46%;
	min-width: 280px;
	padding: 64px 0 64px 64px;
}

.wrfc-featured--image-right .wrfc-featured__media {
	padding: 64px 64px 64px 0;
}

.wrfc-featured__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	border-radius: var(--wrfc-radius);
}

.wrfc-featured__content {
	flex: 1 1 54%;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	padding: 64px 64px 64px 0;
}

.wrfc-featured--image-right .wrfc-featured__content {
	padding: 64px 0 64px 64px;
}

.wrfc-featured__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	width: 100%;
}

.wrfc-featured__badge-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

.wrfc-featured__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 26px;
	padding: 2px 8px 2px 6px;
	background: var(--wrfc-badge-bg);
	border: 1px solid var(--wrfc-badge-border);
	border-radius: 16px;
}

.wrfc-featured__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	/* Figma uses a distinct navy ("Gravy/FA6 Navy") for the badge icon —
	   it's not the same gold as the badge text next to it. */
	color: var(--wrfc-badge-icon);
	font-size: 14px;
}

.wrfc-featured__badge-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.wrfc-featured__badge-text {
	font: 500 14px/20px var(--wrfc-body-font);
	color: var(--wrfc-badge-text);
	white-space: nowrap;
}

.wrfc-featured__title {
	margin: 0;
	font: 700 36px/44px var(--wrfc-heading-font);
	letter-spacing: -0.02em;
	color: var(--wrfc-text-primary);
}

.wrfc-featured__desc-features {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
}

/**
 * Widget_Base::parse_text_editor() does not wrap plain (un-autop'd)
 * content in <p> tags, which is what a WYSIWYG control's raw default
 * value is until an editor actually saves through TinyMCE — so the
 * typography must live on the wrapper itself, not a `p` descendant,
 * or it silently falls back to the theme's global text styles.
 */
.wrfc-featured__desc {
	width: 100%;
	font: 400 18px/28px var(--wrfc-body-font);
	color: var(--wrfc-text-secondary);
}

.wrfc-featured__desc p {
	margin: 0;
}

.wrfc-featured__desc strong,
.wrfc-featured__desc b {
	font-weight: 600;
}

.wrfc-featured__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(160px, 1fr));
	gap: 12px 40px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wrfc-featured__feature {
	/* The theme's global `body ul li, body ol li` rule (style.min.css)
	   sets a 0.5rem (8px) vertical margin on every <li> with nothing in
	   this file to override it — stacking on top of the 12px grid `gap`
	   on .wrfc-featured__features and inflating the space between rows. */
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wrfc-featured__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	color: var(--wrfc-text-secondary);
	font-size: 20px;
}

.wrfc-featured__feature-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.wrfc-featured__feature-text {
	font: 600 18px/24px var(--wrfc-body-font);
	color: var(--wrfc-feature-text);
}

.wrfc-featured__button {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	min-width: 360px;
	padding: 12px 18px;
	background-image: linear-gradient(96deg, #fadf9e 0%, #fdbf53 100%);
	border-radius: 8px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	font: 700 18px/28px var(--wrfc-body-font);
	color: var(--wrfc-text-primary);
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}

.wrfc-featured__button:hover {
	color: var(--wrfc-text-primary);
	filter: brightness(0.97);
}

@media (max-width: 900px) {
	.wrfc-featured,
	.wrfc-featured--image-right {
		flex-direction: column;
		gap: 40px;
	}

	.wrfc-featured__media,
	.wrfc-featured--image-right .wrfc-featured__media {
		padding: 40px 40px 0 40px;
	}

	.wrfc-featured__media img {
		min-height: 280px;
	}

	.wrfc-featured__content,
	.wrfc-featured--image-right .wrfc-featured__content {
		padding: 0 40px 40px 40px;
	}
}

@media (max-width: 640px) {
	.wrfc-featured__media,
	.wrfc-featured--image-right .wrfc-featured__media {
		padding: 24px 24px 0 24px;
	}

	.wrfc-featured__content,
	.wrfc-featured--image-right .wrfc-featured__content {
		padding: 0 24px 24px 24px;
		gap: 24px;
	}

	.wrfc-featured__title {
		font-size: 28px;
		line-height: 34px;
	}

	.wrfc-featured__features {
		grid-template-columns: 1fr;
	}

	.wrfc-featured__button {
		min-width: 100%;
	}
}
