.school-map {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #a4d9c852;
  border-radius: 16px;
  background: #163f43;
  color: #f2f7e8;
  box-shadow: 0 16px 29px #071f2469;
}

.school-map-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 720 / 540;
  background: #123c3f;
}

.school-map-stage > img,
.school-map-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.school-map-label {
  position: absolute;
  right: 4.5%;
  bottom: 6%;
  display: inline-block;
  max-width: 86%;
  padding: .48em .8em;
  border: 1px solid #e4d398;
  border-radius: 8px;
  background: #f8e4ae;
  color: #173b37;
  font-size: clamp(.69rem, 1.4vw, .85rem);
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
  box-shadow: 0 4px 14px #0a252b70;
}

.school-map-label::before {
  display: inline-block;
  width: .58em;
  height: .58em;
  margin-right: .52em;
  border-radius: 50%;
  background: #236359;
  content: "";
}

.school-map [hidden],
.school-map:not([data-school-map-ready]) .school-map-controls,
.school-map:not([data-school-map-ready]) .school-map-label,
.school-map-tile:not(.has-records) .school-map-record-dot {
  display: none;
}

.school-map-hit {
  fill: transparent;
  pointer-events: none;
}

[data-school-map-ready] .school-map-hit {
  pointer-events: fill;
  cursor: pointer;
}

@media (hover: hover) {
  [data-school-map-ready] .school-map-hit:hover {
    fill: #fff4cd78;
  }
}

.school-map-tile {
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}

.school-map-tile-face {
  fill: transparent;
  stroke: #245a505b;
  stroke-width: 1.05;
  stroke-linejoin: round;
}

.school-map-tile-wall {
  fill: url(#school-map-wall);
  opacity: 0;
  transition: opacity 160ms ease;
}

.school-map-city-halo {
  fill: #fbefd0;
  opacity: .32;
}

.school-map-record-dot {
  fill: #2a695c;
  stroke: #e8f3df;
  stroke-width: 1.7;
}

.school-map-city-dot {
  fill: #f6ce79;
  stroke: #133e3a;
  stroke-width: 1.7;
}

.school-map-city-label {
  fill: #153e39;
  stroke: #d7edd2;
  stroke-width: 2.3;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font: 720 15px system-ui, sans-serif;
}

.school-map-tile.is-raised {
  transform: translateY(calc(-1 * var(--school-map-lift)));
  filter: drop-shadow(0 5px 4px #092d3099);
}

.school-map-tile.is-raised .school-map-tile-face {
  fill: url(#school-map-face);
  stroke: #fff0c2;
  stroke-width: 1.65;
}

.school-map-tile.is-raised .school-map-tile-wall {
  opacity: 1;
}

.school-map-controls {
  padding: 12px 15px;
  border-top: 1px solid #a4d9c852;
}

.school-map-controls label {
  display: block;
  margin: 0 0 5px;
  font-size: .78rem;
  font-weight: 730;
}

.school-map-controls-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.school-map-controls select,
.school-map-reset {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #d5e5da;
  border-radius: 7px;
  color: #173b37;
  font: inherit;
  font-size: .9rem;
}

.school-map-controls select {
  flex: 1;
  padding: 6px 8px;
  background: #fff;
}

.school-map-reset {
  flex: none;
  padding: 5px 9px;
  background: #e6eee4;
  font-weight: 650;
  cursor: pointer;
}

.school-map-reset:hover {
  background: #f1e7c8;
}

.school-map-panel {
  padding: 12px 15px;
  border-top: 1px solid #a4d9c84a;
}

.school-map-panel-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
  align-items: baseline;
}

.school-map-panel-heading h2 {
  margin: 0;
  color: #f2f7e8;
  font: 750 1.15rem/1.25 system-ui, sans-serif;
  letter-spacing: -.015em;
}

.school-map-panel-heading > span,
.school-map-empty {
  margin: 0;
  color: #d3e6dc;
  font-size: .83rem;
}

.school-map-empty {
  margin-top: 6px;
}

.school-map-results {
  max-height: 10rem;
  margin: 6px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.school-map-results li + li {
  border-top: 1px solid #a4d9c84a;
}

.school-map-results a {
  display: block;
  min-height: 40px;
  padding: 9px 4px;
  color: #f2f7e8;
  font-size: .87rem;
  font-weight: 650;
  line-height: 1.3;
}

.school-map-results a:hover {
  background: #235052;
  text-decoration: underline;
}

.school-map :is(a, select, button):focus-visible {
  outline: 2px solid #f6ce79;
  outline-offset: 2px;
}

.school-map-results a:focus-visible {
  outline-offset: -2px;
}

.school-map-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .school-map {
    border-radius: 12px;
  }

  .school-map-controls select {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-map-tile,
  .school-map-tile-wall {
    transition: none;
  }
}
