@font-face { font-family: "Noto Sans KR"; src: url("./vendor/fonts/NotoSansKR.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root { color-scheme: light; --ui-font: "Noto Sans KR", "Noto Sans", sans-serif; font-family: var(--ui-font); color: #24312c; }
input, textarea, select, button, .maplibregl-map, .maplibregl-ctrl, .maplibregl-popup { font-family: var(--ui-font); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; touch-action: pan-x pan-y; }
body { display: flex; flex-direction: column; background: #e2e8e5; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 9px 14px; border-bottom: 1px solid #c8d1cc; background: #fafcfb; }
.identity { display: flex; align-items: center; gap: 2px; flex: none; white-space: nowrap; }
h1 { margin: 0; font-size: 16px; line-height: 32px; font-weight: 700; }
#info-open { display: grid; place-items: center; width: 22px; height: 22px; min-width: 22px; padding: 0; border-color: #9aafa5; border-radius: 50%; background: #f7faf8; color: #365e79; font-size: 13px; font-weight: 700; line-height: 1; transform: scale(.7); }
.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.field { display: inline-flex; align-items: center; gap: 5px; flex: none; white-space: nowrap; }
.field { font-size: 12px; color: #53645a; }
button, select { height: 32px; border: 1px solid #aebeb4; border-radius: 4px; background: #fff; color: #29473b; font: inherit; }
button { min-width: 32px; padding: 0 6px; font-size: 19px; cursor: pointer; }
button:hover { background: #e9f1eb; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.command { padding: 0 9px; font-size: 12px; font-weight: 600; }
.segmented { gap: 0; border: 1px solid #aebeb4; border-radius: 4px; overflow: hidden; }
.segmented button { border: 0; border-radius: 0; }
.segmented button + button { border-left: 1px solid #aebeb4; }
.segmented .selected, .primary { background: #216b52; border-color: #216b52; color: #fff; }
.segmented .selected:hover, .primary:hover { background: #17573f; }
input[type="range"] { width: 92px; margin: 0; accent-color: #216b52; }
output { min-width: 24px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.range-field output { min-width: 30px; }
button:focus-visible, input:focus-visible, select:focus-visible, #map:focus-visible, #split-divider:focus-visible { outline: 2px solid #1b8060; outline-offset: 2px; }
#map { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #e2e8e5; touch-action: none; }
#basemap, #basemap-veil, #historic { position: absolute; inset: 0; }
#basemap-veil { background: #fff; opacity: .3; pointer-events: none; }
#historic { pointer-events: none; }
#historic { user-select: none; }
#map, #map .maplibregl-canvas { user-select: none; -webkit-user-select: none; }
#current-location { position:absolute; z-index:8; top:max(12px, env(safe-area-inset-top)); left:max(12px, env(safe-area-inset-left)); display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #9eada4; border-radius:8px; background:#fffffff2; color:#365e79; box-shadow:0 2px 8px #213a2c24; touch-action:manipulation; }
#current-location[aria-pressed=true] { color:#dc2626; border-color:#dc2626; background:#fff4f4; }
#current-location[aria-busy=true] svg { animation:location-wait 1s ease-in-out infinite alternate; }
#current-location-status { position:absolute; z-index:8; top:12px; left:68px; max-width:min(340px,calc(100% - 80px)); padding:9px 12px; border:1px solid #aebeb4; border-radius:8px; background:#fffffff2; color:#24312c; font-size:12px; line-height:1.5; pointer-events:none; box-shadow:0 2px 8px #213a2c24; }
.current-location-marker { width:28px; height:28px; pointer-events:none; }
.current-location-dot { position:absolute; top:8px; left:8px; width:12px; height:12px; border:2px solid #fff; border-radius:50%; background:#dc2626; box-shadow:0 0 3px #7f1d1d80; }
.current-location-pulse { position:absolute; inset:0; border:2px solid #dc2626; border-radius:50%; background:#ef444433; animation:location-pulse 1.6s ease-out infinite; }
@keyframes location-pulse { from { transform:scale(.35); opacity:.85; } to { transform:scale(1.7); opacity:0; } }
@keyframes location-wait { from { opacity:1; } to { opacity:.3; } }
@media (prefers-reduced-motion:reduce) { .current-location-pulse, #current-location[aria-busy=true] svg { animation:none; } }
#basemap-controls { position: absolute; z-index: 5; bottom: 12px; left: 12px; display: grid; gap: 8px; width: 210px; }
.basemap-visibility, .sheet-visibility, #boundary-select, #basemap-select { height: 40px; border: 1px solid #9eada4; border-radius: 6px; background: #fffffff2; box-shadow: 0 2px 8px #213a2c24; color: #243f34; }
.basemap-visibility { display: flex; align-items: center; gap: 6px; padding: 0 10px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.basemap-visibility input { flex: 1; min-width: 48px; width: 48px; }
.basemap-visibility output { min-width: 30px; }
.sheet-visibility { display: flex; align-items: center; gap: 8px; padding: 0 12px; white-space: nowrap; font-size: 13px; font-weight: 600; cursor: pointer; }
.sheet-visibility input { width: 16px; height: 16px; margin: 0; accent-color: #216b52; cursor: pointer; }
#boundary-select, #basemap-select { width: 100%; padding: 0 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
#split-divider { position: absolute; z-index: 4; top: 0; bottom: 0; width: 44px; transform: translateX(-50%); cursor: ew-resize; touch-action: none; }
#split-divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #216b52; box-shadow: 0 0 0 1px #fff; }
#split-divider::after { content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 36px; height: 36px; transform: translate(-50%, -50%); border: 1px solid #216b52; border-radius: 6px; background: #fff; color: #216b52; font-size: 18px; box-shadow: 0 2px 8px #213a2c24; }
#map-alert { position: absolute; z-index: 6; top: 68px; left: 12px; max-width: min(420px, calc(100% - 24px)); padding: 7px 10px; border: 1px solid #d4b2a1; border-radius: 4px; background: #fffaf7f2; color: #934c31; font-size: 12px; }
#attribution { position: absolute; z-index: 5; right: 8px; bottom: 8px; padding: 3px 5px; background: #fffffff0; color: #4c5b55; font-size: 11px; }
#attribution a { color: #365e79; }
#info-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 22px 24px; border: 1px solid #aebeb4; border-radius: 8px; background: #fff; color: #24312c; box-shadow: 0 18px 50px #1933283d; }
#info-dialog::backdrop { background: #14241d80; }
.info-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.info-dialog-header h2 { margin: 0; font-size: 18px; line-height: 28px; }
#info-close { width: 28px; height: 28px; min-width: 28px; padding: 0; border: 0; background: transparent; color: #53645a; font-size: 24px; line-height: 1; }
.info-details { display: grid; gap: 10px; margin: 0; font-size: 13px; line-height: 1.4; }
.info-details > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
.info-details dt { color: #53645a; font-weight: 600; }
.info-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.info-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e1e7e2; color: #53645a; font-size: 13px; line-height: 1.4; }
@media (max-width: 980px) {
  .topbar { flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 10px 8px; }
  h1 { line-height: 26px; font-size: 16px; }
  .toolbar { justify-content: space-between; gap: 6px; }
  .toolbar button { height: 36px; }
}
@media (max-width: 600px) {
  .range-field { flex: 1; justify-content: flex-end; min-width: 0; }
  .range-field input { width: min(28vw, 92px); }
  #basemap-controls { bottom: 40px; }
  #attribution { right: 8px; bottom: 8px; max-width: calc(100% - 16px); text-align: right; }
}
@media (max-width: 360px) {
  .range-field input { width: 64px; }
}
#parcel-search { position: absolute; z-index: 7; top: 12px; right: 12px; width:320px; max-width:calc(100% - 24px); max-height:calc(100% - 24px); overflow-y:auto; padding:12px; border:1px solid #9eada4; border-radius:8px; background:#fffffff2; box-shadow:0 3px 14px #213a2c24; }
.search-header { display:flex; align-items:center; gap:4px; margin-bottom:10px; font-size:15px; }
.parcel-info-button { display:grid; place-items:center; width:28px; min-width:28px; height:28px; padding:0; border:0; background:transparent; color:#365e79; font-size:20px; line-height:1; }
.mobile-drawer-title { display:flex; align-items:center; gap:4px; min-width:0; }
.mobile-drawer-header .parcel-info-button { width:44px; min-width:44px; height:44px; font-size:20px; color:#365e79; }
#parcel-info-dialog { width:min(440px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:22px 24px; overflow:auto; border:1px solid #aebeb4; border-radius:8px; background:#fff; color:#000; box-shadow:0 18px 50px #1933283d; }
#parcel-info-dialog::backdrop { background:#14241d80; }
#parcel-info-dialog h2 { margin:0 0 14px; font-size:18px; }
#parcel-info-dialog p { margin:0; font-size:14px; line-height:1.7; }
#parcel-info-dialog form { display:flex; justify-content:flex-end; margin-top:18px; }
#parcel-info-dialog .command { min-height:44px; min-width:64px; font-size:14px; }
#parcel-search form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; align-items:start; }
#parcel-search label { display: grid; gap: 3px; font-size: 12px; }
#parcel-search input { width:100%; min-width:0; height:32px; box-sizing:border-box; border:1px solid #aebeb4; border-radius:4px; padding:6px; font:inherit; user-select:text; }
#parcel-search p { margin:8px 0 0; font-size:12px; line-height:1.5; }
#parcel-search form label:has([type=checkbox]) { display:flex; align-items:center; gap:6px; min-height:32px; }
#parcel-search input[type="checkbox"] { width: 18px; height: 18px; }
#parcel-search .parcel-results { display:grid; gap:4px; max-height:200px; overflow-y:auto; margin-top:8px; }
#parcel-search .parcel-results:empty { display:none; }
.dong-centers { position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; overflow:hidden; }
.dong-center { pointer-events:auto; cursor:pointer; }
.dong-center circle { fill:var(--dong-color); stroke:#fff; stroke-width:2; }
.dong-center circle.approximate { fill:#fff; stroke:var(--dong-color); stroke-dasharray:3 2; }
.dong-center text { fill:#17382d; font-size:13px; font-weight:700; stroke:#fff; stroke-width:4px; paint-order:stroke; stroke-linejoin:round; }
.dong-center.crowded text { visibility:hidden; }
.dong-center:hover text, .dong-center:focus text { visibility:visible; }
#dong-layer-panel { margin-top:10px; padding-top:10px; border-top:1px solid #dce5df; font-size:12px; }
.dong-display-options { display:flex; flex-wrap:wrap; gap:8px 12px; }
#dong-layer-panel .dong-display-options label { display:flex; align-items:center; gap:5px; }
.dong-actions { display:flex; gap:5px; margin-top:7px; }
#dong-layer-panel summary { cursor:pointer; padding:8px 0; font-weight:600; }
.dong-list { display:grid; grid-template-columns:1fr 1fr; gap:4px; max-height:32vh; overflow:auto; margin:7px 0; }
.dong-list button { font-size:11px; height:auto; min-height:30px; text-align:left; padding:5px; border-left:3px solid var(--dong-color); }
.dong-list button[aria-pressed=true] { background:#216b52; color:#fff; }
.dong-list button[hidden] { display:none; }
#dong-layer-panel small { display:block; color:#63736a; font-size:10px; line-height:1.4; }
.parcel-label-toggle { display:flex; align-items:center; gap:6px; cursor:pointer; }
.parcel-label-toggle input { accent-color:#216b52; }
.dong-center .dong-hit-target { fill:transparent; stroke:none; display:none; }
.autocomplete { position:relative; min-width:0; }
.autocomplete-list { position:absolute; top:calc(100% + 3px); left:0; z-index:10; min-width:100%; width:max-content; max-width:min(300px, 80vw); max-height:240px; overflow:auto; overscroll-behavior:contain; border:1px solid #aebeb4; border-radius:6px; background:#fff; box-shadow:0 5px 16px #19332826; }
.autocomplete-list button { display:block; width:100%; height:auto; min-height:36px; padding:7px 12px; border:0; border-radius:0; color:#000; text-align:left; font-size:13px; white-space:normal; }
.autocomplete-list button[aria-selected=true] { background:#e0eee6; }
#parcel-search .autocomplete-list { position:relative; top:0; width:100%; min-width:0; max-width:100%; max-height:180px; margin-top:4px; box-shadow:none; }
#parcel-tap-tooltip { position:absolute; z-index:9; display:flex; align-items:flex-start; gap:6px; max-width:calc(100% - 16px); }
#parcel-tap-tooltip span { white-space:pre-line; }
#parcel-tap-tooltip button { flex:none; width:44px; height:44px; margin:-7px -10px -7px 0; border:0; background:transparent; color:#000; font-size:24px; }
#mobile-dock { position:absolute; z-index:10; bottom:0; left:0; right:0; border:1px solid #c5d2c9; border-bottom:0; border-radius:16px 16px 0 0; background:#fff; box-shadow:0 -3px 18px #19332824; padding-bottom:env(safe-area-inset-bottom); }
#mobile-dock nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid #e1e7e2; gap:4px; padding:5px 8px; }
#mobile-dock nav button { height:48px; font-size:14px; font-weight:600; border:0; color:#4e6357; }
#mobile-dock nav button[aria-selected=true] { background:#e2efe7; color:#17573f; }
.mobile-drawer-header { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 14px 0; }
.mobile-drawer-header strong { font-size:16px; }
.mobile-drawer-header button { height:44px; font-size:13px; border:0; color:#216b52; }
.mobile-drawer-body { max-height:min(52dvh, 480px); overflow-y:auto; overscroll-behavior:contain; padding:6px 12px 12px; }
.mobile-layout { height:100dvh; }
.mobile-layout .topbar { flex-direction:row; padding:4px max(10px,env(safe-area-inset-left)); gap:6px; }
.mobile-layout .identity { flex:1; min-width:0; justify-content:space-between; }
.mobile-layout h1 { white-space:normal; line-height:1.4; font-size:14px; }
.mobile-layout #info-open { width:44px; height:44px; min-width:44px; transform:none; border:0; background:transparent; font-size:18px; }
.mobile-layout #info-close { width:44px; height:44px; }
.mobile-layout button, .mobile-layout select, .mobile-layout input:not([type=checkbox]) { min-height:44px; }
.mobile-layout button { -webkit-tap-highlight-color:transparent; }
.mobile-layout input:not([type=checkbox]), .mobile-layout select { font-size:16px !important; }
.mobile-layout #mobile-dock #parcel-search, .mobile-layout #mobile-dock #basemap-controls { position:static; width:100%; max-width:100%; max-height:none; overflow:visible; margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.mobile-layout .search-header { display:none; }
.mobile-layout #parcel-search form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
.mobile-layout #parcel-search label { font-size:13px; }
.mobile-layout #parcel-search input:not([type=checkbox]) { width:100%; padding:8px; }
.mobile-layout #parcel-search label:has([type=checkbox]) { display:flex; align-items:center; min-height:44px; gap:8px; }
.mobile-layout #parcel-search .command { min-height:44px; font-size:14px; }
.mobile-layout #parcel-search p { max-width:100%; line-height:1.6; }
.mobile-layout .autocomplete-list { position:relative; top:0; margin-top:4px; max-width:100%; width:100%; max-height:170px; box-shadow:none; }
.mobile-layout .autocomplete-list button { font-size:14px; min-height:44px; }
.mobile-layout .dong-display-options label { min-height:44px; font-size:13px; }
.mobile-layout #dong-layer-panel input[type=checkbox] { width:20px; height:20px; }
.mobile-layout .dong-actions { display:grid; grid-template-columns:1fr 1fr; }
.mobile-layout .dong-actions .command { font-size:13px; }
.mobile-layout .dong-list { max-height:none; gap:6px; }
.mobile-layout .dong-list button { min-height:44px; font-size:13px; padding:8px; }
.mobile-layout #dong-layer-panel small { font-size:11px; }
.mobile-layout .toolbar { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 14px; justify-content:flex-start; }
.mobile-layout .toolbar .command { font-size:14px; min-width:55px; }
.mobile-layout .range-field { flex-basis:100%; justify-content:space-between; font-size:14px; }
.mobile-layout .range-field input { flex:1; width:auto; margin:0 8px; }
.mobile-layout #basemap-controls { gap:10px; }
.mobile-layout .basemap-visibility, .mobile-layout .sheet-visibility { min-height:44px; font-size:14px; }
.mobile-layout #attribution { bottom:calc(65px + env(safe-area-inset-bottom)); font-size:9px; max-width:calc(100% - 16px); }
.mobile-layout #map-alert { max-width:calc(100% - 24px); font-size:11px; }
.mobile-layout .dong-center .dong-hit-target { display:block; }
.mobile-layout .maplibregl-ctrl-bottom-right, .mobile-layout .maplibregl-ctrl-bottom-left { bottom:calc(66px + env(safe-area-inset-bottom)); }
