/* Parcel/GIS Viewer Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #1a1a2e; color: #e0e0e0; }

.header { background: rgba(0, 0, 0, 0.8); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; border-bottom: 2px solid #4a9eff; }
.header h1 { color: #4a9eff; font-size: 1.4em; }
.header-controls { display: flex; gap: 15px; align-items: center; }
.search-box { display: flex; gap: 5px; }
.search-box input { padding: 8px 12px; border: 1px solid #333; background: #222; color: #fff; border-radius: 5px; width: 250px; }
.search-box button { padding: 8px 15px; background: #4a9eff; border: none; color: #000; border-radius: 5px; cursor: pointer; font-weight: bold; }

.main-container { display: flex; height: 100vh; padding-top: 60px; }
.sidebar { width: 350px; background: rgba(0, 0, 0, 0.9); border-right: 1px solid #333; overflow-y: auto; padding: 15px; }

.layer-controls { margin-bottom: 20px; }
.layer-controls h3, .legend h3, .parcel-info h3, .filter-section h3, .stats-panel h3, .quick-links h3 { color: #4a9eff; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #333; font-size: 0.95em; }
.layer-toggle { display: flex; align-items: center; margin-bottom: 10px; padding: 8px; background: rgba(255, 255, 255, 0.05); border-radius: 5px; }
.layer-toggle input { margin-right: 10px; width: 18px; height: 18px; accent-color: #4a9eff; }
.layer-toggle label { flex: 1; font-size: 0.9em; }
.layer-toggle .color-indicator { width: 20px; height: 20px; border-radius: 3px; margin-left: 10px; }

.legend { margin-bottom: 20px; }
.legend-item { display: flex; align-items: center; margin-bottom: 8px; font-size: 0.85em; }
.legend-color { width: 20px; height: 20px; border-radius: 3px; margin-right: 10px; }

.parcel-info { background: rgba(74, 158, 255, 0.1); border: 1px solid #4a9eff; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.parcel-info .no-selection { color: #666; font-style: italic; text-align: center; padding: 20px; }
.parcel-detail { margin-bottom: 12px; }
.parcel-detail label { color: #888; font-size: 0.8em; display: block; margin-bottom: 3px; }
.parcel-detail value { font-size: 0.95em; color: #fff; }

.stats-panel { background: rgba(0, 0, 0, 0.4); border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #333; font-size: 0.9em; }
.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: #888; }
.stat-row .value { color: #fff; font-weight: bold; }

#map { flex: 1; height: 100%; }
.leaflet-container { background: #1a1a2e; }
.parcel-popup { min-width: 250px; }
.parcel-popup h4 { color: #4a9eff; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1px solid #eee; }
.parcel-popup .detail { margin: 5px 0; font-size: 0.9em; }
.parcel-popup .detail strong { color: #333; }

.filter-section { margin-bottom: 20px; }
.filter-group { margin-bottom: 12px; }
.filter-group label { display: block; margin-bottom: 5px; font-size: 0.85em; color: #888; }
.filter-group select { width: 100%; padding: 8px; background: #222; border: 1px solid #333; color: #fff; border-radius: 5px; }
.filter-group input[type="range"] { width: 100%; }

.assessment-meter { background: #333; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.assessment-meter .fill { height: 100%; background: linear-gradient(90deg, #00c853, #ffc107, #ff5252); transition: width 0.3s; }

.quick-links { margin-top: 20px; }
.quick-link { display: block; padding: 10px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.05); border-radius: 5px; color: #4a9eff; text-decoration: none; font-size: 0.9em; transition: background 0.3s; }
.quick-link:hover { background: rgba(74, 158, 255, 0.2); }

.toolbar { position: absolute; top: 80px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 5px; }
.tool-btn { width: 40px; height: 40px; background: rgba(0, 0, 0, 0.8); border: 1px solid #333; color: #fff; border-radius: 5px; cursor: pointer; font-size: 1.2em; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.tool-btn:hover, .tool-btn.active { background: #4a9eff; color: #000; }

.info-box { position: absolute; bottom: 20px; left: 370px; background: rgba(0, 0, 0, 0.85); padding: 15px; border-radius: 8px; border: 1px solid #333; z-index: 999; max-width: 300px; }
.info-box h4 { color: #4a9eff; margin-bottom: 10px; }
.info-box p { font-size: 0.85em; color: #888; margin-bottom: 5px; }
