.앱 {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.유리 {
  background: rgba(248, 250, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(28, 49, 94, 0.16);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
}

.지도 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #dce6f3, #cedbec);
}

.윗바 {
  position: absolute;
  top: calc(14px + var(--safe-top));
  left: 14px;
  right: 14px;
  z-index: 1000;
}

.윗상자,
.아랫바 {
  border-radius: 26px;
}

.윗상자 {
  padding: 12px;
}

.윗기본줄 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.제목묶음 h1,
.패널머리 h2,
.아랫머리 h2 {
  margin: 0;
}

.제목묶음 h1 {
  font-size: 18px;
  line-height: 1.08;
}

.검색상자 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
}

.검색상자 input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.검색아이콘 {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.검색아이콘 svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.윗단추묶음,
.패널단추줄,
.칩줄,
.상태줄,
.아랫머리,
.학교태그줄,
.요약줄 {
  display: flex;
  gap: 8px;
}

.둥근단추,
.글단추,
.칩,
.학교카드,
.토글단추,
.상세가기 {
  cursor: pointer;
}

.둥근단추,
.글단추,
.칩,
.토글단추 {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
}

.토글단추 {
  width: 38px;
  padding: 0;
}

.윗패널 {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(143,163,194,0.18);
}

.조건격자 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.항목 {
  display: grid;
  gap: 6px;
}

.항목 span,
.보조문구,
.학교보조,
.설명상자 p,
.팝업보조 {
  color: var(--muted);
}

.항목 span {
  font-size: 12px;
  font-weight: 600;
}

.항목 select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(164,182,210,0.32);
  border-radius: 15px;
  background: rgba(255,255,255,0.84);
}

.강조,
.활성 {
  background: linear-gradient(180deg, #ffffff, #ebf1ff);
  box-shadow: 0 8px 16px rgba(42,130,255,0.12);
}

.패널머리,
.상태줄,
.아랫머리 {
  justify-content: space-between;
  align-items: center;
}

.패널머리 {
  margin-bottom: 10px;
}

.패널머리 h2 {
  font-size: 15px;
}

.학교목록 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.학교카드 {
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(29,45,78,0.12);
}

.학교카드 h3 {
  margin: 0;
  font-size: 14px;
}

.학교보조,
.보조문구 {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.학교태그 {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(232,239,255,0.9);
  color: #2459b5;
  font-size: 11px;
  font-weight: 600;
}

.상태칩 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  font-size: 12px;
  font-weight: 600;
}

.상태칩::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.아랫바 {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 1000;
  padding: 14px;
  overflow: hidden;
  transition: height 180ms ease;
}

.아랫바.단계1 { height: 110px; }
.아랫바.단계2 { height: 214px; }
.아랫바.단계3 { height: 344px; }

.아랫바내용 {
  margin-top: 12px;
  height: calc(100% - 64px);
  overflow: auto;
}

.빈상태 {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.요약줄 {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.요약상자,
.설명상자 {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(29,45,78,0.12);
}

.요약상자 {
  min-width: 120px;
  flex: 1 1 120px;
}

.요약상자 strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.요약상자 span {
  color: var(--muted);
}

.설명상자 h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.설명상자 p {
  margin: 0;
}

.상세가기 {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #ebf1ff);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.leaflet-control-zoom { border: 0 !important; box-shadow: 0 10px 24px rgba(29,45,78,0.12) !important; }
.leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--ink) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: rgba(252,253,255,0.95); box-shadow: 0 10px 24px rgba(29,45,78,0.12); }
.leaflet-popup-content { margin: 12px 14px; font-family: inherit; font-size: 13px; }
.팝업제목 { font-weight: 700; margin-bottom: 4px; }

.지도핀 { position: relative; width: 30px; height: 42px; }
.지도핀몸통 { width: 30px; height: 30px; border-radius: 14px 14px 14px 5px; transform: rotate(45deg); background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(230,237,252,0.94)); box-shadow: 0 8px 20px rgba(15,33,68,0.2); border: 1px solid rgba(255,255,255,0.86); }
.지도핀몸통::after { content: ""; position: absolute; inset: 6px; border-radius: 10px; background: var(--핀색, var(--blue)); }
.지도핀글자 { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: white; z-index: 2; }
.지도핀.활성 { transform: translateY(-2px) scale(1.05); }
.핀초등 { --핀색: var(--green); }
.핀중등 { --핀색: var(--blue); }
.핀고등 { --핀색: var(--orange); }
.핀기타 { --핀색: var(--slate); }

@media (max-width: 920px) {
  .학교목록 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .윗바, .아랫바 { left: 12px; right: 12px; }
  .윗기본줄 { grid-template-columns: 1fr; }
  .윗단추묶음, .패널단추줄, .상태줄, .아랫머리 { flex-wrap: wrap; }
  .조건격자, .학교목록 { grid-template-columns: 1fr; }
  .아랫바 { bottom: calc(12px + var(--safe-bottom)); }
}
