
:root {
	--yw-blue: #6b8fe8;
	--yw-ink: #1a1a1a;a
	--yw-muted: #5c5c5c;
	--yw-line: #e6e6e6;
	--yw-bg: #f5f5f5;
	--yw-white: #ffffff;
}

.archive-locations {
	background: var(--yw-white) !important;
	padding-bottom: 0 !important;
}

.archive-locations .bg-block {
	display: none !important;
}

/* Hide original list + map once overview is injected */
.archive-locations.yw-loc-ready > .container {
	display: none !important;
}

.archive-locations .block-animated-dynamic-text,
.archive-locations ~ .block-animated-dynamic-text,
.page-content:has(.archive-locations) .block-animated-dynamic-text,
.page-content:has(.archive-locations) .yw-final-cta {
	display: none !important;
}

/* =========================================================
   OVERVIEW
   ========================================================= */
.yw-loc-overview {
	width: 100%;
	background: var(--yw-white);
}

.yw-loc-filters {
	background: var(--yw-bg);
	border-bottom: 1px solid var(--yw-line);
	padding: 0;
}

.yw-loc-filters__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.85rem;
}

.yw-loc-filters__label {
	font-size: 0.88rem;
	color: var(--yw-muted);
	font-weight: 500;
	margin-right: 0.1rem;
}

.yw-loc-filter {
	appearance: none;
	border: 1px solid var(--yw-line);
	background: #fff;
	color: var(--yw-ink);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.yw-loc-filter:hover {
	border-color: #cfcfcf;
}

.yw-loc-filter.is-active {
	background: var(--yw-ink);
	border-color: var(--yw-ink);
	color: #fff;
}

.yw-loc-grid-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.yw-loc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.15rem;
}

.yw-loc-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--yw-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	min-height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.yw-loc-card:hover {
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
	transform: translateY(-2px);
	border-color: #d8d8d8;
}

.yw-loc-card.is-hidden {
	display: none !important;
}

.yw-loc-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #e9e9e9;
	overflow: hidden;
}

.yw-loc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.yw-loc-card__badge {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--yw-ink);
	line-height: 1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.yw-loc-card__badge-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	flex-shrink: 0;
}

.yw-loc-card__badge[data-status="available"] .yw-loc-card__badge-dot {
	background: #2f9e6b;
}

.yw-loc-card__badge[data-status="limited"] .yw-loc-card__badge-dot {
	background: #e0a21a;
}

.yw-loc-card__badge[data-status="full"] .yw-loc-card__badge-dot {
	background: #d64545;
}

.yw-loc-card__badge[data-status="soon"] .yw-loc-card__badge-dot,
.yw-loc-card__badge[data-status="offer"] .yw-loc-card__badge-dot {
	background: var(--yw-blue);
}

.yw-loc-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.85rem 0.9rem 0.95rem;
	flex: 1;
}

.yw-loc-card__title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--yw-ink);
}

.yw-loc-card__address {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--yw-muted);
}

.yw-loc-card__highlights {
	list-style: none;
	margin: 0.2rem 0 0.45rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.yw-loc-card__highlights li {
	margin: 0;
	padding: 0.22rem 0.5rem;
	border-radius: 999px;
	border: 1px solid var(--yw-line);
	background: var(--yw-bg);
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--yw-ink);
	white-space: nowrap;
}

.yw-loc-card__highlights li::before {
	content: none;
	display: none;
}

.yw-loc-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin-top: auto;
	width: 100%;
	padding: 0.72rem 0.9rem;
	border-radius: 4px;
	background: var(--yw-ink);
	color: #fff !important;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none !important;
	line-height: 1;
	transition: background 0.15s ease, transform 0.15s ease;
}

.yw-loc-card__cta:hover {
	background: #000;
	transform: translateY(-1px);
}

.yw-loc-card__cta span {
	font-size: 1rem;
	line-height: 1;
}

.yw-loc-empty {
	display: none;
	grid-column: 1 / -1;
	text-align: center;
	padding: 2.5rem 1rem;
	color: var(--yw-muted);
	font-size: 0.95rem;
}

.yw-loc-empty.is-visible {
	display: block;
}

.yw-loc-band {
	background: #151515;
	color: #fff;
	text-align: center;
	padding: 3.25rem 1.25rem;
}

.yw-loc-band h2 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.yw-loc-band p {
	margin: 0 auto 1.35rem;
	max-width: 32rem;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

.yw-loc-band__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.85rem 1.35rem;
	border-radius: 4px;
	background: var(--yw-blue);
	color: #fff !important;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none !important;
	line-height: 1;
	transition: background 0.15s ease, transform 0.15s ease;
}

.yw-loc-band__btn:hover {
	background: #5a7fdc;
	transform: translateY(-1px);
}

@media (max-width: 1100px) {
	.yw-loc-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 800px) {
	.yw-loc-filters__label {
		display: none;
	}

	.yw-loc-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.95rem;
	}
}

@media (max-width: 560px) {
	.yw-loc-filters__inner {
		gap: 0.5rem;
	}

	.yw-loc-filter {
		font-size: 0.82rem;
		padding: 0.5rem 0.8rem;
	}

	.yw-loc-grid {
		grid-template-columns: 1fr;
	}

	.yw-loc-grid-wrap {
		padding-top: 1.35rem;
		padding-bottom: 2rem;
	}

	.yw-loc-band {
		padding: 2.5rem 1.15rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yw-loc-card,
	.yw-loc-card__cta,
	.yw-loc-band__btn,
	.yw-loc-filter {
		transition: none !important;
	}

	.yw-loc-card:hover,
	.yw-loc-card__cta:hover,
	.yw-loc-band__btn:hover {
		transform: none;
	}
}
