/* Campus map (block nmc/campus-map, template "Campus Map"). Apple-style, like the CTI and Go Further pages. */
.cmap {
  --red: #a22631; --red-ink: #8c1f29; --ink: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --gray: #f5f5f7;
  --card: #fff; --radius: 22px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font); color: var(--ink); font-size: 17px; line-height: 1.47; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
.cmap *, .cmap *::before, .cmap *::after { box-sizing: border-box; }
:where(.cmap) :where(h1, h2, h3, p, ul) { margin: 0; font-family: var(--font); color: inherit; text-transform: none; letter-spacing: inherit; }
:where(.cmap) ul { padding: 0; list-style: none; }
:where(.cmap) a { color: var(--red); text-decoration: none; }
:where(.cmap) button { font: inherit; color: inherit; letter-spacing: inherit; }
.cmap-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cmap-ico { width: 18px; height: 18px; flex: none; }

.cmap-page { background: #fff; }
.cmap-wrap { width: min(1600px, calc(100% - 40px)); margin: 0 auto; }   /* wide: the map is the page */
.cmap-frame, .cmap-dir-b, .cmap-panel { scroll-margin-top: 150px; }   /* clear the theme's sticky header */

/* ---- hero (like Apple Support: icon in a circle, big title, one line), search, filters ------------------------- */
.cmap-head { padding: 44px 0 26px; text-align: center; }
.cmap-hero-ico {
  display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(160deg, #c23542, var(--red) 55%, var(--red-ink)); box-shadow: 0 10px 30px rgba(162, 38, 49, .25);
}
.cmap-hero-ico svg { width: 44px; height: 44px; }
.cmap .cmap-title { font-size: clamp(42px, 5vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.cmap-lede { margin-top: 12px !important; font-size: clamp(19px, 2vw, 24px); line-height: 1.3; font-weight: 400; letter-spacing: -.01em; }
.cmap-updated { margin-top: 8px !important; font-size: 14px; color: var(--muted); }

.cmap-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; margin-bottom: 18px; }
.cmap-search { position: relative; flex: 1 1 360px; max-width: 620px; }
.cmap-search input {
  width: 100%; height: 54px; margin: 0; padding: 0 20px 0 52px;
  border: 1px solid transparent; border-radius: 999px; background: var(--gray);
  font: inherit; font-size: 17px; color: var(--ink); -webkit-appearance: none; appearance: none; transition: background .15s, box-shadow .15s;
}
.cmap-search input::placeholder { color: #86868b; }
.cmap-search input:focus { outline: none; background: #fff; border-color: var(--line); box-shadow: 0 0 0 4px rgba(162, 38, 49, .14); }
.cmap-search > .cmap-ico { position: absolute; left: 19px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.cmap:not(.is-live) .cmap-search > .cmap-ico { display: none; }

.cmap-results {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); padding: 6px; max-height: 420px; overflow: auto;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, .08); border-radius: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.cmap-opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; cursor: pointer; }
.cmap-opt.is-active, .cmap-opt:hover { background: var(--gray); }
.cmap-opt-text { display: flex; flex-direction: column; min-width: 0; }
.cmap-opt-name { font-weight: 600; font-size: 16px; }
.cmap-opt-name mark { background: none; color: var(--red); padding: 0; }
.cmap-opt-where { font-size: 14px; color: var(--muted); }
.cmap-noresult { padding: 12px; color: var(--muted); font-size: 15px; }
.cmap-noresult a { text-decoration: underline; }

.cmap-filters { display: flex; gap: 8px; }
.cmap-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.cmap-chip:hover { border-color: #a1a1a6; }
.cmap-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cmap-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cmap-dot--restroom { background: #1f5fbf; }
.cmap-dot--access { background: #18a058; }
.cmap-dot--parking { background: #e0a800; }

/* ---- map + panel --------------------------------------------------------------------------------------------- */
.cmap-main { display: grid; gap: 18px; }
@media (min-width: 1000px) {
  .cmap-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; }
  .cmap-panel { position: relative; }
  .cmap-panel > * { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
}
.cmap-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #dfe3da; box-shadow: var(--shadow); isolation: isolate; }
.cmap-viewport { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cmap.is-zoomed .cmap-viewport { touch-action: none; cursor: grab; }
.cmap.is-pannable .cmap-viewport { cursor: grab; }
.cmap.is-dragging .cmap-viewport { cursor: grabbing; }
.cmap-stage { position: relative; transform-origin: 0 0; will-change: transform; }
.cmap-img { display: block; width: 100%; height: auto; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; pointer-events: none; -webkit-user-drag: none; }
.cmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cmap:not(.is-live) .cmap-svg .cmap-b, .cmap:not(.is-live) .cmap-svg .cmap-mk { display: none; }

.cmap-b { fill: rgba(255, 255, 255, 0); stroke: transparent; stroke-width: 3; cursor: pointer; transition: fill .15s, stroke .15s; outline: none; }
.cmap-b:hover, .cmap-b:focus-visible { fill: rgba(255, 255, 255, .24); stroke: #fff; }
.cmap-b--zone:hover, .cmap-b--zone:focus-visible { fill: rgba(255, 255, 255, .12); }
.cmap-b.is-active { fill: rgba(255, 255, 255, .14); stroke: #fff; stroke-width: 7; filter: drop-shadow(0 0 6px rgba(162, 38, 49, .9)); animation: cmap-pulse 1.6s ease-out 2; }
.cmap-dim { fill: rgba(16, 16, 20, .42); pointer-events: none; }
@keyframes cmap-pulse { 50% { stroke-opacity: .4; } }

.cmap-mk { display: none; pointer-events: none; }
.cmap.show-restroom .cmap-mk--restroom, .cmap.show-access .cmap-mk--access, .cmap.show-parking .cmap-mk--parking { display: inline; }
.cmap-mk-ring { fill: none; stroke-width: 6; transform-box: fill-box; transform-origin: center; animation: cmap-ring 1.8s ease-out infinite; }
.cmap-mk--restroom .cmap-mk-ring { stroke: #1f5fbf; }
.cmap-mk--access .cmap-mk-ring { stroke: #18a058; }
.cmap-mk--parking .cmap-mk-ring { stroke: #e0a800; stroke-width: 7; }
@keyframes cmap-ring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

.cmap-lm { pointer-events: none; }
.cmap-lm-pill { fill: rgba(255, 255, 255, .94); stroke: rgba(0, 0, 0, .14); stroke-width: 1.5; }
.cmap-lm-text { font-family: var(--font); font-size: 23px; font-weight: 600; fill: #1d1d1f; letter-spacing: -.01em; }
.cmap-lm-light { fill: #1d1d1f; stroke: #fff; stroke-width: 2.5; }

.cmap-zoom, .cmap-compass, .cmap-tip { background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 2px 12px rgba(0, 0, 0, .14); }
.cmap-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; z-index: 2; }
.cmap-zoom button { width: 42px; height: 42px; padding: 0; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; }
.cmap-zoom button + button { border-top: 1px solid rgba(0, 0, 0, .08); }
.cmap-zoom button:hover { background: rgba(0, 0, 0, .06); }
.cmap-zoom svg { width: 18px; height: 18px; vertical-align: middle; }
.cmap-zoom-reset { display: none; }
.cmap.is-zoomed .cmap-zoom-reset, .cmap.is-pannable .cmap-zoom-reset { display: block; }
.cmap-compass { position: absolute; left: 12px; top: 12px; width: 48px; height: 48px; border-radius: 50%; z-index: 2; }
.cmap-compass svg { width: 100%; height: 100%; display: block; }
.cmap-tip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none; transition: opacity .3s; z-index: 2; }
.cmap.has-active .cmap-tip, .cmap.is-zoomed .cmap-tip { opacity: 0; }

/* ---- panel --------------------------------------------------------------------------------------------------- */
.cmap-panel > * { background: var(--gray); border-radius: var(--radius); padding: 20px; }
.cmap-panel-h { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase !important; color: var(--muted); margin-bottom: 8px; }
.cmap-quick { margin: 0 -8px 14px; }
.cmap-qp { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; }
.cmap-qp:hover { background: rgba(0, 0, 0, .05); }
.cmap-qp-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cmap-qp-n { font-weight: 600; font-size: 16px; }
.cmap-qp-w { font-size: 14px; color: var(--muted); }
.cmap-chev { color: #a1a1a6; width: 16px; height: 16px; }

.cmap-sos { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--red); color: #fff !important; margin-bottom: 10px; transition: background .15s; }
.cmap-sos:hover { background: var(--red-ink); }
.cmap-sos-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .18); flex: none; }
.cmap-sos-ico .cmap-ico { width: 20px; height: 20px; }
.cmap-sos-k { display: block; font-size: 13px; opacity: .85; }
.cmap-sos-v { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.cmap-panel-link { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #fff; color: var(--ink) !important; font-weight: 600; font-size: 15px; }
.cmap-panel-link:hover { background: #fafafa; }

.cmap-card { animation: cmap-in .25s ease-out; }
@keyframes cmap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cmap-back { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 12px -6px; padding: 4px 8px 4px 2px; border: 0; border-radius: 10px; background: none; color: var(--red); font-size: 15px; font-weight: 500; cursor: pointer; }
.cmap-back:hover { background: rgba(162, 38, 49, .08); }
.cmap-card-head { display: flex; align-items: center; gap: 14px; }
.cmap-card-head > div { flex: 1; min-width: 0; }
.cmap-card-h { font-size: 26px !important; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.cmap-card-sub { font-size: 14px; color: var(--muted); }
.cmap-offices { margin-top: 14px; background: #fff; border-radius: 16px; overflow: hidden; }
.cmap-office + .cmap-office { border-top: 1px solid #ececf0; }
.cmap-office-n { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; font-size: 15px; line-height: 1.35; }
button.cmap-office-n { cursor: pointer; }
button.cmap-office-n:hover { background: #fafafa; }
.cmap-office.is-match > .cmap-office-n { color: var(--red); font-weight: 700; }
.cmap-office-c { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 13px; font-weight: 500; color: var(--muted); }
.cmap-office-c .cmap-chev { transition: transform .2s; }
.cmap-office.is-open .cmap-office-c .cmap-chev { transform: rotate(90deg); }
.cmap-people { padding: 0 14px 10px; }
.cmap-person { display: flex; flex-direction: column; padding: 10px 12px; margin-top: 6px; border-radius: 12px; background: var(--gray); }
.cmap-person-n { font-weight: 600; font-size: 15px; }
.cmap-person-t { font-size: 13px; color: var(--muted); line-height: 1.3; }
.cmap-person-l { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.cmap-person-l a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.cmap-person-l .cmap-ico { width: 15px; height: 15px; }
.cmap-card-empty { margin-top: 12px; color: var(--muted); font-size: 15px; }
.cmap-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; font-size: 14px; }
.cmap-copy { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; }
.cmap-copy:hover { border-color: #a1a1a6; }

.cmap-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: 11px; background: #1d1d1f; color: #fff; font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: 0; }
.cmap-badge--icon { background: var(--red); }
.cmap-badge--wc { background: #1f5fbf; padding: 0; }
.cmap-badge--wc .cmap-ico { width: 20px; height: 20px; stroke-width: 1.6; }
.cmap-card-head .cmap-badge { min-width: 46px; height: 46px; border-radius: 13px; font-size: 20px; }
.cmap-note { margin-top: 12px !important; padding: 10px 14px; border-radius: 12px; background: #fdecee; color: #7d1a24; font-size: 15px; }

/* ---- actions under the map ----------------------------------------------------------------------------------- */
.cmap-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.cmap-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--gray); color: var(--ink) !important; font-size: 15px; font-weight: 600; transition: background .15s; }
.cmap-btn:hover { background: #e8e8ed; }
.cmap-btn--red { background: var(--red); color: #fff !important; }
.cmap-btn--red:hover { background: var(--red-ink); }

/* ---- building directory -------------------------------------------------------------------------------------- */
.cmap-band { background: var(--gray); margin-top: 56px; padding: 64px 0 72px; }
.cmap-h2 { font-size: clamp(32px, 4vw, 48px) !important; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.cmap-band-lede { margin-top: 10px !important; font-size: 19px; color: var(--muted); max-width: 760px; }
.cmap-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.cmap-dir-b { display: flex; flex-direction: column; padding: 22px; background: #fff; border-radius: var(--radius); }
.cmap-dir-b h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px !important; font-size: 21px !important; font-weight: 700; letter-spacing: -.015em; }
.cmap-dir-b ul { flex: 1; }
.cmap-dir-b li { padding: 5px 0; font-size: 15px; line-height: 1.35; border-top: 1px solid #f0f0f3; }
.cmap-dir-b li:first-child { border-top: 0; }
.cmap-dir-b .cmap-note { margin: 0 0 6px !important; }
.cmap-show { display: inline-flex; align-items: center; align-self: flex-start; margin-top: auto; padding-top: 14px; font-size: 15px; font-weight: 600; }
.cmap-show::after { content: "›"; margin-left: 6px; font-size: 20px; line-height: 1; }
.cmap-show:hover { text-decoration: underline; }

/* ---- phones and tablets -------------------------------------------------------------------------------------- */
@media (max-width: 999px) {
  .cmap-panel > * { padding: 18px; }
}
@media (max-width: 640px) {
  .cmap-wrap { width: calc(100% - 24px); }
  .cmap-head { padding: 34px 0 22px; }
  .cmap-hero-ico { width: 76px; height: 76px; margin-bottom: 18px; }
  .cmap-hero-ico svg { width: 38px; height: 38px; }
  .cmap-search { flex-basis: 100%; }
  .cmap-search input { height: 50px; }
  .cmap-filters { width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
  .cmap-filters::-webkit-scrollbar { display: none; }
  .cmap-chip { height: 36px; padding: 0 13px; font-size: 14px; }
  .cmap-frame { border-radius: 16px; }
  .cmap-zoom button { width: 38px; height: 38px; }
  .cmap-compass { width: 40px; height: 40px; left: 8px; top: 8px; }
  .cmap-tip { font-size: 12px; bottom: 8px; }
  /* phones: a tall map (fills the frame's height, drag sideways; pinch or − to see all of it) */
  .cmap.is-live .cmap-viewport { height: min(64vh, 560px); height: min(64svh, 560px); }
  .cmap-card-h { font-size: 22px !important; }
  .cmap-actions { display: grid; grid-template-columns: 1fr; }
  .cmap-btn { justify-content: center; }
  .cmap-band { margin-top: 40px; padding: 44px 0 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmap-b.is-active, .cmap-mk-ring, .cmap-card { animation: none; }
  .cmap-stage { transition: none !important; }
}
