:root {
  --ucu-blue: #052e66;
  --ucu-red: #e53935;
  --ink: #1d252d;
  --muted: #68737d;
  --line: #d8e0e6;
  --soft: #f4f6f8;
  --paper: #ffffff;
  --site-nav-height: 68px;
  --map-motion-duration: 720ms;
  --map-motion-easing: cubic-bezier(.4, 0, .2, 1);
}

/* Layout de la portada definido a partir de la maqueta 2026-08-06. */
body {
  --site-nav-height: 84px;
  padding-top: var(--site-nav-height);
}

.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--site-nav-height);
  min-height: 0;
  padding: 10px clamp(20px, 5vw, 82px);
  color: #fff;
  background: rgba(5, 46, 102, .76);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}

.brand-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-placeholder__mark {
  width: 40px;
  height: 40px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.brand-placeholder__name {
  width: clamp(105px, 12vw, 175px);
  height: 31px;
  border-radius: 2px;
  background: currentColor;
}

.brand-placeholder__partner {
  width: 42px;
  height: 42px;
  margin-left: 12px;
  border-radius: 2px;
  background: #f3b61f;
}

.site-nav nav {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(15px, 1.35vw, 20px);
}

.menu-toggle {
  display: none;
}

.site-nav nav a {
  padding: 10px 0 7px;
  border-bottom: 2px solid transparent;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible,
.site-nav nav a.is-active {
  color: #fff;
  border-bottom-color: currentColor;
}

.map-section {
  min-height: calc(100vh - var(--site-nav-height));
  padding: 0;
  scroll-margin-top: var(--site-nav-height);
}

.campus-map {
  height: calc(100vh - var(--site-nav-height));
}

.filter-panel {
  position: absolute;
  top: clamp(28px, 5vh, 62px);
  left: clamp(20px, 5vw, 82px);
  z-index: 10;
  width: min(230px, calc(100% - 40px));
  padding: 16px;
  background: rgba(255, 255, 255, .3);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 10px 30px rgba(5, 46, 102, .13);
  backdrop-filter: blur(15px) saturate(125%);
}

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  padding: 6px 10px;
  color: var(--ucu-blue);
  background: #fff;
  border: 2px solid rgba(5, 46, 102, .65);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
}

.filter-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.filter-panel .category-filters {
  display: grid;
  justify-content: stretch;
  gap: 8px;
  margin-top: 12px;
}

.filter-panel .filter-button {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 4px;
  text-align: left;
  background: #fff;
}

.filter-panel .filter-button.is-active,
.filter-panel .filter-button:hover,
.filter-panel .filter-button:focus-visible {
  background: var(--category-color, var(--ucu-blue));
}

.filter-panel.is-collapsed {
  width: auto;
  padding: 10px;
}

.filter-panel.is-collapsed .category-filters {
  display: none;
}

.filter-panel.is-collapsed .filter-chevron {
  transform: translateY(2px) rotate(225deg);
}

.list-section,
.campus-note {
  scroll-margin-top: var(--site-nav-height);
}

.campus-notes {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--soft);
}

.campus-note {
  min-height: 0;
  padding: 0;
  color: var(--ink);
  background: #f7f9fb;
  transition: background-color .22s ease;
}

.campus-note:hover,
.campus-note:focus-within {
  background: #edf2f6;
}

.campus-note__link {
  display: flex;
  width: 100%;
  padding: clamp(42px, 5vw, 72px) clamp(20px, 6vw, 88px);
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.campus-note__link:focus-visible {
  outline: 3px solid rgba(5, 46, 102, .35);
  outline-offset: -3px;
}

.campus-note h2 {
  margin-bottom: clamp(18px, 2vw, 28px);
  color: var(--ucu-blue);
  font-size: clamp(30px, 3vw, 42px);
  text-align: center;
}

.campus-buildings {
  display: flex;
  width: min(1120px, 100%);
  align-items: stretch;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
}

.campus-building {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr);
  width: min(520px, 50%);
  margin: 0;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
  text-align: left;
}

.campus-building img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.campus-building figcaption {
  display: grid;
  gap: 7px;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.4;
}

.campus-building figcaption strong {
  color: var(--ucu-blue);
  font-size: 1.05em;
  text-transform: uppercase;
}

.campus-building figcaption span {
  font-weight: 600;
}

.campus-building figcaption p {
  color: var(--muted);
}

.campus-buildings--salto .campus-building {
  width: min(720px, 100%);
}

.campus-buildings--salto .campus-building img {
  height: auto;
}

.campus-notes .back-to-top {
  color: #fff;
  background: var(--ucu-blue);
  border-color: rgba(255, 255, 255, .92);
}

