/* France Ski Resort Finder — front-end UI shell styling (Phase 2).
   All rules are scoped under #tsrf-resort-finder-root so nothing here can
   affect the surrounding theme, header, footer, or navigation. */

#tsrf-resort-finder-root {
	--tsrf-navy: #093e60;
	--tsrf-navy-dark: #07334f;
	--tsrf-gold: #d3b86e;
	--tsrf-gold-dark: #ad975a;
	--tsrf-bg: #f6f7f9;
	--tsrf-card-bg: #ffffff;
	--tsrf-sidebar-bg: rgba(211, 184, 110, 0.07);
	--tsrf-sidebar-border: rgba(211, 184, 110, 0.28);
	--tsrf-border: #e3e7ec;
	--tsrf-text: #1c2b3a;
	--tsrf-muted: #5c6b7a;
	--tsrf-radius: 12px;
	--tsrf-error: #b3261e;
	--tsrf-error-bg: #fbeceb;
	--tsrf-success-bg: #f2f7f0;
	--tsrf-success-border: #7fae6e;
	/* Phase 5B-4d result-card section labels. Deliberately darker than
	   --tsrf-success-border / --tsrf-gold-dark, which are border/accent
	   tones: at label size on a white card those sit around 2.4:1 and
	   2.9:1 against the background. These two clear 4.5:1 (WCAG AA for
	   normal text) while still reading as green and amber-gold. */
	--tsrf-section-good: #3a7d44;
	--tsrf-section-warn: #9a6b1b;

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--tsrf-text);
	background: var(--tsrf-bg);
	/* Phase 5V: top padding reduced from 32px. The page now carries a thin
	   image banner directly above the Finder, so the container no longer has
	   to create the separation from the page header itself. Side and bottom
	   padding are deliberately unchanged — only the top is over-generous. */
	padding: 20px 24px 32px;
	border-radius: var(--tsrf-radius);
	scroll-margin-top: 100px;
}

@media (max-width: 640px) {
	#tsrf-resort-finder-root {
		/* Same reasoning, scaled: 20px -> 14px top, sides/bottom unchanged. */
		padding: 14px 12px 20px;
	}
}

#tsrf-resort-finder-root *,
#tsrf-resort-finder-root *::before,
#tsrf-resort-finder-root *::after {
	box-sizing: inherit;
}

/* Guard against the site theme's own h3 sizing bleeding into the plugin
   (form card question headings, summary headings, contact-gate heading,
   sidebar heading all use h3). */

#tsrf-resort-finder-root h3 {
	font-size: 1.1em !important;
}

#tsrf-resort-finder-root .tsrf-app {
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
}

/* Intro */

#tsrf-resort-finder-root .tsrf-intro {
	text-align: center;
	/* Phase 5V: 28px -> 18px. Pulls the step tracker up towards the title
	   block without letting the two touch — the 8px title/subtitle gap is
	   untouched, so the heading pair still reads as one unit. */
	margin-bottom: 18px;
}

/* Approximates the site's "H2 Alternative" refined serif heading style for
   the main plugin title, since the theme's own class isn't available here. */

#tsrf-resort-finder-root .tsrf-intro h2 {
	font-family: Georgia, "Playfair Display", "Times New Roman", Times, serif;
	font-size: 2.2rem;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.2px;
	color: var(--tsrf-navy);
	margin: 0 0 8px;
}

#tsrf-resort-finder-root .tsrf-intro p {
	margin: 0;
	color: var(--tsrf-muted);
	font-size: 1rem;
}

/* Progress */

#tsrf-resort-finder-root .tsrf-progress {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 56px;
	max-width: 960px;
	/* Phase 5V: bottom margin 28px -> 20px, bringing the first content card
	   up under the tracker. Kept at 20px rather than lower so the card still
	   reads as a separate surface and never appears to touch the step row. */
	margin: 0 auto 20px;
	flex-wrap: wrap;
}

/* The tracker itself (dots + connecting lines) is capped at a fixed width
   so it stays exactly as compact as before; .tsrf-progress's own wider
   max-width above only creates extra room for justify-content:space-between
   to push the "Step X of 4" badge further right, without re-stretching
   the lines between the step dots. */

#tsrf-resort-finder-root .tsrf-progress-steps {
	display: flex;
	align-items: flex-start;
	flex: 1 1 auto;
	max-width: 600px;
	min-width: 260px;
}

#tsrf-resort-finder-root .tsrf-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 90px;
}

#tsrf-resort-finder-root .tsrf-progress-dot {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid var(--tsrf-border);
	color: var(--tsrf-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

#tsrf-resort-finder-root .tsrf-progress-step.is-current .tsrf-progress-dot {
	background: var(--tsrf-navy);
	border-color: var(--tsrf-navy);
	color: #ffffff;
}

#tsrf-resort-finder-root .tsrf-progress-step.is-done .tsrf-progress-dot {
	background: var(--tsrf-navy);
	border-color: var(--tsrf-navy);
	color: #ffffff;
	opacity: 0.6;
}

#tsrf-resort-finder-root .tsrf-progress-label {
	font-size: 0.8rem;
	color: var(--tsrf-muted);
}

#tsrf-resort-finder-root .tsrf-progress-step.is-current .tsrf-progress-label {
	color: var(--tsrf-navy);
	font-weight: 600;
}

#tsrf-resort-finder-root .tsrf-progress-line {
	flex: 1 1 auto;
	height: 2px;
	background: var(--tsrf-border);
	margin: 17px 4px 0;
}

#tsrf-resort-finder-root .tsrf-progress-badge {
	border: 1px solid var(--tsrf-gold);
	color: var(--tsrf-navy);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 0.9rem;
	white-space: nowrap;
}

/* Mobile: the progress steps previously had a hard min-width floor
   (4 x 90px = 360px) that was wider than narrow phone viewports, forcing
   the whole page wider than the screen and making the browser render it
   zoomed out. Let the steps shrink freely below 640px instead. */

@media (max-width: 640px) {
	#tsrf-resort-finder-root .tsrf-progress {
		gap: 12px;
	}

	#tsrf-resort-finder-root .tsrf-progress-steps {
		min-width: 0;
		width: 100%;
	}

	#tsrf-resort-finder-root .tsrf-progress-step {
		min-width: 0;
		flex: 1 1 0;
	}

	#tsrf-resort-finder-root .tsrf-progress-dot {
		width: 28px;
		height: 28px;
		font-size: 0.8rem;
	}

	#tsrf-resort-finder-root .tsrf-progress-label {
		font-size: 0.7rem;
	}

	#tsrf-resort-finder-root .tsrf-progress-line {
		margin: 14px 2px 0;
	}
}

/* Layout */

#tsrf-resort-finder-root .tsrf-layout {
	display: grid;
	grid-template-columns: minmax(0, 2.5fr) minmax(220px, 0.9fr);
	gap: 24px;
	align-items: start;
}

@media (max-width: 860px) {
	#tsrf-resort-finder-root .tsrf-layout {
		grid-template-columns: 1fr;
	}

	#tsrf-resort-finder-root .tsrf-card,
	#tsrf-resort-finder-root .tsrf-sidebar {
		width: 100%;
		min-width: 0;
	}
}

/* Card */

#tsrf-resort-finder-root .tsrf-card {
	background: var(--tsrf-card-bg);
	border-radius: var(--tsrf-radius);
	border: 1px solid var(--tsrf-border);
	box-shadow: 0 10px 30px rgba(12, 35, 64, 0.06);
	padding: 28px;
}

@media (max-width: 640px) {
	#tsrf-resort-finder-root .tsrf-card {
		padding: 18px;
	}
}

#tsrf-resort-finder-root .tsrf-card-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

#tsrf-resort-finder-root .tsrf-card-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--tsrf-navy);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

#tsrf-resort-finder-root .tsrf-card-icon svg {
	width: 100%;
	height: 100%;
}

/* Section heading ("Tell us about your trip" etc) — refined serif style,
   deliberately stronger than the sans-serif h3 question labels below it so
   the hierarchy reads clearly. */

#tsrf-resort-finder-root .tsrf-card-head h2 {
	margin: 0 0 4px;
	font-family: Georgia, "Playfair Display", "Times New Roman", Times, serif;
	font-weight: 700;
	font-size: 1.55rem;
	color: var(--tsrf-navy);
}

#tsrf-resort-finder-root .tsrf-card-head p {
	margin: 0;
	color: var(--tsrf-muted);
	font-size: 0.92rem;
}

