/* source: css/cctv-inline.css */
.ki-player{min-width:0;width:100%;background:#0d1421;color:#fff;border-radius:12px 12px 0 0;overflow:hidden;text-align:left}
.ki-screen{width:100%;aspect-ratio:16/9;position:relative;background:#0d1421;display:grid;place-items:center}
.ki-screen:empty:before{content:'▶';font-size:36px;color:#fff;opacity:.7}
.ki-screen video,.ki-screen iframe{display:block;width:100%;height:100%;position:absolute;inset:0;border:0;object-fit:contain;background:#000}
.ki-screen:fullscreen{aspect-ratio:auto;width:100vw;height:100vh}
.ki-controls{display:flex;align-items:center;gap:6px;padding:7px 9px;flex-wrap:wrap}
.ki-controls button,.ki-controls a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:0;border-radius:8px;padding:6px 11px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;text-decoration:none;color:#fff;background:#27344a;cursor:pointer}
.ki-controls .ki-play{background:#c71f39;color:#fff;min-width:76px}.ki-controls a{margin-inline-start:auto;background:transparent;color:#e8edf6}
.ki-controls button:focus-visible,.ki-controls a:focus-visible,.kt-card-detail:focus-visible{outline:3px solid #ffd166;outline-offset:-3px}
.ki-status{display:block;min-height:22px;padding:0 10px 9px;font-size:12px;line-height:1.55;color:#e7edf8;overflow-wrap:anywhere}
.ki-status.is-live{color:#ff7185;font-weight:800}.ki-status.is-live:before{content:'● ';color:#ff4c61}
.ki-toolbar{display:flex;gap:8px 20px;flex-wrap:wrap;align-items:center;margin:12px 0;padding:10px 12px;border:1px solid #d9e1ed;border-radius:10px;background:var(--surface,#fff);color:var(--text,#172033)}
.ki-toolbar label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;cursor:pointer;min-height:32px}.ki-toolbar input{width:18px;height:18px;accent-color:#c71f39}.ki-toolbar small{font-size:12px;line-height:1.5}
article.kt-card{padding:0;display:flex;flex-direction:column;cursor:default;text-align:left;min-width:0}
.kt-card-detail{background:transparent;color:inherit;border:0;padding:0;width:100%;text-align:left;cursor:pointer;font:inherit;flex:1}
.kt-card-detail .kt-card-body{height:100%;box-sizing:border-box}.kt-card .ki-player{border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}
.kw-world-card>.ki-player{border-radius:12px 12px 0 0}.kw-world-card>.kw-world-open{width:100%;min-width:0}.kw-world-open .kw-country-flag{width:24px;height:24px;vertical-align:middle}
.ki-unavailable{padding:20px 12px;min-height:100px;background:#0d1421;color:#fff;margin:0;font-size:13px}
.kn-card>.ki-player+.kn-cap{padding-top:12px}.ki-detail{font:inherit;border:0;background:transparent;color:inherit;text-align:left;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media(max-width:640px){.ki-controls{gap:4px;padding:5px}.ki-controls button,.ki-controls a{padding:5px 8px;min-height:40px;font-size:11px}.ki-controls .ki-play{min-width:58px}.ki-status{font-size:11px;padding:0 7px 7px}.ki-toolbar{gap:4px}.ki-toolbar small{font-size:11px}}


.ki-screen>.kt-preview{position:absolute;inset:0;width:100%;height:100%;border-radius:0}.ki-poster-play{position:absolute;right:12px;bottom:16px;z-index:3;width:47px;height:47px;border-radius:50%;border:3px solid white;background:#039eaf;color:white;font-size:20px;cursor:pointer}.ki-thai-clock{position:absolute;right:8px;top:8px;z-index:3;padding:4px 7px;border-radius:7px;background:#0c2545d9;color:white;font-size:10px;pointer-events:none;font-variant-numeric:tabular-nums}.ki-thai-clock:before{content:"เวลาไทย "}.ki-player[data-day=night] .ki-thai-clock:after{content:" ☾"}.ki-player[data-day=day] .ki-thai-clock:after{content:" ☀"}

.ki-player .ki-thai-clock{z-index:5}
/* source: css/directory-fonts.css */
@font-face{font-family:'KH24 Thai';font-style:normal;font-weight:400;font-display:swap;src:url("../../fonts/ibm-plex-thai-regular.woff2") format('woff2')}@font-face{font-family:'KH24 Thai';font-style:normal;font-weight:600;font-display:swap;src:url("../../fonts/ibm-plex-thai-semibold.woff2") format('woff2')}
/* source: css/wifi.css */
.kwifi{--kw-navy:#13306e;--kw-blue:#086da8;--kw-border:#d8e2ef;font-family:'KH24 Thai',system-ui,'IBM Plex Sans Thai',sans-serif;color:#173257;background:#f4f7fb;max-width:1240px;margin:0 auto;padding:28px 20px 56px;line-height:1.65}.kwifi *{box-sizing:border-box}.kwifi-heading h1{font-size:clamp(27px,4vw,42px);margin:8px 0;color:var(--kw-navy)}.kwifi-eyebrow{font-size:14px;font-weight:700;color:#076b86}.kwifi-notice,.kwifi-guide{padding:20px;border:1px solid var(--kw-border);border-radius:16px;background:#fff;margin:16px 0}.kwifi-notice{border-left:5px solid #008fa9;background:#edfaff}.kwifi-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end;margin:20px 0}.kwifi-filters label{font-size:14px;font-weight:600;display:grid;gap:5px}.kwifi input,.kwifi select{width:100%;min-width:0;min-height:44px;border:1px solid #adbed4;border-radius:9px;background:#fff;font:inherit;padding:8px;color:#173257}.kwifi button,.kwifi-actions a,.kwifi-dialog button{font:inherit;font-weight:600;min-height:44px;padding:8px 14px;border:1px solid #a8c4dc;border-radius:10px;color:#075585;background:#f0f8ff;cursor:pointer;text-decoration:none}.kwifi button:hover,.kwifi-actions a:hover{background:#dff1ff}.kwifi button:disabled{opacity:.5;cursor:default}.kwifi :focus-visible,.kwifi-dialog :focus-visible{outline:3px solid #ca2948;outline-offset:3px}.kwifi-meta{font-weight:700}.kwifi-map{height:clamp(300px,52vh,540px);border-radius:18px;border:1px solid #b7cce0;overflow:hidden;background:#e5edf4;margin:18px 0}.kwifi-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.kwifi-card{padding:18px;background:#fff;border:1px solid var(--kw-border);border-radius:14px;box-shadow:0 3px 12px #15356508;min-width:0}.kwifi-detail{color:#183957;font:14px/1.6 'KH24 Thai',system-ui,'IBM Plex Sans Thai',sans-serif;overflow-wrap:anywhere}.kwifi-detail strong{font-size:18px}.kwifi-detail p{margin:7px 0}.kwifi-detail small{display:block;color:#52637a}.kwifi-status{font-size:13px;padding:8px 10px;background:#fff4d8;border-radius:8px;color:#70460a}.kwifi-status.is-verified{background:#e4f6ee;color:#066045}.kwifi-actions{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.kwifi-actions a,.kwifi-actions button{font:600 13px/1.5 'KH24 Thai',system-ui;color:#075585;min-height:44px;border:1px solid #aac5db;border-radius:9px;padding:10px;background:#f0f8ff;cursor:pointer;text-decoration:none}.kwifi-source{display:inline-block;margin:3px 10px 3px 0;color:#075585;font-size:12px;text-decoration:underline}.kwifi-pages{display:flex;justify-content:center;align-items:center;gap:14px;margin:24px 0}.kwifi-empty{grid-column:1/-1;text-align:center;background:white;padding:32px}.kwifi-marker{background:transparent;border:0;display:grid;place-items:center}.kwifi-marker>span{display:grid;place-items:center;width:26px;height:26px;border:2px solid white;border-radius:50%;background:#087cb5;color:white;box-shadow:0 1px 7px #00365866}.kwifi-marker svg{width:19px;height:19px}.kwifi-cluster{display:grid;place-items:center;background:#087cb51f;border:2px solid #fff;border-radius:50%}.kwifi-cluster span{display:grid;place-items:center;width:30px;height:30px;background:#076ca1;color:#fff;border-radius:50%;font-weight:700}.kwifi-dialog{font:16px/1.7 'KH24 Thai',system-ui;color:#163a5c;width:min(620px,94vw);max-height:90dvh;overflow:auto;border:1px solid #bfd1e5;border-radius:18px;padding:20px}.kwifi-dialog::backdrop{background:#071c42aa}.kwifi-dialog>button{float:right}.kwifi-guide h2{font-size:21px;margin:0 0 12px}.kwifi-guide li{margin:7px 0}.kwifi-home{display:block;padding:12px;color:#164779;font:16px 'KH24 Thai',system-ui}.kwifi-toggle{color:#076ea9!important}.kwifi-guide a{color:#075585}.kh-area-detail-note{font:11px/1.5 'KH24 Thai',system-ui;color:#344f71;max-width:240px;background:#ffffffec;border-radius:5px;padding:3px 6px}.kh-village-point{color:#fff;background:#165a7e;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 4px #0003}.kh-lens-tools .kh-lens-layers{flex-wrap:wrap}
@media(max-width:680px){.kwifi{padding:18px 12px 40px}.kwifi-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kwifi-list{grid-template-columns:1fr}.kwifi-heading h1{font-size:28px}.kwifi-map{height:360px}.kwifi-card,.kwifi-guide,.kwifi-notice{padding:15px}.kwifi-filters label{font-size:13px}.kwifi-actions{gap:5px}}

.kwifi-cluster{background:transparent;border:0;border-radius:0}.kwifi-cluster>span{position:relative;width:29px;height:29px;border:2px solid #fff;border-radius:9px;background:#006e96;color:#fff;box-shadow:0 1px 6px #07293e55}.kwifi-cluster svg{width:21px;height:21px}.kwifi-cluster b{position:absolute;right:-9px;top:-8px;min-width:17px;height:17px;padding:0 3px;display:grid;place-items:center;border:1px solid #fff;border-radius:9px;background:#004662;color:#fff;font:700 10px/1 system-ui}.kwifi-marker>span{width:27px;height:27px;border-radius:8px;background:#00799e}.kwifi-marker svg{width:20px;height:20px}.kwifi-toggle-icon{display:inline-flex;width:18px;height:18px;flex:none}.kwifi-toggle input{accent-color:#00799e!important}.kwifi-marker:focus-visible,.kwifi-cluster:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}.kwifi-marker:hover .kw-wave,.kwifi-marker:focus .kw-wave{animation:kw-wave-on .8s ease-out 1}.kwifi-marker .kw-wave-2{animation-delay:.1s}.kwifi-marker .kw-wave-3{animation-delay:.2s}.kwifi-marker.is-verified>span{border-color:#76f3d3}.kwifi-marker.is-verified .kw-wave{animation:kw-wave-on 2.4s ease-in-out infinite}@keyframes kw-wave-on{0%,100%{opacity:1}45%{opacity:.3}}@media(prefers-reduced-motion:reduce){.kwifi-marker .kw-wave{animation:none!important}}
/* source: css/map-controls.css */
.kh-map-navigation{font:13px/1.5 'KH24 Thai',var(--f-body,system-ui);color:#183653;position:relative;clear:both}.kh-map-navigation-row{display:flex;flex-direction:column;overflow:hidden;border:1px solid #bfccd9;border-radius:10px;box-shadow:0 2px 9px #0a254328;background:#fff}.kh-map-navigation button{border:0;background:white;color:#173959;cursor:pointer;font:600 13px/1.4 'KH24 Thai',var(--f-body,system-ui);box-sizing:border-box}.kh-map-navigation-row>button{width:40px;height:40px;position:relative;display:grid;place-items:center;padding:7px}.kh-map-navigation-row>button+button{border-top:1px solid #dae3ed}.kh-map-navigation svg{width:22px;height:22px}.kh-map-navigation button:hover,.kh-map-navigation button[aria-pressed=true]{background:#e7f3fd;color:#074e81}.kh-map-navigation button:focus-visible{outline:3px solid #f59e0b;outline-offset:-3px}.kh-map-north-needle{display:block;color:#c3173a;font:22px/1 system-ui;transform-origin:50% 60%}.kh-map-compass small{font:700 9px/1 system-ui;position:absolute;right:3px;top:3px;color:#173959}.kh-map-rotate-panel{position:absolute;left:47px;top:0;width:220px;padding:12px;background:#fffffff7;border:1px solid #b9cadb;border-radius:12px;box-shadow:0 5px 22px #071f3a38}.kh-map-rotate-panel[hidden]{display:none}.kh-map-rotate-panel strong{display:block;font-size:14px;margin-bottom:8px}.kh-map-rotate-buttons{display:flex;gap:5px}.kh-map-rotate-buttons button{flex:1;min-height:42px;background:#f0f5fa;border:1px solid #cad8e6;border-radius:7px;font-size:17px}.kh-map-rotate-buttons .kh-map-north{font-size:12px;flex:2}.kh-map-rotate-panel .kh-map-touch-rotate{display:block;width:100%;min-height:42px;border:1px solid #cbd9e7;border-radius:7px;margin:8px 0}.kh-map-rotate-panel small{display:block;font-size:11px;line-height:1.7;color:#526980}.kh-map-fullscreen-fallback{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;z-index:9000!important}.leaflet-container:fullscreen{width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important}.leaflet-norotate-pane{z-index:400}.leaflet-rotate-pane{z-index:300}
@media(max-width:620px){.kh-map-navigation-row>button{width:40px;height:44px}.kh-map-rotate-panel{width:min(215px,calc(100vw - 78px));padding:10px}.leaflet-touch .leaflet-control-zoom a{width:38px;height:40px;line-height:40px}.kh-map-navigation{margin-top:7px!important}}


.ku-app .kh-map-navigation-row>button{width:44px;height:44px;min-width:44px;min-height:44px;flex:none;padding:0;box-sizing:border-box}.ku-app .kh-map-navigation .kh-map-compass-face{display:block;width:40px;height:40px;overflow:visible}.kh-map-compass-face .kh-map-north-needle{transform-box:view-box;transform-origin:20px 22px}.ku-app .kh-map-navigation .kh-map-compass{aspect-ratio:1;border:1px solid #c1d8df;border-radius:50%;line-height:1}
/* source: css/map-local-detail.css */
.kh-local-chooser{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:center;padding-top:6px;border-top:1px solid #cfdee5;margin-top:6px}.kh-local-chooser label{display:flex;align-items:center;gap:8px;font:600 12px var(--f-body,sans-serif);color:#173d59}.kh-local-chooser select{height:40px;max-width:min(320px,66vw);border:1px solid #a7c4d5;border-radius:8px;background:white;color:#12364d;padding:4px 8px;font:inherit}.kh-local-summary{font-size:11px;color:#39566c}.kh-local-legend{display:flex;gap:6px 12px;flex-wrap:wrap;margin-top:5px;font-size:11px;color:#314459}.kh-local-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;background:#087f8c}.kh-local-legend .temple:before{background:#a75e0d}.kh-local-legend .health:before{background:#126cab}.kh-local-legend .road:before{background:#2467b2}.kh-local-toggle.is-area{color:#08717d}.kh-local-toggle.is-places{color:#93520a}.kh-local-toggle.is-roads{color:#2460a0}.kh-local-toggle input{accent-color:currentColor}.kh-local-marker{background:transparent;border:0}.kh-local-pin{display:grid;place-items:center;width:22px;height:22px;margin:4px;border-radius:8px;background:#fff;color:#1766a2;border:1.5px solid currentColor;box-shadow:0 1px 5px #061c3640}.kh-local-pin svg{width:15px;height:15px}.kh-local-pin.is-temple{color:#995400;background:#fff7df}.kh-local-pin.is-school{color:#75429c;background:#fcf7ff}.kh-local-pin.is-village{color:#0c737a;background:#edffff}.kh-local-label{position:absolute;left:29px;top:5px;display:block;width:max-content;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fffffff5;color:#18364b;border:1px solid #c3d5df;border-radius:5px;padding:2px 5px;font:600 11px/1.55 var(--f-body,sans-serif);box-shadow:0 1px 3px #0c26432b;pointer-events:none}.kh-local-label.is-tambon{left:0;top:0;font-weight:700;font-size:12px;border-color:#57a4ae;color:#075965;transform:translate(-50%,-50%)}.kh-local-label.is-road{left:0;top:0;background:#fff7e8;border-color:#dcc7aa;color:#71491c;transform:translate(-50%,-50%);font-size:10px}.kh-local-popup{font:13px/1.6 var(--f-body,sans-serif);color:#17324a}.kh-local-popup strong{font-size:15px}.kh-local-popup p{margin:6px 0}.kh-local-popup small{display:block;color:#4e6577}.kh-local-popup a,.kh-reference-popup button{display:block;margin-top:10px;padding:10px;border-radius:8px;background:#174f7a;color:#fff;text-align:center;text-decoration:none;min-height:40px;box-sizing:border-box}.kh-reference-popup button{border:0;width:100%;font:600 12px/1.5 var(--f-body,sans-serif);background:#b4163b;cursor:pointer}.kcm-pin.is-reference{border:2px dashed #fff;box-shadow:0 0 0 2px #bc4160,0 2px 6px #0003}.kh-reference-popup .kh-reference-note{padding:7px;background:#fff3d9;color:#6c4610;border-radius:6px;font-size:12px}.kh-lens-map[data-map-tone=night] .kh-local-label{background:#102c42;color:#fff;border-color:#47758e}.kh-lens-map[data-map-tone=night] .kh-local-label.is-road{background:#3f2b16;color:#fff4d9}.kh-lens-map[data-map-tone=night] .kh-local-label.is-tambon{background:#103f46;color:#d4fcff}
@media(max-width:620px){.kh-local-chooser{align-items:stretch;gap:5px}.kh-local-chooser label{width:100%;justify-content:space-between}.kh-local-chooser select{height:44px;flex:1;min-width:0}.kh-local-label{max-width:130px}.kh-local-label.is-tambon{font-size:11px}.kh-local-legend{font-size:10px}.kh-local-summary{font-size:10px}.kh-local-marker{min-height:30px}.kh-local-popup a,.kh-reference-popup button{min-height:44px}}

.kh-lens-tools .kh-local-note{max-width:none;background:transparent;padding:3px 0;color:#456273;font-size:10px}.kh-local-pin.is-service{color:#254b85;background:#f3f7ff}


.kh-traffic-district-marker{background:none;border:0}.kh-traffic-area-card{position:relative;box-sizing:border-box;min-height:64px;width:126px;background:#fff8f9;border:2px dashed #b51e40;border-radius:12px;padding:5px 4px 5px 30px;color:#881634;box-shadow:0 2px 5px #17253830;font:11px/1.4 var(--f-body,sans-serif);text-align:center}.kh-traffic-area-card strong,.kh-traffic-area-card span,.kh-traffic-area-card small{display:block}.kh-traffic-area-card strong{font-size:12px}.kh-traffic-area-card small{font-size:9px;color:#6c3142}.kh-traffic-area-card .kh-traffic-area-icon{position:absolute;left:4px;top:19px;width:22px;height:25px}.kh-traffic-area-icon svg{width:22px;height:25px}.kh-traffic-district-popup select{display:block;box-sizing:border-box;width:100%;max-width:100%;height:44px;margin-top:6px;border:1px solid #b4939c;border-radius:7px;background:white;color:#33101c;padding:5px;font:12px var(--f-body,sans-serif)}.kh-traffic-district-popup label{display:block;font-size:12px}.kh-traffic-district-popup small{margin-top:8px}


.kh-focus-map #khMapLens{flex:0 1 auto;min-height:58px;max-height:30dvh;overflow:auto;overscroll-behavior:contain}
.kh-focus-map #searchForm{flex-wrap:wrap}.kh-focus-map #searchForm .srch-box{position:relative;top:auto;left:auto;right:auto;flex-basis:100%;width:100%;min-width:0;box-sizing:border-box;max-height:220px}
/* source: css/map-style.css */
.kh-lens-tools{flex:0 0 auto;min-width:0;padding:8px 12px;border-block:1px solid #d4e4e6;background:linear-gradient(110deg,#f1faf7,#f5f8fd);color:#153d4a;box-sizing:border-box;font-family:var(--f-body,sans-serif)}
.kh-lens-row{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:2px 0 4px}.kh-lens-row>button,.kh-lens-base{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:7px 10px;background:#fff;border:1px solid #b4d0d1;border-radius:10px;color:#153d4a;font:600 12px var(--f-body,sans-serif);cursor:pointer;box-sizing:border-box;white-space:nowrap}.kh-lens-base{max-width:142px;padding:7px 22px 7px 9px}
.kh-lens-row button svg{width:18px;height:18px;flex:none}.kh-lens-row .kh-lens-traffic{background:#c5123a;color:white;border-color:#c5123a;box-shadow:0 2px 8px #be123c22}.kh-lens-row button[aria-pressed=true]{background:#154e58;color:#fff;border-color:#154e58}.kh-lens-row button:disabled{opacity:.5;cursor:default}.kh-lens-row button:focus-visible,.kh-lens-base:focus-visible{outline:3px solid #0284c7;outline-offset:2px}.kh-lens-note{display:block;font-size:10px;line-height:1.6;color:#46636a;margin-top:1px}.kh-lens-tools.is-compact{max-width:245px;border:1px solid #bad4d3;border-radius:10px;background:#fffffff5;padding:5px}.is-compact .kh-lens-note{max-width:225px}.is-compact .kh-lens-row{max-width:230px}
.kh-lens-map{background:#123d40;--kh-pin-scale:.8}.kh-lens-map[data-zoom-view=overview]{--kh-pin-scale:.68}.kh-lens-map[data-zoom-view=street]{--kh-pin-scale:1}
.kh-lens-map .leaflet-khBaseTiles-pane{filter:saturate(1.08) contrast(1.04)}.kh-lens-map[data-map-tone=night] .leaflet-khBaseTiles-pane{filter:brightness(.57) saturate(.75) hue-rotate(8deg)}.kh-lens-map[data-map-tone=night] .leaflet-khRoadTiles-pane{filter:brightness(1.15)}
.kh-lens-map .kcm-pin,.kh-lens-map .kh-ddpm-pin,.kh-lens-map .kh-water-pin,.kh-lens-map .kh-news-pin,.kh-lens-map .kh-weather-pin,.kh-lens-map .kt-map-marker>span{transform:scale(var(--kh-pin-scale));transform-origin:50% 50%}
.kh-lens-map .marker-cluster>div,.kh-lens-map .kh-context-cluster>span,.kh-lens-map .kh-rain-marker>span{transform:scale(var(--kh-pin-scale));transform-origin:50% 50%}.kh-lens-map .kcm-marker,.kh-lens-map .kh-ddpm-marker,.kh-lens-map .kt-map-marker{cursor:pointer}.kh-lens-map .kt-map-tag{font-size:10px;line-height:1.5;padding:1px 5px}.kh-lens-map[data-zoom-view=overview] .kh-ddpm-ring{animation:none;transform:scale(1.35);opacity:.25}.kh-lens-map[data-zoom-view=overview] .kh-ddpm-ring.second{display:none}
.kh-lens-map[data-zoom-view=overview] .kh-ddpm-pin:not(.is-critical) .kh-ddpm-tag{display:none}.kh-lens-map[data-zoom-view=overview] .kcm-livepin{display:none}.kh-lens-map .kh-district-marker span{border:1px solid #d8dc9c;background:#163e3dec;border-radius:12px;padding:3px 7px;font-size:11px;box-shadow:0 2px 8px #04232060}.kh-lens-map .leaflet-control-layers{border-radius:12px;border:1px solid #c7dbd7}.kh-lens-map .leaflet-control-attribution a{color:#174374}
#mapSection .kh-base-switch{display:none}#mapSection .kh-map-toolbar #khMapHome{display:none}#mapSection .kh-basemap-note{font-size:9px;padding:3px 6px}.kh-lens-map .kh-province-outline{filter:drop-shadow(0 0 2px #bcead699)}
.ct-tag.is-snapshot,.kcm-status.is-snapshot,#cctvGrid .tag.is-snapshot{background:#be123c!important;color:#fff!important;border-color:#be123c!important}.kcm-status.is-snapshot{padding:4px 9px;border-radius:7px}.ct-tag.is-snapshot:before{content:'●';font-size:9px;margin-right:4px}
@media(max-width:620px){.kh-lens-tools{padding:6px 8px}.kh-lens-row{gap:5px}.kh-lens-row>button,.kh-lens-base{min-height:44px;font-size:11px;padding:7px 8px}.kh-lens-row button svg{width:16px;height:16px}.kh-lens-base{max-width:118px}.kh-lens-note{font-size:10px}.kh-lens-map .kh-district-marker span{font-size:10px}.kh-lens-map .kt-map-tag{font-size:9px}}
@media(prefers-reduced-motion:reduce){.kh-lens-map .kh-ddpm-ring{animation:none!important}}


.kh-lens-layers{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;margin-top:3px}.kh-lens-check{display:inline-flex;align-items:center;gap:6px;min-height:32px;font:600 12px var(--f-body,sans-serif);cursor:pointer;color:#47306e}.kh-lens-check input{margin:0;width:17px;height:17px;accent-color:#7c3aed}.kh-lens-check.is-traffic{color:#a51236}.kh-lens-check.is-traffic input{accent-color:#be123c}.kh-lens-check.is-water{color:#155b79}.kh-lens-check.is-water input{accent-color:#087da0}.kh-lens-counts{display:block;color:#365361;font-size:11px;line-height:1.7}.is-compact .kh-lens-layers{gap:3px 8px}.is-compact .kh-lens-check{font-size:10px}.kh-lens-map .kcm-pin:not(.is-traffic){background:#7c3aed;color:#fff}.kh-lens-check:focus-within{outline:2px solid #0284c7;outline-offset:2px;border-radius:5px}@media(max-width:620px){.kh-lens-check{min-height:40px;font-size:11px}.kh-lens-check input{width:18px;height:18px}.kh-lens-layers{gap:2px 10px}}
/* source: css/ddpm-status.css */
.kh-ddpm-marker{background:none;border:0;overflow:visible!important}
.kh-ddpm-pin{width:44px;height:44px;position:relative;color:var(--ddpm-color);isolation:isolate}
.kh-ddpm-core{position:absolute;inset:6px;display:grid;place-items:center;background:var(--ddpm-color);color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 8px #061f4380}
.kh-ddpm-core svg{width:23px;height:23px}
.kh-ddpm-number{position:absolute;right:-1px;top:0;min-width:19px;height:19px;display:grid;place-items:center;border-radius:50%;font:800 12px/1 system-ui;background:#fff;color:#10243c;border:1px solid #cbd5e1;box-shadow:0 1px 4px #00192b55}
.kh-ddpm-tag{position:absolute;top:39px;left:50%;transform:translateX(-50%);white-space:nowrap;font:700 11px/1.5 var(--f-body,"Noto Sans Thai",Tahoma,sans-serif);padding:1px 5px;color:#142536;background:#fff;border:1px solid var(--ddpm-color);border-radius:6px;box-shadow:0 1px 4px #00192b66;pointer-events:none}
.kh-ddpm-pin.is-problem .kh-ddpm-number{background:#ffde4a;border-color:#fff;color:#382500}
.kh-ddpm-pin.is-alert .kh-ddpm-tag{border-width:2px}
.kh-ddpm-pin.is-critical .kh-ddpm-tag{background:#b90920;color:#fff;border-color:#fff}
.kh-ddpm-pin[style*="#facc15"] .kh-ddpm-core{color:#342800}
.kh-ddpm-ring{position:absolute;inset:1px;border:2px solid var(--ddpm-color);border-radius:50%;pointer-events:none;z-index:-1;opacity:.6;animation:kh-ddpm-ripple 3s ease-out infinite}
.kh-ddpm-ring.second{animation-delay:1.5s}
@keyframes kh-ddpm-ripple{0%{transform:scale(.9);opacity:.65}100%{transform:scale(2.8);opacity:0}}
.kh-ddpm-marker:focus-visible{outline:3px solid #fde047;outline-offset:5px;border-radius:50%}
.kh-ddpm-legend{max-width:265px;background:#fff;color:#16283a;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 3px 14px #06204126;font:13px/1.5 var(--f-body,"Noto Sans Thai",Tahoma,sans-serif);overflow:hidden}
.kh-ddpm-legend summary{cursor:pointer;padding:9px 12px;font-weight:800;min-height:40px;box-sizing:border-box}
.kh-ddpm-legend.has-alert summary{color:#ac1024;border-left:4px solid #e51c35}
.kh-ddpm-key{padding:0 12px 10px;max-height:240px;overflow:auto}.kh-ddpm-key>b{display:block;margin-bottom:6px}.kh-ddpm-key>span{display:flex;gap:7px;align-items:center;margin:3px 0}.kh-ddpm-key i{display:inline-grid;place-items:center;width:12px;height:12px;border-radius:50%;flex:none}.kh-ddpm-issue{background:#ffde4a;color:#382500;font-weight:900;font-style:normal}.kh-ddpm-key p,.kh-ddpm-key small{font-size:12px;margin:7px 0 0;display:block}
.kh-ddpm-pop{--ddpm-ink:#172a3b;--ddpm-muted:#405369;--ddpm-value:#075f79;--ddpm-link:#103e69;--ddpm-link-bg:#eef6ff;--ddpm-line:#c3d1e0;font:14px/1.55 var(--f-body,"Noto Sans Thai",Tahoma,sans-serif);color:var(--ddpm-ink);overflow-wrap:anywhere;min-width:0}
html[data-p20-theme=dark] .kh-ddpm-pop{--ddpm-ink:#f5f7fa;--ddpm-muted:#c6d6e3;--ddpm-value:#78e7f2;--ddpm-link:#c1e7ff;--ddpm-link-bg:#153b52;--ddpm-line:#7098ad}
.kh-ddpm-pop h3{font-size:17px;line-height:1.4;margin:4px 0}.kh-ddpm-pop p{margin:6px 0}.kh-ddpm-source{font-size:12px;color:var(--ddpm-muted);font-weight:700}
.kh-ddpm-state{display:block;background:var(--ddpm-color);color:#fff;padding:7px 10px;border-radius:8px;font-size:13px}.kh-ddpm-state.level-3{color:#342800}
.kh-ddpm-reading{margin:10px 0 4px;color:var(--ddpm-ink)}.kh-ddpm-reading b{font-size:28px;line-height:1.2;color:var(--ddpm-value);font-variant-numeric:tabular-nums}.kh-ddpm-time,.kh-ddpm-note{font-size:12px;color:var(--ddpm-muted)}
.kh-ddpm-actions{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.kh-ddpm-actions button,.kh-ddpm-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #c3d1e0;border-radius:8px;padding:7px 12px;box-sizing:border-box;font:700 13px/1.4 var(--f-body,"Noto Sans Thai",Tahoma,sans-serif);cursor:pointer;text-decoration:none!important}
.kh-ddpm-actions button{background:#7040cb;color:#fff}.kh-ddpm-actions a{background:var(--ddpm-link-bg);color:var(--ddpm-link)!important;border-color:var(--ddpm-line)}.kh-ddpm-pop small{display:block;font-size:11px;color:var(--ddpm-muted)}

html[data-p20-theme] .p20-app .leaflet-container .leaflet-popup-content .kh-ddpm-pop :is(.kh-ddpm-time,.kh-ddpm-note,small){color:var(--ddpm-muted)!important}
html[data-p20-theme] .p20-app .leaflet-container .leaflet-popup-content .kh-ddpm-actions a{color:var(--ddpm-link)!important}
html[data-p20-theme] .p20-app .leaflet-container .leaflet-popup-content .kh-ddpm-state{color:#fff!important}
html[data-p20-theme] .p20-app .leaflet-container .leaflet-popup-content .kh-ddpm-state.level-3{color:#342800!important}
.kh-ddpm-state.level-4{background:#c2410c}.kh-ddpm-state.level-5{background:#c4142e}
.kh-ddpm-actions :is(button,a):focus-visible{outline:3px solid var(--ddpm-value);outline-offset:3px}
.kh-ddpm-popup .leaflet-popup-content{margin:16px;max-width:calc(100vw - 76px)}
.kh-ddpm-paused .kh-ddpm-ring{animation-play-state:paused}
@media(max-width:480px){.kh-ddpm-legend{max-width:215px}.kh-ddpm-key{max-height:180px}.kh-ddpm-tag{font-size:10px}.kh-ddpm-pop h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){.kh-ddpm-ring{animation:none;transform:scale(1.6);opacity:.35}.kh-ddpm-ring.second{transform:scale(2.25);opacity:.18}}

.kh-ddpm-overview .kh-ddpm-pin:not(.is-critical) .kh-ddpm-tag{display:none}

@media(max-width:480px){#map .kh-ddpm-legend{margin-bottom:calc(66px + env(safe-area-inset-bottom,0px))}}
/* source: css/map-news.css */
#mapSection{border-radius:18px;overflow:hidden;border:1px solid #bdd9ee;box-shadow:0 8px 24px #15375b0b}
#mapSection .mapbar{background:linear-gradient(125deg,#f8fcff,#edf8ff);border-bottom:1px solid #c6e1f2}
.kh-map-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:8px}
.kh-base-switch{display:flex;padding:3px;background:#dcecf7;border-radius:11px;gap:2px}
.kh-map-toolbar button,.kh-map-toolbar a{font:600 12px var(--f-body);min-height:36px;padding:5px 11px;border:1px solid #b9d2e8;border-radius:9px;background:white;color:#174674;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.kh-base-switch button{border:0;background:transparent}
.kh-base-switch button[aria-pressed=true]{background:#153e75;color:#fff;box-shadow:0 2px 5px #102c6033}
.kh-map-toolbar #khNewsLayer[aria-pressed=true]{background:#4338ca;border-color:#4338ca;color:#fff}
.kh-map-toolbar .kh-news-jump{margin-left:auto;background:transparent;border-color:transparent;color:#3730a3}
#mapSection .mapbox{isolation:isolate}
.kh-basemap-note{position:absolute;left:52px;top:10px;z-index:420;background:#102b49e8;color:#fff;font-size:10px;line-height:1.5;border-radius:6px;padding:4px 7px;pointer-events:none}
#mapSection .locate{background:#fff;color:#0369a1;border:2px solid #0284c7;box-shadow:0 3px 10px #0c385040}
#mapSection .leaflet-control-zoom a{color:#153e75;background:#fff}
#mapSection .leaflet-control-layers{border:1px solid #a7c3dc;border-radius:10px;color:#173452;background:#fffffff5;box-shadow:0 3px 12px #16385428}
#mapSection .leaflet-control-layers-toggle{background-color:#fff;border-radius:10px}
.kh-district-marker span{display:block;width:max-content;max-width:114px;position:absolute;left:50%;transform:translateX(-50%);padding:4px 8px;border-radius:7px;border:1px solid #a5f3fc;background:#0c2847ee;color:#fff;font:600 11px/1.7 var(--f-body);white-space:nowrap;box-shadow:0 2px 6px #001c3a70;cursor:pointer}
.kh-district-marker:hover span{background:#075985;border-color:#fff}
.kh-news-pin{position:relative;display:flex;align-items:center;justify-content:center;width:34px;height:34px;margin:5px;border:2px solid white;background:#4338ca;color:#fff;border-radius:11px;box-shadow:0 3px 9px #15205177;transition:transform .16s ease}
.kh-news-pin.water{background:#1d4ed8}.kh-news-pin.rain{background:#0369a1}
.kh-news-pin svg{width:22px;height:22px}.kh-news-pin b{position:absolute;top:-7px;right:-6px;min-width:17px;border-radius:8px;background:#fff;color:#312e81;border:1px solid #c7d2fe;font:700 10px/16px var(--f-body);text-align:center}
.kh-news-marker:hover .kh-news-pin{transform:translateY(-2px)}
.kh-context-cluster>span,.kh-rain-marker>span{display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:3px;border-radius:50%;border:2px solid #fff;background:#4338ca;color:#fff;box-shadow:0 2px 8px #1237;position:relative}
.kh-context-cluster svg{width:19px;height:19px}.kh-context-cluster b{position:absolute;bottom:-5px;right:-4px;background:#fff;border:1px solid #a5b4fc;border-radius:8px;min-width:17px;text-align:center;color:#312e81;font:700 10px/16px var(--f-body)}
.kh-context-cluster.rain>span,.kh-rain-marker>span{background:#0369a1}
.kh-rain-marker>span{flex-direction:column;border-radius:10px}.kh-rain-marker svg{width:21px;height:18px}.kh-rain-marker b{font:700 10px/12px var(--f-body)}
#feedSection .item-foot a.nav,#mapSection a.nav,.loc-row a.btn.danger{color:#fff!important;background:#c9261c;border:1px solid #b82016;text-decoration:none;box-shadow:0 2px 4px #991b1b18}
#feedSection .item-foot a.nav{font-size:12px;line-height:1.4;min-height:34px;padding:5px 9px;border-radius:8px;gap:5px}
#feedSection a.nav svg,.loc-row a.btn.danger svg{color:#fff!important;fill:#fff;width:15px;height:15px;flex:none;opacity:1}
#feedSection .item-foot a.nav:hover,#mapSection a.nav:hover{background:#a51f17}
#feedSection .place{font-size:14px;color:#142e50}#feedSection .l2,#feedSection .l3,#feedSection .l4{font-size:12px;color:#37516d}
#feedSection .badge{font-size:11px;line-height:1.5;padding:2px 6px;background:#fff}
#feedSection .b-sev2{color:#795000;background:#fff8df;border-color:#d4a800}#feedSection .b-sev3{color:#a33100;background:#fff1e7}#feedSection .b-sev4{color:#b91c1c;background:#fff0f0}
#feedSection .tab[aria-selected=true]{color:#075985;box-shadow:inset 0 0 0 2px #0284c7,0 2px 6px #07598512}
.kh-water-pin{border-width:2px;box-shadow:0 0 0 2px #fff,0 3px 10px #10243a66}.kh-water-pin b{font-size:13px;line-height:17px;width:17px}
#map .kcm-pin{background:#7c3aed;border:2px solid #fff;color:#fff;box-shadow:0 2px 8px #25104a77}

main.grid.kh-map-full{display:flex;flex-direction:column;gap:0;height:auto;min-height:0;width:min(1440px,calc(100% - 32px));overflow:visible;border-radius:16px}
main.grid.kh-map-full #mapSection.mapwrap{height:auto;min-height:0;max-height:none;width:100%;border-radius:0 0 16px 16px;overflow:visible;box-shadow:none;border:0}
main.grid.kh-map-full #mapSection .mapbar{border-radius:0;flex:none;overflow:visible}
body:not(.kh-picking) main.grid.kh-map-full #mapSection.mapwrap .mapbox{flex:none;height:70vh;min-height:480px;max-height:760px;width:100%;border-radius:0 0 16px 16px;overflow:hidden}
.kh-map-full #feedSection{border:0;border-bottom:1px solid #cbdfed;border-radius:16px 16px 0 0;max-height:none;width:100%;overflow:hidden;background:#f7fbff}
.kh-feed-heading{display:flex;align-items:center;justify-content:space-between;padding:8px 12px 0;gap:10px;font-size:13px;color:#173e65}
.kh-feed-heading button{border:0;background:transparent;color:#075985;font:600 12px var(--f-body);min-height:32px;cursor:pointer}
.kh-map-full #feedSection .tabs{display:flex;flex-wrap:wrap;gap:5px;overflow:visible;padding:6px 10px;background:transparent;border:0}
.kh-map-full #feedSection .tab{flex:0 1 auto;min-height:34px;font-size:12px;padding:5px 12px}
.kh-map-full #feedSection .list{display:flex;flex-direction:row;align-items:stretch;gap:10px;max-height:260px;height:auto;min-height:0;overflow:auto;padding:4px 10px 12px;scrollbar-width:thin;overscroll-behavior:contain}
.kh-map-full #feedSection .list>.item{flex:0 0 304px;min-width:0;max-width:calc(100vw - 48px);min-height:150px;align-self:stretch;background:#fff}
.kh-map-full #feedSection .list>.empty{flex:1;min-width:0;padding:14px;min-height:90px}
.kh-map-full #feedSection .list[data-tab=act],.kh-map-full #feedSection .list[data-tab=mine],.kh-map-full #feedSection .list[data-tab=queue],.kh-map-full #feedSection .list[data-tab=admin]{display:block;max-height:360px;overflow:auto}
.kh-map-full #feedSection .list[data-tab]:not([data-tab=feed])>.item{width:100%;max-width:none;margin:8px 0}
#mapSection .kcm-finder{margin:0;padding:8px 10px;border:1px solid #ddd6fe;background:#faf8ff;border-radius:10px}
#mapSection .kcm-finder-controls{align-items:center;gap:6px;flex-wrap:wrap}
#mapSection .kcm-finder-controls select{flex:1 1 300px;font-size:12px;min-width:0}
#mapSection .kcm-finder-controls .btn{font-size:12px;min-height:34px;padding:5px 9px}
#mapSection .kcm-finder-head{font-size:12px}#mapSection #cameraScope{font-size:10px}
.kh-map-filters{margin:0;font-size:12px;border-top:1px solid #d2e6f4}.kh-map-filters>summary{cursor:pointer;min-height:32px;line-height:32px;color:#285074;font-weight:600}.kh-map-filters[open]>.chips{margin-top:5px}.kh-map-filters .mapmeta{padding-bottom:6px}#mapSection .kh-area-browser{margin-top:2px}
.kh-news-range{display:flex;align-items:center;gap:4px;font-size:11px;color:#844208;margin-left:auto}.kh-news-range select{font-size:11px;padding:4px 6px;min-height:32px;background:white;color:#663406}
.kh-map-toolbar #khNewsLayer[aria-pressed=true]{background:#a94d08;border-color:#a94d08;color:white}
.kh-news-pin,.kh-context-cluster.news>span{background:#b45309}.kh-news-pin b{color:#713f12;border-color:#fed7aa}
.kh-news-info{font-size:11px;color:#774009;background:#fff8ed;border:1px solid #f8dbb5;border-radius:8px;padding:0 8px}
.kh-news-info summary{cursor:pointer;line-height:1.8;padding:6px 0;min-height:32px}.kh-news-info>div{padding-bottom:6px}.kh-news-info p{line-height:1.8;margin:5px 0}.kh-news-info button{font:600 11px var(--f-body);color:#78350f;border:1px solid #eac495;background:#fff;min-height:32px;border-radius:6px;margin:5px;padding:4px 8px;cursor:pointer}
#map .kh-news-popup{font-family:var(--f-body);padding:10px 0;border-top:1px solid #eadbc6;color:#153355;margin-top:8px}
#map .kh-news-preview{display:flex;align-items:flex-start;gap:9px}#map .kh-news-preview>div{min-width:0;flex:1}#map .kh-news-thumb{display:block;flex:0 0 76px}#map .kh-news-thumb img{display:block;width:76px;height:76px;object-fit:cover;border-radius:8px}
#map .kh-news-popup h3{font:600 13px/1.7 var(--f-body);margin:3px 0}#map .kh-news-popup h3 a{color:#193c60;text-decoration:none}#map .kh-news-popup h3 a:hover{text-decoration:underline}
#map .kh-news-type{font-size:10px;color:#92400e;font-weight:600}#map .kh-news-popup p{font-size:12px;line-height:1.8;margin:7px 0}#map .kh-news-popup small{font-size:10px;line-height:1.8;color:#53647a}
#map a.kh-news-read{display:flex;align-items:center;min-height:36px;font:600 12px var(--f-body);color:#974206;text-decoration:none;padding-top:5px}
#map .kh-news-caution{display:block;font-size:10px;color:#62738a;line-height:1.8;border-top:1px solid #e0e8f0;padding-top:7px}
.kh-popup-pages{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}.kh-popup-pages button{min-width:36px;min-height:32px;border:1px solid #ccdbea;border-radius:6px;background:#fff;color:#193c60;font:600 14px var(--f-body);cursor:pointer}.kh-popup-pages button:disabled{opacity:.4}
#mapSection button:focus-visible,#feedSection a:focus-visible,.kh-district-marker:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
#mapSection .leaflet-control-layers-toggle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075985' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-4 9 4-9 4-9-4Zm0 5 9 4 9-4M3 17l9 4 9-4'/%3E%3C/svg%3E");background-size:24px 24px;background-position:center;background-repeat:no-repeat}
#waterSec .tw-card.lv0,#waterSec .tw-card.lv-1{opacity:1}#waterSec .tw-top small{display:inline;font-size:10px}#waterSec .tw-old-note{font-size:11px;line-height:1.6;color:#526578}#waterSec .tw-live{font-size:11px;color:#526578;animation:none;line-height:1.8}#waterSec .tw-live.is-fresh{color:#137845}#waterSec .tw-head{gap:10px;flex-wrap:wrap}#waterSec .tw-head>div{flex:1 1 350px}
@media(max-width:880px){main.grid.kh-map-full{width:100%;border-radius:0}body:not(.kh-picking) main.grid.kh-map-full #mapSection.mapwrap .mapbox{height:64vh;min-height:420px;max-height:660px}#mapSection .mapbar{padding:8px}.kh-map-toolbar{gap:5px}.kh-map-toolbar button,.kh-map-toolbar a{font-size:11px;padding:5px 8px}.kh-district-marker span{font-size:10px;padding:3px 6px}.kh-map-full #feedSection .tabs{flex-wrap:nowrap;overflow-x:auto}.kh-map-full #feedSection .tab{flex:none}.kh-map-full #feedSection .list{max-height:255px}.kh-map-full #feedSection .list>.item{flex-basis:280px}.kh-news-range{margin-left:0}#mapSection .kcm-finder-head{flex-wrap:wrap;gap:3px}#mapSection .kcm-finder-controls select{flex-basis:100%;width:100%}.kh-basemap-note{font-size:9px}.kh-map-filters>summary{font-size:11px}}
@media(prefers-reduced-motion:reduce){.kh-news-pin{transition:none}}

#mapSection,#feedSection{scroll-margin-top:90px}@media(max-width:880px){#mapSection,#feedSection{scroll-margin-top:128px}}
