@import url("/map-assets/maplibre-gl.css");

.gm-page {
  width: min(1600px, calc(100% - 2rem));
  max-width: none;
  margin-inline: auto;
  padding-bottom: 20px;
}
.gm-split {
  display: grid;
  grid-template-columns: minmax(300px, min(32%, 380px)) minmax(0, 1fr);
  margin-top: 12px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.gm-mobile-toggle {
  display: none;
}
.gm-results {
  min-width: 0;
  max-height: clamp(490px, calc(100dvh - 254px), 850px);
  overflow: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--line);
  background: var(--soft);
}
.gm-count {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
}
.gm-count strong,
.gm-count span {
  display: block;
}
.gm-count strong {
  font-size: 15px;
}
.gm-count span {
  color: var(--muted);
  font-size: 12px;
}
.gm-count a {
  font-weight: 700;
  font-size: 12px;
}
.gm-cards {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.gm-cards article {
  min-width: 0;
}
.gm-cards article:has([data-focus-campus]) {
  cursor: pointer;
}
.gm-cards article.gm-highlight {
  border-color: var(--red);
  box-shadow: var(--shadow-card);
}
.gm-cards article[aria-current="true"] {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: -2px;
  background: color-mix(in srgb, var(--red) 4%, var(--surface));
  box-shadow: var(--shadow-card);
}
.gm-cards article[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
  pointer-events: none;
}
.gm-cards article[aria-current="true"] .gd-campus-identity::before {
  background: color-mix(in srgb, var(--red) 8%, var(--surface));
}
@media (hover: hover) {
  .gm-cards article:has([data-focus-campus]):hover {
    border-color: var(--red);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .gm-cards article {
    transition:
      border-color 140ms ease,
      box-shadow 160ms ease;
  }
  .gm-preview {
    animation: gm-pop-in 160ms ease-out;
  }
  @keyframes gm-pop-in {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.gm-workspace,
.gm-holder {
  min-width: 0;
}
.gm-holder {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--soft);
}
.gm-empty,
.gm-loading {
  margin: 0;
  padding: 20px;
  color: var(--ink);
}
.gm-empty p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.gm-national {
  --map-bg: #f1f6fa;
  --map-fill: #b4ccde;
  --map-outline: #f5f9fc;
  --map-label: #214862;
  --map-line: #7897aa;
  --map-active: #ee8f84;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  flex: 1;
  min-height: 0;
  padding: 16px;
  background: var(--map-bg);
  color: var(--map-label);
  container-type: inline-size;
}
[data-theme="dark"] .gm-national {
  --map-bg: #132634;
  --map-fill: #305469;
  --map-outline: #132634;
  --map-label: #e1edf5;
  --map-line: #83a7bc;
  --map-active: #ee988c;
}
.gm-hover-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-self: start;
  align-self: start;
  min-height: 68px;
  max-width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 7px 20px #142f4510;
}
.gm-hover-summary svg {
  margin-top: 2px;
}
.gm-hover-summary div {
  display: grid;
  gap: 3px;
}
.gm-hover-summary strong {
  font-size: 14px;
}
.gm-hover-summary span {
  font-size: 13px;
  color: var(--muted);
}
.gm-hover-summary b {
  font-size: 18px;
  color: var(--ink);
}
.gm-national-svg {
  display: block;
  align-self: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1140/650;
  touch-action: pan-y;
  overflow: hidden;
}
.gm-national-svg.is-zoomed {
  cursor: grab;
  touch-action: none;
}
.gm-national-svg.is-zoomed:active {
  cursor: grabbing;
}
.gm-state,
.gm-callout {
  cursor: pointer;
}
.gm-state {
  outline: none;
}
.gm-state path {
  fill: var(--map-fill);
  stroke: var(--map-outline);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.gm-state text,
.gm-callout text {
  fill: var(--map-label);
  font:
    700 22px Arial,
    sans-serif;
  dominant-baseline: central;
  pointer-events: none;
}
.gm-state text {
  text-anchor: middle;
}
.gm-state.is-active path,
.gm-state:focus-visible path {
  fill: var(--map-active);
  stroke: var(--surface);
  stroke-width: 2px;
}
.gm-state.is-active text,
.gm-callout.is-active text {
  fill: #422c2a;
}
.gm-callout polyline,
.gm-inset {
  fill: none;
  stroke: var(--map-line);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.gm-inset {
  pointer-events: none;
  stroke: var(--line);
}
.gm-callout circle {
  fill: var(--map-line);
}
.gm-callout rect {
  fill: var(--surface);
  stroke: var(--line);
}
.gm-callout.is-active rect {
  fill: var(--map-active);
  stroke: var(--map-active);
}
.gm-national-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.gm-zoom {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.gm-zoom button,
.gm-mobile-toggle button,
.gm-map-toolbar button,
.gm-preview button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  border: 0;
}
.gm-zoom button {
  width: 40px;
  min-height: 42px;
  font-size: 20px;
}
.gm-zoom button:disabled {
  opacity: 0.4;
}
.gm-zoom span {
  min-width: 35px;
  text-align: center;
  font-size: 12px;
}
.gm-zoom button:focus-visible {
  outline-offset: -3px;
}
.gm-disclosure {
  padding: 0 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink);
}
.gm-disclosure summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 700;
}
.gm-disclosure button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.gm-disclosure button:last-child {
  margin-bottom: 5px;
}
.gm-disclosure button span:last-child {
  color: var(--muted);
  font-size: 12px;
}
.gm-detailed {
  height: 100%;
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.gm-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
}
.gm-map-toolbar button {
  min-height: 34px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}
.gm-map-toolbar label {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-left: auto;
  font-size: 12px;
}
.gm-map-toolbar [hidden] {
  display: none;
}
.gm-stage {
  position: relative;
  flex: 1;
  min-height: 325px;
  background: var(--soft);
}
.gm-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gm-map-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 12px;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
}
.gm-map-foot [data-visible] {
  font-weight: 650;
}
.gm-pin {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 34px;
  height: 36px;
  border: 0;
  padding: 0;
  color: #145ed6;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 2px 2px #1c334044);
}
.gm-state-count {
  height: 30px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, var(--surface));
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 6px #10294033;
  font: 650 11px/1 var(--font, system-ui);
  white-space: nowrap;
  cursor: pointer;
}
.gm-state-count strong {color: var(--red); margin-right: 2px;}
.gm-state-count:is(:hover,:focus-visible) {border-color: var(--red); z-index: 3;}
.gm-state-count[hidden] {display:none;}
.gm-pin.gm-highlight,
.gm-pin:hover,
.gm-pin:focus-visible,
.gm-pin[aria-pressed="true"] {
  z-index: 2;
  color: #c52535;
}
.gm-preview-slot:not(:empty) {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 10px;
  right: 10px;
  max-height: 65%;
  overflow: auto;
  pointer-events: none;
}
.gm-preview {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 auto;
  padding: 12px 36px 12px 14px;
  max-width: 565px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px #172b4728;
}
.gm-preview strong {
  font-size: 15px;
}
.gm-preview p,
.gm-preview small {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.gm-preview .button {
  min-height: 35px;
  padding: 5px 11px;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
}
.gm-preview .gm-close {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.gm-preview .gm-choose {
  width: 100%;
  display: grid;
  justify-content: start;
  text-align: left;
  border-top: 1px solid var(--line);
  padding: 7px 0;
}
.gm-choose small {
  display: block;
}
.gm-canvas .maplibregl-ctrl-group {
  background: #fff;
}
@media (max-width: 1023px) {
  .gm-page {
    width: calc(100% - 24px);
    padding-bottom: 15px;
  }
  .gm-split {
    grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  }
  .gm-results {
    max-height: clamp(425px, calc(100dvh - 300px), 700px);
  }
}
@media (max-width: 760px) {
  .gm-page {
    width: calc(100% - 20px);
    margin-inline: auto;
  }
  .gm-mobile-toggle {
    display: flex;
    width: max-content;
    gap: 3px;
    margin: 9px auto 0;
    padding: 3px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .gm-mobile-toggle button {
    min-width: 86px;
    min-height: 40px;
    gap: 6px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
  }
  .gm-mobile-toggle [aria-pressed="true"] {
    background: var(--action);
    color: white;
  }
  .gm-split {
    display: block;
    margin-top: 8px;
  }
  .gm-split[data-mobile-view="map"] .gm-results,
  .gm-split[data-mobile-view="list"] .gm-workspace {
    display: none;
  }
  .gm-results {
    border: 0;
    max-height: none;
  }
  .gm-count {
    position: static;
  }
  .gm-cards {
    padding: 8px;
  }
  .gm-national {
    padding: 10px;
    gap: 8px;
  }
  .gm-hover-summary {
    min-height: 56px;
    padding: 7px 10px;
  }
  .gm-hover-summary span {
    font-size: 12px;
  }
  .gm-zoom button {
    width: 44px;
    min-height: 44px;
  }
  .gm-state text,
  .gm-callout text {
    font-size: 27px;
  }
  .gm-map-toolbar label,
  .gm-map-toolbar button {
    min-height: 40px;
  }
  .gm-stage {
    min-height: clamp(325px, 53dvh, 580px);
  }
  .gm-map-foot {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .gm-state.is-active {
    transform-box: fill-box;
    transform-origin: center;
    transform: translateY(-4px) scale(1.025);
  }
}
.gm-mobile-row {
  display: none;
}
.gm-national-tools {
  justify-content: flex-end;
}
@media (max-width: 1023px) {
  .gm-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 10px;
    background: var(--surface);
    border-block: 1px solid var(--line);
    padding: 2px 8px;
    order: 1;
  }
  .gm-mobile-toggle {
    display: inline-flex;
    width: auto;
    align-items: center;
    margin: 0;
    padding: 1px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .gm-mobile-toggle button {
    min-width: 54px;
    min-height: 40px;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 650;
  }
  .gm-mobile-toggle [aria-pressed="true"] {
    color: var(--ink);
    border: 1px solid var(--blue);
    background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  }
  .gm-filter-launch {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 3px 7px;
    border: 0;
    background: transparent;
    color: var(--blue);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
  }
  .gm-page {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .gm-page .gd-intro {
    order: 0;
  }
  .gm-page [data-map-filters] {
    order: 2;
    display: none;
    background: var(--surface);
  }
  .gm-page.gm-filters-open [data-map-filters] {
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .gm-page [data-map-filters] .gd-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gm-page [data-map-filters] .gd-query,
  .gm-page [data-map-filters] .gd-active-filters {
    grid-column: 1/-1;
  }
  .gm-page [data-map-filters] .gd-filter-toggle {
    display: none;
  }
  .gm-page [data-map-filters] .gd-filter-panel {
    display: contents;
  }
  .gm-split {
    display: block;
    order: 3;
  }
  .gm-split[data-mobile-view="map"] .gm-results,
  .gm-split[data-mobile-view="list"] .gm-workspace {
    display: none;
  }
  .gm-results {
    max-height: none;
    border-right: 0;
  }
  .gm-stage {
    min-height: 360px;
  }
}
@media (orientation: portrait) and (max-width: 1023px) and (any-pointer: coarse),
  (orientation: portrait) and (max-width: 599px) {
  .gm-page.gm-map-view {
    position: fixed;
    z-index: 8;
    inset: var(--gm-frame-top, 44px) 0 var(--gm-frame-bottom, 66px);
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 0;
    gap: 0;
    background: var(--surface);
  }
  .gm-map-view .gd-intro {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .gm-map-view .gm-mobile-row {
    flex: none;
  }
  .gm-map-view.gm-filters-open [data-map-filters] {
    position: absolute;
    inset: 50px 8px auto;
    z-index: 6;
    max-height: calc(100% - 56px);
    overflow: auto;
    box-shadow: 0 7px 24px #142b4126;
  }
  .gm-map-view .gm-split {
    margin: 0;
    min-height: 0;
    flex: 1;
    border: 0;
    border-radius: 0;
  }
  .gm-map-view .gm-workspace {
    height: 100%;
  }
  .gm-map-view .gm-holder {
    min-height: 0;
  }
  .gm-map-view .gm-stage {
    min-height: 0;
  }
  .gm-map-view .gm-disclosure[open] {
    max-height: min(220px, 45%);
    overflow: auto;
  }
}
.gm-location {
  position: relative;
  justify-self: end;
  align-self: start;
  color: var(--ink);
  font-size: 13px;
}
.gm-location summary {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 43px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.gm-location summary::-webkit-details-marker {
  display: none;
}
.gm-location > div {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 9;
  display: grid;
  gap: 7px;
  min-width: 230px;
  max-width: calc(100vw - 40px);
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 6px 15px #19314622;
}
.gm-location p {
  margin: 0;
  color: var(--muted);
}
.gm-location button,
.gm-location select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  padding: 4px 8px;
}
.gm-location label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}
.gm-location [hidden] {
  display: none;
}
@media (min-width: 1024px) {
  .gm-page .gd-filters {
    grid-template-columns: minmax(200px, 1.5fr) minmax(0, 3fr);
  }
  .gm-page .gd-filter-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
  }
  .gm-page [data-map-filters] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .gm-location {
    margin-top: 0;
  }
}
@media (max-width: 1023px) {
  .gm-location {
    margin-top: 8px;
  }
  .gm-page .gd-multi > div {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }
  .gm-location > div {
    position: static;
    box-shadow: none;
    max-width: 100%;
    min-width: 0;
    margin-top: 5px;
  }
}
