.campus-explorer {
  margin: clamp(26px, 4.5vw, 66px) 0 clamp(36px, 5vw, 75px);
  border-top: 3px solid var(--navy);
  scroll-margin-top: 16px;
}
.map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(20px, 2.5vw, 39px) 0;
}
.map-heading h2 { font-size: clamp(2rem, 3.6vw, 3.75rem); text-wrap: balance; }
.map-heading p { max-width: 49ch; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.map-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  padding: 13px clamp(12px, 1.5vw, 23px);
  background: var(--navy);
  color: white;
  scroll-margin-top: 14px;
}
.map-views { display: inline-flex; gap: 4px; }
.map-views a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #8ca3a9;
  padding: 7px clamp(10px, 1.3vw, 21px);
  border-radius: 3px;
  font-size: .96rem;
  font-weight: 620;
  color: #fff;
  text-decoration: none;
}
.map-views a[aria-selected="true"] { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.map-views a:hover { text-decoration: underline; text-underline-offset: 4px; }
.map-picker { align-items: center; display: flex; gap: 11px; font-size: .9rem; font-weight: 550; }
.map-picker select {
  min-height: 44px;
  max-width: 100%;
  font: inherit;
  color: var(--navy);
  border: 1px solid #b5c6c3;
  border-radius: 3px;
  padding: 7px 35px 7px 12px;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230b3044' stroke-width='1.6'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
}
.map-canvases, .map-profiles { min-width: 0; }
.map-pane { background: #f5f8f4; }
.map-layout { border: 1px solid var(--line); border-top: 0; }
.map-ready .map-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(270px, 1fr); align-items: start; }
.map-diagram-note { font-size: .9rem; line-height: 1.45; color: #33554d; padding: 14px 18px 11px; background: #e8efe7; }
.map-profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px,100%), 1fr)); }
.map-ready .map-profiles { display: block; }
.map-profile { scroll-margin-top: 16px; background: white; }
.map-ready .map-profile { border-left: 1px solid var(--line); }
.map-profile-photo { width: 100%; height: auto; aspect-ratio: 2.3; display: block; object-fit: cover; }
.map-profile-copy { padding: clamp(16px, 1.7vw, 30px); }
.map-category { color: #356258; font-size: .85rem; margin-bottom: 7px; font-weight: 650; }
.map-profile h3 { font-size: clamp(1.45rem, 2.2vw, 2.05rem); letter-spacing: -.045em; line-height: 1.08; }
.map-fact { color: var(--green); line-height: 1.4; font-weight: 650; margin-top: 14px; }
.map-description { color: #354f5a; margin-top: 9px; font-size: 1rem; line-height: 1.52; }
.map-flow-links { margin-top: 15px; }
.map-flow-links h4 { margin: 0; font-size: .875rem; }
.map-flow-links ul { list-style: none; margin: 3px 0 0; padding: 0; }
.map-flow-links li { border-bottom: 1px solid var(--line); }
.map-flow-links a { display: inline-block; padding: 7px 0; font-size: .9rem; color: var(--green); text-underline-offset: 3px; }
.map-profile-link, .map-return { display: inline-block; font-size: .94rem; line-height: 1.3; margin-top: 18px; font-weight: 650; text-underline-offset: 4px; }
.map-return { display: none; }
.campus-explorer [hidden] { display: none !important; }
.campus-explorer :focus-visible { outline: 3px solid #c77700; outline-offset: 3px; }
@media (max-width: 1050px) {
  .map-heading { display: block; }
  .map-heading p { margin-top: 9px; max-width: 67ch; }
}
@media (max-width: 850px) {
  .map-ready .map-layout { display: block; }
  .map-ready .map-profile { border-left: 0; border-top: 1px solid var(--line); }
  .map-ready .map-return { display: table; }
  .map-profile-photo { max-height: 225px; }
}
@media (max-width: 600px) {
  .map-controls { align-items: stretch; gap: 9px; flex-direction: column; }
  .map-views a { flex: 1; padding-inline: 5px; font-size: .91rem; text-align: center; }
  .map-picker { justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
  .map-picker select { min-width: 0; flex: 1; width: 140px; }
  .map-heading { padding: 19px 0; }
  .map-profile-photo { aspect-ratio: 2.45; }
}
