.west-archive,
.west-archive *,
.west-archive *::before,
.west-archive *::after {
	box-sizing: border-box;
}

.west-archive__hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

body.west-archive-template {
	background: var(--west-surface-soft);
}

body.west-archive-template #main-content.west-archive {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
}

.west-archive {
	overflow: clip;
	background: var(--west-surface-soft);
	color: var(--west-charcoal);
	font-family: var(--west-font-body);
	font-size: var(--west-step-0);
	line-height: 1.7;
}

body.west-archive-template .west-archive h1,
body.west-archive-template .west-archive h2,
body.west-archive-template .west-archive h3 {
	margin-top: 0;
	color: var(--west-blue);
	font-family: var(--west-font-display);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.02;
}

.west-archive a,
.west-archive button,
.west-archive input,
.west-archive select,
.west-archive summary {
	transition: color var(--west-transition), background-color var(--west-transition), border-color var(--west-transition), opacity var(--west-transition), transform var(--west-transition);
}

.west-archive a:focus-visible,
.west-archive button:focus-visible,
.west-archive input:focus-visible,
.west-archive select:focus-visible,
.west-archive summary:focus-visible {
	outline: 0.2rem solid var(--west-gold);
	outline-offset: 0.2rem;
}

.west-archive__hero {
	position: relative;
	min-height: 29rem;
	display: grid;
	align-items: center;
	overflow: hidden;
	padding-block: var(--west-space-7) var(--west-space-8);
	background: var(--west-blue);
}

.west-archive__hero::after {
	position: absolute;
	top: 14%;
	right: clamp(2rem, 8vw, 9rem);
	width: 0.0625rem;
	height: 72%;
	background: rgba(206, 178, 97, 0.45);
	content: "";
}

.west-archive__hero-inner {
	position: relative;
	z-index: 1;
}

.west-archive__hero .west-eyebrow {
	margin-bottom: var(--west-space-4);
	color: var(--west-gold);
}

body.west-archive-template .west-archive__hero h1 {
	max-width: 11.5ch;
	margin-bottom: var(--west-space-5);
	color: var(--west-white);
	font-size: clamp(2.875rem, 4vw, 3.5rem);
	text-wrap: balance;
}

.west-archive__hero-copy {
	max-width: 41rem;
	margin: 0 0 var(--west-space-6);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--west-step-1);
	line-height: 1.55;
	text-wrap: pretty;
}

.west-archive__hero-link {
	gap: var(--west-space-sm);
}

.west-archive__discovery {
	padding-block: var(--west-space-9);
}

.west-archive__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: end;
	margin-bottom: var(--west-space-7);
}

body.west-archive-template .west-archive__intro h2 {
	max-width: 14ch;
	margin-bottom: 0;
	font-size: var(--west-text-heading-lg);
	font-weight: 600;
	text-wrap: balance;
}

.west-archive__intro > p {
	max-width: 32rem;
	margin: 0;
	color: var(--west-text-muted);
	font-size: var(--west-step-1);
	line-height: 1.55;
}

.west-archive__preview-note {
	margin: 0 0 var(--west-space-4);
	padding: 0.7rem var(--west-space-3);
	border-left: 0.16rem solid var(--west-gold);
	background: color-mix(in srgb, var(--west-gold) 13%, var(--west-white));
	color: var(--west-blue);
	font-size: 0.78rem;
}

.west-filters {
	margin-bottom: var(--west-space-7);
}

.west-filters__toggle,
.west-filters__mobile-header,
.west-filters__backdrop {
	display: none;
}

.west-filters__panel,
.west-filters:not([open]) > .west-filters__panel {
	display: block;
	padding: var(--west-space-5);
	border: 0.0625rem solid var(--west-border);
	background: var(--west-white);
}

.west-filter-form {
	display: grid;
	gap: var(--west-space-5);
}

.west-filter-group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.west-filter-group legend,
.west-filter-group > label {
	display: block;
	margin: 0 0 var(--west-space-2);
	color: var(--west-blue);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1.4;
	text-transform: uppercase;
}

.west-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--west-space-2);
}

.west-filter-pills label {
	position: relative;
	cursor: pointer;
}

.west-filter-pills input {
	position: absolute;
	width: 0.0625rem;
	height: 0.0625rem;
	opacity: 0;
}

.west-filter-pills span {
	display: inline-flex;
	min-height: 2.65rem;
	align-items: center;
	padding: 0.6rem 1rem;
	border: 0.0625rem solid var(--west-border);
	border-radius: 999px;
	background: var(--west-surface-soft);
	color: var(--west-charcoal);
	font-size: 0.88rem;
	font-weight: 600;
}

