/* wwh/featured-plans — curated rail */

.wwh-featured-plans {
	margin: 32px 0;
	font-family: 'Montserrat', Arial, sans-serif;
	color: var( --wp--preset--color--ink-primary, #1a1613 );
}
.wwh-featured-plans__heading {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 32px;
	margin: 0 0 8px;
}
.wwh-featured-plans__lede {
	color: #5a544d;
	margin: 0 0 24px;
	max-width: 60ch;
}
.wwh-featured-plans__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
	gap: 20px;
}
.wwh-featured-plans__card {
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border-top: 4px solid var( --accent, #d9a64a );
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .06 );
	transition: transform .15s ease, box-shadow .15s ease;
}
.wwh-featured-plans__card:hover {
	transform: translateY( -2px );
	box-shadow: 0 4px 12px rgba( 0, 0, 0, .1 );
}
.wwh-featured-plans__link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.wwh-featured-plans__photo {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}
.wwh-featured-plans__photo--placeholder {
	background: linear-gradient( 135deg, #e0d6c5, #c8b89c );
}
.wwh-featured-plans__body {
	padding: 14px 16px 16px;
}
.wwh-featured-plans__emoji {
	font-size: 22px;
	margin-right: 4px;
}
.wwh-featured-plans__title {
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 22px;
	margin: 4px 0 6px;
	line-height: 1.2;
}
.wwh-featured-plans__mood {
	color: #5a544d;
	font-style: italic;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 15px;
	margin: 0 0 8px;
}
.wwh-featured-plans__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: #5a544d;
	margin: 0;
}
.wwh-featured-plans__cta {
	color: var( --wp--preset--color--ink-primary, #1a1613 );
	font-weight: 600;
}

/* ---- Map view (mapView: true) — Plan your visit ------------------------
   The plans as a list beside one map. Choosing a row draws that plan on the
   map (view.js). Phones stack the map above the list. */
.wwh-featured-plans--map .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}
.wwh-featured-plans__mapview {
	display: grid;
	grid-template-columns: minmax( 320px, 420px ) 1fr;
	gap: 24px;
	align-items: start;
}
.wwh-featured-plans__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
/* The list column is as tall as the map and scrolls on its own. */
.wwh-featured-plans__listcol {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: max( 600px, calc( 100vh - 120px ) );
	min-height: 0;
}
.wwh-featured-plans__list {
	gap: 10px;
	overflow-y: auto;
	min-height: 0;
	padding: 2px 6px 2px 2px; /* room for the active row's border and the scrollbar */
	overscroll-behavior: contain;
}
.wwh-featured-plans__row[ hidden ] { display: none; }
.wwh-featured-plans__search { display: flex; flex-direction: column; gap: 6px; }
.wwh-featured-plans__search input {
	box-sizing: border-box;
	width: 100%;
	padding: 12px 16px;
	font-family: var( --wp--preset--font-family--body, Georgia, serif );
	font-size: 1.05rem;
	border: 1px solid rgba( 26, 22, 19, .3 );
	border-radius: 10px;
	background: #fff;
}
.wwh-featured-plans__search input:focus { outline: 2px solid var( --wp--preset--color--ink-primary, #1a1613 ); outline-offset: 1px; }
.wwh-featured-plans__search-count,
.wwh-featured-plans__none {
	margin: 0;
	font-family: var( --wp--preset--font-family--ui, Arial, sans-serif );
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var( --wp--preset--color--ink-caption, #5a544d );
}
.wwh-featured-plans__none[ hidden ] { display: none; }
/* Rows: PLAN_DESIGNS.pdf option 3. */
.wwh-featured-plans__row {
	background: #fff;
	border: 1px solid #e3dccf;
	border-radius: 12px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wwh-featured-plans__row:hover { box-shadow: 0 4px 14px rgba( 0, 0, 0, .07 ); }
.wwh-featured-plans__row.is-active {
	border: 2px solid var( --wp--preset--color--warm-obsidian, #18140f );
	margin: -1px;
}
.wwh-featured-plans__row-show {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 14px;
	align-items: center;
	width: 100%;
	padding: 10px;
	background: none;
	border: 0;
	border-radius: 12px;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.wwh-featured-plans__row-show:focus-visible {
	outline: 2px solid var( --wp--preset--color--ink-primary, #1a1613 );
	outline-offset: 3px;
}
.wwh-featured-plans__row-photo {
	display: block;
	width: 96px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	border-left: 6px solid var( --accent, #d9a64a );
	box-sizing: border-box;
}
.wwh-featured-plans__row-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wwh-featured-plans__row-title {
	font-family: var( --wp--preset--font-family--display, Georgia, serif );
	font-size: 1.3rem;
	line-height: 1.1;
}
.wwh-featured-plans__row-meta {
	font-family: var( --wp--preset--font-family--ui, Arial, sans-serif );
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var( --wp--preset--color--ink-caption, #5a544d );
}

/* Map overlays: the hint pill (top left) and the chosen plan's card. */
.wwh-featured-plans__map-hint {
	position: absolute;
	bottom: 40px; /* above the attribution line */
	left: 16px;
	z-index: 2;
	margin: 0;
	padding: 7px 13px;
	border-radius: 99px;
	background: rgba( 24, 20, 15, .8 );
	color: #fff;
	font-family: var( --wp--preset--font-family--ui, Arial, sans-serif );
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .04em;
	pointer-events: none;
}
@media ( pointer: coarse ), ( max-width: 900px ) { .wwh-featured-plans__map-hint { display: none; } }
.wwh-featured-plans__map-card {
	position: absolute;
	left: 16px;
	top: 16px; /* top, not bottom: the map is nearly a screen tall, so its
	              bottom edge is often below the fold when a plan is chosen */
	z-index: 2;
	max-width: min( 320px, calc( 100% - 90px ) );
	padding: 14px 18px 16px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, .15 );
}
.wwh-featured-plans__map-card p { margin: 0; }
.wwh-featured-plans__map-card-title {
	font-family: var( --wp--preset--font-family--display, Georgia, serif );
	font-size: 1.35rem;
	line-height: 1.15;
}
.wwh-featured-plans__map-card-meta {
	margin: 6px 0 12px !important;
	font-family: var( --wp--preset--font-family--ui, Arial, sans-serif );
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var( --wp--preset--color--ink-caption, #5a544d );
}
.wwh-featured-plans__map-card-link {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 99px;
	background: var( --wp--preset--color--warm-obsidian, #18140f );
	color: #fff;
	font-family: var( --wp--preset--font-family--ui, Arial, sans-serif );
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}
.wwh-featured-plans__map-card-link:hover,
.wwh-featured-plans__map-card-link:focus-visible { background: var( --wp--preset--color--ink-caption, #5a544d ); color: #fff; }

.wwh-featured-plans__map {
	position: sticky; /* also the positioning context for the overlays */
	top: calc(var(--wwh-pinned-header, 0px) + 24px); /* clears the theme's pinned bar */
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var( --wwh-hair-light, rgba( 26, 22, 19, .12 ) );
}
.wwh-featured-plans__map .wwh-geomapv {
	margin: 0;
	/* Taller than the 560px the block asks for: nearly a screen high, so the
	   route reads at a glance. The map sets --wwh-geomapv-h inline. */
	--wwh-geomapv-h: max( 600px, calc( 100vh - 120px ) ) !important;
}

@media ( max-width: 900px ) {
	.wwh-featured-plans__mapview { grid-template-columns: 1fr; }
	.wwh-featured-plans__map { order: -1; position: relative; top: 0; }
	/* Phones: no inner scroll; the page scrolls the list. */
	.wwh-featured-plans__listcol { max-height: none; }
	.wwh-featured-plans__list { overflow: visible; padding: 0; }
	.wwh-featured-plans__row-show { grid-template-columns: 80px 1fr; }
	.wwh-featured-plans__row-photo { width: 80px; height: 68px; }
	.wwh-featured-plans__row-title { font-size: 1.15rem; }
	/* Phones: a slim bar (title + button on one line) so the card doesn't
	   cover half the map. */
	.wwh-featured-plans__map-card {
		display: flex; align-items: center; gap: 10px;
		top: 10px; left: 10px; right: 10px; max-width: none;
		padding: 8px 8px 8px 14px;
	}
	.wwh-featured-plans__map-card-title { flex: 1; min-width: 0; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.wwh-featured-plans__map-card-meta { display: none; }
	.wwh-featured-plans__map-card-link { flex: 0 0 auto; padding: 8px 12px; }
	.wwh-featured-plans__map .wwh-geomapv { --wwh-geomapv-h: 400px !important; }
}
