@charset "UTF-8";

@import url("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css");

.school-location {
  --location-gap: clamp(40px, 3.125vw, 60px);
  --location-map-gap: 20px;
  --location-label-width: 236px;
  --location-label-bg: #4678bb;
  --location-border: #e9e9e9;
  --location-value-text: #464646;
  --location-reveal: 1.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--location-gap);
  max-width: var(--subpage-content-max-width);
  margin: 0 auto;
  width: 100%;
}

.school-location__intro-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 625px;
  text-align: center;
}

.school-location__eyebrow {
  margin: 0;
  color: var(--subpage-gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  word-break: keep-all;
}

.school-location__title {
  margin: 0;
  color: var(--subpage-text);
  font-size: clamp(24px, 1.875vw, 36px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.school-location__map-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--location-map-gap);
  width: 100%;
}

.school-location__map {
  position: relative;
  width: 100%;
  height: clamp(280px, 37.5vw, 480px);
  border-radius: 10px;
  overflow: hidden;
  background: var(--location-border);
  isolation: isolate;
}

.school-location__map-canvas {
  width: 100%;
  height: 100%;
}

.school-location__map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
}

.school-location__map-loading,
.school-location__map-fallback {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--subpage-text-muted);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
}

.school-location__map-fallback {
  display: none;
}

.school-location__map.is-fallback .school-location__map-fallback {
  display: flex;
}

.school-location__map.is-fallback .school-location__map-loading,
.school-location__map.is-ready .school-location__map-loading {
  display: none;
}

.school-location__map-fallback a {
  color: var(--subpage-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.school-location__info {
  width: 100%;
}

.school-location__table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--location-border);
  border-radius: 12px;
  overflow: hidden;
}

.school-location__row {
  display: grid;
  grid-template-columns: var(--location-label-width) minmax(0, 1fr);
  border-bottom: 1px solid var(--location-border);
}

.school-location__row:last-child {
  border-bottom: 0;
}

.school-location__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 20px;
  background: var(--location-label-bg);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  word-break: keep-all;
}

.school-location__label--email {
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

.school-location__value {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 20px 40px;
  background: var(--color-white);
  color: var(--location-value-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  word-break: keep-all;
}

.school-location__value--address {
  word-break: normal;
  overflow-wrap: anywhere;
}

.school-location__value a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.school-location__value a:hover,
.school-location__value a:focus-visible {
  color: var(--subpage-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reveal animations */
.school-location__intro-header[data-reveal] [data-reveal-child] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--location-reveal) var(--ease-out),
    transform var(--location-reveal) var(--ease-out);
}

.school-location__map-section[data-reveal] {
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity var(--location-reveal) var(--ease-out),
    transform var(--location-reveal) var(--ease-out);
}

.school-location__info[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--location-reveal) var(--ease-out),
    transform var(--location-reveal) var(--ease-out);
  transition-delay: 0.16s;
}

.school-location__intro-header[data-reveal] [data-reveal-child="1"] {
  transition-delay: 0.08s;
}

.school-location__intro-header[data-reveal] [data-reveal-child="2"] {
  transition-delay: 0.18s;
}

.school-location__intro-header.is-visible [data-reveal-child],
.school-location__map-section.is-visible,
.school-location__info.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.school-location__map-section.is-visible {
  transform: scale(1);
}

@media (max-width: 767px) {
  .school-location__map {
    width: 100%;
    height: clamp(240px, 62vw, 360px);
  }

  .school-location__row {
    grid-template-columns: 1fr;
  }

  .school-location__label {
    min-height: auto;
    padding: 14px 20px;
    justify-content: flex-start;
  }

  .school-location__label--email {
    letter-spacing: normal;
    text-indent: 0;
  }

  .school-location__value {
    padding: 16px 20px 20px;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-location__intro-header[data-reveal] [data-reveal-child],
  .school-location__map-section[data-reveal],
  .school-location__info[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
