/* ===== 학교 지도/리스트 공통 스타일 ===== */
.page-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; }
.page-head h1 { font-size: 24px; font-weight: 800; margin: 0; }

.view-toggle { display: flex; gap: 8px; }
.view-toggle .vbtn {
    border: 1px solid var(--line); background: #fff; color: var(--muted);
    padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.view-toggle .vbtn.active { border-color: var(--primary); color: var(--primary); }

.filter-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.frow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.frow + .frow { margin-top: 14px; }
.flabel { font-size: 14px; font-weight: 700; color: var(--ink); margin-right: 2px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-right: 8px; }
.chips button {
    border: 1px solid var(--line); background: #fff; color: var(--muted);
    padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chips button.on { border-color: var(--primary); color: var(--primary); }
.chips button.mute { color: #b8bec8; }

.search-inline { display: inline-flex; align-items: center; flex: 1; min-width: 220px; max-width: 420px; }
.search-inline input { flex: 1; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; padding: 9px 12px; font-size: 13px; outline: none; }
.search-inline button { border: 1px solid var(--line); background: #fff; border-radius: 0 6px 6px 0; padding: 8px 12px; cursor: pointer; }

/* ===== 지도(네이버) ===== */
.map-wrap { position: relative; }
#schoolMap { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: #eef0f3; }
.map-legend2 { position: absolute; left: 12px; top: 12px; z-index: 10; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; box-shadow: 0 1px 5px rgba(0,0,0,.18); }
.map-legend2 span { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; }
.map-legend2 .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.map-legend2 .dot.el { background: #2b3f7a; }  /* 초등학교 */
.map-legend2 .dot.mi { background: #2ca089; }  /* 중학교 */
.map-legend2 .dot.hi { background: #e08a2e; }  /* 고등학교 */

/* ===== 지도(더미 · 회색 플레이스홀더) ===== */
.map-dummy {
    position: relative; height: 520px; border: 1px solid var(--line); border-radius: var(--radius);
    background-color: #eef0f3;
    background-image:
        linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    overflow: hidden;
}
.map-dummy .center-note {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    color: #9aa2ad; font-size: 16px; font-weight: 600; letter-spacing: .5px;
}
.map-legend { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.map-legend span { background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 14px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.map-legend .el { color: #2b3f7a; }  /* 초등학교 */
.map-legend .mi { color: #2ca089; }  /* 중학교 */
.map-legend .hi { color: #e08a2e; }  /* 고등학교 */
.map-dummy .zoom { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.map-dummy .zoom button { border: 0; background: #fff; width: 30px; height: 30px; font-size: 16px; cursor: pointer; color: var(--ink); }
.map-dummy .zoom button + button { border-top: 1px solid var(--line); }
.map-dummy .scale { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: #7b828c; }
.map-dummy .scale::before { content: ""; display: inline-block; width: 40px; height: 6px; border: 1px solid #7b828c; border-top: 0; margin-right: 6px; vertical-align: middle; }

/* ===== 리스트 영역 ===== */
.list-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.list-bar .total b { color: var(--primary); }
.list-bar .unit-note { color: var(--muted); font-weight: 400; font-size: 12px; }
.list-area { min-height: 120px; }

/* 학교 리스트 아이템 */
.p-item { display: flex; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.p-item .body { flex: 1; min-width: 0; }
.p-item .actions { flex: 0 0 130px; display: flex; align-items: center; }
.p-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.p-title h3 { font-size: 18px; font-weight: 800; margin: 0; }
.p-title .addr { font-size: 13px; color: var(--muted); }
.p-title .addr .sub { color: #aab0b8; }
.tag { font-size: 12px; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 2px 7px; font-weight: 700; }
.tag-el { border-color: #9db8e8; color: #2b5fd0; }   /* 초등 */
.tag-mi { border-color: #a8d9d2; color: #2ca089; }   /* 중등 */
.tag-hi { border-color: #eccb9a; color: #e08a2e; }   /* 고등 */
.tag-pub { border-color: #b7d9a8; color: #4a9e2e; }  /* 공립 */
.tag-pri { border-color: #c9c48f; color: #8a8a2e; }  /* 사립 */
.tag-coed { border-color: #d3b7e6; color: #7d3ac0; } /* 남녀공학 */
.spec { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink); }
.spec > span { padding: 0 12px; border-left: 1px solid var(--line); line-height: 1.5; }
.spec > span:first-child { padding-left: 0; border-left: 0; }
.spec .lb { color: var(--muted); margin-right: 5px; }
.homelink { color: var(--primary); }
.act-btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 10px 22px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.act-btn:hover { background: #f7f8fa; }

.list-foot { position: relative; text-align: center; padding: 10px 0 24px; }
.more-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 10px 40px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.more-btn:hover { background: #f7f8fa; }
.list-foot .source { position: absolute; right: 2px; bottom: 24px; color: var(--muted); font-size: 12px; }