.west-filter-pills input:checked + span {
	border-color: var(--west-blue);
	background: var(--west-blue);
	color: var(--west-white);
}

.west-filter-pills input:focus-visible + span {
	outline: 0.2rem solid var(--west-gold);
	outline-offset: 0.2rem;
}

.west-filter-form__selects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--west-space-4);
}

.west-filter-group select {
	width: 100%;
	min-height: 3.35rem;
	padding: 0.75rem 2.4rem 0.75rem 0.9rem;
	border: 0.0625rem solid var(--west-border);
	border-radius: var(--west-radius-small);
	background-color: var(--west-surface-soft);
	color: var(--west-charcoal);
	font: inherit;
	cursor: pointer;
}

.west-filter-group select:hover {
	border-color: var(--west-blue);
}

.west-filter-form__actions {
	display: flex;
	align-items: center;
	gap: var(--west-space-4);
	padding-top: var(--west-space-4);
	border-top: 0.0625rem solid var(--west-border);
}

.west-filter-form__apply {
	min-height: 3.35rem;
	border-color: var(--west-blue);
	background: var(--west-blue);
	color: var(--west-white);
	cursor: pointer;
}

.west-filter-form__apply:hover {
	border-color: var(--west-gold);
	background: var(--west-gold);
	color: var(--west-blue-deep);
}

.west-filter-form__reset,
.west-archive__results-bar a {
	color: var(--west-blue);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration-color: var(--west-gold);
	text-underline-offset: 0.22rem;
}

.west-archive__results {
	scroll-margin-top: var(--west-space-5);
}

.west-archive__results:focus {
	outline: none;
}

.west-archive__results-bar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--west-space-4);
	margin-bottom: var(--west-space-5);
	padding-bottom: var(--west-space-3);
	border-bottom: 0.0625rem solid var(--west-border);
}

.west-archive__result-count {
	margin: 0;
	color: var(--west-blue);
	font-size: var(--west-step-1);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.west-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 2.8vw, 2.5rem);
}

.west-archive__grid .west-property-card {
	border-bottom: 0;
}

.west-pagination {
	margin-top: var(--west-space-7);
}

.west-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--west-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.west-pagination a,
.west-pagination span {
	display: inline-grid;
	min-width: 2.75rem;
	min-height: 2.75rem;
	place-items: center;
	padding: 0.55rem 0.75rem;
	border: 0.0625rem solid var(--west-border);
	background: var(--west-white);
	color: var(--west-blue);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.west-pagination .current,
.west-pagination a:hover {
	border-color: var(--west-blue);
	background: var(--west-blue);
	color: var(--west-white);
}

.west-archive__empty {
	max-width: 46rem;
	padding-block: var(--west-space-7);
	border-block: 0.0625rem solid var(--west-border);
}

body.west-archive-template .west-archive__empty h3 {
	max-width: 22ch;
	margin-bottom: var(--west-space-5);
	font-size: var(--west-step-2);
	line-height: 1.18;
	text-wrap: balance;
}

.west-archive__empty-reset:hover {
	border-color: var(--west-blue);
	background: var(--west-blue);
	color: var(--west-white);
}

.west-archive__values {
	padding-block: var(--west-space-8) var(--west-space-9);
	background: var(--west-blue);
}

.west-archive__values-heading {
	display: grid;
	grid-template-columns: 1fr minmax(0, 2fr);
	gap: var(--west-space-5);
	margin-bottom: var(--west-space-7);
}

.west-archive__values .west-eyebrow {
	color: var(--west-gold);
}

body.west-archive-template .west-archive__values h2 {
	max-width: 18ch;
	margin-bottom: 0;
	color: var(--west-white);
	font-size: var(--west-step-3);
	text-wrap: balance;
}

.west-archive__value-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	border-top: 0.0625rem solid rgba(255, 255, 255, 0.25);
	list-style: none;
}

.west-archive__value-list li {
	min-height: 9.5rem;
	padding: var(--west-space-4) var(--west-space-4) var(--west-space-5) 0;
	border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.25);
	color: var(--west-white);
	line-height: 1.5;
}

.west-archive__value-list li::before {
	display: block;
	width: 2rem;
	height: 0.125rem;
	margin-bottom: var(--west-space-4);
	background: var(--west-gold);
	content: "";
}

body.west-archive-template .wrap_footer .elementor-element-ea6e747,
body.west-archive-template .wrap_footer .elementor-top-section:has(.elementor-widget-qomfort_elementor_gallery_slide_2) {
	display: none !important;
}

.west-archive-template .menu-canvas .menu-toggle::before,
.west-archive-template .menu-canvas .menu-toggle::after,
.west-archive-template .menu-canvas .menu-toggle span::before {
	background-color: var(--west-white);
}

