/* GIS navigation, map search and source collections. */
.gis-workspace{--nav-width:276px;--nav-rail:72px;--forest:#16634c;--soft-green:#edf6f0}
.gis-workspace .workspace{grid-template-columns:var(--nav-width) minmax(0,1fr);position:relative}
.gis-workspace.nav-collapsed .workspace{grid-template-columns:var(--nav-rail) minmax(0,1fr)}
.gis-workspace .sidebar{position:relative;inset:auto;display:flex;width:auto;padding:20px 14px 18px;overflow:hidden;border-right:1px solid #dce5df;z-index:10}
.navigation-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:0 4px 22px}
.navigation-heading>.nav-copy{font-size:10px;letter-spacing:1.6px;font-weight:700;color:#7b8c84}
#toggle-sidebar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;background:#e9f2ed;color:#1d634d;border:1px solid #cbded2;border-radius:9px;font-size:23px;line-height:1}
#toggle-sidebar:hover{background:#d7e9df}
.module-navigation{display:flex;flex-direction:column;gap:7px}
.module-button{width:100%;min-height:72px;border:1px solid transparent;border-radius:11px;padding:12px 10px;display:flex;align-items:center;gap:12px;text-align:left;position:relative}
.module-button:hover{background:#f3f6f4}
.module-button.active{background:var(--soft-green);border-color:#d2e7da;color:#13553f}
.module-button.active:before{content:"";position:absolute;left:-15px;top:21px;bottom:21px;width:3px;border-radius:0 3px 3px 0;background:#218262}
.module-icon{width:34px;flex:0 0 34px;display:grid;place-items:center}
.module-icon svg{display:block;width:24px;height:24px}
.module-button strong{display:block;font-size:14px;font-weight:650;line-height:1.4;white-space:nowrap}
.nav-separator{height:1px;background:#e6ece7;margin:18px 10px 12px}
.nav-collapsed .nav-copy{display:none}
.gis-workspace.nav-collapsed .sidebar{padding-left:10px;padding-right:10px}
.nav-collapsed .navigation-heading{justify-content:center;padding-left:0;padding-right:0}
.nav-collapsed .module-button{justify-content:center;min-height:55px;padding:8px 0}
.nav-collapsed .module-button.active:before{left:-11px;top:15px;bottom:15px}
.nav-collapsed .nav-separator{margin:18px 3px 12px}
.gis-workspace .map-top{top:20px;left:24px;right:24px;z-index:8;align-items:center}
.global-search{width:400px;max-width:100%;position:relative}
.gis-workspace #search-form{padding:0}
.gis-workspace .searchbox{height:52px;background:#fff;border:1px solid #dce5df;border-radius:10px;box-shadow:0 5px 25px #0002;padding:0 16px;gap:12px;color:#57746a}
.gis-workspace .searchbox svg{flex-shrink:0}
.gis-workspace .searchbox input{height:100%;color:#1f3a2e;font-size:14px}
.gis-workspace .searchbox kbd{font-family:inherit;width:22px;text-align:center;font-size:12px;background:#f5f8f6}
.search-results{position:absolute;top:62px;left:0;right:0;background:#fff;border:1px solid #dce5df;border-radius:12px;box-shadow:0 12px 40px #0003;overflow:hidden}
.search-results .results{padding:0;max-height:calc(100dvh - 236px);min-height:0;overflow-y:auto;overscroll-behavior:contain}
.search-results .list-header{padding:15px 16px;border-bottom:1px solid #e7ece8}
.search-results .list-header h2{font-size:13px}
.search-results .district-row,.search-results .building-search-row,.search-results .village-search-row{padding:12px 16px}
.active-module-label{font-size:11px;font-weight:600;color:#d5e7de;padding:8px 12px;border:1px solid #d8f0e426;background:#1e352dcc;border-radius:20px;white-space:nowrap}
.gis-workspace .map-actions{top:94px}
.gis-workspace .layer-panel{top:94px}
.gis-workspace .map-message{top:94px}
.gis-workspace [hidden]{display:none!important}
.module-empty{position:absolute;left:24px;bottom:64px;max-width:350px;width:calc(100% - 106px);padding:23px 24px;background:#fffffff5;border:1px solid #dce5df;border-radius:14px;box-shadow:0 10px 40px #0002;z-index:2}
.empty-icon{font-size:27px;display:block;margin-bottom:12px}
.module-empty h1{font-size:20px;letter-spacing:-.5px;font-weight:650}
.module-empty p{font-size:13px;line-height:1.7;color:#6c7c72;margin:9px 0 18px}
.primary-action,.secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:40px;padding:10px 15px;border-radius:7px;font-size:12px;font-weight:600;text-decoration:none;border:1px solid transparent}
.primary-action{background:#185e47;color:#fff}
.primary-action:hover{background:#104b38}
.secondary-action{background:#fff;border-color:#d5e2d9;color:#285440}
.secondary-action:hover{background:#f0f6f2}
.gis-workspace[data-module="infrastructure"] .county-shape,.gis-workspace[data-module="fiber"] .county-shape{pointer-events:none}
.gis-workspace[data-module="database"] #map,.gis-workspace[data-module="database"] .map-actions,.gis-workspace[data-module="database"] .camera-controls,.gis-workspace[data-module="database"] .map-footer,.gis-workspace[data-module="database"] .layer-panel{visibility:hidden}
.gis-workspace[data-module="database"] .map-section{background:#f6f8f5}
.gis-workspace[data-module="database"] .active-module-label{background:#e8f0e9;color:#456351;border-color:#dae6dc}
.database-view{position:absolute;inset:94px 0 0;overflow:auto;padding:22px 32px 48px;scrollbar-width:thin}
.database-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.section-kicker{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#7b8d80;margin:0 0 8px}
.database-heading h1{font-size:30px;font-weight:650;letter-spacing:-1px}
.database-heading>div>p:last-child{font-size:13px;color:#768478;margin:7px 0 0}
.database-notice{display:flex;align-items:start;gap:10px;background:#eaf0e9;color:#617360;padding:12px 15px;border-radius:7px;margin-bottom:27px;font-size:12px}
.database-notice>span{font-size:16px;line-height:1.6}.database-notice p{margin:0;line-height:1.7}
.source-collections{display:grid;gap:18px}
.source-collection{background:#fff;border:1px solid #e0e7df;border-radius:12px;overflow:hidden}
.collection-heading{display:flex;align-items:center;gap:12px;padding:20px 22px;border-bottom:1px solid #edf1eb}
.collection-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#f1f6ef;font-size:23px}
.collection-heading h2{font-size:15px;margin:0 0 4px;font-weight:650}
.collection-heading small{font-size:11px;color:#859081}
.collection-heading>button{margin-left:auto;font-size:12px;color:#27684a;padding:8px;border-radius:5px}
.collection-heading>button:hover{background:#edf6f0}
.source-row{display:flex;align-items:center;gap:13px;padding:18px 22px;border-bottom:1px solid #edf1eb}
.source-row:last-child{border-bottom:0}
.file-icon{font-size:10px;font-weight:700;color:#497353;background:#eef5ed;border:1px solid #dce8d9;padding:8px 6px;border-radius:5px;flex-shrink:0}
.source-info{min-width:0;flex:1}.source-info strong{display:block;overflow-wrap:anywhere;font-size:13px;font-weight:600}.source-info small{display:block;font-size:11px;color:#869080;margin-top:5px;line-height:1.5}
.source-row a,.source-row button{font-size:12px;color:#34644a;flex-shrink:0}.source-row a{text-decoration:none}.source-row a:hover{text-decoration:underline}.source-row .remove-source{font-size:18px;color:#829181;padding:4px 6px}
.collection-empty{padding:21px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.collection-empty p{font-size:12px;color:#84907e;margin:0;line-height:1.7}.collection-empty button{font-size:12px;color:#387455;white-space:nowrap}
.reference-sources{margin-top:32px}.reference-sources h2{font-size:13px;font-weight:650;margin:0 0 14px}
.reference-row{display:flex;align-items:center;gap:14px;padding:16px 2px;border-bottom:1px solid #e3e8df}.reference-row>span{font-size:22px}.reference-row>div{flex:1;min-width:0}.reference-row strong{display:block;font-size:12px;font-weight:500}.reference-row small{display:block;font-size:11px;color:#87917f;margin-top:4px}.reference-row a{font-size:11px;color:#3c7152;text-decoration:none;white-space:nowrap}
.gis-workspace #source-dialog{width:480px;border:1px solid #dce5d9;padding:28px;border-radius:15px;box-shadow:0 20px 80px #142d3b30}
.gis-workspace #source-dialog h2{font-size:22px;letter-spacing:-.5px}.source-dialog-head>button{font-size:26px;color:#758572;padding:4px 8px}
.gis-workspace #source-dialog .source-help{font-size:12px;line-height:1.7;color:#778473;margin:16px 0 23px}
#source-form>label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;margin:16px 0}
#source-form>label>input,#source-form>label>select{width:100%;min-height:43px;font-size:13px;border:1px solid #d6e0d1;border-radius:6px;background:#fff;padding:10px;color:#2a4333}
#source-form>label>small{font-weight:400;font-size:11px;color:#889180}
.source-type{border:0;padding:0;margin:20px 0}.source-type legend{font-size:12px;font-weight:600;margin-bottom:12px}.source-type label{font-size:13px;display:inline-flex;align-items:center;gap:6px;margin-right:14px}.source-type input{accent-color:#27704e}
.dialog-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:14px;border-top:1px solid #e7ede2;margin-top:24px}
#source-error{color:#a63e29;background:#fff0e9;padding:10px;border-radius:6px;font-size:12px!important;line-height:1.6!important}
@media(max-width:1000px){.gis-workspace{--nav-width:244px}.active-module-label{display:none}.database-view{padding-left:24px;padding-right:24px}.module-button strong{font-size:13px}}
@media(max-width:760px){
 .gis-workspace{--nav-rail:64px;--nav-width:264px}
 .gis-workspace .workspace,.gis-workspace.nav-collapsed .workspace{grid-template-columns:var(--nav-rail) minmax(0,1fr)}
 .gis-workspace .sidebar{position:absolute;top:0;bottom:0;left:0;width:var(--nav-width);padding-top:14px;box-shadow:15px 0 40px #0002}
 .gis-workspace.nav-collapsed .sidebar{width:var(--nav-rail);padding-left:6px;padding-right:6px;box-shadow:none}
 .gis-workspace .map-section{grid-column:2;height:100%}
 .gis-workspace .map-top{left:12px;right:12px;top:14px}
 .global-search{width:100%}.gis-workspace .searchbox{height:48px;padding:0 12px;gap:8px}.gis-workspace .searchbox input{font-size:14px}.gis-workspace .searchbox kbd{display:none}
 .gis-workspace .map-actions,.gis-workspace .layer-panel{top:82px}.gis-workspace .layer-panel{right:65px;min-width:185px}
 .navigation-heading{padding-bottom:17px}.nav-collapsed .module-button.active:before{left:-7px}
 .module-empty{left:12px;bottom:118px;padding:18px;width:calc(100% - 24px);max-width:320px}.module-empty h1{font-size:18px}.module-empty p{font-size:12px}.empty-icon{font-size:23px;margin-bottom:8px}
 .gis-workspace .map-footer{padding:7px 10px;font-size:8px;line-height:1.4}.gis-workspace .map-footer>span:last-child{max-width:220px}
 .database-view{inset:78px 0 0;padding:16px 14px 32px}.database-heading{display:block;margin-bottom:18px}.database-heading h1{font-size:27px}.database-heading .primary-action{margin-top:17px}.database-heading>div>p:last-child{font-size:12px;line-height:1.6}
 .database-notice{padding:10px 12px;font-size:11px;margin-bottom:20px}.collection-heading{padding:15px 13px;gap:9px}.collection-icon{width:32px;height:34px;font-size:20px}.collection-heading h2{font-size:12px}.collection-heading small{font-size:10px}.collection-heading>button{padding:5px;font-size:11px}
 .source-row{padding:15px 13px;gap:8px;flex-wrap:wrap}.source-info strong{font-size:12px}.source-info small{font-size:10px}.source-info{min-width:100px}.source-row a,.source-row button{font-size:11px}.collection-empty{padding:16px 13px;display:block}.collection-empty button{padding:0;margin-top:12px}.reference-row{flex-wrap:wrap;gap:10px}.reference-row a{margin-left:32px}.reference-row>div{flex-basis:calc(100% - 40px)}
 .gis-workspace #source-dialog{padding:22px;width:calc(100% - 24px)}
}
