/* ── Campus Map ───────────────────────────────────────────────── */
.campusmap2 {
  background: linear-gradient(180deg, #f0f4f8 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
  isolation: isolate; overflow: hidden; position: relative;
}
.campusmap2-head { margin: 0 0 40px; max-width: 76rem; }
.campusmap2-head h2 { color: var(--royal-darker); font-size: clamp(2.8rem, 4.6vw, 4.4rem); letter-spacing: -0.03em; margin: 0 0 16px; }
/*.campusmap2-head h2 .accent { color: var(--royal); }*/
.campusmap2-head p { font-size: clamp(1.5rem, 1.7vw, 1.75rem); color: var(--ink-2); line-height: 1.55; margin: 0; max-width: 62rem; }

/* Flex layout matching : rail col left, map col right */
.campusmap2-grid {
  display: flex; align-items: flex-start; flex-wrap: wrap;
  gap: clamp(28px, 3.5vw, 64px);
}
.cm2-railcol { flex: 0 0 30%; min-width: 260px; }
.cm2-mapcol  { flex: 0 0 60%; min-width: 280px; position: relative; }

.cm2-search-label {
  font-size: 1.2rem; font-family: 'Avenir-Black', sans-serif;
  font-weight: 800; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.cm2-zip-row { display: flex; gap: 10px; margin-bottom: 10px; }
.cm2-zip-input {
  flex: 1; padding: 14px 22px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 50px;
  font-family: inherit; font-size: 1.6rem; color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.cm2-zip-input:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px var(--royal-tint); }
.cm2-zip-input.cm-error { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.cm2-zip-btn {
  border-radius: 50px; flex-shrink: 0;
  background: var(--royal); border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
}
.cm2-zip-btn:hover { background: var(--royal-dark); }
.cm2-zip-btn svg { width: 18px; height: 18px; }

.cm2-zip-hint {
  font-size: 1.25rem; color: var(--ink-2); line-height: 1.5;
  border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 18px; min-height: 1.5em;
}
.cm2-zip-hint.ok  { color: var(--royal); font-weight: 600; }
.cm2-zip-hint.err { color: #c0392b; font-weight: 600; }

.cm2-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.cm2-chip {
  background: #fff; border: 1px solid var(--line-2); border-radius: 50px;
  color: var(--ink-2); cursor: pointer; font-size: 1.18rem; font-weight: 700;
  padding: 7px 14px;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.cm2-chip:hover { border-color: var(--royal); color: var(--royal); }
.cm2-chip.active { background: var(--royal); border-color: var(--royal); color: #fff; }

.cm2-list {
  display: flex; flex-direction: column;
  overflow-y: auto; max-height: 54rem;
  margin: 0 -6px; padding: 0 6px;
}
.cm2-list::-webkit-scrollbar { width: 8px; }
.cm2-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 50px; }

.cm2-item {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
  background: transparent; border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer; font-family: inherit;
  padding: 16px 6px; text-align: left; width: 100%;
  transition: background var(--ease);
}
.cm2-item:hover { background: linear-gradient(90deg, var(--royal-tint), transparent 80%); }
.cm2-item.active .cm2-item-city { color: var(--royal-dark); }

.cm2-item-pin {
  background: var(--royal-tint); border-radius: 10px; color: var(--royal);
  display: grid; flex-shrink: 0; height: 34px; place-items: center; width: 34px;
  transition: background var(--ease), color var(--ease);
}
.cm2-item.active .cm2-item-pin { background: var(--yellow); color: #1a1400; }
.cm2-item-pin svg { width: 17px; height: 17px; }
.cm2-item-body { min-width: 0; }
.cm2-item-city { color: var(--ink); display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.2; transition: color var(--ease); }
.cm2-item-state { color: var(--ink-2); display: block; font-size: 1.2rem; margin-top: 2px; }
.cm2-item-dist {
  background: var(--royal-tint); border-radius: 50px; color: var(--royal);
  flex-shrink: 0; font-size: 1.2rem; font-weight: 800; padding: 5px 11px; white-space: nowrap;
}
.cm2-item-dist.hidden { display: none; }
.cm2-list-empty { color: var(--ink-2); font-size: 1.4rem; padding: 32px 6px; }

/* Map column */
.cm2-map-svg { display: block; height: auto; width: 100%; }
.cm-state { fill: #dde8f5; stroke: #fff; stroke-width: 0.75; transition: fill var(--ease); }
.cm-state.has-campus { fill: #dde8f5; }
.cm-marker { cursor: pointer; }
.cm-marker-dot { fill: var(--royal); stroke: #fff; stroke-width: 2; transition: fill var(--ease), r var(--ease); }
.cm-marker:hover .cm-marker-dot { fill: var(--royal-light); }
.cm-marker.active .cm-marker-dot { fill: var(--yellow); stroke: #1a1400; }
.cm-marker-pulse { fill: var(--yellow); opacity: 0; transform-origin: center; transform-box: fill-box; }
.cm-marker.active .cm-marker-pulse { animation: cmPulse 1.8s ease-out infinite; }
@keyframes cmPulse { 0%{opacity:0.5;r:4} 100%{opacity:0;r:12} }

.cm-tooltip {
  position: absolute; display: none; pointer-events: none;
  transform: translate(-50%, -118%);
  background: var(--ink); border-radius: 10px; box-shadow: var(--shadow-md);
  color: #fff; font-size: 1.2rem; font-weight: 700; line-height: 1.3;
  padding: 8px 12px; white-space: nowrap; z-index: 6;
}
.cm-tooltip::after {
  content: ''; position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
}
.cm-tooltip.show { display: block; }
.cm-tooltip small { color: var(--yellow); display: block; font-size: 1.05rem; font-weight: 600; margin-top: 2px; }

/* Campus footer strip */
.cm2-foot {
  display: flex; align-items: flex-start; flex-wrap: nowrap;
  gap: 17px; margin-top: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 20px 22px;
}
.cm2-foot-img-wrap {
  flex-shrink: 0;
  width: 120px; height: 80px;
  border-radius: var(--r);
  overflow: hidden;
  display: none;
  transition: opacity 0.25s ease;
}
.cm2-foot-img-wrap.visible { display: block; }
.cm2-foot-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

.cm2-foot-pin {
  background: var(--yellow); border-radius: 12px;
  display: grid; flex-shrink: 0; height: 46px; place-items: center; width: 46px;
}
.cm2-foot-pin svg { width: 22px; height: 22px; color: #1a1400; }
.cm2-foot-body { flex: 1 1 60%; }
.cm2-foot-city   { color: var(--ink); font-size: 1.7rem; font-family: 'Avenir-Black', sans-serif; font-weight: 800; }
.cm2-foot-addr   { font-size: 1.5rem; color: var(--ink-2); /*white-space: nowrap; */}
.cm2-foot-locale { font-size: 1.5rem; color: var(--ink-2); white-space: nowrap; }
.cm2-foot-actions { flex: 0 0 auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 24px; }
.cm2-foot-actions .btn { font-size: 1.25rem; padding: 9px 20px; justify-content: center; }

@media (max-width: 991px) {
  .campusmap2-grid { flex-direction: column; }
  .cm2-railcol, .cm2-mapcol { flex-basis: 100%; width: 100%; }
  .cm2-map-svg { width: 60%; margin: 0 auto 25px; }
  .cm2-list { max-height: 22rem; }
}

@media (max-width: 600px) {
  .cm2-foot { flex-wrap: wrap; }
  .cm2-foot-actions { padding-top: 10px; }
}

@media (max-width: 768px) {
  .cm2-map-svg { display: none; }
}

/*New mobile styles*/
@media (max-width: 991px) {

/* US states map (shared symbol). Neutral fill; campus states tinted green. */
.cm-state {
	fill: #e4e9e2;
	stroke: #fbfcfb;
	stroke-width: 0.8;
	transition: fill var(--ease);
	vector-effect: non-scaling-stroke;
}

.cm-state.has-campus {
	fill: #bcd6c1;
}

/* Markers */
.cm-marker {
	cursor: pointer;
}

.cm-marker-dot {
	/* @include transition(fill var(--ease), r var(--ease));
	fill: var(--green-dark);
	stroke: var(--color-sec-white); */
	stroke-width: 2;
}

.cm-marker:hover .cm-marker-dot {
	/* fill: var(--green); */
}

.cm-marker.active .cm-marker-dot {
	stroke: #1a1400;
}

.cm-marker-pulse {
	opacity: 0;
	transform-origin: center;
	transform-box: fill-box;
}

.cm-marker.active .cm-marker-pulse {
	animation: cmPulse 1.8s ease-out infinite;
}

@keyframes cmPulse {
	0% {
		opacity: 0.5;
		r: 7;
	}
	100% {
		opacity: 0;
		r: 20;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cm-marker-pulse {
		animation: none !important;
	}
}

/* Map tooltip */
.cm-tooltip {
	@include transform(translate(-50%, -118%));
	@include transition(opacity var(--ease));
	display: none;
	background: var(--ink);
	border-radius: 1rem;
	box-shadow: var(--shadow-md);
	color: var(--color-sec-white);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	opacity: 0;
	padding: 0.8rem 1.2rem;
	pointer-events: none;
	position: absolute;
	white-space: nowrap;
	z-index: 6;

	@include breakpoint(large) {
		display: block;
	}
}

.cm-tooltip::after {
	@include transform(translateX(-50%));
	border: 0.6rem solid transparent;
	border-top-color: var(--ink);
	content: "";
	left: 50%;
	position: absolute;
	top: 100%;
}

.cm-tooltip.show {
	opacity: 1;
}

.cm-tooltip small {
	display: block;
	font-size: 1.05rem;
	font-weight: 600;
	margin-top: 0.2rem;
}

.campusmap2 {
	background: linear-gradient(180deg, #f3f5f1 0%, var(--bg) 100%);
	border-bottom: 0.1rem solid var(--line);
	isolation: isolate;
	overflow: hidden;
	padding: 9.6rem 0;
	position: relative;
}

.campusmap2-head {
	margin: 0 0 4rem;
	max-width: 76rem;
}

/* Match the eyebrow→heading gap of the other section headers. */
.campusmap2-head .programs-eyebrow {
	margin-bottom: 1rem;
}

.campusmap2-eyebrow {
	align-items: center;
	color: var(--ink-2);
	display: inline-flex;
	gap: 0.9rem;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin-bottom: 1.8rem;
	text-transform: uppercase;
}

.campusmap2-eyebrow .dot {
	box-shadow: 0 0 0 0.4rem rgba(238, 177, 17, 0.2);
	border-radius: 50%;
	height: 0.7rem;
	width: 0.7rem;
}

.campusmap2-head h2 {
	/* color: var(--green-dark); */
	font-size: clamp(2.8rem, 4.6vw, 4.4rem);
	letter-spacing: -0.03em;
	line-height: 1.04;
	margin: 0 0 1.6rem;
}

/* .campusmap2-head h2 .accent {
	background: linear-gradient(120deg, #c99300 0%, var(--gold) 58%, #d9a300 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
} */

.campusmap2-head p:not(.programs-eyebrow) {
	color: var(--ink-2);
	font-size: clamp(1.5rem, 1.7vw, 1.75rem);
	line-height: 1.55;
	margin: 0;
	max-width: 62rem;
}

/* Layout: list rail (left) | big map (right), no surrounding card/border */
.campusmap2-grid {
	display: flex;
	align-items: start;
	flex-wrap: wrap;
	gap: 3.6rem;

	@include breakpoint(medium) {
		gap: clamp(28px, 3.5vw, 64px);
	}
}

/* Left column — transparent, rule-divided (not a card) */
.cm2-railcol {
	flex-basis: 100%;
	order: 2;

	@include breakpoint(large) {
		flex-basis: 30%;
		order: 1;
	}
}
.cm2-foot-img-wrap.visible {width: 100%; height:100%;}
.cm2-search-label {
	color: var(--ink-2);
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.cm2-zip-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}

.cm2-zip-input {
	@include box-sizing(border-box);
	@include transition(border-color var(--ease), box-shadow var(--ease));
	background-color: var(--color-sec-white);
	border: 0.1rem solid var(--line-2);
	border-radius: 5rem;
	color: var(--ink);
	flex: 1;
	font-family: inherit;
	font-size: 1.6rem;
	min-width: 0;
	padding: 1.4rem 2.2rem;
}

.cm2-zip-input:focus {
	/* border-color: var(--green-dark);
	box-shadow: 0 0 0 0.3rem var(--green-tint); */
	outline: none;
}

.cm2-zip-input.cm-error {
	border-color: #c0392b;
	box-shadow: 0 0 0 0.3rem rgba(192, 57, 43, 0.12);
}

.cm2-zip-btn {
	border-radius: 5rem;
	flex-shrink: 0;
}

.cm2-zip-btn svg {
	height: 1.6rem;
	width: 1.6rem;
}

.cm2-zip-hint {
	border-bottom: 0.1rem solid var(--line);
	color: var(--ink-2);
	font-size: 1.25rem;
	line-height: 1.5;
	margin-bottom: 1.8rem;
	min-height: 1.5em;
	padding-bottom: 2.2rem;
}

.cm2-zip-hint.ok {
	/* color: var(--green); */
	font-weight: 600;
}

.cm2-zip-hint.err {
	color: #c0392b;
	font-weight: 600;
}

.cm2-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-bottom: 1.8rem;
}

.cm2-chip {
	@include transition(background var(--ease), color var(--ease), border-color var(--ease));
	background-color: var(--color-sec-white);
	border: 0.1rem solid var(--line-2);
	border-radius: 5rem;
	color: var(--ink-2);
	cursor: pointer;
	font-size: 1.18rem;
	font-weight: 700;
	padding: 0.7rem 1.4rem;
}

/* .cm2-chip:hover {
	border-color: var(--green-dark);
	color: var(--green-dark);
} */

/* .cm2-chip.active {
	background-color: var(--green-dark);
	border-color: var(--green-dark);
	color: var(--color-sec-white);
} */

.cm2-list {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	margin: 0 -0.6rem;
	max-height: 36rem;
	padding: 0 0.6rem;

	@include breakpoint(large) {
		max-height: 54rem;
	}
}

.cm2-list::-webkit-scrollbar {
	width: 0.8rem;
}

.cm2-list::-webkit-scrollbar-thumb {
	background-color: var(--line-2);
	border-radius: 5rem;
}

.cm2-item {
	@include transition(background var(--ease));
	align-items: center;
	display: grid;
	background: transparent;
	border: none;
	border-bottom: 0.1rem solid var(--line);
	cursor: pointer;
	font-family: inherit;
	gap: 1.4rem;
	grid-template-columns: auto 1fr auto;
	text-align: left;
	padding: 1.6rem 0.6rem;
	width: 100%;

	&:focus,
	&:hover {
		background: linear-gradient(90deg, rgba(0, 71, 18, 0.04), transparent 80%);
	}
}

/* .cm2-item.active .cm2-item-city {
	color: var(--green-dark);
} */

.cm2-item-pin {
	/* @include transition(background var(--ease), color var(--ease));
	background: var(--green-tint); */
	border-radius: 1rem;
	/* color: var(--green-dark); */
	display: grid;
	flex-shrink: 0;
	height: 3.4rem;
	place-items: center;
	width: 3.4rem;
}

.cm2-item.active .cm2-item-pin {
	background-color: var(--yellow);
	color: #1a1400;
}

.cm2-item-pin svg {
	height: 1.7rem;
	width: 1.7rem;
}

.cm2-item-body {
	min-width: 0;
}

.cm2-item-city {
	@include transition(color var(--ease));
	color: var(--ink);
	display: block;
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.2;
}

.cm2-item-state {
	color: var(--ink-2);
	display: block;
	font-size: 1.2rem;
	margin-top: 0.2rem;
}

.cm2-item-dist {
	/* background-color: var(--green-tint); */
	border-radius: 5rem;
	/* color: var(--green); */
	flex-shrink: 0;
	font-size: 1.2rem;
	font-weight: 800;
	padding: 0.5rem 1.1rem;
	white-space: nowrap;
}

.cm2-item-dist.hidden {
	display: none;
}

.cm2-list-empty {
	color: var(--ink-2);
	font-size: 1.4rem;
	padding: 3.2rem 0.6rem;
}

/* Right column — large map, sits directly on the section bg (no card) */
.cm2-mapcol {
	flex-basis: 100%;
	order: 1;
	position: relative;

	@include breakpoint(large) {
		flex-basis: 60%;
		order: 2;
	}
}

.cm2-map-svg {
	display: none;
	height: auto;
	width: 100%;

	@include breakpoint(large) {
		display: block;
	}
}

.cm2-foot {
	align-items: flex-start;
	background-color: var(--color-sec-white);
	border: 0.1rem solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-sm);
	display: flex;
	gap: 1.7rem;
	flex-wrap: wrap;
	padding: 2rem 2.2rem;

	@include breakpoint(medium) {
		flex-wrap: nowrap;
		margin-top: 1.4rem;
	}
}

.cm2-foot-pin {
	border-radius: 1.2rem;
	display: grid;
	flex-shrink: 0;
	height: 4.6rem;
	place-items: center;
	width: 4.6rem;
}

.cm2-foot-pin svg {
	width: 2.2rem;
	height: 2.2rem;
	color: #1a1400;
}

.cm2-foot-body {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 60%;

	@include breakpoint(medium) {
		flex-basis: 50%;
	}

	@include breakpoint(large) {
		flex-basis: 68%;
	}
}

.cm2-foot-body .cm2-foot-city {
	color: var(--ink);
	font-size: 1.7rem;
	font-weight: 800;
}

.cm2-foot-body .cm2-foot-image.visible {
	margin-block-end: 1rem;
}

.cm2-foot-body .cm2-foot-addr {
	font-size: 1.3rem;
	color: var(--ink-2);
}

.cm2-foot-actions {
	@include breakpoint(medium) {
		flex-basis: 48%;
		padding-block-start: 2.4rem;
	}

	@include breakpoint(medium-tall) {
		flex-basis: 55%;
	}

	> p {
		font-size: 1.3rem;
	}

	.btn {
		flex: 1;
		justify-content: center;
		flex-wrap: nowrap;
		margin-inline-end: 1rem;

		&:last-of-type,
		&:last-child {
			margin-inline-end: 0;
		}

		~ .btn {
			margin-block-start: 1rem;
		}
	}
}


}