/* Outside Adventures - Homepage v2 styles (May 17 2026 refresh).
   Loaded only on is_front_page(). Houses the compact regions card grid that
   replaced the list+map split, plus (v2, 31 May 2026) hero containment +
   custom finder-dropdown styling. Versioned via filename. */

/* ============ Compact regions section ============ */

.home-regions-v2 {
	background: var(--ink);
	color: var(--cream);
	padding: 80px 0 96px;
}

@media (max-width: 540px) {
	.home-regions-v2 { padding: 56px 0 64px; }
}

.home-regions-v2 .hr-head {
	max-width: 720px;
	margin-bottom: 32px;
}

.home-regions-v2 .hr-head .eyebrow {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.14em;
	color: rgba(244, 236, 219, 0.55);
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
}

.home-regions-v2 .hr-head .eyebrow .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--yellow);
}

.home-regions-v2 .hr-head h2 {
	font-family: 'Bricolage Grotesque', 'Manrope', serif;
	font-size: 52px;
	line-height: 1.05;
	font-weight: 600;
	margin: 0 0 18px;
	color: var(--cream);
	letter-spacing: -0.02em;
}

@media (max-width: 820px) {
	.home-regions-v2 .hr-head h2 { font-size: 40px; }
}
@media (max-width: 540px) {
	.home-regions-v2 .hr-head h2 { font-size: 32px; }
}

.home-regions-v2 .hr-head .sub {
	font-family: 'Manrope', sans-serif;
	font-size: 17px;
	line-height: 1.55;
	color: rgba(244, 236, 219, 0.78);
	margin: 0;
	max-width: 56ch;
}

@media (max-width: 540px) {
	.home-regions-v2 .hr-head .sub { font-size: 15px; }
}

/* ----- Card grid ----- */

.home-regions-v2 .hr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
	margin-bottom: 28px;
}

@media (max-width: 540px) {
	.home-regions-v2 .hr-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.home-regions-v2 .hr-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 20px;
	background: rgba(244, 236, 219, 0.04);
	border: 1px solid rgba(244, 236, 219, 0.08);
	border-radius: 10px;
	color: var(--cream);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
	position: relative;
}

.home-regions-v2 .hr-card:hover {
	background: rgba(244, 236, 219, 0.08);
	border-color: rgba(244, 236, 219, 0.18);
	transform: translateY(-2px);
}

.home-regions-v2 .hr-card::after {
	content: '\2192';
	position: absolute;
	top: 14px;
	right: 16px;
	color: var(--yellow);
	font-size: 14px;
	opacity: 0;
	transition: opacity 0.15s, transform 0.15s;
}

.home-regions-v2 .hr-card:hover::after {
	opacity: 1;
	transform: translateX(2px);
}

.home-regions-v2 .hr-name {
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	flex: 1;
}

@media (max-width: 540px) {
	.home-regions-v2 .hr-name { font-size: 14px; }
}

.home-regions-v2 .hr-count {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	color: rgba(244, 236, 219, 0.5);
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
}

/* ----- CTA to /uk-adventure-map/ ----- */

.home-regions-v2 .hr-cta {
	margin-top: 24px;
	display: flex;
	justify-content: flex-start;
}

.home-regions-v2 .hr-cta-link {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--yellow);
	text-decoration: none;
	border-bottom: 1px solid var(--yellow);
	padding-bottom: 4px;
	transition: opacity 0.15s;
}

.home-regions-v2 .hr-cta-link:hover {
	opacity: 0.75;
}

/* ============================================================================
   v2 ADDITIONS (31 May 2026 — design fresh-eyes follow-up)
   ============================================================================ */

/* ----- Hero containment -----
   theme-v12.css sets the hero to min-height:92vh + 160px top padding, and the
   headline to clamp(48px,7.4vw,116px). On wide screens the 116px headline runs
   three lines and the hero overflows to ~1.5 viewports, pushing the finder and
   stats well below the fold. Pull it back to a contained band where the finder
   sits near the fold, without losing the headline's presence. */
.home-hero {
	min-height: 70vh;
	padding-top: 118px;
	padding-bottom: 56px;
}
.home-hero h1 {
	font-size: clamp(40px, 5.2vw, 82px);
	line-height: 1.04;
}
.home-hero .sub {
	margin-top: 22px;
}
@media (max-width: 720px) {
	.home-hero { min-height: 0; padding-top: 112px; padding-bottom: 44px; }
	.home-hero h1 { font-size: clamp(36px, 9vw, 60px); }
}

/* Search button: retire the residual blue hover, match the yellow accent
   system used by the other buttons (consistency with oa-brand-fixes-v1). */
.finder-cta:hover {
	background: var(--yellow);
	color: var(--ink);
}

/* ----- Custom finder dropdown (desktop enhancement) -----
   Progressive enhancement built by oa-finder-v1.js. The native <select> stays
   in the DOM (hidden) as the source of truth + mobile control; on fine-pointer
   devices we render a brand-styled listbox so the open menu matches the site
   instead of the boxy OS-native list. */
.finder-field.oa-cs { outline: none; }
.finder-field .oa-cs-value {
	display: block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: -0.005em;
	color: var(--ink);
	line-height: 1.2;
}
.finder-field .oa-cs-list {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	z-index: 50;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--paper, #FBF7EE);
	border: 1px solid rgba(19, 19, 19, 0.08);
	border-radius: 14px;
	box-shadow: 0 26px 52px -18px rgba(8, 15, 25, 0.5);
	max-height: 320px;
	overflow-y: auto;
}
.finder-field .oa-cs-list[hidden] { display: none; }
.finder-field .oa-cs-opt {
	font-family: var(--sans);
	font-size: 15px;
	color: var(--ink);
	padding: 11px 14px;
	border-radius: 9px;
	cursor: pointer;
	line-height: 1.3;
	transition: background 0.12s, color 0.12s;
}
.finder-field .oa-cs-opt:hover,
.finder-field .oa-cs-opt.is-active {
	background: rgba(19, 19, 19, 0.06);
}
.finder-field .oa-cs-opt[aria-selected="true"] {
	background: var(--yellow);
	color: var(--ink);
	font-weight: 600;
}
/* When enhanced, the open list should clear the focus ring cleanly. */
.finder-field.oa-cs:focus-visible {
	box-shadow: 0 0 0 2px var(--yellow) inset;
	background-color: #fff;
}
