.school-presence {
  --school-green: #1e7b3c;
  --school-green-dark: #155f2e;
  --school-gold: #d4a63a;
  --school-cream: #faf8f2;
  --school-ink: #17231b;
  --school-text: #5e6861;
  --school-border: #e7e4da;
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 7vw, 108px) 0;
  border-top: 1px solid var(--school-border);
  background:
    radial-gradient(circle at 15% 22%, rgba(225, 187, 83, 0.11), transparent 25%),
    linear-gradient(135deg, #fffdf8 0%, var(--school-cream) 54%, #fffdf9 100%);
}

.school-presence::before,
.school-presence::after {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 0;
  content: "";
  pointer-events: none;
}

.school-presence::before {
  top: 42px;
  left: -18px;
  width: 124px;
  height: 210px;
  border: 0;
  background: repeating-radial-gradient(circle at 0 50%, transparent 0 22px, rgba(212, 166, 58, 0.16) 23px 24px);
}

.school-presence::after {
  right: 18px;
  bottom: 28px;
  width: 96px;
  height: 96px;
  border: 0;
  background-image: radial-gradient(circle, rgba(212, 166, 58, 0.52) 1.5px, transparent 1.7px);
  background-size: 13px 13px;
  opacity: 0.62;
}

.school-presence__container {
  position: relative;
  z-index: 1;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 0 calc(var(--container-gutters, 32px) / 2);
}

.school-presence__header {
  max-width: 900px;
  margin: 0 0 34px;
  text-align: left;
}

.school-presence__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 13px;
  color: var(--school-green) !important;
}

.school-presence__eyebrow::before,
.school-presence__eyebrow::after {
  width: 28px;
  height: 1px;
  background: var(--school-gold);
  content: "";
}

.school-presence__title {
  margin: 0 0 10px !important;
  color: var(--school-ink) !important;
  font-family: var(--font-heading) !important;
  font-size: clamp(38px, 4.2vw, 58px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
}

.school-presence__intro {
  max-width: 720px;
  margin: 0;
  color: var(--school-text);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
}

.school-presence__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 1.7vw, 26px);
  align-items: stretch;
}

