/**
 * Accommodation Showcase widget styles.
 *
 * Figma reference:
 * https://www.figma.com/design/UFbyQSXqjJ3fkYXo3ORgO7/Wellenreiten-2026-Handoff-Ext--Copy-?node-id=70-13861
 *
 * 'Archivo' (Figma's heading font) is not enqueued anywhere else in the
 * theme, so it is loaded as a dependency of this stylesheet (see
 * functions.php); body copy reuses the theme's --font-family stack.
 */
.wras-showcase {
	--wras-heading-font: 'Archivo', var(--font-family, 'Source Sans 3'), Arial, Helvetica, sans-serif;
	--wras-body-font: var(--font-family, 'Source Sans 3'), Arial, Helvetica, sans-serif;
	--wras-border: rgba(0, 0, 0, 0.1);
	--wras-text-primary: #171717;
	--wras-text-secondary: #404040;
	--wras-text-tertiary: #525252;
	--wras-text-muted: #6b7280;
	--wras-badge-text: #9c6006;
	--wras-brand: #0f4c81;
	--wras-brand-50: #ebf5f5;
	--wras-radius: 16px;

	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 64px;
}

.wras-showcase__content {
	flex: 1 1 320px;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.wras-showcase__intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wras-showcase__kicker {
	display: block;
	font: 600 18px/24px var(--wras-body-font);
	color: var(--wras-text-muted);
}

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

.wras-showcase__desc {
	margin: 0;
	font: 400 18px/28px var(--wras-body-font);
	color: var(--wras-text-tertiary);
}

.wras-showcase__options {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 0;
	max-width: 355px;
}

.wras-showcase__option {
	/* 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 24px flex `gap`
	   on .wras-showcase__options and inflating the space between rows. */
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.wras-showcase__option-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	background: var(--wras-brand-50);
	color: var(--wras-brand);
	font-size: 16px;
}

/**
 * Elementor renders these icons as inline <svg>, which stretches to
 * fill its wrapper's box size by default — font-size alone doesn't
 * constrain an SVG. Must size the <svg> itself explicitly to the
 * smaller glyph size Figma specifies (16px), not the larger 34px icon
 * box it sits inside.
 */
.wras-showcase__option-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.wras-showcase__option-text {
	font: 600 18px/24px var(--wras-body-font);
	color: var(--wras-text-secondary);
}

.wras-showcase__card-wrap {
	flex: 1 1 420px;
	max-width: 628px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/**
 * One `.wras-showcase__card` per Surfcamp (added via the "Surfcamps"
 * repeater) — the carousel below pages through *camps*, not photos of
 * a single camp, so only the active one is ever in flow. `display:none`
 * (rather than absolutely stacking every card) keeps each card's own
 * natural height — badge/title lengths vary per camp — instead of
 * requiring a fixed-height stack that could clip or leave gaps.
 */
.wras-showcase__card {
	display: none;
	background: #ffffff;
	border: 1px solid var(--wras-border);
	border-radius: var(--wras-radius);
	overflow: hidden;
}

.wras-showcase__card.is-active {
	display: block;
}

.wras-showcase__card-media {
	width: 100%;
	height: 343px;
	border-bottom: 0.5px solid var(--wras-border);
	background: #e5e7eb;
	overflow: hidden;
}

.wras-showcase__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wras-showcase__card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: 16px 24px 12px;
}

.wras-showcase__card-badge {
	display: block;
	font: 500 14px/20px var(--wras-body-font);
	text-transform: uppercase;
	color: var(--wras-badge-text);
}

.wras-showcase__card-title {
	margin: 0;
	font: 700 24px/32px var(--wras-heading-font);
	letter-spacing: -0.02em;
	color: var(--wras-text-primary);
}

.wras-showcase__card-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	font: 600 16px/24px var(--wras-body-font);
	color: var(--wras-brand);
	text-decoration: none;
}

.wras-showcase__card-button:hover {
	text-decoration: underline;
}

.wras-showcase__card-button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-size: 16px;
	line-height: 1;
	color: var(--wras-brand);
}

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

.wras-showcase__pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.wras-showcase__dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.6);
}

/**
 * Scoped as `.wras-showcase .wras-showcase__dot` / `.wras-showcase
 * .wras-showcase__nav-btn` (not just the bare class), same reasoning as
 * header-slider.css's `.wrhs-hero .wrhs-hero__nav`: these plain <button>
 * elements need to out-specify the site's global Elementor Kit button
 * reset (`.elementor-kit-<id> button`, specificity 0,1,1), which
 * otherwise overrides their size/padding/background with the kit's
 * default button styling — without this they render as full-size solid
 * kit-blue rectangles instead of small dots/circles.
 */
.wras-showcase .wras-showcase__dot {
	appearance: none;
	border: 0;
	padding: 0;
	width: 16px;
	height: 4px;
	border-radius: 9999px;
	background: var(--wras-brand-50);
	cursor: pointer;
}

.wras-showcase .wras-showcase__dot.is-active {
	background: var(--wras-brand);
}

.wras-showcase__nav {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

.wras-showcase .wras-showcase__nav-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 9999px;
	background: var(--wras-brand-50);
	color: var(--wras-brand);
	font-size: 16px;
}

.wras-showcase .wras-showcase__nav-btn:hover {
	background: var(--wras-brand);
	color: #ffffff;
}

/* Elementor Pro's Font Awesome Kit subset lacks the angle glyphs; set
   them from the bundled Font Awesome 6 Free font (as in
   destination-hero.css). */
.wras-showcase .wras-showcase__nav-btn .fa-angle-left::before {
	content: '\f104';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
}

.wras-showcase .wras-showcase__nav-btn .fa-angle-right::before {
	content: '\f105';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
}

@media (max-width: 900px) {
	.wras-showcase {
		gap: 40px;
	}
}

@media (max-width: 640px) {
	.wras-showcase__title {
		font-size: 28px;
		line-height: 34px;
	}

	.wras-showcase__card-media {
		height: 240px;
	}
}