#tsrf-resort-finder-root .tsrf-card-divider {
	height: 1px;
	background: linear-gradient(to right, var(--tsrf-gold), var(--tsrf-border) 40%);
	margin: 20px 0 24px;
}

/* Question rows */

#tsrf-resort-finder-root .tsrf-question {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--tsrf-border);
}

#tsrf-resort-finder-root .tsrf-question:last-child {
	border-bottom: none;
}

#tsrf-resort-finder-root .tsrf-question-number {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--tsrf-navy);
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 3px;
}

#tsrf-resort-finder-root .tsrf-question-content {
	flex: 1 1 auto;
	min-width: 0;
}

#tsrf-resort-finder-root .tsrf-question-head h3 {
	margin: 0 0 2px;
	font-size: 1rem;
	color: var(--tsrf-navy);
}

#tsrf-resort-finder-root .tsrf-question-head p {
	margin: 0 0 12px;
	font-size: 0.85rem;
	color: var(--tsrf-muted);
}

/* Step 1: two-column question rows (label/helper left, controls right) */

#tsrf-resort-finder-root .tsrf-card-body[data-step="1"] .tsrf-question-content {
	display: grid;
	grid-template-columns: minmax(160px, 230px) 1fr;
	gap: 20px;
	align-items: start;
}

#tsrf-resort-finder-root .tsrf-card-body[data-step="1"] .tsrf-question-head p {
	margin-bottom: 0;
}

@media (max-width: 700px) {
	#tsrf-resort-finder-root .tsrf-card-body[data-step="1"] .tsrf-question-content {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

/* Step 1 only: the last question row (counters / age input) and the nav
   directly below it were leaving a large empty gap before the Continue
   button; tighten it without touching Steps 2-4. */

#tsrf-resort-finder-root .tsrf-card-body[data-step="1"] .tsrf-question:last-child {
	padding-bottom: 8px;
}

#tsrf-resort-finder-root .tsrf-card-body[data-step="1"] + .tsrf-nav {
	margin-top: 8px;
	padding-top: 16px;
}

/* Option buttons */

#tsrf-resort-finder-root .tsrf-option-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

#tsrf-resort-finder-root .tsrf-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border: 1px solid var(--tsrf-border);
	border-radius: 8px;
	background: #ffffff;
	color: var(--tsrf-navy);
	font-size: 0.8rem;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#tsrf-resort-finder-root .tsrf-option:hover {
	border-color: var(--tsrf-gold);
}

#tsrf-resort-finder-root .tsrf-option.is-selected {
	background: var(--tsrf-navy);
	border-color: var(--tsrf-navy);
	color: #ffffff;
}

#tsrf-resort-finder-root .tsrf-option-check {
	display: none;
}

/* Large option cards: travel period, accommodation style, ski ability, priorities.
   Selected state is white + gold border + a small corner checkmark badge,
   instead of the navy fill used for compact option groups. */

#tsrf-resort-finder-root .tsrf-option[data-group="travelPeriod"],
#tsrf-resort-finder-root .tsrf-option[data-group="accommodationStyle"],
#tsrf-resort-finder-root .tsrf-option[data-group="skiAbility"],
#tsrf-resort-finder-root .tsrf-option[data-group="priorities"] {
	position: relative;
	padding: 7px 14px;
	min-width: 150px;
}

/* Mobile: let the longer-label large cards (ski ability, accommodation
   style, priorities) take the full row instead of cramming two narrow
   cards side by side. Travel-period cards are handled by .tsrf-travel-grid. */

@media (max-width: 480px) {
	#tsrf-resort-finder-root .tsrf-option[data-group="accommodationStyle"],
	#tsrf-resort-finder-root .tsrf-option[data-group="skiAbility"],
	#tsrf-resort-finder-root .tsrf-option[data-group="priorities"] {
		width: 100%;
		min-width: 0;
	}
}

#tsrf-resort-finder-root .tsrf-option[data-group="travelPeriod"].is-selected,
#tsrf-resort-finder-root .tsrf-option[data-group="accommodationStyle"].is-selected,
#tsrf-resort-finder-root .tsrf-option[data-group="skiAbility"].is-selected,
#tsrf-resort-finder-root .tsrf-option[data-group="priorities"].is-selected {
	background: #ffffff;
	border-color: var(--tsrf-gold);
	color: var(--tsrf-navy);
	box-shadow: 0 4px 14px rgba(9, 62, 96, 0.1);
}

#tsrf-resort-finder-root .tsrf-option[data-group="travelPeriod"] .tsrf-option-check,
#tsrf-resort-finder-root .tsrf-option[data-group="accommodationStyle"] .tsrf-option-check,
#tsrf-resort-finder-root .tsrf-option[data-group="skiAbility"] .tsrf-option-check,
#tsrf-resort-finder-root .tsrf-option[data-group="priorities"] .tsrf-option-check {
	display: none;
	position: absolute;
	top: -9px;
	right: -9px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: var(--tsrf-gold);
	box-shadow: 0 0 0 2px #ffffff;
}

#tsrf-resort-finder-root .tsrf-option[data-group="travelPeriod"].is-selected .tsrf-option-check,
#tsrf-resort-finder-root .tsrf-option[data-group="accommodationStyle"].is-selected .tsrf-option-check,
#tsrf-resort-finder-root .tsrf-option[data-group="skiAbility"].is-selected .tsrf-option-check,
#tsrf-resort-finder-root .tsrf-option[data-group="priorities"].is-selected .tsrf-option-check {
	display: block;
}

#tsrf-resort-finder-root .tsrf-option[data-group="travelPeriod"].is-selected .tsrf-option-check::after,
#tsrf-resort-finder-root .tsrf-option[data-group="accommodationStyle"].is-selected .tsrf-option-check::after,
#tsrf-resort-finder-root .tsrf-option[data-group="skiAbility"].is-selected .tsrf-option-check::after,
#tsrf-resort-finder-root .tsrf-option[data-group="priorities"].is-selected .tsrf-option-check::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 11px;
	height: 11px;
	transform: translate(-50%, -50%);
	background-color: #ffffff;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l5 5L19 7'/></svg>");
	mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l5 5L19 7'/></svg>");
}

/* Travel period cards — inline SVG icons (rendered in JS markup), 2-column
   grid on desktop/tablet, 1 column on mobile, consistent card height. */

#tsrf-resort-finder-root .tsrf-travel-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

@media (max-width: 480px) {
	#tsrf-resort-finder-root .tsrf-travel-grid {
		grid-template-columns: 1fr;
	}
}

#tsrf-resort-finder-root .tsrf-option[data-group="travelPeriod"] {
	gap: 9px;
	min-height: 42px;
}

/* Icon + label should sit centred as a group within the full-width card,
   not hug the left edge (display:flex + width:100% instead of the default
   inline-flex, which only shrinks to fit its own content). !important
   guards this against any theme flex/text-align rules bleeding in. */

#tsrf-resort-finder-root .tsrf-travel-grid .tsrf-option {
	display: flex !important;
	width: 100%;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}

#tsrf-resort-finder-root .tsrf-travel-grid .tsrf-option-label {
	text-align: center !important;
	flex: 0 1 auto;
}

/* Phase 6C: travel-period option icons are PNGs from the supplied brand set
   rather than inline SVGs, drawn as CSS alpha masks.

   Masking (not <img>) is what restores the original navy/gold state change:
   only the artwork's alpha channel is used, so its own gold pixels are
   discarded and the shape is painted in background-color instead. That gives
   back exactly what the old SVGs did through currentColor, with no change to
   the asset files. Same technique as the CTA arrow further down.

   The box is pinned to a fixed square in every direction (width/height plus
   min-/max-) so neither a theme rule nor a flex parent can squash or stretch
   it, and mask-size:contain fits the square artwork inside that square box
   instead of cropping it. The 26px box deliberately matches the SVG box it
   replaces, so button heights are unchanged. The artwork itself carries a
   13px margin on its 132px canvas, which is what actually guarantees clear
   space on all four sides at any rendered size. */

#tsrf-resort-finder-root .tsrf-option-icon-mask {
	box-sizing: border-box !important;
	flex: 0 0 auto !important;
	display: block !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	min-height: 26px !important;
	max-width: 26px !important;
	max-height: 26px !important;
	vertical-align: middle !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
	/* Painted only once masking is confirmed available, so a browser without
	   mask support renders nothing here rather than a solid navy square. */
	background: none;
}