.back-to-top {
  position: absolute;
  right: clamp(20px, 3vw, 42px);
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--ucu-blue);
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(5, 46, 102, .25);
  transition: transform .2s ease, box-shadow .2s ease, opacity .3s ease, visibility .3s ease;
}

.back-to-top.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.back-to-top span {
  width: 19px;
  height: 19px;
  border-top: 4px solid currentColor;
  border-left: 4px solid currentColor;
  transform: translateY(4px) rotate(45deg);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(5, 46, 102, .34);
  outline: 3px solid rgba(255, 255, 255, .55);
  outline-offset: 2px;
}

.points-jump {
  position: fixed;
  left: 50%;
  margin-left: -33px;
  bottom: 20px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: #fff;
  background: var(--ucu-blue);
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(5, 46, 102, .28);
  transform: none;
  animation: gentle-heartbeat 3.2s cubic-bezier(.45, 0, .55, 1) infinite;
  transition: opacity .35s ease, visibility .35s ease;
  transform-origin: center;
  will-change: scale;
}

.points-jump.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.points-jump span {
  width: 22px;
  height: 22px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: translateY(-4px) rotate(45deg);
}

.points-jump:hover,
.points-jump:focus-visible {
  animation-play-state: paused;
  outline: 4px solid rgba(5, 46, 102, .25);
  outline-offset: 3px;
}

