/* =========================================
   SCHOOL LOCATION
========================================= */

.sta-school-location{
  width:min(100% - 32px, 1440px);
  margin-inline:auto;
  padding:clamp(20px, 3vw, 34px) 0;
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(320px, .8fr);
  gap:clamp(28px, 4vw, 64px);
  align-items:center;
}

.sta-school-location__map-shell{
  min-width:0;
}

.sta-school-location__map{
  width:100%;
  min-height:420px;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(31,42,32,.08);
  background:#edf0e9;
  box-shadow:0 14px 30px rgba(0,0,0,.08);
}

.sta-school-location__content{
  min-width:0;
  text-align:left;
}

.sta-school-location__title{
  margin:0 0 24px;
  color:var(--sta-heading);
  font-family:var(--sta-font-serif);
  font-size:clamp(24px, 3vw, 36px);
  font-weight:500;
  line-height:1.16;
}

.sta-school-location__title.title-underline::after{
  width:60% !important;
  bottom:-8px !important;
  left:0 !important;
  transform:none !important;
}

.sta-school-location__text{
  width:min(100%, 68ch);
  margin-inline:0;
  color:#333;
  font-family:var(--sta-font-body);
  font-size:clamp(16px, 1.2vw, 18px);
  line-height:1.8;
}

.sta-school-location__text p{
  margin:0 0 1.1em;
}

.sta-school-location__text p:last-child{
  margin-bottom:0;
}

.sta-school-location__addresses{
  list-style:none;
  margin:20px 0 0;
  padding:0;
  display:grid;
  gap:10px;
}

.sta-school-location__addresses li{
  color:#333;
  font-family:var(--sta-font-body);
  font-size:clamp(15px, 1.1vw, 17px);
  line-height:1.7;
}

.sta-school-location__text strong{
  color:var(--sta-heading);
  font-weight:700;
}

.sta-school-location__text em{
  font-style:normal;
  color:var(--sta-gold);
}

.sta-school-location .leaflet-container{
  font-family:var(--sta-font-body);
  z-index:1 !important;
}

.sta-school-location .leaflet-pane,
.sta-school-location .leaflet-top,
.sta-school-location .leaflet-bottom,
.sta-school-location .leaflet-control,
.sta-school-location .leaflet-control-container,
.sta-school-location .leaflet-popup{
  z-index:1 !important;
}

.sta-school-location .leaflet-popup-content-wrapper{
  border-radius:16px;
  box-shadow:0 14px 28px rgba(0,0,0,.12);
}

.sta-school-location .leaflet-popup-content{
  margin:14px 16px;
  min-width:220px;
  color:var(--sta-text);
}

.sta-school-location .leaflet-popup-content strong{
  display:block;
  margin-bottom:4px;
  color:var(--sta-heading);
}

.sta-school-location .leaflet-popup-content small{
  display:block;
  color:var(--sta-text-soft);
}

.sta-school-location__select{
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 20px rgba(0,0,0,.10);
}

.sta-school-location__select label{
  display:block;
  margin-bottom:6px;
  color:var(--sta-heading);
  font-family:var(--sta-font-body);
  font-size:13px;
  font-weight:600;
}

.sta-school-location__select select{
  min-width:180px;
  border:1px solid rgba(31,42,32,.14);
  border-radius:10px;
  background:#fff;
  color:var(--sta-text);
  font-family:var(--sta-font-body);
  font-size:14px;
  padding:10px 12px;
}

.sta-school-location__popup-address{
  margin-top:6px;
}

.sta-school-location__marker{
  display:block;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#3d7031;
  border:2px solid #fff;
  box-shadow:0 0 0 2px rgba(0,0,0,.10);
}

html[lang^="zh"] .sta-school-location__title{
  font-family:var(--sta-font-cjk-serif);
  font-weight:600;
  line-height:1.24;
}

html[lang^="zh"] .sta-school-location__text{
  font-family:var(--sta-font-cjk-sans);
  line-height:1.86;
}

@media (max-width:1024px){
  .sta-school-location{
    width:min(100% - 24px, 1280px);
    grid-template-columns:1fr;
    gap:28px;
  }

  .sta-school-location__map{
    min-height:360px;
  }

  .sta-school-location__content{
    text-align:center;
  }

  .sta-school-location__title.title-underline::after{
    left:50% !important;
    transform:translateX(-50%) !important;
  }

  .sta-school-location__text{
    margin-inline:auto;
  }
}

@media (max-width:767px){
  .sta-school-location{
    width:min(100% - 20px, 1280px);
    padding:10px 0 20px;
  }

  .sta-school-location__map-shell{
    margin-bottom:24px;
  }

  .sta-school-location__map{
    min-height:300px;
    border-radius:18px;
  }

  .sta-school-location__title{
    margin-bottom:18px;
    font-size:clamp(22px, 7vw, 32px);
  }

  .sta-school-location__text{
    font-size:16px;
    line-height:1.8;
  }
}
