/*
 Theme Name:   Yadi Child
 Theme URI:    https://www.yadi.nl
 Description:  Yadi GeneratePress child theme
 Author:       Melvin Jansen
 Author URI:   https://www.yadi.nl
 Template:     generatepress
 Version:      0.1
*/

/* ==========================================================
   Wintersport Deals — Paste into Appearance → Customizer → Additional CSS
   Colors taken from the existing logo
   ========================================================== */
:root {
	--wsd-navy: #003761;      /* logo: "Wintersport" outline / skier  */
	--wsd-blue: #009fe3;      /* logo: sky blue (decorative, backgrounds) */
	--wsd-blue-dark: #0077b6; /* accessible link blue on white (≥ 4.5:1) */
	--wsd-green: #9dc31a;     /* logo: "Deals" — CTA background with navy text */
	--wsd-ice: #e8f5fd;       /* logo: light snow blue — section backgrounds */
	--wsd-text: #1c2b39;
	--wsd-radius: 12px;
}

/* ---------- Filter form ---------- */
.wsd-filter {
	background: #fff;
	border: 1px solid #d6e6f2;
	border-radius: var(--wsd-radius);
	box-shadow: 0 6px 24px rgba(0, 55, 97, .08);
	padding: 16px;
}
.wsd-filter__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}
.wsd-filter__field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--wsd-navy);
	margin-bottom: 4px;
}
.wsd-filter__field select {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #c3d6e4;
	border-radius: 8px;
	background-color: #fff;
	color: var(--wsd-text);
	font-size: 15px;
}
.wsd-filter__field select:focus {
	outline: 2px solid var(--wsd-blue);
	outline-offset: 1px;
}
.wsd-filter__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 14px;
}
.wsd-filter__submit {
	background: var(--wsd-green);
	color: var(--wsd-navy);
	font-weight: 700;
	border: 0;
	border-radius: 999px;
	padding: 12px 28px;
	cursor: pointer;
}
.wsd-filter__submit:hover,
.wsd-filter__submit:focus {
	background: #8bb00f;
	color: var(--wsd-navy);
}
.wsd-filter__reset {
	color: var(--wsd-blue-dark);
	font-size: 14px;
}
@media (min-width: 1025px) {
	.wsd-filter__fields { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 767px) {
	.wsd-filter__fields { grid-template-columns: 1fr 1fr; }
	.wsd-filter__submit { flex: 1; }
}
.wsd-is-loading .wsd-results {
	opacity: .45;
	pointer-events: none;
	transition: opacity .15s;
}

/* ---------- Deal card (class on GB container inside the loop) ---------- */
.wsd-card {
	background: #fff;
	border-radius: var(--wsd-radius);
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 55, 97, .08);
	display: flex;
	flex-direction: column;
}
.wsd-card__price {
	color: var(--wsd-navy);
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
}
.wsd-card__price-old {
	color: #6b7c8a;
	text-decoration: line-through;
	font-size: 15px;
}
.wsd-card__cta {
	background: var(--wsd-green);
	color: var(--wsd-navy);
	font-weight: 700;
	border-radius: 999px;
}
.wsd-badge {
	display: inline-block;
	background: var(--wsd-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	padding: 4px 10px;
}
.wsd-badge--best { background: var(--wsd-green); color: var(--wsd-navy); }
.wsd-badge--light { background: var(--wsd-ice); color: var(--wsd-navy); }

/* ---------- Partner comparison: [wsd_aanbieders] ---------- */
.wsd-offers { margin: 24px 0; }
.wsd-offers__title { font-size: 22px; color: var(--wsd-navy); margin-bottom: 12px; }
.wsd-offers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wsd-offers__row {
	display: grid;
	grid-template-columns: 120px 1fr auto auto;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid #d6e6f2;
	border-radius: var(--wsd-radius);
	padding: 14px 16px;
}
.wsd-offers__row.is-best {
	border: 2px solid var(--wsd-green);
	box-shadow: 0 4px 16px rgba(157, 195, 26, .18);
}
.wsd-offers__logo { max-height: 40px; width: auto; }
.wsd-offers__logo-text { font-weight: 700; color: var(--wsd-navy); }
.wsd-offers__details { font-size: 14px; color: #4a5b69; }
.wsd-offers__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.wsd-offers__badges:empty { display: none; }
.wsd-offers__more { font-size: 13px; color: var(--wsd-blue-dark); }
.wsd-offers__price { text-align: right; white-space: nowrap; color: var(--wsd-navy); }
.wsd-offers__price strong { font-size: 24px; font-weight: 800; }
.wsd-offers__from,
.wsd-offers__pp { font-size: 13px; color: #4a5b69; }
.wsd-offers__cta {
	display: inline-block;
	background: var(--wsd-green);
	color: var(--wsd-navy);
	font-weight: 700;
	border-radius: 999px;
	padding: 10px 20px;
	text-decoration: none;
	white-space: nowrap;
	text-align: center;
}
.wsd-offers__cta:hover,
.wsd-offers__cta:focus { background: #8bb00f; color: var(--wsd-navy); }
.wsd-offers__note { font-size: 13px; color: #6b7c8a; margin-top: 10px; }

@media (max-width: 767px) {
	.wsd-offers__row { grid-template-columns: 1fr auto; }
	.wsd-offers__partner { grid-column: 1; }
	.wsd-offers__price { grid-column: 2; grid-row: 1; }
	.wsd-offers__info,
	.wsd-offers__cta { grid-column: 1 / -1; }
}

/* ---------- Partners per destination: [wsd_aanbieders_plaats] ---------- */
.wsd-partners__title { font-size: 22px; color: var(--wsd-navy); }
.wsd-partners__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.wsd-partners__card {
	background: #fff;
	border: 1px solid #d6e6f2;
	border-radius: var(--wsd-radius);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}
.wsd-partners__meta { font-size: 14px; color: #4a5b69; }
.wsd-partners__price strong { font-size: 24px; color: var(--wsd-navy); }
.wsd-partners__price span { font-size: 13px; color: #4a5b69; }
.wsd-partners__card .wsd-offers__cta { margin-top: auto; white-space: normal; }

/* ==========================================================
   Layout helpers for full-width GenerateBlocks sections
   ========================================================== */
html, body { overflow-x: clip; }
.home .entry-header,
.page-slug-aanbiedingen .entry-header { display: none; }
.home .inside-article,
.page-slug-aanbiedingen .inside-article { padding-top: 0; padding-bottom: 0; }
.home .site-main,
.page-slug-aanbiedingen .site-main { margin-top: 0; margin-bottom: 0; }
.home .entry-content > section:first-child,
.page-slug-aanbiedingen .entry-content > section:first-child { margin-top: 0; }
.home .entry-content > section,
.page-slug-aanbiedingen .entry-content > section { margin-bottom: 0; }

/* ---------- Grids ---------- */
.wsd-grid { display: grid; gap: 22px; }
.wsd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wsd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wsd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
	.wsd-grid--3, .wsd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.wsd-grid--2, .wsd-grid--3, .wsd-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Deal card ---------- */
.wsd-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wsd-ice); }
.wsd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.wsd-card:hover .wsd-card__media img { transform: scale(1.04); }
.wsd-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.wsd-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wsd-card__loc { font-size: 13px; font-weight: 600; color: var(--wsd-blue-dark); text-transform: uppercase; letter-spacing: .03em; }
.wsd-card__title { font-size: 18px; line-height: 1.3; margin: 0; }
.wsd-card__title a { color: var(--wsd-navy); text-decoration: none; }
.wsd-card__title a:hover { text-decoration: underline; }
.wsd-stars { color: #f2a900; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.wsd-card__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: #4a5b69; }
.wsd-card__meta li { margin: 0; }
.wsd-card__meta li + li::before { content: "·"; margin-right: 12px; color: #9aabb8; }
.wsd-card__date { font-size: 13px; color: #6b7c8a; }
.wsd-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.wsd-card__price { color: var(--wsd-navy); line-height: 1.1; }
.wsd-card__price strong { font-size: 26px; font-weight: 800; }
.wsd-card__price span { font-size: 13px; color: #4a5b69; }
.wsd-card__cta { display: inline-block; padding: 10px 16px; text-decoration: none; font-size: 14px; }
.wsd-card__cta:hover, .wsd-card__cta:focus { background: #8bb00f; color: var(--wsd-navy); }
.wsd-card__compare { font-size: 13px; font-weight: 600; color: var(--wsd-blue-dark); }
.wsd-img-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, var(--wsd-navy), var(--wsd-blue)); }

/* ---------- Destination cards ---------- */
.wsd-dest { display: flex; flex-direction: column; background: #fff; border-radius: var(--wsd-radius); overflow: hidden; text-decoration: none; box-shadow: 0 4px 18px rgba(0, 55, 97, .08); transition: transform .15s ease, box-shadow .15s ease; }
.wsd-dest:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 55, 97, .14); }
.wsd-dest__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.wsd-dest__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wsd-dest__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.wsd-dest__title { font-size: 20px; font-weight: 800; color: var(--wsd-navy); }
.wsd-dest__meta { font-size: 14px; color: #4a5b69; }
.wsd-dest__price { font-size: 14px; color: var(--wsd-navy); }
.wsd-dest__price strong { font-size: 18px; }

/* ---------- Chips (skigebieden) ---------- */
.wsd-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wsd-chips li { margin: 0; }
.wsd-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--wsd-ice); color: var(--wsd-navy); font-weight: 600; text-decoration: none; }
.wsd-chip span { font-size: 12px; font-weight: 500; color: #4a5b69; }
.wsd-chip:hover { background: var(--wsd-navy); color: #fff; }
.wsd-chip:hover span { color: #cfe9fb; }

/* ---------- Tips ---------- */
.wsd-tip__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--wsd-radius); margin-bottom: 12px; }
.wsd-tip__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wsd-tip__title { font-size: 19px; margin: 0 0 6px; }
.wsd-tip__title a { color: var(--wsd-navy); text-decoration: none; }
.wsd-tip__excerpt { font-size: 15px; color: #4a5b69; margin: 0; }

/* ---------- Results, pager, empty ---------- */
.wsd-results__count { font-weight: 600; color: var(--wsd-navy); margin-bottom: 14px; }
.wsd-empty { padding: 24px; background: var(--wsd-ice); border-radius: var(--wsd-radius); color: var(--wsd-navy); }
.wsd-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.wsd-pager .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--wsd-ice); color: var(--wsd-navy); text-decoration: none; }
.wsd-pager .page-numbers.current { background: var(--wsd-navy); color: #fff; }

/* ---------- FAQ (core Details block) ---------- */
.wp-block-details { border-bottom: 1px solid #d6e6f2; padding: 16px 0; }
.wp-block-details summary { font-weight: 700; color: var(--wsd-navy); cursor: pointer; font-size: 17px; }
.wp-block-details p { margin: 10px 0 0; color: #4a5b69; }

/* ---------- Filter on dark hero ---------- */
.wsd-filter--redirect .wsd-filter__fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767px) {
	.wsd-filter--redirect .wsd-filter__fields { grid-template-columns: 1fr 1fr; }
}
