.kn-gis-explorer{font-family:'Kanit',sans-serif;margin:0 0 20px;padding:22px 24px;background:#fff!important;border:1px solid #dbe5ef;border-radius:22px;color:#20334b!important;box-shadow:0 8px 28px #17375907}
.kn-gis-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #edf1f5}
.kn-gis-eyebrow{font-size:11px;font-weight:600;color:#2563eb!important;letter-spacing:.06em}
.kn-gis-heading h4{font-size:20px;line-height:1.5;margin:3px 0;color:#172d48!important}.kn-gis-heading p{margin:0;font-size:12px;color:#64748b!important}
.kn-gis-heading a{font-size:12px;text-decoration:none;white-space:nowrap;color:#2563eb!important;background:#eff6ff!important;padding:11px 14px;border:1px solid #dbeafe;border-radius:12px}
.kn-gis-tools{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.kn-gis-tools label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:500;color:#475569!important}.kn-gis-search{flex:1;min-width:230px}
.kn-gis-tools input[type=search],.kn-gis-tools select{box-sizing:border-box;height:44px!important;min-width:155px;max-width:100%;margin:0!important;padding:9px 12px!important;font:400 13px 'Kanit',sans-serif!important;border:1px solid #dbe3ed!important;border-radius:10px!important;background:#f8fafc!important;color:#24374e!important}
.kn-gis-tools .kn-gis-rings{flex-direction:row;align-items:center;gap:7px;height:44px;white-space:nowrap}.kn-gis-rings input{width:17px!important;height:17px!important;accent-color:#2563eb;margin:0!important}
.kn-gis-tools button{height:44px;padding:10px 16px!important;border-radius:10px;border:1px solid #bfdbfe;background:#eff6ff!important;color:#1d4ed8!important;font:500 13px 'Kanit',sans-serif;white-space:nowrap}
.kn-gis-count{font-size:13px;color:#2563eb!important;margin:16px 0 10px!important;font-weight:500}.kn-gis-results{font-size:12px;border-top:1px solid #edf1f5;padding-top:10px}.kn-gis-results summary{cursor:pointer;color:#334155!important}.kn-gis-results [data-place-results]{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;max-height:220px;overflow:auto;margin-top:10px}
.kn-gis-results button{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 10px!important;text-align:left;border:1px solid #e8eef6;border-radius:8px;background:#f8fafc!important;color:#334155!important;font:400 12px 'Kanit',sans-serif}.kn-gis-results button:hover{border-color:#93c5fd;background:#eff6ff!important}.kn-gis-results small{white-space:nowrap;color:#64748b!important}.kn-gis-note{font-size:11px;line-height:1.6;color:#64748b!important;margin:10px 0 0!important}
.kn-gis-explorer :focus-visible{outline:3px solid #60a5fa!important;outline-offset:3px}
#gisMapPreview .leaflet-control-attribution,#gisMapFull .leaflet-control-attribution,#adminGisMap .leaflet-control-attribution{display:block!important;background:#ffffffdb!important;color:#334155!important;font:10px Arial,sans-serif!important;max-width:100%}
#gisMapPreview .leaflet-control-attribution a,#gisMapFull .leaflet-control-attribution a,#adminGisMap .leaflet-control-attribution a{color:#2563eb!important}
#gisMapPreview .marker-cluster,#gisMapFull .marker-cluster{background:#93c5fd99!important;border:2px solid #2563eb!important;box-sizing:border-box}
#gisMapPreview .marker-cluster div,#gisMapFull .marker-cluster div{background:#2563eb!important;border:2px solid #fff!important;box-sizing:border-box;margin:3px!important;color:#fff!important;width:30px;height:30px;line-height:26px}
#gisMapPreview .marker-cluster span,#gisMapFull .marker-cluster span{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:12px!important;font-weight:600!important}
#gisMapPreview [data-gis-marker-color],#gisMapFull [data-gis-marker-color]{width:34px!important;height:34px!important;border-radius:50% 50% 50% 4px!important;transform:rotate(-45deg)!important;border:3px solid #fff!important;box-shadow:0 3px 9px #10284855!important}
#gisMapPreview [data-gis-marker-color] i,#gisMapFull [data-gis-marker-color] i{transform:rotate(45deg);font-size:13px!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
#gisMapPreview [data-gis-marker-color]+div,#gisMapFull [data-gis-marker-color]+div{visibility:hidden;height:4px!important;border:0!important}
.kn-gis-range-label{background:none!important;border:0!important;pointer-events:none!important}.kn-gis-range-label span{display:block;border:1px solid #dbeafe;background:#fff!important;border-radius:8px;box-shadow:0 1px 5px #17375915;text-align:center;font:600 11px/22px 'Kanit',sans-serif;color:#2563eb!important;-webkit-text-fill-color:#2563eb!important}
#layerListIndex .layer-btn.active-btn,#layerListFull .layer-btn.active-btn{background:#eff6ff!important;color:#2563eb!important;border-color:#dbeafe!important;transform:none!important}#layerListIndex .layer-btn.active-btn *,#layerListFull .layer-btn.active-btn *{color:#2563eb!important}
.kn-gis-admin-pin{width:34px;height:34px;border:3px solid white;border-radius:50% 50% 50% 4px;transform:translate(-50%,-100%) rotate(-45deg);box-shadow:0 3px 9px #10284855;display:grid;place-items:center}.kn-gis-admin-pin i{transform:rotate(45deg);color:#fff!important}
@layer govtechLegacy {
 #gisMapPreview .marker-cluster,#gisMapFull .marker-cluster{background:#93c5fd99!important;border-color:#2563eb!important}
 #gisMapPreview .marker-cluster div,#gisMapFull .marker-cluster div{background:#2563eb!important;color:#fff!important;border-color:#fff!important}
 #gisMapPreview .marker-cluster span,#gisMapFull .marker-cluster span{color:#fff!important;-webkit-text-fill-color:#fff!important}
}
@media(max-width:767px){.kn-gis-explorer{padding:16px;border-radius:16px}.kn-gis-heading{align-items:flex-start;flex-direction:column;gap:10px}.kn-gis-heading h4{font-size:18px}.kn-gis-tools{gap:10px}.kn-gis-search{flex:1 0 100%;min-width:0}.kn-gis-tools label:not(.kn-gis-search):not(.kn-gis-rings){flex:1}.kn-gis-tools select{min-width:0;width:100%}.kn-gis-tools .kn-gis-rings{flex:1;justify-content:center}.kn-gis-tools button{width:100%}.kn-gis-results [data-place-results]{grid-template-columns:1fr}.kn-gis-note{font-size:10px}.kn-gis-heading a{font-size:11px}}

/* Scoped scrollbars: retain scrolling without a heavy track beside the map. */
@layer govtechLegacy {
 #layerListIndex,#layerListFull{scrollbar-width:thin!important;scrollbar-color:#b8c5dc transparent!important;scrollbar-gutter:stable;padding-right:3px!important;overscroll-behavior:contain}
 #layerListIndex::-webkit-scrollbar,#layerListFull::-webkit-scrollbar{width:5px!important;height:5px!important}
 #layerListIndex::-webkit-scrollbar-track,#layerListFull::-webkit-scrollbar-track{background:transparent!important;border-radius:99px}
 #layerListIndex::-webkit-scrollbar-thumb,#layerListFull::-webkit-scrollbar-thumb{background:#b8c5dc!important;border:1px solid #fff!important;border-radius:99px!important}
 #layerListIndex::-webkit-scrollbar-thumb:hover,#layerListFull::-webkit-scrollbar-thumb:hover{background:#8da3ca!important}
 #layerListIndex::-webkit-scrollbar-button,#layerListFull::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important}
}
#gisIndexPanelContent,#gisFullPanelContent{min-height:0;max-height:min(460px,calc(100vh - 180px))!important}
#layerListIndex,#layerListFull{min-height:0;max-height:380px}
@media(max-width:767px){#gisIndexPanelContent,#gisFullPanelContent{max-height:min(410px,calc(100dvh - 210px))!important}#layerListIndex,#layerListFull{max-height:330px}}
