/* Karate Atlanta — Locations Finder
   Brand tokens mirror the Karate Atlanta design system:
   red #F03828 · black #1E1E1E · gray ramp · Saira Condensed / Mulish */

/* The theme's content column can be narrower than this design needs. When the
   block is set to Full width WordPress adds .alignfull to the wrapper; if a theme
   constrains it anyway, .ka-locations--bleed breaks out of the parent. */
.alignfull > .ka-locations,
.ka-locations--bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.alignfull > .ka-locations > *,
.ka-locations--bleed > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
.alignfull > .ka-locations > .ka-locations__band,
.ka-locations--bleed > .ka-locations__band {
	max-width: none;
}

.ka-locations {
	--ka-red: #F03828;
	--ka-red-600: #D42A1C;
	--ka-black: #1E1E1E;
	--gray-50: #F7F7F8;
	--gray-200: #DCDEE0;
	--gray-300: #C3C6CA;
	--gray-500: #71767D;
	--gray-700: #3C3F44;
	--radius-md: 10px;
	--radius-lg: 14px;
	--font-display: "Saira Condensed", "Arial Narrow", sans-serif;
	--font-body: "Mulish", system-ui, -apple-system, sans-serif;

	font-family: var(--font-body);
	color: var(--ka-black);
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px 0;
	box-sizing: border-box;
}

.ka-locations *,
.ka-locations *::before,
.ka-locations *::after { box-sizing: border-box; }

.ka-display {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 0.98;
}

.ka-eyebrow {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 14px;
	color: var(--ka-red);
	margin: 0 0 8px;
}

.ka-locations__title { font-size: clamp(34px, 5vw, 52px); margin: 0 0 10px; }

.ka-locations__lede {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--gray-700);
	max-width: 620px;
	text-wrap: pretty;
}

.ka-locations__grid {
	display: grid;
	grid-template-columns: minmax(320px, 520px) 1fr;
	gap: 28px;
	padding: 28px 0 40px;
	align-items: start;
}

.ka-locations__mapwrap {
	border: 2px solid var(--ka-black);
	border-radius: var(--radius-lg);
	box-shadow: 4px 4px 0 var(--ka-black);
	overflow: hidden;
	position: sticky;
	top: 100px;
}

.ka-locations__map { height: 600px; width: 100%; background: var(--gray-200); }

.ka-locations__panel { display: flex; flex-direction: column; gap: 12px; }

.ka-field { display: block; }
.ka-field__label {
	display: block;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 6px;
}
.ka-field__input {
	width: 100%;
	font-family: var(--font-body);
	font-size: 15px;
	padding: 11px 14px;
	border: 1px solid var(--gray-300);
	border-radius: var(--radius-md);
	background: #fff;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ka-field__input:focus {
	outline: none;
	border-color: var(--ka-red);
	box-shadow: 0 0 0 3px rgba(240, 56, 40, 0.28);
}

.ka-locations__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.ka-loc {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	border: 1px solid var(--gray-200);
	border-left: 3px solid var(--ka-red);
	border-radius: var(--radius-md);
	padding: 12px 14px;
	background: #fff;
	transition: transform 150ms ease, box-shadow 150ms ease;
}
.ka-loc:hover, .ka-loc.is-active { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.ka-loc[hidden] { display: none; }

.ka-loc__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ka-loc__name { font-size: 19px; }
.ka-loc__meta { font-size: 13px; color: var(--gray-500); }
.ka-loc__meta a { color: inherit; }
.ka-loc__meta a:hover { color: var(--ka-red); }

.ka-loc__link {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	color: var(--ka-red);
	text-decoration: none;
	white-space: nowrap;
}
.ka-loc__link:hover { color: var(--ka-red-600); text-decoration: underline; }

.ka-locations__empty { font-size: 14px; color: var(--gray-500); }

.ka-locations__band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	background: var(--ka-red);
	color: #fff;
	padding: 22px 32px;
	border-radius: var(--radius-lg);
	margin-bottom: 40px;
}
.ka-locations__bandtitle { font-size: 24px; margin: 0; }

.ka-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 15px;
	padding: 11px 20px;
	border-radius: var(--radius-md);
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 150ms ease, transform 150ms ease;
}
.ka-btn--dark { background: var(--ka-black); color: #fff; }
.ka-btn--dark:hover { background: #2A2C30; color: #fff; }
.ka-btn:active { transform: translateY(1px); }

/* Map pin */
.ka-pin {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ka-red);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ka-pin.is-active { transform: scale(1.5); }

@media (max-width: 900px) {
	.ka-locations__grid { grid-template-columns: 1fr; }
	.ka-locations__mapwrap { position: static; }
	.ka-locations__map { height: 320px; }
	.ka-loc { flex-direction: column; align-items: flex-start; gap: 8px; }
}