@media (max-width: 64rem) {
	.west-archive__hero {
		min-height: 28rem;
	}

	.west-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.west-archive__value-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 56.25rem) {
	.west-archive__intro,
	.west-archive__values-heading {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--west-space-3);
	}

	.west-archive__intro > p {
		max-width: 38rem;
	}
}

@media (max-width: 47.9375rem) {
	.west-archive__hero {
		min-height: 27rem;
		padding-block: var(--west-space-7) var(--west-space-8);
	}

	.west-archive__hero::after {
		right: 1rem;
	}

	body.west-archive-template .west-archive__hero h1 {
		max-width: 100%;
		font-size: clamp(2.45rem, 10.8vw, 2.875rem);
	}

	.west-archive__hero-copy {
		font-size: 1.05rem;
	}

	.west-archive__discovery {
		padding-block: var(--west-space-8);
	}

	.west-archive__intro {
		margin-bottom: var(--west-space-6);
	}

	.west-filters {
		margin-bottom: var(--west-space-6);
	}

	.west-filters__toggle {
		display: flex;
		min-height: 3.5rem;
		align-items: center;
		justify-content: space-between;
		gap: var(--west-space-3);
		padding: 0.8rem 1rem;
		border: 0.0625rem solid var(--west-blue);
		border-radius: var(--west-radius-small);
		background: var(--west-blue);
		color: var(--west-white);
		font-weight: 700;
		list-style: none;
		cursor: pointer;
	}

	.west-filters__toggle::-webkit-details-marker {
		display: none;
	}

	.west-filters__active-count {
		display: inline-grid;
		min-width: 1.8rem;
		height: 1.8rem;
		place-items: center;
		border-radius: 50%;
		background: var(--west-gold);
		color: var(--west-blue-deep);
		font-size: 0.78rem;
		font-variant-numeric: tabular-nums;
	}

	.west-filters__backdrop {
		position: fixed;
		inset: 0;
		z-index: 49;
		background: rgba(10, 39, 55, 0.66);
	}

	.west-filters[open] > .west-filters__backdrop {
		display: block;
	}

	.west-filters__panel,
	.west-filters:not([open]) > .west-filters__panel {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		display: block !important;
		width: min(92vw, 27rem);
		padding: 0;
		overflow-y: auto;
		border: 0;
		background: var(--west-white);
		box-shadow: -1rem 0 3rem rgba(10, 39, 55, 0.2);
		transform: translateX(102%);
		visibility: hidden;
	}

	.west-filters[open] > .west-filters__panel {
		transform: translateX(0);
		visibility: visible;
	}

	.west-filters__mobile-header {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		min-height: 4.5rem;
		align-items: center;
		justify-content: space-between;
		gap: var(--west-space-3);
		padding: var(--west-space-3) var(--west-space-4);
		border-bottom: 0.0625rem solid var(--west-border);
		background: var(--west-white);
	}

	body.west-archive-template .west-filters__mobile-header h3 {
		margin: 0;
		font-size: 1.45rem;
	}

	.west-filters__close {
		display: inline-grid;
		width: 2.75rem;
		height: 2.75rem;
		place-items: center;
		padding: 0;
		border: 0.0625rem solid var(--west-border);
		border-radius: 50%;
		background: transparent;
		color: var(--west-blue);
		font-size: 1.6rem;
		line-height: 1;
		cursor: pointer;
	}

	.west-filter-form {
		padding: var(--west-space-5) var(--west-space-4) calc(var(--west-space-5) + env(safe-area-inset-bottom));
	}

	.west-filter-pills {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.west-filter-pills span {
		width: 100%;
		justify-content: center;
	}

	.west-filter-form__selects {
		grid-template-columns: minmax(0, 1fr);
	}

	.west-filter-form__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.west-filter-form__reset {
		padding: 0.65rem;
		text-align: center;
	}

	html.west-filters-open {
		overflow: hidden;
	}

	.west-archive__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.west-archive__results-bar {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--west-space-2);
	}

	.west-pagination .page-numbers {
		gap: var(--west-space-1);
	}

	.west-archive__values-heading {
		margin-bottom: var(--west-space-6);
	}

	.west-archive__value-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.west-archive__value-list li {
		min-height: 0;
	}
}