@supports ( ( -webkit-mask-image: url( "#" ) ) or ( mask-image: url( "#" ) ) ) {
	#tsrf-resort-finder-root .tsrf-option-icon-mask {
		background: var(--tsrf-navy);
		-webkit-mask-image: var(--tsrf-option-icon);
		mask-image: var(--tsrf-option-icon);
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: center;
		mask-position: center;
		-webkit-mask-size: contain;
		mask-size: contain;
	}

	#tsrf-resort-finder-root .tsrf-option[data-group="travelPeriod"].is-selected .tsrf-option-icon-mask {
		background: var(--tsrf-gold);
	}
}

/* Date flexibility (Yes / Somewhat / No / Not sure yet): equal-width
   buttons instead of sizing purely from text length. */

#tsrf-resort-finder-root .tsrf-flex-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

@media (max-width: 560px) {
	#tsrf-resort-finder-root .tsrf-flex-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

#tsrf-resort-finder-root .tsrf-flex-grid .tsrf-option {
	width: 100%;
	justify-content: center;
	text-align: center;
	padding-left: 8px;
	padding-right: 8px;
	white-space: normal;
	line-height: 1.25;
}

/* Stay duration (1 week / 2 weeks / Other duration): three equal-width
   buttons, reusing the flexibility-grid treatment above. */

#tsrf-resort-finder-root .tsrf-duration-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

@media (max-width: 560px) {
	#tsrf-resort-finder-root .tsrf-duration-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

#tsrf-resort-finder-root .tsrf-duration-grid .tsrf-option {
	width: 100%;
	justify-content: center;
	text-align: center;
	padding-left: 8px;
	padding-right: 8px;
	white-space: normal;
	line-height: 1.25;
}

/* "Number of nights", revealed by "Other duration". */
#tsrf-resort-finder-root .tsrf-stay-nights {
	display: block;
	margin-top: 12px;
	max-width: 220px;
}

#tsrf-resort-finder-root .tsrf-stay-nights > span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.85rem;
	color: var(--tsrf-muted);
}

#tsrf-resort-finder-root .tsrf-stay-nights-field {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--tsrf-border);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.9rem;
	font-family: inherit;
	color: var(--tsrf-text);
	background: #ffffff;
}

#tsrf-resort-finder-root .tsrf-stay-nights.has-error .tsrf-stay-nights-field {
	border-color: #b32d2e;
}

/* Counters */

/* Explicit box-model lock on every property a theme (e.g. Flatsome) commonly
   sets on bare <button>/<input> elements, so staging can't inflate these
   controls the way it did with width:fit-content alone. */

#tsrf-resort-finder-root .tsrf-counter {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	box-sizing: border-box !important;
	border: 1px solid var(--tsrf-border) !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	width: 120px !important;
	min-width: 120px !important;
	max-width: 135px !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
}

#tsrf-resort-finder-root .tsrf-counter-btn {
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto !important;
	width: 38px !important;
	min-width: 38px !important;
	max-width: 38px !important;
	height: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: #ffffff !important;
	color: var(--tsrf-navy) !important;
	font-size: 1.1rem !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

#tsrf-resort-finder-root .tsrf-counter-btn:hover {
	background: var(--tsrf-bg) !important;
}

#tsrf-resort-finder-root .tsrf-counter-value {
	box-sizing: border-box !important;
	flex: 0 0 auto !important;
	min-width: 42px !important;
	max-width: 42px !important;
	height: 38px !important;
	line-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
	color: var(--tsrf-text) !important;
}

/* v0.4.22: the count is a real input (type 25, 50 or 100 directly) with the same footprint as the value it replaces. */
#tsrf-resort-finder-root .tsrf-counter-input {
	-moz-appearance: textfield !important;
	appearance: none !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	font-family: inherit !important;
	width: 42px !important;
	min-width: 42px !important;
	max-width: 42px !important;
}

#tsrf-resort-finder-root .tsrf-counter-input:focus {
	background: var(--tsrf-bg) !important;
	box-shadow: inset 0 0 0 2px var(--tsrf-navy) !important;
}

@media (max-width: 700px) {
	#tsrf-resort-finder-root .tsrf-counter {
		width: 135px !important;
		min-width: 135px !important;
	}

	#tsrf-resort-finder-root .tsrf-counter-btn {
		width: 42px !important;
		min-width: 42px !important;
		max-width: 42px !important;
	}
}

/* Children age chips */

#tsrf-resort-finder-root .tsrf-age-input {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
	box-sizing: border-box !important;
	border: 1px solid var(--tsrf-border) !important;
	border-radius: 8px !important;
	padding: 6px 10px !important;
	min-height: 40px !important;
	margin: 0 !important;
}

#tsrf-resort-finder-root .tsrf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--tsrf-bg);
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 0.85rem;
	line-height: 1.2;
}

#tsrf-resort-finder-root .tsrf-chip-edit {
	border: none;
	background: none;
	cursor: pointer;
	color: inherit;
	font: inherit;
	padding: 0;
	line-height: 1.2;
}

#tsrf-resort-finder-root .tsrf-age-status {
	margin: 8px 0 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--tsrf-muted);
}

#tsrf-resort-finder-root .tsrf-age-status.is-complete {
	color: var(--tsrf-navy);
}

#tsrf-resort-finder-root .tsrf-age-status.is-over {
	color: var(--tsrf-error);
}

#tsrf-resort-finder-root .tsrf-age-actions {
	margin: 4px 0 0;
	font-size: 0.85rem;
}

#tsrf-resort-finder-root .tsrf-link-btn {
	border: none !important;
	background: none !important;
	padding: 0 !important;
	margin: 0 !important;
	color: var(--tsrf-muted) !important;
	font: inherit !important;
	text-decoration: underline !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

#tsrf-resort-finder-root .tsrf-chip-remove {
	border: none;
	background: none;
	cursor: pointer;
	color: var(--tsrf-muted);
	font-size: 0.95rem;
	line-height: 1;
	padding: 0;
}

#tsrf-resort-finder-root .tsrf-age-field {
	box-sizing: border-box !important;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	flex: 1 1 120px !important;
	min-width: 100px !important;
	height: 26px !important;
	line-height: 26px !important;
	margin: 0 !important;
	padding: 0 4px !important;
	font-size: 0.9rem !important;
	font-family: inherit !important;
	color: var(--tsrf-text) !important;
	border-radius: 0 !important;
}

/* Selects / textarea / text fields */

#tsrf-resort-finder-root .tsrf-textarea {
	width: 100%;
	border: 1px solid var(--tsrf-border);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.9rem;
	color: var(--tsrf-text);
	background: #ffffff;
	font-family: inherit;
	max-width: 100%;
	resize: vertical;
}

/* Dropdowns: explicit box model so a theme's global select/line-height rules
   can't clip the text or the native control on staging. */

#tsrf-resort-finder-root select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	height: auto;
	min-height: 46px;
	line-height: 1.4;
	overflow: visible;
	margin: 0;
	padding: 12px 38px 12px 14px;
	border: 1px solid var(--tsrf-border);
	border-radius: 8px;
	font-size: 0.9rem;
	font-family: inherit;
	color: var(--tsrf-text);
	background-color: #ffffff;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
}

#tsrf-resort-finder-root select::-ms-expand {
	display: none;
}

/* Summary (Step 4) */

#tsrf-resort-finder-root .tsrf-summary-block {
	padding: 14px 0;
	border-bottom: 1px solid var(--tsrf-border);
}

#tsrf-resort-finder-root .tsrf-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#tsrf-resort-finder-root .tsrf-summary-head h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: var(--tsrf-navy);
}

#tsrf-resort-finder-root .tsrf-edit-link {
	border: none;
	background: none;
	color: var(--tsrf-gold-dark);
	font-size: 0.85rem;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

#tsrf-resort-finder-root .tsrf-summary-items {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 0.88rem;
	color: var(--tsrf-muted);
}

#tsrf-resort-finder-root .tsrf-summary-items strong {
	color: var(--tsrf-text);
}

#tsrf-resort-finder-root .tsrf-summary-empty {
	font-style: italic;
	color: var(--tsrf-muted);
}

/* Contact gate */

#tsrf-resort-finder-root .tsrf-contact-gate {
	padding-top: 20px;
}

#tsrf-resort-finder-root .tsrf-contact-gate h3 {
	margin: 0 0 4px;
	color: var(--tsrf-navy);
}

