/**
 * Surfcamp Cards widget styles.
 *
 * Figma reference (spacing / colors / typography):
 * https://www.figma.com/design/UFbyQSXqjJ3fkYXo3ORgO7/Wellenreiten-2026-Handoff-Ext--Copy-?node-id=70-13569&t=ZKZMGRFXLDgvJwie-4
 *
 * Colors reuse the theme's existing tokens (see assets/css/styles.css
 * :root --color-wr-main / --color-text-primary). 'Archivo' (Figma's
 * heading font) is not enqueued anywhere else in the theme, so it is
 * loaded as a dependency of this stylesheet; body copy uses the same
 * 'Source Sans 3' stack already declared by the theme's --font-family.
 */

.wrsc-section {
	--wrsc-heading-font: 'Archivo', var(--font-family, 'Source Sans 3'), Arial, Helvetica, sans-serif;
	--wrsc-body-font: var(--font-family, 'Source Sans 3'), Arial, Helvetica, sans-serif;
	--wrsc-border: rgba(0, 0, 0, .1);
	--wrsc-radius: 16px;
	--wrsc-text: var(--color-text-primary, #171717);
	--wrsc-muted: #525252;
	--wrsc-country: #9c6006;
	--wrsc-tag-border: #f5f5f5;
	--wrsc-price: var(--color-wr-main, #0F4C81);
	--wrsc-kicker-bg: #fdefce;
	--wrsc-kicker-border: #fdbf53;
	--wrsc-kicker-icon: #183153;
	--wrsc-button-border: #d4d4d4;
}

.wrsc-wrap {
	width: min(1400px, 100%);
	margin: 0 auto;
}

.wrsc-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	text-align: center;
	margin-bottom: 48px;
}

/**
 * "Ausrichtung Kopfbereich" style control (header_align): Figma keeps
 * this header centered, but a Länderseite's surrounding sections
 * (Content Rows, Jump Links, Icon Feature Cards' header itself stays
 * centered though) are left-aligned, so editors can opt into matching
 * that instead. `.wrsc-header--left` lands on Elementor's own widget
 * wrapper via the control's `prefix_class`, an ancestor of `.wrsc-header`
 * — same pattern as Featured Camp's `image_position` control.
 */
.wrsc-header--left .wrsc-header {
	align-items: flex-start;
	text-align: left;
}

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

.wrsc-kicker__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-size: 14px;
	color: var(--wrsc-kicker-icon);
}

/* Elementor renders this as inline <svg>, which fills the 20px badge
   box by default instead of sitting as a smaller 14px glyph inside it. */
.wrsc-kicker__icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.wrsc-kicker__text {
	font: 500 14px/20px var(--wrsc-body-font);
	color: var(--wrsc-country);
	white-space: nowrap;
	text-transform: uppercase;
}

.wrsc-title {
	margin: 0;
	width: 100%;
	font: 700 36px/44px var(--wrsc-heading-font);
	letter-spacing: -0.72px;
	color: var(--wrsc-text);
}

.wrsc-desc {
	margin: 0;
	width: 100%;
	font: 400 18px/28px var(--wrsc-body-font);
	color: var(--wrsc-muted);
}

.wrsc-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
	width: 100%;
}

/**
 * Named .wrsc-button, not .wrsc-cta — the Surfreise CTA widget
 * (assets/css/surfreise-cta.css) uses .wrsc-cta as its own root class
 * (its "wrsc" also abbreviates "Wellenreiten SurfReise Cta"), and the
 * two would collide/clash if both widgets rendered a CTA on the same
 * page.
 */
.wrsc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--wrsc-button-border);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	padding: 12px 24px;
	min-height: 56px;
	font: 600 18px/24px var(--wrsc-body-font);
	color: var(--wrsc-muted);
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}

.wrsc-button:hover,
.wrsc-button:focus-visible {
	border-color: var(--wrsc-price);
	color: var(--wrsc-price);
}

.wrsc-cards {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(4, 1fr);
	align-items: stretch;
	width: 100%;
}

.wrsc-cards--cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.wrsc-cards--cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
	.wrsc-cards--cols-3,
	.wrsc-cards--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.wrsc-cards {
		grid-template-columns: 1fr;
	}
}

.wrsc-card {
	background: #fff;
	color: var(--wrsc-text);
	border: 1px solid var(--wrsc-border);
	border-radius: var(--wrsc-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.wrsc-card__media {
	position: relative;
	display: block;
	aspect-ratio: 384 / 256;
	border-bottom: .5px solid var(--wrsc-border);
	overflow: hidden;
}

.wrsc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wrsc-card__body {
	padding: 20px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.wrsc-card__content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.wrsc-card__heading-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wrsc-card__badge-title {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.wrsc-card__desc-tags {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wrsc-card__country {
	margin: 0;
	font: 500 14px/20px var(--wrsc-body-font);
	text-transform: uppercase;
	color: var(--wrsc-country);
}

.wrsc-card__title {
	margin: 0;
	font: 700 24px/32px var(--wrsc-heading-font);
	letter-spacing: -0.48px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wrsc-card__title a {
	color: inherit;
	text-decoration: none;
}

.wrsc-card__title a:hover {
	text-decoration: underline;
}

.wrsc-card__desc {
	margin: 0;
	font: 400 16px/24px var(--wrsc-body-font);
	color: var(--wrsc-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wrsc-card__tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.wrsc-card__tags li {
	margin: 0;
	font: 500 14px/20px var(--wrsc-body-font);
	color: var(--wrsc-text);
	border: 1px solid var(--wrsc-tag-border);
	border-radius: 16px;
	padding: 2px 8px;
}

.wrsc-card__price {
	margin: auto 0 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--wrsc-price);
}

.wrsc-card__price-value {
	font: 700 24px/32px var(--wrsc-heading-font);
	letter-spacing: -0.48px;
}

.wrsc-card__price-meta {
	font: 400 18px/28px var(--wrsc-body-font);
}
