*{box-sizing:border-box}body{margin:0;font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1d2433;background:#f4f6fa}
a{color:#1f5fd1;text-decoration:none}a:hover{text-decoration:underline}
.top{position:sticky;top:0;z-index:1000;display:flex;justify-content:space-between;align-items:center;padding:10px 16px;background:#14326b;color:#fff}
.top a{color:#fff;font-weight:600}.cmpbtn{background:#ffb703;color:#14326b!important;padding:5px 12px;border-radius:16px;font-size:14px}
.locbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 16px;background:#fff;border-bottom:1px solid #dde3ee}
.locbar input[type=text]{flex:1;min-width:160px}.locstat{font-size:13px;color:#4a5670;width:100%}
input,select,button{font:inherit}input[type=text],input[type=number],select{padding:7px 9px;border:1px solid #c5cedd;border-radius:8px;background:#fff}
button{padding:7px 12px;border:1px solid #1f5fd1;background:#1f5fd1;color:#fff;border-radius:8px;cursor:pointer}button.ghost{background:#fff;color:#1f5fd1}
button.small{padding:3px 8px;font-size:13px}
.layout{display:grid;grid-template-columns:290px 1fr;gap:0;min-height:calc(100vh - 110px)}
.filters{background:#fff;border-right:1px solid #dde3ee;padding:12px 14px;overflow:auto}
.filters h4{margin:14px 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#4a5670}
.filters label.chk{display:flex;gap:6px;align-items:center;font-size:14px;padding:2px 0}.filters .cnt{color:#8a94a8;font-size:12px;margin-left:auto}
.filters .row{display:flex;gap:6px}.filters .row>*{flex:1;min-width:0}
.chips{display:flex;flex-wrap:wrap;gap:4px}.chips label{border:1px solid #c5cedd;border-radius:14px;padding:2px 9px;font-size:13px;cursor:pointer;background:#fff}
.chips input{display:none}.chips label.on{background:#1f5fd1;color:#fff;border-color:#1f5fd1}
.results{min-width:0;display:flex;flex-direction:column;min-height:0}.rhead{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:8px 14px;background:#fff;border-bottom:1px solid #dde3ee}
.rtools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#pickmap{height:320px;border-radius:12px;margin:8px 16px}
.card{background:#fff;border:1px solid #dde3ee;border-radius:12px;padding:12px 14px;margin-bottom:10px;display:grid;grid-template-columns:1fr auto;gap:6px}
.card h3{margin:0;font-size:17px}.meta{font-size:13px;color:#4a5670}.tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.tag{font-size:12px;background:#eef2fa;border-radius:10px;padding:1px 8px;color:#33405c}.tag.ok{background:#e3f6ea;color:#16683a}.tag.warn{background:#fff3d6;color:#7a5600}
.dist{font-weight:700;color:#14326b;text-align:right;white-space:nowrap}.fee{font-size:14px;text-align:right}
.np{color:#9aa3b5;font-style:italic}.pager{display:flex;gap:8px;justify-content:center;margin:14px 0}
.detail{max-width:1100px;margin:0 auto;padding:14px 16px}.detail h1{margin:6px 0 4px;font-size:24px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.box{background:#fff;border:1px solid #dde3ee;border-radius:12px;padding:12px 14px;margin-bottom:12px;overflow:auto}
.box h2{font-size:16px;margin:0 0 8px;color:#14326b}table{border-collapse:collapse;width:100%;font-size:14px}th,td{border-bottom:1px solid #e7ebf2;padding:6px 8px;text-align:left;vertical-align:top}
th{background:#f6f8fc;font-weight:600}dl.kv{display:grid;grid-template-columns:minmax(120px,38%) 1fr;gap:4px 10px;margin:0}dl.kv dt{color:#4a5670}dl.kv dd{margin:0}
.src{font-size:12px;color:#6b7590}.src a{color:#6b7590;text-decoration:underline}#dmap{height:260px;border-radius:10px}
.cmp{padding:14px 16px;overflow:auto}.cmp table{background:#fff;min-width:640px}.cmp th{position:sticky;left:0;min-width:150px}
.mobile-only{display:none}.badge3p{font-size:11px;background:#fff3d6;color:#7a5600;border-radius:8px;padding:0 6px;margin-left:4px}
@media (max-width:820px){.layout{grid-template-columns:1fr}.filters{display:none;position:fixed;inset:110px 0 0 0;z-index:900;max-height:none}
 .filters.open{display:block}.mobile-only{display:inline-block}.grid2{grid-template-columns:1fr}.card{grid-template-columns:1fr}.dist,.fee{text-align:left}}

/* ---- full-viewport search page: header + location bar on top, filters left, list or map fills the rest ---- */
body.searchpage{height:100vh;overflow:hidden;display:flex;flex-direction:column}
body.searchpage #app{flex:1;min-height:0;display:flex;flex-direction:column}
body.searchpage .layout{flex:1;min-height:0}
body.searchpage .filters{min-height:0}
.view-map #map{display:block;flex:1;min-height:0;width:100%}.view-map #listwrap{display:none}
.view-list #map{display:none}.view-list #listwrap{display:block;flex:1;min-height:0;overflow:auto}
.seg{display:inline-flex;border:1px solid #1f5fd1;border-radius:8px;overflow:hidden}.seg button{border:0;border-radius:0;background:#fff;color:#1f5fd1;padding:4px 12px}
.seg button.on{background:#1f5fd1;color:#fff}
table.dense{background:#fff;font-size:13.5px}table.dense th{position:sticky;top:0;z-index:2;white-space:nowrap;font-size:12.5px;color:#33405c}
table.dense th.sortable{cursor:pointer;user-select:none}table.dense th.sortable:hover{background:#e9eef8}table.dense th.sorted{color:#1f5fd1}
table.dense td{padding:5px 8px;vertical-align:middle}table.dense tr:hover td{background:#f8faff}
table.dense td.nm a{font-weight:600}table.dense td.nm .meta{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}
td.num{white-space:nowrap}td.fee{white-space:nowrap}
.fb{display:inline-block;font-size:10.5px;border-radius:8px;padding:0 6px;font-weight:600;vertical-align:1px;white-space:nowrap}
.fb.pub{background:#e3f6ea;color:#16683a}.fb.cap{background:#fff3d6;color:#7a5600}.fb.over{background:#f1ecfb;color:#5b3a99}
.legend{padding:8px 14px}.legend .fb{margin-right:2px}
.fh{font-size:15px;margin:10px 0 6px;color:#16683a}.fh.cap{color:#7a5600;margin-top:18px;border-top:1px dashed #e0c98a;padding-top:12px}
.feedoc{margin-bottom:12px}.feedoc h3{font-size:14px;margin:6px 0}
ul.comp{margin:0;padding-left:16px;font-size:13px}ul.comp li{margin:1px 0}.tot{font-size:15px;color:#14326b}
table.feet td{vertical-align:top}details summary{cursor:pointer;margin-top:3px}
.capnote{background:#f6f3fc;border:1px solid #ddd3f3;border-radius:10px;padding:8px 10px;margin:8px 0;font-size:14px}
.fhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
@media (max-width:820px){
 body.searchpage .locbar{padding:6px 10px;gap:6px}body.searchpage .locbar input[type=text]{min-width:120px}
 body.searchpage:has(.view-map) .locbar{display:none}
 .filters{display:none;position:fixed;inset:0;z-index:2000;max-height:none;border:0}
 .filters.open{display:block}
 .rhead{padding:6px 10px}.rtools{gap:6px}
 table.dense thead{display:none}table.dense,table.dense tbody{display:block;width:100%}table.dense td{display:block}
 table.dense tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 12px;padding:8px 10px;border-bottom:1px solid #e7ebf2;background:#fff}
 table.dense td{border:0;padding:0;width:auto;font-size:12.5px}table.dense td.nm{flex:1 1 70%;font-size:14px}table.dense td.nm .meta{max-width:none;white-space:normal}
 table.dense td:nth-child(2){margin-left:auto;font-size:14px}table.dense td.fee{flex-basis:100%;font-size:14px}
 table.dense td:nth-child(6)::before{content:"⚽ "}table.dense td:nth-child(7)::before{content:"Class 10 board pass "}
 table.dense td:nth-child(9){margin-left:auto}
}
.view-list .maponly{display:none!important}
@media (min-width:821px){.fhead.mobile-only{display:none}}
@media (max-width:820px){.rhead{gap:4px}.rhead #count{width:100%}.rtools{width:100%;flex-wrap:nowrap}.rtools label{font-size:0;margin-left:auto}.rtools label select{font-size:13px;padding:4px 6px;max-width:130px}.seg button{padding:4px 9px}}
table.dense{min-width:100%}#listwrap{overflow-x:auto}
@media (min-width:821px){table.dense td.nm .meta{max-width:230px}table.dense td{padding:5px 6px}}
.fb.ok{background:#e6f0ff;color:#1f4f9c}
.approx{font-size:10.5px;color:#7a5600;background:#fff3d6;border-radius:6px;padding:0 4px;cursor:help;white-space:nowrap;font-weight:600}
.acwrap{position:relative;flex:1;min-width:160px;display:flex}.acwrap input{flex:1;width:100%}
.ac{position:absolute;top:100%;left:0;right:0;z-index:3000;list-style:none;margin:2px 0 0;padding:0;background:#fff;border:1px solid #c9d2e3;border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,.12);max-height:280px;overflow:auto}
.ac li{padding:8px 10px;font-size:14px;cursor:pointer;border-bottom:1px solid #eef1f6}.ac li:hover,.ac li.on{background:#eef4ff}
.fbtns{position:sticky;bottom:-12px;background:#fff;display:flex;gap:8px;padding:10px 0 12px;margin-top:12px;border-top:1px solid #e7ebf2}.fbtns>*{flex:1}
#apply.pending{box-shadow:0 0 0 3px #ffd56b}
#govtstatus table{margin-top:6px}