#tsrf-resort-finder-root .tsrf-contact-gate > p {
	margin: 0 0 16px;
	color: var(--tsrf-muted);
	font-size: 0.88rem;
}

#tsrf-resort-finder-root .tsrf-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

@media (max-width: 640px) {
	#tsrf-resort-finder-root .tsrf-contact-grid {
		grid-template-columns: 1fr;
	}
}

#tsrf-resort-finder-root .tsrf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.85rem;
	color: var(--tsrf-muted);
}

#tsrf-resort-finder-root .tsrf-field input {
	box-sizing: border-box;
	height: 39px;
	border: 1px solid var(--tsrf-border);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--tsrf-text);
	font-family: inherit;
}

#tsrf-resort-finder-root .tsrf-field select {
	max-width: 100%;
	box-sizing: border-box;
	min-height: 0;
	height: 39px;
	padding: 10px 38px 10px 12px;
	border: 1px solid var(--tsrf-border);
	border-radius: 8px;
	font-size: 0.9rem;
	font-family: inherit;
	color: var(--tsrf-text);
	line-height: 1.4;
}

/* Phase 4D: honeypot spam field — off-screen, not display:none (some
   bots skip display:none fields), never visible or reachable to real
   visitors. */
#tsrf-resort-finder-root .tsrf-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

#tsrf-resort-finder-root .tsrf-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--tsrf-muted);
}

#tsrf-resort-finder-root .tsrf-notice {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fbf5ea;
	border: 1px solid var(--tsrf-gold);
	color: var(--tsrf-navy);
	font-size: 0.88rem;
}

/* Phase 4A: minimal submit/loading/error state — reuses the existing
   .tsrf-notice box, just swaps colour via a modifier class. */

#tsrf-resort-finder-root .tsrf-notice-success {
	background: var(--tsrf-success-bg);
	border-color: var(--tsrf-success-border);
	color: var(--tsrf-text);
}

/* Phase 4C: polished ranked shortlist — reuses .tsrf-notice-success for
   the box/colour. Phase 5B-2 replaced the plain ranked-row list with
   compact resort cards (below); .tsrf-result-rank/.tsrf-result-name/
   .tsrf-result-link carry over unchanged since the card header reuses
   them for visual consistency with the old row style. Phase 5B-3a: the
   box itself no longer always gets .tsrf-notice-success — only 'Normal
   top 3 result' does; every other status keeps the base .tsrf-notice
   gold/caution styling already defined above, so no new box-colour rule
   is needed here. */

/* Phase 5J: was '.tsrf-result-preview h3'. The result headline is now an
   <h2> and the resort-card titles are <h3>s, so an element-based selector
   here would style every card title too. Matching on .tsrf-result-heading
   keeps this rule on the one element it was always meant for.
   !important on font-size/weight for the same reason as the .tsrf-sidebar
   h3 rule below: the theme's own h2 declarations can carry !important, and
   a non-!important value silently loses to them regardless of specificity
   — the plugin has no global h2 guard the way it does for h3. */
#tsrf-resort-finder-root .tsrf-result-heading {
	margin: 0 0 10px;
	/* Approximates the site's "H2 Alternative" serif heading style, same
	   stack as .tsrf-intro h2 / .tsrf-card-head h2 above. */
	font-family: Georgia, "Playfair Display", "Times New Roman", Times, serif !important;
	font-size: 1.3rem !important;
	line-height: 1.25;
	color: var(--tsrf-navy);
	font-weight: 700 !important;
}

#tsrf-resort-finder-root .tsrf-result-intro {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: var(--tsrf-text);
}

/* Phase 5R: compact result-status badge above the cards. A pill rather than
   a panel, so it reads as a label on the result box it sits inside rather
   than a second notice competing with .tsrf-group-notice further down. The
   two tones reuse the existing section-label colours, which are the same
   green and amber-gold already used for "Why it matches" / "Watch out for"
   and clear 4.5:1 on the box backgrounds. Caution deliberately uses the
   amber-gold, never --tsrf-error. */
#tsrf-resort-finder-root .tsrf-status-notice {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: 100%;
	margin: 0 0 12px;
	padding: 5px 11px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.35;
}

/* Status badges share one wrapping row. The container owns ALL spacing: a
   guaranteed gap between adjacent badges both side by side and when they wrap,
   and the same 12px below the group that a single badge had before. Inside it
   the badge's own bottom margin is neutralised so spacing is never doubled.
   Badge colour, type, size and order are unchanged; align-items keeps each
   pill at its natural height rather than stretching it to its neighbour. */
#tsrf-resort-finder-root .tsrf-status-notices {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 12px;
}

#tsrf-resort-finder-root .tsrf-status-notices > .tsrf-status-notice {
	margin: 0;
}

#tsrf-resort-finder-root .tsrf-status-notice-good {
	color: var(--tsrf-section-good);
	background: rgba(58, 125, 68, 0.07);
}

/* Phase 5T: the caution pill was a 7% wash that all but vanished inside the
   gold caution result box. It is now filled with the brand gold itself.
   A tint was tried first and rejected: any pale gold sits at roughly 1.3:1
   against the #fbf5ea caution container, which is not a visible step up.
   --tsrf-gold reaches 1.78:1 against that container and far more against
   the green Normal one, which is the strongest separation available without
   leaving the palette. Text is --tsrf-navy-dark at 6.8:1 on this fill —
   --tsrf-section-warn would fail here. Border stays --tsrf-gold-dark so the
   pill still has a defined edge against its own fill. Still gold, not red:
   --tsrf-error is untouched. */
#tsrf-resort-finder-root .tsrf-status-notice-caution {
	color: var(--tsrf-navy-dark);
	border-color: var(--tsrf-gold-dark);
	background: var(--tsrf-gold);
}

#tsrf-resort-finder-root .tsrf-status-notice-icon {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
}

/* On a phone the longer captions wrap, so the pill has to align its icon to
   the first line rather than the vertical centre of a two-line block. */
@media (max-width: 480px) {
	#tsrf-resort-finder-root .tsrf-status-notice {
		align-items: flex-start;
		border-radius: 10px;
	}

	#tsrf-resort-finder-root .tsrf-status-notice-icon {
		margin-top: 1px;
	}
}

/* Phase 5B-3a: status_copy.note — small and subtle by design (per
   result_status display rule 1), same dashed-divider/muted treatment as
   a card's "Watch out for" line, so it reads as a caveat, not an alert. */
#tsrf-resort-finder-root .tsrf-result-note {
	margin: 10px 0 0;
	padding-top: 10px;
	border-top: 1px dashed var(--tsrf-border);
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--tsrf-muted);
}

/* 0-match only. The availability note sits directly above the "Recommended
   next step" heading there, where the shared rule's zero bottom margin left
   the two crowded together. Adds separation and nothing else: same
   specificity as the rule above and declared after it, so only the bottom
   margin is overridden and the border, size and colour are inherited
   unchanged. Every other result note keeps its existing spacing. */
#tsrf-resort-finder-root .tsrf-zero-match-availability-note {
	margin-bottom: 12px;
}

/* Phase 5B-4f: "Recommended next step". Deliberately plain — no border,
   background or accent bar, so it reads as guidance leading into the
   buttons rather than a second alert competing with the status box it
   sits inside. Only the small heading is emphasised. */
#tsrf-resort-finder-root .tsrf-next-step {
	margin-top: 14px;
}

/* Phase 5J: now an <h3> rather than an <h4>.
   Phase 5K: and now in the serif heading stack, matching .tsrf-result-name
   and .tsrf-result-heading, so its markup and its appearance agree. Sized
   at 0.95rem — up just enough from the old 0.82rem to carry the serif and
   read as a heading, and deliberately well under the 1.15rem resort names
   so it stays a guidance label above the CTAs rather than competing with
   the cards. font-family/size/weight take !important to hold against both
   the global h3 guard near the top of this file and a theme's own h3
   rules; as an h4 this element was outside both. */
#tsrf-resort-finder-root .tsrf-next-step-heading {
	margin: 0 0 5px;
	font-family: Georgia, "Playfair Display", "Times New Roman", Times, serif !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	line-height: 1.3;
	color: var(--tsrf-navy);
}

#tsrf-resort-finder-root .tsrf-next-step p {
	margin: 0 0 6px;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--tsrf-text);
}

#tsrf-resort-finder-root .tsrf-next-step p:last-child {
	margin-bottom: 0;
}

