/* =====================================================================
   Retreat Finder (Upcoming Retreats 2026)
   Path in theme: /assets/css/retreat-finder.css
   Loaded by part-retreat-finder.php. Every class starts with "xrf-".
   Uses the page variables from retreats-2026.css, with fallbacks.
   ===================================================================== */

.xrf-finder,
.xrf-results {
	--xrf-clay: var(--xr-clay, #A4441E);
	--xrf-clay-dark: #8a3818;
	--xrf-olive: var(--xr-forest, #757437);
	--xrf-ink: #1a1a1a;
	--xrf-text: #3d3d3d;
	--xrf-cream: #F8F3EC;
	--xrf-box: #F3EADB;
	--xrf-card: #FAF5EE;
	--xrf-line: #D8CBB6;
	--xrf-prata: var(--xr-prata, 'Prata', serif);
	--xrf-body: var(--xr-body, 'Karla', sans-serif);
	font-family: var(--xrf-body);
	color: var(--xrf-text);
}

.xrf-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.xrf-title {
	font-family: var(--xrf-prata);
	font-weight: 400;
	font-size: clamp(26px, 3.4vw, 34px);
	line-height: 1.2;
	color: #000;
	text-align: center;
	letter-spacing: 0;
	text-transform: none;
	margin: 0 0 14px;
}
.xrf-sub {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	font-size: 17px;
	line-height: 1.6;
	color: var(--xrf-ink);
}

/* ---------- Finder ---------- */
.xrf-finder { background: var(--xrf-cream); padding: 80px 0 72px; }

.xrf-form { margin-top: 44px; }
.xrf-questions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch; /* the 3 question boxes always have the same height */
}

.xrf-q {
	margin: 0;
	min-width: 0;
	border: 0;
	border-radius: 12px;
	background: var(--xrf-box);
	padding: 24px 22px 26px;
}
.xrf-q-title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	float: left;          /* lets the legend sit inside the box padding */
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--xrf-prata);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.35;
	color: #000;
	text-transform: none;
	letter-spacing: 0;
}
.xrf-q-title + * { clear: both; }
.xrf-q-num {
	flex: 0 0 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--xrf-clay);
	color: #fff;
	font-family: var(--xrf-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}

.xrf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xrf-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.xrf-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}
.xrf-chip span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--xrf-line);
	border-radius: 100px;
	background: #fff;
	font-family: var(--xrf-body);
	font-size: 14px;
	line-height: 1.3;
	color: var(--xrf-ink);
	transition: background .15s, border-color .15s, color .15s;
}
.xrf-chip:hover span { border-color: var(--xrf-clay); }
.xrf-chip input:checked + span {
	background: var(--xrf-clay);
	border-color: var(--xrf-clay);
	color: #fff;
}
.xrf-chip input:focus-visible + span { outline: 2px solid var(--xrf-clay); outline-offset: 2px; }
.xrf-chips--small .xrf-chip span { padding: 6px 12px; font-size: 13px; }

.xrf-month {
	display: block;
	margin-top: 16px;
	font-size: 14px;
	color: var(--xrf-text);
}
.xrf-month span { display: block; margin-bottom: 6px; }

.xrf-month select,
.xrf-bar select {
	width: 100%;
	max-width: 100%;
	appearance: none;
	-webkit-appearance: none;
	background: #fff url('data:image/svg+xml;utf8,<svg fill="%23555" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center / 16px;
	border: 1px solid var(--xrf-line);
	border-radius: 100px;
	padding: 8px 36px 8px 14px;
	font-family: var(--xrf-body);
	font-size: 14px;
	line-height: 1.3;
	color: var(--xrf-ink);
	cursor: pointer;
	height: auto;
	margin: 0;
	box-shadow: none;
}

.xrf-style { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--xrf-line); }
.xrf-style[hidden] { display: none; }
.xrf-style-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--xrf-clay);
}

.xrf-actions { text-align: center; margin-top: 36px; }
.xrf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 38px;
	border: 1px solid var(--xrf-clay);
	border-radius: 100px;
	background: var(--xrf-clay);
	color: #fff;
	font-family: var(--xrf-body);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s, transform .15s;
}
.xrf-btn:hover { background: var(--xrf-clay-dark); border-color: var(--xrf-clay-dark); transform: translateY(-1px); }
.xrf-btn:focus-visible { outline: 2px solid var(--xrf-ink); outline-offset: 3px; }

/* ---------- Results ---------- */
.xrf-results { background: #fff; padding: 80px 0 72px; }

.xrf-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 30px auto 0;
	max-width: 900px;
}
.xrf-bar[hidden] { display: none; }
.xrf-bar select { width: 205px; text-overflow: ellipsis; }
.xrf-bar select[hidden] { display: none; }

.xrf-link {
	background: none;
	border: 0;
	padding: 4px 2px;
	font-family: var(--xrf-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--xrf-clay);
	cursor: pointer;
}
.xrf-link:hover { color: var(--xrf-olive); }