.school-map-panel,
.school-presence__panel {
  min-width: 0;
  border: 1px solid var(--school-border);
  border-color: rgba(43, 69, 52, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(20, 45, 28, 0.075);
}

.school-map-panel {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  padding: 20px;
}

.school-map-panel__meta {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
  color: #64746b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.school-map-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--school-green);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.school-map-panel__label > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--school-gold);
  box-shadow: 0 0 0 4px rgba(212, 166, 58, 0.13);
}

.school-map-panel__count strong {
  color: var(--school-ink);
  font-size: 18px;
  font-weight: 800;
}

.school-map__stage {
  position: relative;
  height: 548px;
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid #e3e9df;
  border-radius: 14px;
  background: #f4f5ee;
}

.school-map__leaflet {
  width: 100%;
  height: 100%;
  background: #f4f5ee;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.school-presence.is-map-ready .school-map__leaflet {
  opacity: 1;
}

.school-map__loading {
  position: absolute;
  z-index: 500;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #89918c;
  font-size: 12px;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.school-map__loading span {
  width: 28px;
  height: 28px;
  border: 2px solid #dce9dd;
  border-top-color: var(--school-green);
  border-radius: 50%;
  animation: schoolMapLoad 0.8s linear infinite;
}

.school-presence.is-map-ready .school-map__loading {
  visibility: hidden;
  opacity: 0;
}

.school-presence.has-map-error .school-map__loading span {
  display: none;
}

.school-presence.has-map-error .school-map__loading {
  color: #8a5a28;
}

.school-map__leaflet.leaflet-container {
  color: var(--school-text);
  font-family: var(--font-body);
  cursor: grab;
}

.school-map__leaflet.leaflet-container:active {
  cursor: grabbing;
}

.school-map__leaflet .leaflet-tile-pane {
  filter: saturate(0.72) contrast(0.94) brightness(1.035);
}

.school-map__leaflet .leaflet-top,
.school-map__leaflet .leaflet-bottom {
  z-index: 700;
}

.school-map__leaflet .leaflet-control-zoom,
.school-map__leaflet .school-map-reset {
  overflow: hidden;
  border: 1px solid rgba(30, 123, 60, 0.15) !important;
  border-radius: 10px;
  box-shadow: 0 7px 20px rgba(20, 45, 28, 0.1);
}

.school-map__leaflet .leaflet-control-zoom a,
.school-map__leaflet .school-map-reset button {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 1px solid #e7e4da;
  background: rgba(255, 255, 255, 0.96);
  color: var(--school-green);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.school-map__leaflet .leaflet-control-zoom a:last-child,
.school-map__leaflet .school-map-reset button {
  border-bottom: 0;
}

.school-map__leaflet .leaflet-control-zoom a:hover,
.school-map__leaflet .leaflet-control-zoom a:focus,
.school-map__leaflet .school-map-reset button:hover,
.school-map__leaflet .school-map-reset button:focus-visible {
  background: var(--school-green);
  color: #fff;
  outline: none;
}

.school-map__leaflet .school-map-reset {
  margin-top: 8px;
}

.school-map__leaflet .school-map-reset button {
  padding: 0 0 2px;
  font-size: 20px;
}

.school-map__leaflet .leaflet-control-attribution {
  padding: 2px 5px;
  border-radius: 5px 0 0;
  background: rgba(255, 255, 255, 0.78);
  color: #7d8981;
  font-size: 8px;
  line-height: 1.35;
}

.school-map__leaflet .leaflet-control-attribution a {
  color: var(--school-green);
}

.school-leaflet-marker-wrap {
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.school-leaflet-marker {
  display: block;
  width: 34px;
  height: 46px;
  transform-origin: 50% 93%;
  transition: transform 0.22s ease;
}

.school-leaflet-marker svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.school-leaflet-marker__pulse {
  fill: rgba(212, 166, 58, 0.25);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.school-leaflet-marker-wrap.is-pulsing .school-leaflet-marker__pulse {
  animation: schoolMarkerPulse 2.8s ease-out infinite;
  animation-delay: var(--marker-delay, 0s);
}

.school-leaflet-marker__pin {
  fill: var(--school-gold);
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 3px 3px rgba(39, 53, 43, 0.22));
  transition: fill 0.22s ease;
}

.school-leaflet-marker__core {
  fill: #fff;
  stroke: rgba(104, 73, 12, 0.22);
  stroke-width: 0.8;
}

.school-leaflet-marker-wrap:hover .school-leaflet-marker,
.school-leaflet-marker-wrap:focus-visible .school-leaflet-marker,
.school-leaflet-marker-wrap.is-active .school-leaflet-marker {
  transform: translateY(-2px) scale(1.2);
}

.school-leaflet-marker-wrap:focus-visible .school-leaflet-marker__pin {
  stroke: var(--school-green-dark);
  stroke-width: 2.5;
}

.school-leaflet-marker-wrap.is-active .school-leaflet-marker__pin {
  fill: var(--school-green);
}

.school-leaflet-marker-wrap.is-active .school-leaflet-marker__pulse {
  opacity: 1;
  animation: schoolMarkerActive 1.65s ease-out infinite;
}

.school-map__leaflet .leaflet-tooltip.school-leaflet-tooltip {
  width: 220px;
  padding: 0;
  border: 1px solid rgba(30, 123, 60, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(20, 45, 28, 0.14);
  color: var(--school-ink);
}

.school-map__leaflet .leaflet-tooltip-top.school-leaflet-tooltip::before {
  border-top-color: #fff;
}

.school-leaflet-tooltip__content {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
}

.school-leaflet-tooltip__icon {
  display: inline-flex;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f7f1df;
  color: var(--school-gold);
}

.school-leaflet-tooltip__icon svg {
  width: 18px;
  height: 18px;
}

.school-leaflet-tooltip__copy,
.school-leaflet-tooltip__copy small,
.school-leaflet-tooltip__copy strong,
.school-leaflet-tooltip__copy span {
  display: block;
}

.school-leaflet-tooltip__copy small {
  margin-bottom: 1px;
  color: #7b857f;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.school-leaflet-tooltip__copy strong {
  color: var(--school-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.3;
}

.school-leaflet-tooltip__copy span {
  margin-top: 2px;
  color: var(--school-green);
  font-size: 10px;
  font-weight: 700;
}

.school-map-panel__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 7px 0 0;
  color: #87908a;
  font-size: 11px;
  line-height: 1.4;
}

.school-map-panel__hint svg {
  width: 13px;
  height: 13px;
  color: var(--school-green);
}

.school-presence__panel {
  display: flex;
  flex-direction: column;
  padding: 28px 22px 22px;
}

.school-presence__panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.school-presence__panel-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 166, 58, 0.24);
  border-radius: 11px;
  background: #fff9e9;
  color: var(--school-gold);
}

.school-presence__panel-icon svg {
  width: 22px;
  height: 22px;
}

.school-presence__panel-heading h3 {
  margin: 0 0 8px !important;
  color: var(--school-ink) !important;
  font-family: var(--font-body) !important;
  font-size: clamp(23px, 1.8vw, 28px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.035em;
}

.school-presence__panel-heading p {
  margin: 0;
  color: var(--school-text);
  font-size: 13.5px;
  line-height: 1.55;
}

.school-location-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 9px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.school-location-list li {
  min-width: 0;
  margin: 0;
}

.school-location-card {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--school-border);
  border-radius: 10px;
  background: #fffefa;
  color: var(--school-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.school-location-card:hover,
.school-location-card:focus-visible,
.school-location-card.is-active {
  border-color: rgba(30, 123, 60, 0.42);
  background: #f7fbf7;
  box-shadow: 0 7px 18px rgba(20, 45, 28, 0.07);
  transform: translateY(-1px);
  outline: none;
}

.school-location-card.is-active {
  border-color: var(--school-green);
  box-shadow: inset 2px 0 0 var(--school-green), 0 7px 18px rgba(20, 45, 28, 0.07);
}

.school-location-card__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f7f1df;
  color: var(--school-gold);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.school-location-card__icon svg {
  width: 15px;
  height: 15px;
}

.school-location-card:hover .school-location-card__icon,
.school-location-card:focus-visible .school-location-card__icon,
.school-location-card.is-active .school-location-card__icon {
  background: var(--school-green);
  color: #fff;
}

.school-location-card__copy {
  display: block;
  min-width: 0;
}

.school-location-card__copy strong,
.school-location-card__copy small {
  display: block;
}

.school-location-card__copy strong {
  overflow: hidden;
  color: var(--school-ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-location-card__copy small {
  display: none;
}

.school-location-list--fallback li {
  padding: 10px 12px;
  border: 1px solid var(--school-border);
  border-radius: 12px;
  color: var(--school-ink);
  font-size: 13px;
}

.school-presence__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(212, 166, 58, 0.42);
  border-radius: 13px;
  background: linear-gradient(115deg, #fffaf0 0%, #fff6da 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.school-presence__cta span,
.school-presence__cta p {
  display: block;
}

.school-presence__cta > div > span {
  margin-bottom: 3px;
  color: #b47c00;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.095em;
}

.school-presence__cta p {
  margin: 0;
  color: var(--school-ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
}

.school-presence__cta a {
  display: inline-flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 19px;
  border: 1px solid var(--school-green);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--school-green), var(--school-green-dark));
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.school-presence__cta a:hover,
.school-presence__cta a:focus-visible {
  border-color: var(--school-green-dark);
  background: var(--school-green-dark);
  box-shadow: 0 8px 18px rgba(30, 123, 60, 0.17);
  transform: translateY(-1px);
  outline: none;
}

.school-presence__cta a span {
  color: var(--school-gold);
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.school-presence__cta a:hover span {
  transform: translateX(2px);
}

@keyframes schoolMapLoad {
  to { transform: rotate(360deg); }
}

@keyframes schoolMarkerPulse {
  0% { opacity: 0.38; transform: scale(0.7); }
  72%, 100% { opacity: 0; transform: scale(2.5); }
}

@keyframes schoolMarkerActive {
  0% { opacity: 0.4; transform: scale(0.75); }
  75%, 100% { opacity: 0; transform: scale(2.8); }
}

@media (max-width: 1199px) {
  .school-presence__layout {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.92fr);
  }

  .school-presence__panel {
    padding: 24px;
  }

  .school-location-card {
    padding-inline: 9px;
  }
}

@media (max-width: 991px) {
  .school-presence {
    padding: 62px 0;
  }

  .school-presence__header {
    margin-bottom: 38px;
  }

  .school-presence__layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .school-map-panel {
    min-height: auto;
  }

  .school-map__stage {
    height: 430px;
  }
}

@media (max-width: 767px) {
  .school-presence {
    padding: 48px 0;
  }

  .school-presence__container {
    padding-inline: 16px;
  }

  .school-presence__header {
    margin-bottom: 24px;
    text-align: left;
  }

  .school-presence__title {
    margin-bottom: 10px !important;
    font-size: clamp(30px, 9vw, 38px) !important;
  }

  .school-presence__intro {
    margin-left: 0;
    font-size: 14px;
    line-height: 1.62;
  }

  .school-map-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .school-map-panel__count {
    font-size: 10px;
  }

  .school-map__stage {
    height: 420px;
    margin-bottom: 0;
    border-radius: 13px;
  }

  .school-map-panel__hint {
    font-size: 10px;
  }

  .school-presence__panel {
    display: none;
  }

  .school-presence__panel-heading {
    margin-bottom: 20px;
  }

  .school-presence__panel-heading h3 {
    font-size: 22px !important;
  }

  .school-location-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    overflow: visible;
  }

  .school-location-list li {
    min-width: 0;
  }

  .school-location-card {
    min-height: 56px;
    gap: 8px;
    padding: 8px;
  }

  .school-location-card__icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .school-location-card__copy strong {
    font-size: 11px;
  }

  .school-location-card__copy small {
    font-size: 7.5px;
  }

  .school-presence__cta {
    margin-top: 1px;
  }
}

@media (max-width: 479px) {
  .school-presence::before,
  .school-presence::after {
    display: none;
  }

  .school-map-panel__meta {
    gap: 8px;
  }

  .school-map__stage {
    height: 380px;
  }

  .school-map__leaflet .leaflet-tooltip.school-leaflet-tooltip {
    width: 198px;
  }

  .school-leaflet-tooltip__content {
    padding: 11px 12px;
  }

  .school-presence__panel-heading {
    gap: 11px;
  }

  .school-presence__panel-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .school-presence__cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .school-presence__cta a {
    width: 100%;
  }
}

@media (max-width: 359px) {
  .school-location-list {
    grid-template-columns: 1fr;
  }

  .school-map__stage {
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-map__loading span,
  .school-leaflet-marker__pulse,
  .school-leaflet-marker-wrap.is-active .school-leaflet-marker__pulse {
    animation: none !important;
  }

  .school-map__leaflet,
  .school-leaflet-marker,
  .school-leaflet-marker__pin,
  .school-location-card,
  .school-presence__cta a,
  .school-presence__cta a span {
    transition: none !important;
  }
}