/* Phase 5Q: group/family changeover-day advisory, below the cards and above
   the CTAs.
   Phase 5S: restyled from the neutral navy/info treatment to the gold
   caution palette, so it reads as an accommodation/date-pattern warning
   rather than a background note.
   It cannot simply reuse .tsrf-notice's #fbf5ea, because on a caution
   result this box sits inside a container already painted that exact
   colour and would disappear. #f7ecd6 is a step deeper on the same gold
   ramp: clearly gold against the green Normal container, and clearly
   separated against the gold caution one. Text stays navy and the border
   gold — the same pairing .tsrf-notice uses — so it never reads as an
   error, and --tsrf-error is deliberately untouched. */
#tsrf-resort-finder-root .tsrf-group-notice {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid var(--tsrf-gold);
	border-left: 3px solid var(--tsrf-gold-dark);
	border-radius: 8px;
	background: #f7ecd6;
}

#tsrf-resort-finder-root .tsrf-group-notice-heading {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 6px;
	font-family: Georgia, "Playfair Display", "Times New Roman", Times, serif !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	line-height: 1.3;
	color: var(--tsrf-navy);
}

/* Phase 5S: the icon carries the caution signal in the amber-gold used by
   the "Watch out for" section labels, while the heading text stays navy for
   legibility. As a graphic it only needs 3:1, which this clears on the new
   background; navy body text keeps well clear of 4.5:1. */
#tsrf-resort-finder-root .tsrf-group-notice-icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: var(--tsrf-section-warn);
}

#tsrf-resort-finder-root .tsrf-group-notice p {
	margin: 0 0 7px;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--tsrf-text);
}

#tsrf-resort-finder-root .tsrf-group-notice p:last-child {
	margin-bottom: 0;
}

@media (max-width: 480px) {
	#tsrf-resort-finder-root .tsrf-group-notice {
		padding: 11px 12px;
	}
}

/* Phase 5F: post-result "Adjust my answers" / "Start again". Deliberately
   plain underlined text at body-copy weight — they sit directly beneath
   the gold and outline CTAs and must read as a quiet secondary path, not
   a third button competing with them. All native button chrome is reset
   explicitly so a theme's own button rules cannot make them look like
   buttons. */
#tsrf-resort-finder-root .tsrf-result-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

#tsrf-resort-finder-root .tsrf-text-link {
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--tsrf-muted);
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}

#tsrf-resort-finder-root .tsrf-text-link:hover,
#tsrf-resort-finder-root .tsrf-text-link:focus {
	color: var(--tsrf-navy);
	background: none;
}

#tsrf-resort-finder-root .tsrf-result-actions-sep {
	font-size: 0.8rem;
	color: var(--tsrf-border);
}

/* Phase 5F: explains the disabled "Update my shortlist" button so the
   disabled state never reads as a broken control. */
#tsrf-resort-finder-root .tsrf-nav-hint {
	font-size: 0.8rem;
	color: var(--tsrf-muted);
	margin-right: 10px;
}

/* Phase 5B-3b: primary/secondary status_copy CTAs — reuses the existing
   .tsrf-btn/.tsrf-btn-gold/.tsrf-btn-outline button styling, just wrapped
   so two buttons sit side by side with breathing room and wrap cleanly on
   narrow screens instead of overflowing. */
#tsrf-resort-finder-root .tsrf-result-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

#tsrf-resort-finder-root .tsrf-result-ctas a.tsrf-btn {
	text-decoration: none;
}

#tsrf-resort-finder-root .tsrf-result-rank {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--tsrf-navy);
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Phase 5H: the resort name is the thing a client scans for, so it now
   leads the card properly — was 0.92rem/600, which sat almost level with
   the 0.85rem body copy and read as a label rather than a title.
   .tsrf-result-link uses font: inherit, so the linked name follows this
   automatically and there is still no difference between the linked and
   plain-text states. min-width: 0 lets a long name (Saint-Martin-de-
   Belleville) wrap inside the flex row instead of forcing the card wider. */
/* Phase 5J: now an <h3> rather than a <span>. As a span this was immune to
   the site theme's heading rules; as a heading it is not, so the three
   properties that define the name's appearance are pinned with !important
   — a theme that ships 'h3 { font-weight: 400 !important }' or its own
   heading font would otherwise silently take the name over, and the
   font-size additionally has to beat this file's own global
   '#tsrf-resort-finder-root h3 { font-size: 1.1em !important }' guard. The
   values themselves are the approved Phase 5H ones, unchanged. The UA's
   default h3 margin is zeroed so the card header spacing is identical to
   the span version. .tsrf-result-link uses font: inherit, so the linked
   name picks all of this up unchanged. */
#tsrf-resort-finder-root .tsrf-result-name {
	min-width: 0;
	margin: 0;
	font-family: Georgia, "Playfair Display", "Times New Roman", Times, serif !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	line-height: 1.25;
	color: var(--tsrf-navy);
}

/* Phase 5B-2: compact resort cards. Column count keyed off match count
   via a modifier class so 2-result and 1-result outcomes never show an
   empty placeholder card — the single-result case is also visually
   narrower/less confident-looking than a full grid, on purpose (no new
   copy yet — see Phase 5B-3 for status-specific caution text/CTAs). */

#tsrf-resort-finder-root .tsrf-result-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

#tsrf-resort-finder-root .tsrf-result-cards-two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

#tsrf-resort-finder-root .tsrf-result-cards-single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 300px;
}

@media (max-width: 640px) {
	#tsrf-resort-finder-root .tsrf-result-cards,
	#tsrf-resort-finder-root .tsrf-result-cards-two {
		grid-template-columns: minmax(0, 1fr);
	}

	#tsrf-resort-finder-root .tsrf-result-cards-single {
		max-width: 100%;
	}
}

/* Phase 5B-4c: the card's padding moved onto .tsrf-result-card-body so a
   featured image can sit full-bleed at the top. overflow: hidden makes the
   image's top corners clip to the card's own radius, so no separate radius
   is needed on the image itself. */
#tsrf-resort-finder-root .tsrf-result-card {
	background: var(--tsrf-card-bg);
	border: 1px solid var(--tsrf-border);
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
}

#tsrf-resort-finder-root .tsrf-result-card-body {
	padding: 14px 16px;
}

/* Fixed ratio + cover keeps all three cards aligned regardless of source
   dimensions — the audited featured images range from 1.33 to 2.00, so
   without this the cards would be visibly different heights. 16/10 sits
   mid-range, so nothing is cropped severely in either direction. The
   element only exists when the backend supplied an image URL, so there is
   no empty box in the no-image case. */
#tsrf-resort-finder-root .tsrf-result-card-media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-bottom: 1px solid var(--tsrf-border);
	background: var(--tsrf-bg);
}

/* Phase 5B-4e add-on: the image links to the same resort page as the name.
   display: block keeps the anchor flush to the image with no inline
   baseline gap under it, and resets any underline/border a theme might
   otherwise put on a link. */
#tsrf-resort-finder-root .tsrf-result-card-media-link {
	display: block;
	line-height: 0;
	text-decoration: none;
	border: 0;
}

/* Phase 5H: align-items moved from center to flex-start. With the larger
   resort name a long one can run to two lines, and centring left the rank
   badge floating against the middle of the block instead of sitting with
   the first line. */
#tsrf-resort-finder-root .tsrf-result-card-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
}

/* Phase 5L: on a narrow phone the card is too tight for the longer resort
   names, and a two-line serif heading made the card top-heavy. Below 480px
   the name is held to one line. 0.95rem is chosen so that all sixteen
   resort names — including 'Saint-Martin-de-Belleville', the longest —
   fit on one line at 375px without truncating; at 1.15rem or even 1.02rem
   that name overflows and loses '-de-Belleville', which is real content,
   not decoration. The ellipsis stays as the safety net for narrower
   handsets and for font stacks with wider metrics than Georgia.
   min-width: 0 on .tsrf-result-name is what lets text-overflow work inside
   this flex row. The size drop is mobile-only; desktop keeps 1.15rem.
   align-items returns to center because the name can no longer run to two
   lines, so the rank badge belongs on the middle of the single line it has
   — the flex-start above exists purely for the wrapped case, which cannot
   happen at this width. This block must stay after the rule above: same
   specificity, so it wins on source order, not weight. */
