/**
 * Locations archive — Kenmore metro board redesign.
 * Scoped to body.post-type-archive-location only.
 */

body.post-type-archive-location {
	--rf-loc-arch-accent: #b89a7b;
	--rf-loc-arch-ink: #141416;
	--rf-loc-arch-line: rgba(244, 241, 236, 0.12);
}

/* Hero polish */
body.post-type-archive-location .rf-hero--locations-archive.rf-hero--cinema {
	isolation: isolate;
}
body.post-type-archive-location .rf-hero--locations-archive .rf-hero__badge {
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
	border-radius: 0;
	letter-spacing: 0.14em;
}
body.post-type-archive-location .rf-hero--locations-archive .rf-hero__title {
	font-family: var(--rf-font-display);
	font-weight: var(--rf-fw-heading);
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 0.98;
}
body.post-type-archive-location .rf-hero--locations-archive .rf-hero__title-line--accent {
	color: var(--rf-loc-arch-accent);
}
body.post-type-archive-location .rf-hero--locations-archive .rf-hero__trust-ico {
	border-radius: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.05);
}

/* Catalog stage */
body.post-type-archive-location .rf-section--locations-archive {
	--rf-locations-accent: var(--rf-loc-arch-accent);
	background:
		linear-gradient(135deg, rgba(184, 154, 123, 0.1) 0%, transparent 42%),
		linear-gradient(180deg, #17171a 0%, #101012 55%, #0c0c0e 100%);
	padding-block: clamp(3.5rem, 7vw, 5.75rem);
	color: #f4f1ec;
}
body.post-type-archive-location .rf-locations-archive__stage::before {
	display: none;
}
body.post-type-archive-location .rf-locations-archive__stage {
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 4vw, 2.85rem);
}

/* Meta + band masthead */
body.post-type-archive-location .rf-locations-archive__masthead {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 2.8vw, 1.85rem);
	margin: 0;
	padding: 0 0 clamp(1.35rem, 2.8vw, 1.85rem);
	border-bottom: 1px solid var(--rf-loc-arch-line);
	grid-template-columns: none;
}
body.post-type-archive-location .rf-locations-archive__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
body.post-type-archive-location .rf-locations-archive__meta .rf-locations__eyebrow {
	display: inline-flex;
	margin: 0;
	padding: 0.32rem 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.04);
	color: var(--rf-loc-arch-accent);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
body.post-type-archive-location .rf-locations-archive__meta .rf-locations__count {
	display: inline-flex;
	align-items: baseline;
	gap: 0.55rem;
	margin: 0;
	flex-direction: row;
	align-items: baseline;
}
body.post-type-archive-location .rf-locations-archive__meta .rf-locations__count-num {
	font-family: var(--rf-font-display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: var(--rf-fw-heading);
	line-height: 0.9;
	color: #fff;
}
body.post-type-archive-location .rf-locations-archive__meta .rf-locations__count-label {
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(244, 241, 236, 0.55);
}
body.post-type-archive-location .rf-locations-archive__band {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(14rem, 0.9fr);
	gap: clamp(1.5rem, 4vw, 3.25rem);
	align-items: end;
}
body.post-type-archive-location .rf-locations-archive__masthead .rf-locations__title {
	margin: 0;
	font-size: clamp(2.05rem, 4.8vw, 3.25rem);
	line-height: 0.96;
	text-transform: uppercase;
	color: #fff;
}
body.post-type-archive-location .rf-locations-archive__masthead .rf-locations__title-line--accent {
	color: var(--rf-loc-arch-accent);
}
body.post-type-archive-location .rf-locations-archive__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.15rem;
}
body.post-type-archive-location .rf-locations-archive__intro .rf-locations__lead {
	margin: 0;
	max-width: 34em;
	color: rgba(244, 241, 236, 0.7);
}
body.post-type-archive-location .rf-locations-archive__intro .rf-locations__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0;
	border: 0;
	border-bottom: 1.5px solid var(--rf-loc-arch-accent);
	border-radius: 0 !important;
	background: transparent;
	color: #fff;
	box-shadow: none;
	font-size: 0.92rem;
	font-weight: var(--rf-fw-medium);
	text-decoration: none;
}
body.post-type-archive-location .rf-locations-archive__intro .rf-locations__cta:hover {
	color: var(--rf-loc-arch-accent);
	background: transparent;
	box-shadow: none;
}