@media (max-width: 22rem) {
	body.west-archive-template .west-archive__hero h1 {
		font-size: 3rem;
	}

	.west-filter-pills {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.west-archive *,
	.west-archive *::before,
	.west-archive *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Task 2.2 — image-led editorial archive. */
.west-archive__hero {
	min-height: 0;
	padding: 0;
	background: var(--west-surface-soft);
}

.west-archive__hero::after {
	display: none;
}

.west-archive__hero-inner {
	display: grid;
	min-height: clamp(38rem, 67vh, 46rem);
	grid-template-columns: minmax(24rem, 1.1fr) minmax(0, 0.9fr);
	align-items: stretch;
	gap: clamp(3rem, 6vw, 6.5rem);
}

.west-archive__hero-copy-block {
	display: flex;
	max-width: 37rem;
	justify-content: center;
	align-items: flex-start;
	flex-direction: column;
	padding-block: clamp(5rem, 8vw, 7.5rem);
}

.west-archive__hero .west-eyebrow {
	margin-bottom: 1.25rem;
	color: var(--west-blue);
}

body.west-archive-template .west-archive__hero h1 {
	max-width: 12ch;
	margin-bottom: 1.75rem;
	color: var(--west-blue-deep);
	font-family: var(--west-font-body);
	font-size: var(--west-text-display-xl);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 0.96;
	text-wrap: balance;
}

.west-archive__hero-line {
	display: block;
	overflow: hidden;
}

.west-archive__hero-line > span {
	display: block;
	animation: west-archive-line-in var(--west-motion-cinematic) var(--west-ease-out) both;
}

.west-archive__hero-line--accent > span {
	color: var(--west-gold);
	animation-delay: 90ms;
}

@keyframes west-archive-line-in {
	from {
		opacity: 0;
		transform: translateY(105%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.west-archive__hero-copy {
	max-width: 33rem;
	margin: 0 0 2rem;
	color: var(--west-text-muted);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	line-height: 1.58;
}

.west-archive__hero-link {
	min-height: auto;
	justify-content: flex-start;
	padding: 0 0 0.35rem;
	border: 0;
	border-bottom: 0.0625rem solid color-mix(in srgb, var(--west-gold) 70%, transparent);
	border-radius: 0;
	background: transparent;
	color: var(--west-blue);
	font-size: 0.86rem;
}

.west-archive__hero-link:hover {
	border-color: var(--west-gold);
	background: transparent;
	color: var(--west-blue-deep);
}

.west-archive__hero-media {
	min-height: 100%;
	margin-right: calc((100vw - min(calc(100vw - 3rem), var(--west-container))) / -2);
	overflow: hidden;
	background: var(--west-blue);
}

.west-archive__hero-media img,
.west-archive__hero-media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.west-archive__hero-media--campaign {
	display: grid;
	place-items: center;
}

.west-archive__hero-media--campaign img {
	width: 90%;
	height: 90%;
	object-fit: contain;
}

.west-archive__discovery {
	padding-block: clamp(5.5rem, 8vw, 8rem);
}

.west-filters {
	margin-bottom: clamp(4rem, 7vw, 6rem);
}

.west-filters__panel,
.west-filters:not([open]) > .west-filters__panel {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 0;
	background: var(--west-surface);
}

.west-filter-form__selects {
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}

.west-filter-group legend,
.west-filter-group > label {
	margin-bottom: 0.65rem;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
}

.west-filter-group select {
	min-height: 3.2rem;
	border: 0;
	border-bottom: 0.0625rem solid var(--west-border);
	border-radius: 0;
	background-color: var(--west-surface-soft);
	font-size: 0.9rem;
}

.west-filter-form__actions {
	justify-content: flex-end;
}

.west-archive__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(4rem, 7vw, 7rem) clamp(2rem, 4vw, 4rem);
}

@media (max-width: 64rem) {
	.west-archive__hero-inner {
		grid-template-columns: minmax(21rem, 1.05fr) minmax(0, 0.95fr);
		gap: 2.75rem;
	}

	body.west-archive-template .west-archive__hero h1 {
		font-size: clamp(3.25rem, 6vw, 4rem);
	}
}

@media (max-width: 48rem) {
	.west-archive__hero-inner {
		min-height: 0;
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.west-archive__hero-copy-block {
		padding-block: 4.5rem 3.5rem;
	}

	body.west-archive-template .west-archive__hero h1 {
		max-width: 11ch;
		font-size: clamp(2.375rem, 10.8vw, 2.75rem);
		line-height: 0.98;
	}

	.west-archive__hero-media {
		height: clamp(19rem, 70vw, 28rem);
		min-height: 0;
		margin-inline: calc((100vw - 100%) / -2);
	}

	.west-archive__hero-media--campaign {
		height: auto;
		aspect-ratio: 2000 / 1333;
	}

	.west-archive__hero-media--campaign img {
		width: 100%;
		height: 100%;
	}

	.west-filters__panel,
	.west-filters:not([open]) > .west-filters__panel {
		padding: 0;
	}

	.west-archive__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 3.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.west-archive__hero-line > span {
		animation: none;
	}
}