@media (max-width: 480px) {
	#tsrf-resort-finder-root .tsrf-result-name {
		font-size: 0.95rem !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#tsrf-resort-finder-root .tsrf-result-card-head {
		align-items: center;
	}
}

#tsrf-resort-finder-root .tsrf-result-card-label {
	margin: 0 0 8px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--tsrf-gold-dark);
}

/* Phase 5M: the Result description paragraph, between the gold label and
   the "Why it may suit you" section. Same size and colour as the best-if
   body copy so the two read as one block of prose, with the gold label
   above it as the only accent — it is context, not a second highlight. The
   bottom margin matches .tsrf-result-card-best so card rhythm is unchanged
   for a resort that has no description. */
#tsrf-resort-finder-root .tsrf-result-card-description {
	margin: 0 0 10px;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--tsrf-text);
}

#tsrf-resort-finder-root .tsrf-result-card-best {
	margin: 0 0 10px;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--tsrf-text);
}

/* Phase 5P: pipe-delimited match reasons rendered as bullets. Same size,
   colour and bottom margin as .tsrf-result-card-best above, so a card that
   still carries a sentence and one that carries bullets sit at the same
   rhythm inside a shortlist. padding-left rather than list-style-position
   keeps wrapped lines aligned under the text, not under the marker; the
   theme's own list styles are overridden explicitly because a WordPress
   theme will otherwise apply its content-area list spacing here. */
#tsrf-resort-finder-root .tsrf-result-card-reasons {
	margin: 0 0 10px;
	padding-left: 18px;
	list-style: disc outside;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--tsrf-text);
}

#tsrf-resort-finder-root .tsrf-result-card-reasons li {
	margin: 0 0 3px;
	padding: 0;
}

#tsrf-resort-finder-root .tsrf-result-card-reasons li:last-child {
	margin-bottom: 0;
}

/* Locked expert budget range for this resort (budget-increase state only). */
#tsrf-resort-finder-root .tsrf-result-card-budget-floor {
	margin: 10px 0 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--tsrf-text);
}

#tsrf-resort-finder-root .tsrf-result-card-watch {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--tsrf-muted);
}

/* Phase 5B-4d: section headings inside a result card. Sized between the
   body copy and the resort name — clearer than the paragraph beneath, but
   deliberately smaller and lighter than .tsrf-result-name so the resort
   still leads the card. flex + align-items: center puts the icon on the
   label's optical centre rather than its baseline, and the icon never
   shrinks or wraps. */
#tsrf-resort-finder-root .tsrf-result-card-section {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 5px;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.3;
}

#tsrf-resort-finder-root .tsrf-card-section-icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

#tsrf-resort-finder-root .tsrf-card-section-good {
	color: var(--tsrf-section-good);
}

/* The dashed divider moved here from .tsrf-result-card-watch: the label
   now precedes that paragraph, so the rule has to sit above the label to
   keep separating the two sections rather than splitting this one. */
#tsrf-resort-finder-root .tsrf-card-section-warn {
	margin-top: 10px;
	padding-top: 9px;
	border-top: 1px dashed var(--tsrf-border);
	color: var(--tsrf-section-warn);
}

/* Phase 4C add-on: resort name links to topsnowtravel.com. Inherits the
   same size/weight/colour as the plain-text fallback so there is no
   layout shift between linked and unlinked resorts. */
#tsrf-resort-finder-root .tsrf-result-link {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

#tsrf-resort-finder-root .tsrf-result-link:hover,
#tsrf-resort-finder-root .tsrf-result-link:focus {
	text-decoration: underline;
}

/* Bug fix: the zero-match Find the Right Resort CTA reuses the existing
   .tsrf-btn/.tsrf-btn-gold button styling (same size as every other
   button) — this just resets the <a> tag's default underline, which
   .tsrf-btn never needed before since it was only ever used on
   <button> elements, and adds a little breathing room above it. */
#tsrf-resort-finder-root a.tsrf-btn {
	text-decoration: none;
}

#tsrf-resort-finder-root .tsrf-planning-cta {
	margin-top: 6px;
}

#tsrf-resort-finder-root .tsrf-notice-error {
	background: var(--tsrf-error-bg);
	border-color: var(--tsrf-error);
	color: var(--tsrf-error);
}

#tsrf-resort-finder-root .tsrf-field-error {
	color: var(--tsrf-error);
	font-size: 0.78rem;
}

#tsrf-resort-finder-root .tsrf-field.has-error input,
#tsrf-resort-finder-root .tsrf-field.has-error select {
	border-color: var(--tsrf-error);
}

#tsrf-resort-finder-root .tsrf-consent.has-error {
	color: var(--tsrf-error);
}

/* Bug fix: Step 2 budget error highlight. .tsrf-select isn't wrapped in
   .tsrf-field (unlike the Step 4 contact inputs), so the existing
   .tsrf-field.has-error rule above doesn't reach it — this is the small,
   targeted equivalent for that one case. */
#tsrf-resort-finder-root .tsrf-select.has-error {
	border-color: var(--tsrf-error);
}

/* Nav buttons */

#tsrf-resort-finder-root .tsrf-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--tsrf-border);
}

#tsrf-resort-finder-root .tsrf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.88rem;
	line-height: 1.15;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
}

#tsrf-resort-finder-root .tsrf-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Mobile: stack Back/Continue (and the gold CTA on Step 4) instead of
   squeezing them into one tight row, with comfortable tap targets and
   clear breathing room above the button group. */

@media (max-width: 640px) {
	#tsrf-resort-finder-root .tsrf-nav {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		margin-top: 28px;
		padding-top: 22px;
	}

	#tsrf-resort-finder-root .tsrf-nav > span {
		display: none;
	}

	#tsrf-resort-finder-root .tsrf-btn {
		width: 100%;
		min-height: 44px;
		padding: 11px 18px;
		font-size: 0.92rem;
	}
}

#tsrf-resort-finder-root .tsrf-btn-outline {
	background: #ffffff;
	border-color: var(--tsrf-border);
	color: var(--tsrf-text);
}

#tsrf-resort-finder-root .tsrf-btn-outline:hover {
	border-color: var(--tsrf-navy);
}

#tsrf-resort-finder-root .tsrf-btn-primary {
	background: var(--tsrf-navy);
	color: #ffffff;
	transition: background-color 0.2s ease;
}

#tsrf-resort-finder-root .tsrf-btn-primary:hover {
	background: var(--tsrf-gold);
	color: #ffffff;
}

/* Right arrow on the Continue button, CSS-only (no JS/markup change) —
   a small mask-image chevron so it always matches the button's own
   text color rather than needing a separate icon asset.

   Phase 5K: .tsrf-btn-arrow opts any other button into the same arrow, and
   is used by the result CTAs. Sharing this rule rather than duplicating it
   means there is one arrow shape in the plugin, so the result buttons and
   the Continue button can never drift apart. It is an ::after mask, not
   text in the label, so the Copy Bank CTA labels stay verbatim. .tsrf-btn
   is already display:flex with gap:6px, so no extra spacing is needed. */

#tsrf-resort-finder-root .tsrf-btn-primary::after,
#tsrf-resort-finder-root .tsrf-btn-arrow::after {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
	mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
}

#tsrf-resort-finder-root .tsrf-btn-gold {
	background: var(--tsrf-gold);
	color: var(--tsrf-navy-dark);
}

#tsrf-resort-finder-root .tsrf-btn-gold:hover {
	background: var(--tsrf-gold-dark);
	color: #ffffff;
}

/* Sidebar */

#tsrf-resort-finder-root .tsrf-sidebar {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto auto;
	column-gap: 12px;
	row-gap: 14px;
	background: var(--tsrf-sidebar-bg);
	border: 1px solid var(--tsrf-sidebar-border);
	border-radius: var(--tsrf-radius);
	padding: 24px;
}

/* Top sidebar "i" badge: the glyph is drawn from two pseudo-elements
   (dot + stem) instead of the text character, so it renders identically
   regardless of the page's inherited font/theme. */

#tsrf-resort-finder-root .tsrf-sidebar-icon {
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	position: relative;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	min-width: 30px;
	min-height: 30px;
	border-radius: 50%;
	background: var(--tsrf-gold);
	color: transparent;
	font-size: 0;
	line-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

#tsrf-resort-finder-root .tsrf-sidebar-icon::before,
#tsrf-resort-finder-root .tsrf-sidebar-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	background: #ffffff;
	transform: translateX(-50%);
}

#tsrf-resort-finder-root .tsrf-sidebar-icon::before {
	top: 7px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
}