@keyframes gentle-heartbeat {
  0%, 100% { scale: 1; }
  50% { scale: .88; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 620px) {
  body {
    --site-nav-height: 112px;
  }

  .site-nav {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    height: var(--site-nav-height);
    padding: 8px 14px;
  }

  .brand-placeholder__mark {
    width: 28px;
    height: 28px;
  }

  .brand-placeholder__name {
    width: 88px;
    height: 22px;
  }

  .brand-placeholder__partner {
    width: 28px;
    height: 28px;
    margin-left: 4px;
  }

  .site-nav nav {
    width: 100%;
    justify-content: space-around;
    gap: 9px;
    font-size: 14px;
  }

  .site-nav nav a {
    padding: 6px 0 3px;
  }

  .filter-panel {
    top: 14px;
    left: 12px;
    width: min(200px, calc(100% - 24px));
    padding: 10px;
  }

  .campus-notes {
    grid-template-columns: 1fr;
  }

  .campus-note {
    min-height: 0;
    padding: 0;
  }

  .campus-note__link {
    padding: 38px 18px 44px;
  }

  .campus-note h2 {
    margin-bottom: 18px;
  }

  .campus-buildings {
    display: grid;
    gap: 34px;
  }

  .campus-building,
  .campus-buildings--salto .campus-building {
    grid-template-columns: 1fr;
    width: 100%;
    justify-items: center;
    gap: 14px;
    text-align: center;
  }

  .campus-building img {
    width: min(230px, 70vw);
    height: auto;
  }

  .campus-building figcaption {
    max-width: 520px;
    font-size: 14px;
  }

  .campus-buildings--salto .campus-building img {
    height: auto;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .points-jump {
    width: 56px;
    height: 56px;
    margin-left: -28px;
    bottom: 14px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.is-menu-scrolling {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Asap, Arial, sans-serif;
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--site-nav-height);
  padding: 8px clamp(16px, 3vw, 36px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand img {
  display: block;
  width: clamp(240px, 27vw, 390px);
  max-height: 52px;
  height: auto;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
}

.map-section {
  min-height: calc(100vh - var(--site-nav-height));
  padding: 0 0 28px;
}

.map-head {
  width: 100%;
  margin: 0;
  padding: 10px clamp(16px, 3vw, 36px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--ucu-blue);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 400;
}

.map-intro p,
.section-title p {
  margin-top: 5px;
  color: var(--muted);
}

.map-intro p {
  max-width: 310px;
  font-size: 11px;
  line-height: 1.2;
}

.category-filters {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  color: #fff;
  background: var(--category-color, var(--ucu-blue));
  border-color: var(--category-color, var(--ucu-blue));
}

.filter-button.is-active {
  color: #fff;
  background: var(--category-color, var(--ucu-blue));
  border-color: var(--category-color, var(--ucu-blue));
}

.filter-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.filter-button .filter-dot {
  background: var(--category-color, currentColor);
}

.filter-button:hover .filter-dot,
.filter-button:focus-visible .filter-dot,
.filter-button.is-active .filter-dot {
  background: #fff;
}

.campus-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: calc(100vh - 126px);
  min-height: 520px;
  background: #eef2f4;
  border-bottom: 1px solid var(--line);
  touch-action: pan-x pan-y;
}

.map-stage {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  transition:
    top var(--map-motion-duration) var(--map-motion-easing),
    left var(--map-motion-duration) var(--map-motion-easing),
    width var(--map-motion-duration) var(--map-motion-easing),
    height var(--map-motion-duration) var(--map-motion-easing);
}

.map-stage > img,
.map-stage > svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
}

.marker-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  transition: transform var(--map-motion-duration) var(--map-motion-easing);
  will-change: transform;
}

.map-north {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  z-index: 1;
  display: block;
  width: clamp(38px, 3.5vw, 50px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.campus-map.is-zoomed .map-stage {
  cursor: grab;
  touch-action: none;
}

.campus-map.is-panning .map-stage,
.campus-map.is-panning .marker-layer,
.campus-map.is-pinching .map-stage,
.campus-map.is-pinching .marker-layer {
  cursor: grabbing;
  transition: none;
}

.map-zoom-controls {
  position: absolute;
  left: clamp(16px, 2.2vw, 42px);
  bottom: 96px;
  z-index: 10;
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(29, 37, 45, .14);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(29, 37, 45, .18);
}

.map-zoom-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.map-zoom-controls button + button {
  border-top: 1px solid var(--line);
}

.map-zoom-controls button:hover:not(:disabled),
.map-zoom-controls button:focus-visible {
  color: #fff;
  background: var(--ucu-blue);
}

.map-zoom-controls button:focus-visible {
  outline: 3px solid rgba(5, 46, 102, .38);
  outline-offset: -3px;
}

.map-zoom-controls button:disabled {
  color: #aeb7be;
  cursor: default;
}

.map-marker {
  position: absolute;
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #fff;
  background: var(--marker-color, var(--ucu-red));
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transform: translate(-50%, -50%) scale(var(--marker-zoom-scale, 1));
  transition:
    transform var(--map-motion-duration) var(--map-motion-easing),
    outline-color .18s ease;
}

.map-marker svg {
  width: 22px;
  height: 22px;
}

.hover-tooltip {
  position: fixed;
  z-index: 9999;
  width: max-content;
  max-width: 260px;
  padding: 7px 11px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(29, 37, 45, .2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}

.hover-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.map-marker.is-hidden {
  display: none;
}

.map-marker.is-active {
  outline: 3px solid rgba(5, 46, 102, .28);
  transform: translate(-50%, -50%) scale(var(--active-marker-zoom-scale, 1.12));
}

.detail-panel {
  position: fixed;
  top: var(--site-nav-height);
  right: 0;
  z-index: 12;
  width: min(430px, 100%);
  height: calc(100vh - var(--site-nav-height));
  overflow: auto;
  padding: 26px;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(29, 37, 45, .18);
  pointer-events: none;
  transform: translateX(100%);
  transition: transform .24s ease;
}

.detail-panel.is-open {
  pointer-events: auto;
  transform: translateX(0);
}

.detail-close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -8px -8px 6px 12px;
  color: var(--ink);
  background: #eef2f5;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.detail-close:hover,
.detail-close:focus-visible {
  color: #fff;
  background: var(--ucu-blue);
}

.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-panel h3 {
  margin: 0 0 12px;
  padding-right: 28px;
  font-size: 30px;
  line-height: 1.05;
}

.detail-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-meta a {
  color: var(--ucu-blue);
  text-decoration-color: currentColor;
}

.detail-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.detail-image-button {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.detail-image-button:hover img,
.detail-image-button:focus-visible img {
  transform: scale(1.035);
}

.detail-image-button:focus-visible {
  outline: 3px solid rgba(5, 46, 102, .42);
  outline-offset: 2px;
}

.detail-images img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .2s ease;
}

html.has-lightbox {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(5, 20, 38, .92);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox__dialog {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
  width: min(1100px, 100%);
}

.image-lightbox figure {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
  margin: 0;
}

.image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .38);
}

.image-lightbox__counter {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.image-lightbox__close,
.image-lightbox__previous,
.image-lightbox__next {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible,
.image-lightbox__previous:hover,
.image-lightbox__previous:focus-visible,
.image-lightbox__next:hover,
.image-lightbox__next:focus-visible {
  color: var(--ucu-blue);
  background: #fff;
}

.image-lightbox__close {
  position: absolute;
  top: -12px;
  right: 0;
  z-index: 1;
  transform: translateY(-100%);
  font-size: 30px;
}

.image-lightbox button[hidden] {
  visibility: hidden;
}

.list-section {
  padding: 48px clamp(16px, 3vw, 36px) 96px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.section-title,
.points-list {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.points-list {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.category-group {
  display: grid;
  gap: 10px;
}

.category-empty {
  grid-column: 1 / -1;
  padding: 20px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.category-heading {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-weight: inherit;
  text-align: left;
  text-transform: inherit;
}

.category-toggle__label {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
}

.category-toggle__label::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  margin-left: 4px;
  background: var(--line);
}

.category-chevron {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 0 5px 0 2px;
  color: var(--category-color, currentColor);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(2px) rotate(225deg);
  transition: transform .2s ease;
}

.category-toggle[aria-expanded="false"] .category-chevron {
  transform: translateY(-2px) rotate(45deg);
}

.category-toggle:hover,
.category-toggle:focus-visible {
  color: var(--ucu-blue);
}

.category-toggle:focus-visible {
  outline: 2px solid rgba(5, 46, 102, .35);
  outline-offset: 3px;
  border-radius: 3px;
}

.category-points {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1), opacity .3s ease;
}

.category-points.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .campus-note {
    transition: none;
  }
}

.point-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.point-card {
  min-height: 96px;
  padding: 16px;
  text-align: left;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.point-card:hover,
.point-card:focus-visible,
.point-card.is-active {
  color: #fff;
  background: var(--marker-color, var(--ucu-red));
  border-color: var(--marker-color, var(--ucu-red));
}

.point-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.point-card span {
  color: var(--muted);
  font-size: 14px;
  transition: color .18s ease;
}

.point-card:hover span,
.point-card:focus-visible span,
.point-card.is-active span {
  color: #fff;
}

@media (max-width: 980px) {
  .campus-map {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 96px;
  }

  .site-identity {
    gap: 14px;
    width: 100%;
  }

  .map-intro {
    min-width: 0;
  }

  .map-intro p {
    font-size: 10px;
  }

  .map-head {
    padding: 8px 13px;
  }

  .category-filters {
    gap: 6px;
  }

  .filter-button {
    gap: 6px;
    min-height: 29px;
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 13px;
  }

  .filter-button .filter-dot {
    width: 7px;
    height: 7px;
  }

  .map-zoom-controls {
    left: 12px;
    bottom: 12px;
  }

  .map-zoom-controls button {
    width: 34px;
    height: 34px;
  }

  .map-marker {
    width: 32px;
    height: 32px;
  }

  .detail-panel {
    inset: auto 0 0 0;
    width: 100%;
    height: min(72vh, 560px);
    border-top: 1px solid var(--line);
    border-left: 0;
    box-shadow: 0 -18px 50px rgba(29, 37, 45, .18);
    transform: translateY(100%);
  }

  .detail-panel.is-open {
    transform: translateY(0);
  }

  .image-lightbox {
    padding: 56px 12px 18px;
  }

  .image-lightbox__dialog {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
  }

  .image-lightbox__previous,
  .image-lightbox__next {
    width: 38px;
    height: 38px;
    font-size: 32px;
  }

  .image-lightbox__close {
    width: 40px;
    height: 40px;
    top: -8px;
  }
}

/* These overrides remain last because they replace the previous header/map layout. */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--site-nav-height);
  min-height: 0;
  padding: 10px clamp(20px, 5vw, 82px);
  color: #fff;
  background: rgba(5, 46, 102, .76);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 rgba(5, 46, 102, 0);
  transition: box-shadow .25s ease;
}

.site-nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(5, 46, 102, .2);
}

.site-nav nav {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(15px, 1.35vw, 20px);
}

.map-section {
  min-height: calc(100vh - var(--site-nav-height));
  padding: 0;
}

.campus-map {
  height: calc(100vh - var(--site-nav-height));
}

@media (max-width: 620px) {
  body {
    --site-nav-height: 72px;
  }

  .site-nav {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    height: var(--site-nav-height);
    padding: 8px 12px 8px 14px;
  }

  .brand img {
    width: min(255px, calc(100vw - 82px));
    max-height: 38px;
  }

  .menu-toggle {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 10px 9px;
    place-content: center;
    gap: 5px;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 6px;
  }

  .menu-toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 24px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle span:nth-child(1) {
    transform: translate(-50%, calc(-50% - 8px));
  }

  .menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .menu-toggle span:nth-child(3) {
    transform: translate(-50%, calc(-50% + 8px));
  }

  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, .14);
  }

  .menu-toggle:focus-visible {
    background: rgba(255, 255, 255, .14);
    outline: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .site-nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    width: 100%;
    padding: 8px 14px 12px;
    justify-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    background: var(--ucu-blue);
    border: 0;
    border-radius: 0;
    box-shadow: 0 14px 32px rgba(5, 46, 102, .28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .site-nav.is-menu-open nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav nav a {
    width: auto;
    padding: 10px 0 7px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }

  .site-nav nav a:hover,
  .site-nav nav a:focus-visible,
  .site-nav nav a.is-active {
    color: #fff;
    background: transparent;
    border-bottom-color: currentColor;
  }

  .site-nav nav a.is-active {
    font-weight: inherit;
  }
}
