/* School Health Map */
.map-intro h1 { margin-bottom: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-weight: 600; font-size: 0.9rem; }

.map-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: end; margin-bottom: 16px; }

.building { display: grid; }
.roof {
  height: 54px;
  margin: 0 18px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #8091b5;
  display: grid;
  place-items: end center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding-bottom: 4px;
}
.floors {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 0 0 12px 12px;
  background: #c8d1e3;
}

.zone {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name health" "name count";
  align-items: center;
  gap: 0 10px;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.zone:hover { filter: brightness(0.97); }
.zone[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.zone-name { grid-area: name; font-weight: 800; font-size: 1.1rem; }
.zone-health { grid-area: health; font-weight: 700; font-size: 0.9rem; text-align: end; }
.zone-count { grid-area: count; font-size: 0.8rem; color: var(--muted); text-align: end; }
.zone.bad { background: var(--red-soft); }
.zone.warn { background: var(--yellow-soft); }
.zone.good { background: var(--green-soft); }

.places { display: grid; gap: 8px; }
.zone.place { border-radius: 14px; box-shadow: var(--shadow); }

.zone-detail:empty { display: none; }
.cat-line { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 640px) {
  .map-layout { grid-template-columns: 1fr; }
  .places { grid-template-columns: repeat(2, 1fr); }
  .zone.place { grid-template-columns: 1fr; grid-template-areas: "name" "health" "count"; }
  .zone.place .zone-health, .zone.place .zone-count { text-align: start; }
}


/* ── 2026 리디자인 (모아뱅크 스타일) ── */
.map-intro h1 { margin-bottom: 6px; }
.legend { gap: 8px; font-size: 0.8rem; font-weight: 800; color: #4e5968; }
.legend span { padding: 7px 11px; border-radius: 10px; background: #fff; }
.roof { background: #dfe6f0; color: #4e5968; margin: 0 22px; }
.floors { gap: 8px; padding: 10px; border-radius: 0 0 23px 23px; background: #fff; box-shadow: var(--shadow); }
.zone { min-height: 60px; padding: 12px 16px; border: 2px solid transparent; border-radius: 14px; background: #f8fafc; }
.zone-name { font-size: 1rem; letter-spacing: -0.4px; }
.zone-health { font-size: 0.8rem; font-weight: 800; }
.zone-count { color: #8b95a1; font-size: 0.75rem; }
.zone.bad { background: #fff2f2; }
.zone.warn { background: #fff8e6; }
.zone.good { background: #effaf5; }
.zone[aria-pressed="true"] { border-color: var(--brand); box-shadow: none; }
.places { gap: 10px; }
.zone.place { border-radius: 19px; box-shadow: var(--shadow); }