#tsrf-resort-finder-root .tsrf-sidebar-icon::after {
	top: 13px;
	width: 4px;
	height: 10px;
	border-radius: 1px;
}

/* Phase 6C: when the supplied info artwork is available the badge stops being
   a gold disc with a drawn "i" and becomes a plain 44px icon box — the same
   box, and therefore the same left edge and glyph scale, as the three row
   icons below it, so the four read as one set. The disc rules above stay put
   as the fallback for when the asset base URL is unavailable. */

#tsrf-resort-finder-root .tsrf-sidebar-icon.tsrf-sidebar-icon-has-img {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	border-radius: 0;
	background: none;
	padding: 0;
	overflow: visible;
}

/* The disc's dot + stem must not survive on top of the artwork. */
#tsrf-resort-finder-root .tsrf-sidebar-icon.tsrf-sidebar-icon-has-img::before,
#tsrf-resort-finder-root .tsrf-sidebar-icon.tsrf-sidebar-icon-has-img::after {
	content: none;
	display: none;
}

#tsrf-resort-finder-root .tsrf-sidebar-icon-img {
	box-sizing: border-box !important;
	flex: 0 0 auto !important;
	display: block !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	object-fit: contain !important;
	object-position: center !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

/* Mobile: track the row icons' 32px box so the set stays consistent. */
@media (max-width: 640px) {
	#tsrf-resort-finder-root .tsrf-sidebar-icon.tsrf-sidebar-icon-has-img {
		width: 32px;
		height: 32px;
		min-width: 32px;
		min-height: 32px;
	}

	#tsrf-resort-finder-root .tsrf-sidebar-icon-img {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		min-height: 32px !important;
		max-width: 32px !important;
		max-height: 32px !important;
	}
}

#tsrf-resort-finder-root .tsrf-sidebar h3 {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	margin: 0;
	font-family: Georgia, "Playfair Display", "Times New Roman", Times, serif;
	color: var(--tsrf-navy) !important;
	/* !important needed to win over the generic #tsrf-resort-finder-root h3
	   guard rule (1.1em !important, added to block the site theme's own h3
	   sizing) — without it this rule silently loses despite higher
	   specificity, since !important always beats non-!important. */
	font-size: 1.25rem !important;
	font-weight: 800 !important;
}

#tsrf-resort-finder-root .tsrf-sidebar-intro {
	grid-column: 1 / -1;
	grid-row: 2;
	margin: 0;
	font-size: 0.88rem;
	color: var(--tsrf-text);
}

/* Phase 5Y: row rhythm opened up from 12px to 16px (gap and the divider's
   padding-top) so the taller 44px feature icons have room to breathe
   instead of stacking tight against the dividers. */
#tsrf-resort-finder-root .tsrf-sidebar-list {
	grid-column: 1 / -1;
	grid-row: 3;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#tsrf-resort-finder-root .tsrf-sidebar-list li {
	position: relative;
	padding-left: 18px;
	font-size: 0.85rem;
	color: var(--tsrf-muted);
	border-top: 1px solid var(--tsrf-sidebar-border);
	padding-top: 16px;
}

@media (max-width: 640px) {
	#tsrf-resort-finder-root .tsrf-sidebar-list {
		gap: 14px;
	}

	#tsrf-resort-finder-root .tsrf-sidebar-list li {
		padding-top: 14px;
	}
}

#tsrf-resort-finder-root .tsrf-sidebar-list li:first-child {
	border-top: none;
	padding-top: 0;
}

#tsrf-resort-finder-root .tsrf-sidebar-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tsrf-gold);
}

#tsrf-resort-finder-root .tsrf-sidebar-list li:first-child::before {
	top: 4px;
}

/* Step 1 sidebar rows with an icon instead of a plain dot */

/* Phase 6B: the sidebar rows carry the approved icon set again, so the row
   is a flex pair (icon + text) with no bullet and no left indent — nothing
   reserves an empty column. Top-aligned because most rows wrap to two or
   three lines and a centred icon would float against the middle of the
   block instead of leading it. */
#tsrf-resort-finder-root .tsrf-sidebar-list li.tsrf-sidebar-point {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding-left: 0;
}

#tsrf-resort-finder-root .tsrf-sidebar-list li.tsrf-sidebar-point::before {
	display: none;
}

@media (max-width: 640px) {
	#tsrf-resort-finder-root .tsrf-sidebar-list li.tsrf-sidebar-point {
		gap: 14px;
	}
}

/* Phase 6B: approved sidebar icons — 44px desktop / 32px mobile, matching the
   sizing settled in 0.1.60. The artwork is gold already, so no colour is
   applied. Each file is a square 160px PNG whose glyph fills 94-100% of the
   canvas, so object-fit: contain gives a consistent optical size across all
   twelve without distorting any of them. The box-model lock is explicit so a
   theme's global img rules cannot stretch or shrink them. */
#tsrf-resort-finder-root .tsrf-sidebar-item-icon-img {
	box-sizing: border-box !important;
	flex: 0 0 auto !important;
	display: block !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	object-fit: contain !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: none !important;
}

@media (max-width: 640px) {
	#tsrf-resort-finder-root .tsrf-sidebar-item-icon-img {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		min-height: 32px !important;
		max-width: 32px !important;
		max-height: 32px !important;
	}
}

/* State B — good resort fit, wrong accommodation fit.
   Rendered under the resort cards. Uses the same caution palette as the
   status notices so it reads as guidance, not as an error. */
#tsrf-resort-finder-root .tsrf-accommodation-review {
	margin: 20px 0 4px;
	padding: 16px 18px;
	border: 1px solid #e3d4a8;
	border-left: 4px solid #c9a227;
	border-radius: 6px;
	background: #fdf9ee;
}

#tsrf-resort-finder-root .tsrf-accommodation-review-title {
	margin: 0 0 6px;
	font-weight: 700;
	line-height: 1.35;
}

#tsrf-resort-finder-root .tsrf-accommodation-review-body {
	margin: 0;
	line-height: 1.55;
}

/* Large-group accommodation advisory (v0.4.49). The accommodation-review panel above; 13+ guests add the warning icon and the
   budget-consideration heading (.tsrf-budget-consideration-title). Paragraphs are spaced. */
#tsrf-resort-finder-root .tsrf-large-group-advisory-body + .tsrf-large-group-advisory-body {
	margin-top: 8px;
}

#tsrf-resort-finder-root .tsrf-large-group-advisory-prominent {
	border-left-width: 6px;
}

/* v0.4.52: one gap between stacked notices, at every width. */
#tsrf-resort-finder-root .tsrf-accommodation-review + .tsrf-accommodation-review,
#tsrf-resort-finder-root .tsrf-accommodation-review + .tsrf-group-notice {
	margin-top: 16px;
}

/* v0.4.52: the green sign-in notice sits directly above the step tracker. */
#tsrf-resort-finder-root .tsrf-notice + .tsrf-progress {
	margin-top: 14px;
}

#tsrf-resort-finder-root .tsrf-large-group-advisory-prominent .tsrf-budget-consideration-title {
	margin-bottom: 10px;
}

/* Epic Pass — the client's own stated constraint, rendered above the cards.

   Informational blue rather than caution-gold: nothing is wrong with this
   request, and the Finder is doing exactly what the client asked. Shares the
   luxury-depth palette because both are explanatory context rather than
   warnings. */
#tsrf-resort-finder-root .tsrf-epic-pass {
	margin: 0 0 22px;
	padding: 16px 18px;
	border: 1px solid #cfdce6;
	border-left: 5px solid #5b87a8;
	border-radius: 6px;
	background: #f5f9fc;
}

#tsrf-resort-finder-root .tsrf-epic-pass-title {
	margin: 0 0 6px;
	font-weight: 700;
	line-height: 1.35;
}

#tsrf-resort-finder-root .tsrf-epic-pass-body {
	margin: 0;
	line-height: 1.55;
}

/* Peak-period minimum-stay warning: the existing amber .tsrf-pass-conflict panel, with only the gap between its
   paragraphs added (the copy has two). */
#tsrf-resort-finder-root .tsrf-min-stay .tsrf-pass-conflict-body + .tsrf-pass-conflict-body {
	margin-top: 10px;
}

/* Pass conflict — two hard pass constraints that cannot both be satisfied.
   Warmer than the informational pass panel because it needs an answer from the
   client before any shortlist can be produced, but still not an error state. */