/* County groups */
body.post-type-archive-location .rf-locations-archive__county {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
body.post-type-archive-location .rf-locations-archive__county-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid rgba(244, 241, 236, 0.1);
}
body.post-type-archive-location .rf-locations-archive__county-title {
	margin: 0;
	font-family: var(--rf-font-display);
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	font-weight: var(--rf-fw-heading);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rf-loc-arch-accent);
}

/* Open metro board */
body.post-type-archive-location .rf-locations-archive__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--rf-loc-arch-line);
	background: rgba(255, 255, 255, 0.03);
}
body.post-type-archive-location .rf-locations-archive__list > .rf-location {
	margin: 0;
	border-right: 1px solid rgba(244, 241, 236, 0.1);
	border-bottom: 1px solid rgba(244, 241, 236, 0.1);
}
body.post-type-archive-location .rf-locations-archive__list > .rf-location:nth-child(2n) {
	border-right: 0;
}
body.post-type-archive-location .rf-locations-archive__list > .rf-location:nth-last-child(-n + 2) {
	border-bottom: 0;
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__link {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	min-height: 6.5rem;
	padding: 1.15rem 1.2rem;
	border: 0;
	border-radius: 0 !important;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.22s ease;
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__link:hover,
body.post-type-archive-location .rf-locations-archive__list .rf-location__link:focus-visible {
	background: rgba(184, 154, 123, 0.1);
	outline: none;
	color: inherit;
	transform: none;
	box-shadow: none;
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__thumb,
body.post-type-archive-location .rf-locations-archive__list .rf-location__pin {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 0 !important;
	border: 1px solid rgba(184, 154, 123, 0.35);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__pin {
	display: grid;
	place-items: center;
	color: var(--rf-loc-arch-accent);
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.28rem;
	min-width: 0;
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__index {
	font-family: var(--rf-font-display);
	font-size: 0.72rem;
	font-weight: var(--rf-fw-heading);
	letter-spacing: 0.12em;
	color: rgba(184, 154, 123, 0.7);
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__name {
	font-family: var(--rf-font-display);
	font-size: clamp(1.02rem, 1.6vw, 1.15rem);
	font-weight: var(--rf-fw-heading);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.15;
	color: #fff;
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__region {
	font-size: 0.84rem;
	color: rgba(244, 241, 236, 0.58);
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__go {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0;
	border: 0;
	border-radius: 0 !important;
	background: transparent;
	color: #fff;
	font-size: 0.82rem;
	font-weight: var(--rf-fw-medium);
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__go .rf-icon {
	color: var(--rf-loc-arch-accent);
	transition: transform 0.2s ease;
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__link:hover .rf-location__go {
	color: var(--rf-loc-arch-accent);
	background: transparent;
}
body.post-type-archive-location .rf-locations-archive__list .rf-location__link:hover .rf-location__go .rf-icon {
	transform: translateX(3px);
}

body.post-type-archive-location .rf-section--locations-archive .rf-pagination {
	margin-top: 0.5rem;
}
body.post-type-archive-location .rf-section--final-cta .rf-cta-banner {
	border-radius: 0;
}

@media (max-width: 900px) {
	body.post-type-archive-location .rf-locations-archive__band {
		grid-template-columns: 1fr;
		gap: 1.15rem;
		align-items: start;
	}
}
@media (max-width: 720px) {
	body.post-type-archive-location .rf-locations-archive__list {
		grid-template-columns: 1fr;
	}
	body.post-type-archive-location .rf-locations-archive__list > .rf-location,
	body.post-type-archive-location .rf-locations-archive__list > .rf-location:nth-child(2n) {
		border-right: 0;
		border-bottom: 1px solid rgba(244, 241, 236, 0.1);
	}
	body.post-type-archive-location .rf-locations-archive__list > .rf-location:nth-last-child(-n + 2) {
		border-bottom: 1px solid rgba(244, 241, 236, 0.1);
	}
	body.post-type-archive-location .rf-locations-archive__list > .rf-location:last-child {
		border-bottom: 0;
	}
	body.post-type-archive-location .rf-locations-archive__list .rf-location__link {
		grid-template-columns: 3.5rem minmax(0, 1fr);
		gap: 0.85rem;
		min-height: 0;
		padding: 1.05rem 1rem;
	}
	body.post-type-archive-location .rf-locations-archive__list .rf-location__thumb,
	body.post-type-archive-location .rf-locations-archive__list .rf-location__pin {
		width: 3.5rem;
		height: 3.5rem;
	}
	body.post-type-archive-location .rf-locations-archive__list .rf-location__go {
		grid-column: 2;
		justify-self: start;
	}
	body.post-type-archive-location .rf-locations-archive__list .rf-location__go-label {
		display: none;
	}
}