/* "Clear all ✕": outlined pill, clearly different from the dropdowns, only shown when a filter is active */
.xrf-reset {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--xrf-clay);
	border-radius: 100px;
	background: transparent;
	font-family: var(--xrf-body);
	font-size: 14px;       /* same font size, line height and padding as the dropdowns = same height */
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--xrf-clay);
	cursor: pointer;
	transition: background .2s, color .2s;
}
.xrf-reset:hover,
.xrf-reset:focus-visible { background: var(--xrf-clay); color: #fff; }
.xrf-reset[hidden] { display: none; }
.xrf-reset-x { font-size: 12px; line-height: 1; }
.xrf-link { border-bottom: 1px solid var(--xrf-clay); padding-bottom: 6px; }
#xrf-again[hidden] { display: none; }

.xrf-note {
	max-width: 700px;
	margin: 24px auto 0;
	padding: 12px 18px;
	border-left: 3px solid var(--xrf-clay);
	background: var(--xrf-cream);
	font-size: 15px;
	color: var(--xrf-ink);
}
.xrf-note[hidden] { display: none; }

.xrf-cards { margin: 40px auto 0; }
.xrf-more { text-align: center; margin-top: 40px; }
.xrf-more [hidden] { display: none; }
.xrf-more .xrf-top { display: table; margin: 22px auto 0; } /* 29 Oct 2026: "Back to the top", on its own line under "See more retreats" */
.xrf-more .xrf-top[hidden] { display: none; }

/* ---------- Card (shared) ---------- */
.xrf-card {
	display: grid;
	background: var(--xrf-card);
	border-radius: 12px;
	padding: 14px;
	min-width: 0;
}
.xrf-card.is-hidden,
.xrf-card.is-out { display: none; }
.xrf-card.is-revealed { animation: xrf-in .35s ease both; }
@keyframes xrf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.xrf-card-photo {
	grid-area: photo;
	position: relative;
	display: block;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--xrf-box);
}
.xrf-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .4s ease;
}
.xrf-card:hover .xrf-card-photo img { transform: scale(1.04); }
.xrf-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
}
.xrf-badge--sold { background: var(--xrf-ink); }
.xrf-badge--few { background: var(--xrf-clay); }
.xrf-venue {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 3px 9px;
	border-radius: 100px;
	background: rgba(255, 255, 255, .92);
	color: var(--xrf-olive);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.xrf-card-body { grid-area: body; min-width: 0; }
.xrf-card-tags {
	margin: 0 0 8px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--xrf-clay);
}
/* 29 Oct 2026: type / yoga style = terracotta, goal = orange; " · " between tags */
.xrf-tag--goal { color: #cd7c26; }
.xrf-tag + .xrf-tag::before { content: " · "; color: var(--xrf-clay); }
/* Bigger than phones: one line, the first type + the first goal only */
@media (min-width: 641px) {
	.xrf-card-tags { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.xrf-tag--more { display: none; }
}
.xrf-card-title {
	margin: 0 0 4px;
	font-family: var(--xrf-prata);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: #000;
}
.xrf-card-title a { color: inherit; text-decoration: none; }
.xrf-card-title a:hover { color: var(--xrf-clay); }
.xrf-card-teachers { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: var(--xrf-olive); }
.xrf-card-level {
	margin: 0 0 14px;
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--xrf-text);
}
.xrf-card-cta {
	display: inline-block;
	padding: 6px 22px;
	border: 1px solid var(--xrf-clay);
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--xrf-clay);
	text-decoration: none;
	transition: background .2s, color .2s;
}
.xrf-card-cta:hover { background: var(--xrf-clay); color: #fff; }
.xrf-cta-match { display: none; }
.is-match .xrf-cta-default { display: none; }
.is-match .xrf-cta-match { display: inline; }

.xrf-card-date {
	grid-area: date;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-left: 1px solid #555;
	color: #000;
}
.xrf-date-month { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.xrf-date-day { font-family: var(--xrf-prata); font-size: 54px; line-height: 1; margin: 2px 0 6px; }
.xrf-date-nights { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Layout 1: small cards, 3 across (Coming Up) ---------- */
.xrf-cards--compact {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	max-width: 900px;
}
.xrf-cards--compact .xrf-card {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	grid-template-areas: "photo date" "body body";
	column-gap: 14px;
	row-gap: 18px;
}
.xrf-cards--compact .xrf-card-date { margin: 10px 0; }

/* ---------- Layout 2: wide cards, one per row (Match Your Search) ---------- */
.xrf-cards--list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	max-width: 700px;
}
.xrf-cards--list .xrf-card {
	grid-template-columns: 190px minmax(0, 1fr) 120px;
	grid-template-areas: "photo body date";
	column-gap: 26px;
	align-items: center;
	padding: 10px;
	background: #FCF8F3;
}
.xrf-cards--list .xrf-card-photo { aspect-ratio: 4 / 3; }
.xrf-cards--list .xrf-card-body { padding: 8px 0; }
.xrf-cards--list .xrf-card-title { font-size: 22px; }
.xrf-cards--list .xrf-card-level { font-size: 11px; margin-bottom: 12px; }
.xrf-cards--list .xrf-card-date { align-self: stretch; margin: 12px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.xrf-questions { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
	.xrf-cards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
}

@media (max-width: 640px) {
	.xrf-finder, .xrf-results { padding: 56px 0 52px; }
	.xrf-wrap { padding: 0 16px; }
	.xrf-sub { font-size: 16px; }
	.xrf-q { padding: 20px 16px 22px; }
	.xrf-btn { width: 100%; }

	.xrf-cards--compact { grid-template-columns: minmax(0, 1fr); max-width: 380px; }

	.xrf-cards--list .xrf-card {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		grid-template-areas: "photo date" "body body";
		row-gap: 14px;
		column-gap: 14px;
		padding: 14px;
	}
	.xrf-cards--list .xrf-card-photo { aspect-ratio: 1 / 1; }
	.xrf-cards--list .xrf-card-body { padding: 0; }

	.xrf-bar { flex-direction: column; align-items: stretch; }
	.xrf-bar select { width: 100%; }
	.xrf-reset { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.xrf-card.is-revealed { animation: none; }
	.xrf-card-photo img, .xrf-btn { transition: none; }
}