#tsrf-resort-finder-root .tsrf-pass-conflict {
	margin: 0 0 22px;
	padding: 16px 18px;
	border: 1px solid #e3d4a8;
	border-left: 5px solid #c9a227;
	border-radius: 6px;
	background: #fdf9ee;
}

#tsrf-resort-finder-root .tsrf-pass-conflict-title {
	margin: 0 0 6px;
	font-weight: 700;
	line-height: 1.35;
}

#tsrf-resort-finder-root .tsrf-pass-conflict-body {
	margin: 0;
	line-height: 1.55;
}

/* Top-band luxury-depth advisory — resorts AND accommodation category are both
   right; what is limited is the choice of ultra-luxury product within them.
   Rendered under the resort cards, after the accommodation-review panel.

   Deliberately a cooler, quieter palette than the caution-gold used by the
   budget and accommodation panels: this is informational context on an
   otherwise entirely normal result, and must not read as a warning that
   something is wrong with the client's budget. */
#tsrf-resort-finder-root .tsrf-luxury-depth {
	margin: 16px 0 4px;
	padding: 16px 18px;
	border: 1px solid #cfdce6;
	border-left: 4px solid #5b87a8;
	border-radius: 6px;
	background: #f5f9fc;
}

#tsrf-resort-finder-root .tsrf-luxury-depth-title {
	margin: 0 0 6px;
	font-weight: 700;
	line-height: 1.35;
}

#tsrf-resort-finder-root .tsrf-luxury-depth-body {
	margin: 0;
	line-height: 1.55;
}

/* Budget increase required — resorts are right, budget is not.
   Sits above the resort cards. Deliberately reads as prominent guidance, not
   as a fatal error: the Top 3 below it are still the answer. */
#tsrf-resort-finder-root .tsrf-budget-increase {
	margin: 0 0 22px;
	padding: 18px 20px;
	border: 1px solid #e3d4a8;
	border-left: 5px solid #c9a227;
	border-radius: 6px;
	background: #fdf9ee;
}

#tsrf-resort-finder-root .tsrf-budget-increase-title {
	margin: 0 0 8px;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.3;
}

#tsrf-resort-finder-root .tsrf-budget-increase-intro {
	margin: 0 0 12px;
	line-height: 1.55;
}

#tsrf-resort-finder-root .tsrf-budget-increase-figures {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

#tsrf-resort-finder-root .tsrf-budget-increase-figures li {
	margin: 0 0 4px;
	line-height: 1.5;
}

#tsrf-resort-finder-root .tsrf-budget-increase-key {
	font-weight: 700;
}

#tsrf-resort-finder-root .tsrf-budget-increase-note {
	margin: 0;
	line-height: 1.55;
}

/* Budget and accommodation considerations — a SOFT budget review, explained.
   The Budget increase required panel's own design (same container, border, colours, spacing and figures), so the two budget messages read as one
   system; only the heading gains a warning icon, and the subheads and bullet lists carry the explanation. Gold, not red: the holiday is achievable,
   and this must not read as an error. Text stays at the panel's 16px body size on every screen width (no shrinking on a phone). */
#tsrf-resort-finder-root .tsrf-budget-consideration-title {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 1.15em;
	color: var(--tsrf-navy-dark);
}

#tsrf-resort-finder-root .tsrf-budget-consideration-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	color: var(--tsrf-section-warn);
}

#tsrf-resort-finder-root .tsrf-budget-consideration-subhead {
	margin: 14px 0 6px;
	font-weight: 700;
	line-height: 1.35;
}

#tsrf-resort-finder-root .tsrf-budget-consideration-list {
	margin: 0 0 12px;
	padding-left: 22px;
}

#tsrf-resort-finder-root .tsrf-budget-consideration-list li {
	margin: 0 0 6px;
	line-height: 1.55;
}

#tsrf-resort-finder-root .tsrf-budget-consideration .tsrf-budget-increase-note {
	font-weight: 600;
}

@media (max-width: 480px) {
	#tsrf-resort-finder-root .tsrf-budget-consideration {
		padding: 16px 14px;
	}
}

/* Paid access. All additive — no existing rule above is changed. Reuses
   the same .tsrf-notice/.tsrf-btn/.tsrf-text-link building blocks and
   colour tokens as the rest of the Finder, so the paywall and price banner
   read as part of the same product rather than a bolted-on screen. */

/* Shown on Step 1 only, before the visitor answers anything. */
#tsrf-resort-finder-root .tsrf-price-banner {
	margin-top: 0;
	margin-bottom: 18px;
}

/* A neutral, non-alarming variant of .tsrf-notice for "still processing" /
   "no charge was made" messaging — distinct from success (green) and error
   (red), and from the base gold caution tone used for scoring outcomes. */
#tsrf-resort-finder-root .tsrf-notice-info {
	background: #eef3f7;
	border-color: var(--tsrf-border);
	color: var(--tsrf-text);
}

#tsrf-resort-finder-root .tsrf-paywall .tsrf-result-heading {
	margin-top: 0;
}

/* The price block on the results payment gate: current price large and bold, the previous
   price ~60% of its size, muted grey and crossed out, both on one baseline. Sizes are
   relative so the 60% ratio holds at every breakpoint; the pair wraps rather than overflows. */
#tsrf-resort-finder-root .tsrf-paywall-pricing {
	margin: 0 0 14px;
}

#tsrf-resort-finder-root .tsrf-paywall-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.5em;
	margin: 0;
	font-size: 2rem;
	line-height: 1.15;
}

#tsrf-resort-finder-root .tsrf-price-now {
	font-weight: 700;
	color: var(--tsrf-navy);
}

#tsrf-resort-finder-root .tsrf-price-was {
	font-size: 0.6em;
	font-weight: 400;
	color: var(--tsrf-muted);
	text-decoration: line-through;
}

#tsrf-resort-finder-root .tsrf-paywall-terms {
	margin: 4px 0 0;
	font-size: 0.95rem;
	color: var(--tsrf-muted);
}

#tsrf-resort-finder-root .tsrf-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 480px) {
	#tsrf-resort-finder-root .tsrf-paywall-price {
		font-size: 1.75rem;
	}
}

#tsrf-resort-finder-root .tsrf-paywall-count {
	margin: 0 0 14px;
	font-weight: 600;
	color: var(--tsrf-navy);
}

#tsrf-resort-finder-root .tsrf-paywall .tsrf-btn {
	margin-top: 4px;
}

#tsrf-resort-finder-root .tsrf-access-link {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--tsrf-border);
}

#tsrf-resort-finder-root .tsrf-access-link-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin-top: 8px;
}

#tsrf-resort-finder-root .tsrf-access-link-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.82rem;
	color: var(--tsrf-muted);
}

#tsrf-resort-finder-root .tsrf-access-link-form input[type="email"] {
	min-width: 220px;
	padding: 8px 10px;
	border: 1px solid var(--tsrf-border);
	border-radius: 6px;
	font: inherit;
	font-size: 0.9rem;
	color: var(--tsrf-text);
}

#tsrf-resort-finder-root .tsrf-access-link-form .tsrf-result-note {
	flex-basis: 100%;
	border-top: 0;
	padding-top: 0;
	margin-top: 4px;
}

@media (max-width: 480px) {
	#tsrf-resort-finder-root .tsrf-access-link-form {
		flex-direction: column;
		align-items: stretch;
	}

	#tsrf-resort-finder-root .tsrf-access-link-form input[type="email"] {
		min-width: 0;
	}
}

/* Returning purchasers (0.4.0). Additive only. The link sits in the left slot
   of the Step 1 nav, directly beside Continue; the panel it opens (and the
   "Welcome back" panel for an already-verified browser) sits at the start of
   Step 1. Reuses the existing notice, button and text-link building blocks. */
#tsrf-resort-finder-root .tsrf-returning {
	margin-top: 0;
	margin-bottom: 18px;
}

#tsrf-resort-finder-root .tsrf-returning-intro {
	margin: 0 0 4px;
	font-size: 0.88rem;
	line-height: 1.45;
}

#tsrf-resort-finder-root .tsrf-returning-actions {
	margin-top: 10px;
}

#tsrf-resort-finder-root .tsrf-returning-link {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--tsrf-navy);
	text-align: left;
}

/* "Email me these results" — a deliberate secondary action under the cards. */
#tsrf-resort-finder-root .tsrf-email-results {
	margin-top: 14px;
}
