/* ==========================================================================
   CITY-SEO-ARCHITECTURE-1A — /locations/ and /{city}/ pages
   (inc/apt-city-pages.php)

   Loaded ONLY on those routes. Everything is scoped under .apt-city*; nothing
   global is touched. Reads the site's --aptv2-* tokens with literal fallbacks.
   ========================================================================== */

.apt-city {
	--apt-city-green: var( --aptv2-green, #1FA34A );
	--apt-city-green-dark: var( --aptv2-green-dark, #168238 );
	--apt-city-tint: var( --aptv2-green-light, #EAF7EE );
	--apt-city-ink: var( --aptv2-text, #1A1A1A );
	--apt-city-muted: var( --aptv2-text-muted, #6B7280 );
	--apt-city-line: var( --aptv2-border, #E5E7EB );
	--apt-city-soft: var( --aptv2-bg-soft, #F7F8F7 );
	color: var( --apt-city-ink );
	overflow-x: clip;
}

.apt-city *,
.apt-city *::before,
.apt-city *::after {
	box-sizing: border-box;
}

.apt-city-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px 64px;
}

/* ---- breadcrumb ---- */

.apt-city-crumbs {
	padding-top: 24px;
	font-size: 0.85rem;
	color: var( --apt-city-muted );
}

.apt-city-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apt-city-crumbs li + li::before {
	content: "›";
	margin-right: 4px;
	color: var( --apt-city-muted );
}

.apt-city-crumbs a {
	color: var( --apt-city-muted );
	text-decoration: none;
}

.apt-city-crumbs a:hover,
.apt-city-crumbs a:focus-visible {
	color: var( --apt-city-green-dark );
	text-decoration: underline;
}

.apt-city-crumbs [aria-current] {
	color: var( --apt-city-ink );
	font-weight: 600;
}

/* ---- hero ---- */

.apt-city-hero {
	padding: 24px 0 8px;
	max-width: 780px;
}

.apt-city-eyebrow {
	margin: 0 0 8px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --apt-city-green-dark );
}

.apt-city-title {
	margin: 0 0 16px;
	font-size: clamp( 1.75rem, 1.2rem + 2vw, 2.5rem );
	line-height: 1.15;
	font-weight: 800;
	color: var( --apt-city-ink );
	overflow-wrap: anywhere;
}

.apt-city-lead {
	margin: 0 0 12px;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var( --apt-city-ink );
}

/* ---- buttons ---- */

.apt-city-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.apt-city-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var( --apt-city-line );
	border-radius: 10px;
	background: #fff;
	color: var( --apt-city-ink );
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.apt-city-btn:hover,
.apt-city-btn:focus-visible {
	border-color: var( --apt-city-green );
	color: var( --apt-city-green-dark );
}

.apt-city-btn--primary {
	border-color: var( --apt-city-green );
	background: var( --apt-city-green );
	color: #fff;
}

.apt-city-btn--primary:hover,
.apt-city-btn--primary:focus-visible {
	background: var( --apt-city-green-dark );
	border-color: var( --apt-city-green-dark );
	color: #fff;
}

.apt-city-btn--ghost {
	border-color: transparent;
	background: transparent;
}

.apt-city a:focus-visible {
	outline: 2px solid var( --apt-city-green );
	outline-offset: 2px;
}

/* ---- sections ---- */

.apt-city-section {
	margin-top: 40px;
}

.apt-city-section--soft {
	padding: 28px;
	border-radius: 16px;
	background: var( --apt-city-soft );
}

.apt-city-h2 {
	margin: 0 0 16px;
	font-size: 1.4rem;
	line-height: 1.25;
	font-weight: 800;
	color: var( --apt-city-ink );
}

.apt-city-h3 {
	margin: 20px 0 10px;
	font-size: 1rem;
	font-weight: 700;
	color: var( --apt-city-ink );
}

.apt-city-copy {
	margin: 0 0 12px;
	max-width: 780px;
	line-height: 1.6;
	color: var( --apt-city-ink );
}

/* ---- "what you can do" cards ---- */

.apt-city-grid {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 16px;
}

.apt-city-card {
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: 1px solid var( --apt-city-line );
	border-radius: 14px;
	background: #fff;
}

.apt-city-card__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var( --apt-city-ink );
}

.apt-city-card__copy {
	margin: 0 0 14px;
	flex: 1 1 auto;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var( --apt-city-muted );
}

.apt-city-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
}

.apt-city-card__links a {
	color: var( --apt-city-green-dark );
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
}

.apt-city-card__links a:hover,
.apt-city-card__links a:focus-visible {
	text-decoration: underline;
}

/* ---- neighbourhood / nearby chips ---- */

.apt-city-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apt-city-chips li {
	padding: 6px 12px;
	border: 1px solid var( --apt-city-line );
	border-radius: 999px;
	background: #fff;
	font-size: 0.9rem;
}

.apt-city-chips a {
	color: var( --apt-city-green-dark );
	font-weight: 600;
	text-decoration: none;
}

/* ---- /locations/ area cards ---- */

.apt-city-areas {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apt-city-area__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 22px;
	border: 1px solid var( --apt-city-line );
	border-radius: 14px;
	background: #fff;
	color: var( --apt-city-ink );
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.apt-city-area__link:hover,
.apt-city-area__link:focus-visible {
	border-color: var( --apt-city-green );
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.06 );
}

.apt-city-area__name {
	font-size: 1.25rem;
	font-weight: 800;
}

.apt-city-area__where {
	font-size: 0.85rem;
	font-weight: 600;
	color: var( --apt-city-green-dark );
}

.apt-city-area__summary {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var( --apt-city-muted );
}

.apt-city-area__cta {
	margin-top: 6px;
	font-weight: 700;
	color: var( --apt-city-green-dark );
}

/* ---- responsive ---- */

@media ( max-width: 1023px ) {
	.apt-city-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 639px ) {
	.apt-city-wrap {
		padding: 0 16px 48px;
	}

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

	.apt-city-areas {
		grid-template-columns: minmax( 0, 1fr );
	}

	.apt-city-section--soft {
		padding: 20px 16px;
	}

	.apt-city-actions .apt-city-btn {
		flex: 1 1 100%;
	}
}
