:root {
  --bg-dark: #003e52;
  --panel-bg: rgba(3, 74, 98, 0.92);
  --panel-border: #0a5c77;
  --panel-shadow: 0 20px 40px rgba(0, 24, 34, 0.45);
  --text-main: #f8fafc;
  --text-muted: #9dc0cc;
  --accent-color: #22d3ee;
  --accent-hover: #06b6d4;
  --accent-glow: rgba(34, 211, 238, 0.35);
  --emerald-color: #10b981;
  --purple-color: #a855f7;
  --amber-color: #f59e0b;
  --btn-bg: rgba(34, 211, 238, 0.08);
  --btn-border: #0d6380;
  --btn-hover-bg: rgba(34, 211, 238, 0.16);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-code: 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Map canvas */
#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #003e52;
}

/* Glassmorphism Common */
.header-card, .control-panel, .modal-card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
}

/* Navbar Header Bar */
.navbar-header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  background-color: #003e52 !important;
  border: 1px solid #0a5c77;
  box-shadow: 0 10px 30px rgba(0, 24, 34, 0.5);
}

.header-card {
  background-color: #003e52 !important;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #005670, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 62, 82, 0.5);
}

.title-wrapper h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Main Tab Navigation Buttons */
.main-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 38, 51, 0.65);
  padding: 4px;
  border-radius: 24px;
  border: 1px solid #0a5c77;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab.active {
  background: #8ad2d8;
  color: #002e3d;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(138, 210, 216, 0.4);
}

.nav-tab.active:hover {
  background: #7cc7cd;
  color: #002430;
}

.tab-badge {
  background: #ef4444;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.header-tile-styles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.basemap-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  user-select: none;
}

.header-tile-styles .style-toggle-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(0, 38, 51, 0.65);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid #0a5c77;
  min-width: 255px;
}

.header-tile-styles .style-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}

.header-tile-styles .style-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.header-tile-styles .style-btn.active {
  background: #8ad2d8;
  color: #002e3d;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(138, 210, 216, 0.35);
}

/* Sidebar Control Panels for Tabs */
.sidebar-tab {
  display: none !important;
}

.sidebar-tab.active {
  display: flex !important;
}

.control-panel,
div#app > aside#sidebar-planning,
div#app > aside#sidebar-opportunity {
  position: absolute;
  top: 98px;
  left: 20px;
  z-index: 1000;
  width: 340px;
  padding: 18px;
  border-radius: var(--radius-lg);
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 118px);
  overflow-y: auto;
}

.control-panel::-webkit-scrollbar {
  width: 6px;
}
.control-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-footer {
  margin-top: auto;
  padding: 10px 4px 4px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-footer p {
  font-size: 0.67rem;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.015em;
  font-weight: 400;
}

.panel-footer p strong {
  color: #94a3b8;
  font-weight: 500;
}

#sidebar-planning #section-presets {
  margin-top: 8px;
  padding-top: 4px;
}

.highlighted-section {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid #0a5c77;
  padding: 12px;
  border-radius: var(--radius-md);
}

.firebase-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.data-dump-section {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.09), rgba(2, 75, 99, 0.3));
  border: 1px solid #0a5c77;
}

.drop-zone {
  margin-top: 8px;
  border: 2px dashed #0a5c77;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  background: rgba(0, 48, 64, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.15);
}

.drop-zone-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.drop-zone-text {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.3;
}

.drop-zone-text strong {
  color: #22d3ee;
}

.drop-zone-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.screening-panel {
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(2, 70, 92, 0.85);
  border: 1px solid #0a5c77;
  font-size: 0.76rem;
  line-height: 1.4;
  animation: fadeIn 0.2s ease-out;
}

.screening-panel.hidden {
  display: none !important;
}

.screening-panel.status-passed {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(0, 62, 82, 0.9));
}

.screening-panel.status-rejected {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(0, 62, 82, 0.9));
}

.screening-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.screening-title {
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.screening-file-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #0a5c77;
}

.screening-fields-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}

.field-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.field-tag.matched {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.field-tag.missing {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.field-tag.unrecognized {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.screening-preview-items {
  margin: 6px 0 10px 0;
  max-height: 85px;
  overflow-y: auto;
  padding-right: 4px;
}

.screening-preview-item {
  padding: 4px 6px;
  background: rgba(0, 38, 51, 0.6);
  border-radius: 4px;
  margin-bottom: 3px;
  font-size: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screening-preview-item span.project-sub {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.opportunity-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.inspector-section {
  background: linear-gradient(135deg, #034b63, #003e52) !important;
  border: 1px solid #0a5c77 !important;
  box-shadow: 0 10px 28px rgba(0, 24, 34, 0.5), 0 0 15px rgba(34, 211, 238, 0.15) !important;
  transition: all 0.25s ease;
}

.inspector-section.hidden {
  display: none !important;
}

.inspector-content {
  margin-top: 4px;
}

.inspector-content .iz-popup {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #0a5c77;
  background: rgba(0, 50, 68, 0.7);
}

.inspector-content .iz-popup-banner {
  padding: 10px 12px;
}

.inspector-content .iz-popup-title {
  font-size: 0.98rem;
}

.inspector-content .iz-popup-body {
  padding: 10px 12px 12px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.highlight-label {
  color: #f59e0b;
}

.section-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.badge {
  background: rgba(34, 211, 238, 0.16);
  color: var(--accent-color);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #0a5c77;
}

#sync-status-badge {
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

#sync-status-badge .svg-icon {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
}

.status-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.toggle-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-main);
  cursor: pointer;
  background: rgba(0, 48, 64, 0.5);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #0a5c77;
}

.toggle-checkbox-label input {
  accent-color: #22d3ee;
  width: 16px;
  height: 16px;
}

/* Geometry Tools Grid */
.geometry-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.geo-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #ffffff;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-align: center;
}

.geo-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(239, 68, 68, 0.4));
  transform: translateY(-1px);
}

.geo-btn.active {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

/* Filter Buttons */
.filter-opp-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 0;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.filter-opp-btn.active {
  background: #10b981;
  color: #003e52;
}

/* Search Mode Toggle & Search Box */
.search-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(0, 38, 51, 0.6);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid #0a5c77;
  margin-bottom: 6px;
}

.search-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 4px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: inherit;
}

.search-mode-btn:hover {
  color: #ffffff;
}

.search-mode-btn.active,
#search-mode-project.active {
  background: #8ad2d8 !important;
  color: #003e52 !important;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(138, 210, 216, 0.35);
}

.search-mode-btn.active:hover,
#search-mode-project.active:hover {
  background: #a2dfe4 !important;
  color: #002936 !important;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 38, 51, 0.5);
  border: 1px solid #0a5c77;
  border-radius: var(--radius-md);
  padding: 4px;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
}

.search-box input::placeholder {
  color: #64748b;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 8px;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.search-clear-btn:hover {
  color: #ffffff;
}

.search-box button#search-btn,
button#search-btn {
  background: #8ad2d8 !important;
  border: none;
  color: #003e52 !important;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(138, 210, 216, 0.3);
}

.search-box button#search-btn:hover,
button#search-btn:hover {
  background: #a2dfe4 !important;
  color: #002936 !important;
}

/* Project Search Suggestions Dropdown */
.project-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1100;
  background: #034b63;
  border: 1px solid #0a5c77;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 20, 28, 0.7);
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.project-search-dropdown::-webkit-scrollbar {
  width: 5px;
}
.project-search-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.project-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  border-bottom: 1px solid rgba(10, 92, 119, 0.3);
}

.project-search-item:last-child {
  border-bottom: none;
}

.project-search-item:hover, .project-search-item.selected {
  background: rgba(34, 211, 238, 0.16);
  transform: translateX(2px);
}

.project-search-item .psi-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-search-item .psi-meta {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

.project-search-item .psi-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-family: var(--font-code);
  font-weight: 600;
  white-space: nowrap;
}

.project-search-empty {
  padding: 10px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.74rem;
  font-style: italic;
}

.card-search-highlight {
  border-color: #22d3ee !important;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.6) !important;
  background: rgba(34, 211, 238, 0.12) !important;
  animation: pulseCard 1.5s ease-in-out;
}

@keyframes pulseCard {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Preset Chips */
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#preset-chips-container .chip .svg-icon,
.chip .svg-icon {
  margin-right: 0;
  width: 1.05rem;
  height: 1.05rem;
  stroke: #ffffff;
  stroke-width: 2.1;
  flex-shrink: 0;
}

.chip:hover {
  background: var(--btn-hover-bg);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

/* Style Segmented Toggle */
.style-toggle-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(0, 38, 51, 0.5);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid #0a5c77;
}

.style-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 0;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.style-btn.active {
  background: var(--accent-color);
  color: #003e52;
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 8px;
}

.polygon-actions-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #056a8b, #0a84ac);
  color: #ffffff;
  border: 1px solid #0d789e;
  width: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #067c9f, #0c9bc7);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  width: 100%;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary-sm {
  flex: 1;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid #0a5c77;
  color: var(--text-main);
  padding: 6px 8px;
  font-size: 0.73rem;
  border-radius: var(--radius-sm);
}

.btn-secondary-sm:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: #22d3ee;
}

.btn-highlight-export {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-highlight-export:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #34d399;
  color: #ffffff;
}

/* Dynamic Form Field Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  background: rgba(0, 42, 56, 0.55);
  border: 1px solid #0d6380;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 0.84rem;
  font-family: inherit;
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #f59e0b;
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.form-select option {
  background: #003e52;
  color: #ffffff;
}

div#app:nth-of-type(2) > div#attribute-modal:nth-of-type(4) > div:nth-of-type(1) > div:nth-of-type(2) > form#dynamic-attribute-form:nth-of-type(1) > div#dynamic-form-fields:nth-of-type(1) > div:nth-of-type(3) > select#field-Jurisdiction:nth-of-type(1),
select#field-Jurisdiction {
  background: rgba(0, 42, 56, 0.75);
  border: 1px solid #0d6380;
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-weight: 500;
  cursor: pointer;
}

/* Object Inspector Container & Opportunity Cards */
.object-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 210, 216, 0.28) transparent;
}

.object-list-container::-webkit-scrollbar,
#opportunity-list::-webkit-scrollbar {
  width: 5px;
}

.object-list-container::-webkit-scrollbar-track,
#opportunity-list::-webkit-scrollbar-track {
  background: transparent;
}

.object-list-container::-webkit-scrollbar-thumb,
#opportunity-list::-webkit-scrollbar-thumb {
  background: rgba(138, 210, 216, 0.25);
  border-radius: 4px;
}

.object-list-container::-webkit-scrollbar-thumb:hover,
#opportunity-list::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 210, 216, 0.45);
}

.object-card {
  background: rgba(0, 48, 64, 0.6);
  border: 1px solid #0a5c77;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  transition: all 0.2s;
}

.object-card:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.opportunity-card {
  background: rgba(2, 70, 92, 0.6);
  border: 1px solid #0a5c77;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opportunity-card.opp-high {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(3, 75, 99, 0.9));
  border-color: rgba(16, 185, 129, 0.5);
}

.opp-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.opp-title {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.82rem;
}

.opp-score-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

.opp-score-high {
  background: #10b981;
  color: #003e52;
}

.opp-score-med {
  background: #f59e0b;
  color: #003e52;
}

.opp-reason-list {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.opp-connect-btn {
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #22d3ee;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  text-align: center;
}

.opp-connect-btn:hover {
  background: #22d3ee;
  color: #003e52;
}

.object-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.object-type-title {
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.object-coords {
  font-size: 0.7rem;
  font-family: var(--font-code);
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 4px;
}

.object-focus-btn, .object-del-btn {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--accent-color);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.object-del-btn {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.object-del-btn:hover {
  background: #ef4444;
  color: white;
}

/* Modal Overlay */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(0, 30, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow-y: auto;
  background: #034b63;
  border: 1px solid #0a5c77;
  box-shadow: 0 20px 50px rgba(0, 24, 34, 0.6);
}

/* Specific Target for Attribute Form Modal Card */
div#attribute-modal > div.modal-card,
#attribute-modal .modal-card {
  max-width: 500px;
  background: #02384a;
  border: 1px solid #0d7698;
  box-shadow: 0 20px 50px rgba(0, 18, 26, 0.75), 0 0 1px 1px rgba(34, 211, 238, 0.25);
}

div#app:nth-of-type(2) > div#shapefile-spec-modal:nth-of-type(6) > div:nth-of-type(1) {
  max-width: 620px;
  background: #02384a;
  border: 1px solid #0d7698;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 18, 26, 0.75), 0 0 1px 1px rgba(34, 211, 238, 0.25);
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.readonly-field-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.readonly-field-badge .svg-icon {
  width: 11px;
  height: 11px;
  stroke: #38bdf8;
}

.form-input-readonly,
.form-input[readonly],
.form-input:read-only {
  background: rgba(0, 20, 28, 0.75) !important;
  border: 1px solid rgba(13, 99, 128, 0.45) !important;
  color: #7dd3fc !important;
  font-family: var(--font-code, monospace);
  font-size: 0.82rem !important;
  cursor: not-allowed !important;
  user-select: all;
  box-shadow: none !important;
}

.form-input-readonly:focus,
.form-input[readonly]:focus {
  border-color: #0ea5e9 !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3) !important;
}

.form-field-hint {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.3;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.1rem;
  color: #f59e0b;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.input-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-input, .modal-textarea {
  background: rgba(0, 40, 54, 0.55);
  border: 1px solid #0d6380;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: var(--font-code);
  width: 100%;
}

.modal-textarea {
  resize: vertical;
}

/* Leaflet Container & Dark-Themed Popup System */
.leaflet-container {
  font-family: var(--font-family) !important;
  background-color: #003e52 !important;
}

/* Leaflet Popup Shell Overhauls */
.leaflet-popup-content-wrapper {
  background: #034b63 !important;
  color: #f1f5f9 !important;
  border-radius: 12px !important;
  border: 1px solid #0a5c77 !important;
  box-shadow: 0 16px 36px rgba(0, 24, 34, 0.8), 0 0 1px 1px rgba(34, 211, 238, 0.2) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
  min-width: 320px;
  max-width: 395px;
  max-height: 500px;
  overflow-y: auto;
}

.leaflet-popup-content::-webkit-scrollbar {
  width: 5px;
}
.leaflet-popup-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.leaflet-popup-tip-container {
  overflow: visible;
}

.leaflet-popup-tip {
  background: #034b63 !important;
  border: 1px solid #0a5c77 !important;
  box-shadow: 0 8px 16px rgba(0, 24, 34, 0.6) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 10px !important;
  right: 10px !important;
  color: #94a3b8 !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(0, 62, 82, 0.85) !important;
  border: 1px solid #0a5c77 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  z-index: 10;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #ffffff !important;
  background: #ef4444 !important;
  border-color: #ef4444 !important;
}

/* Impact Zones & Opportunity Popup Components */
.iz-popup {
  display: flex;
  flex-direction: column;
  background: #034b63;
  color: #f8fafc;
}

.iz-popup-banner {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #0a5c77;
  position: relative;
}

.iz-popup-banner.banner-high {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18) 0%, rgba(0, 62, 82, 0.4) 100%);
  border-top: 3.5px solid #10b981;
}

.iz-popup-banner.banner-medium {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(0, 62, 82, 0.4) 100%);
  border-top: 3.5px solid #f59e0b;
}

.iz-popup-banner.banner-conflict {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.22) 0%, rgba(0, 62, 82, 0.4) 100%);
  border-top: 3.5px solid #ef4444;
}

.iz-popup-banner.banner-base {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.14) 0%, rgba(0, 62, 82, 0.4) 100%);
  border-top: 3.5px solid #22d3ee;
}

.iz-popup-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  padding-right: 28px;
}

.iz-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.iz-tag-high {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.iz-tag-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.iz-tag-conflict {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.iz-tag-base {
  background: rgba(100, 116, 139, 0.25);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}

.iz-tag-accent {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.iz-popup-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.iz-popup-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.iz-popup-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Key-Value Attribute Cards Grid */
.iz-attr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.iz-attr-card {
  background: rgba(0, 48, 64, 0.6);
  border: 1px solid #0a5c77;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.iz-attr-card.full-width {
  grid-column: span 2;
}

.iz-attr-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.iz-attr-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  word-break: break-word;
}

.iz-attr-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

/* Synergy Score Progress Card */
.iz-score-card {
  background: rgba(0, 48, 64, 0.75);
  border: 1px solid #0a5c77;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iz-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.iz-score-header-label {
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.iz-score-tier-val {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.iz-score-result-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid #0a5c77;
}

.iz-score-result-prefix {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 1px;
}

.iz-score-result-text {
  font-weight: 600;
  word-break: break-word;
}

.iz-score-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.iz-score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.fill-high {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.fill-medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.fill-conflict {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Overlapping Projects List */
.iz-projects-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iz-projects-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iz-project-item {
  background: rgba(0, 48, 64, 0.6);
  border: 1px solid #0a5c77;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iz-project-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.iz-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.iz-project-tag {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.iz-project-tag.asset-road {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.iz-project-tag.asset-water {
  background: rgba(34, 211, 238, 0.15);
  color: #bae6fd;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.iz-project-tag.asset-storm {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Coordination Insights / Recommendations Box */
.iz-insights-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.iz-insights-box.conflict {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.iz-insights-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.iz-insights-title.success {
  color: #34d399;
}

.iz-insights-title.warning {
  color: #f87171;
}

.iz-insights-item {
  font-size: 0.74rem;
  color: #e2e8f0;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.iz-bullet {
  color: #38bdf8;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.2;
}

.iz-insights-box.conflict .iz-bullet {
  color: #f87171;
}

/* Action Button Toolbar */
.iz-actions-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.iz-action-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  text-align: center;
}

.iz-action-btn-primary {
  background: var(--accent-color);
  color: #003e52;
}

.iz-action-btn-primary:hover {
  background: #7dd3fc;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.iz-action-btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.12);
}

.iz-action-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.iz-action-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.iz-action-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Custom Popup Table */
.attr-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 0.74rem;
}

.attr-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.attr-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #0a5c77;
  vertical-align: top;
}

.attr-table td.attr-key {
  font-weight: 700;
  color: #94a3b8;
  width: 38%;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.attr-table td.attr-val {
  color: #f8fafc;
  font-weight: 600;
}

/* Cartographic Opportunity Hotspot Badges & Pills */
.opp-map-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 62, 82, 0.95);
  border: 1.5px solid #10b981;
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 24, 34, 0.5), 0 0 12px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  transform: translate(-50%, -50%);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.opp-map-pill:hover {
  transform: translate(-50%, -55%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 24, 34, 0.6), 0 0 18px rgba(16, 185, 129, 0.6);
  z-index: 1000 !important;
}

.opp-map-pill.pill-high {
  border-color: #10b981;
  color: #a7f3d0;
}

.opp-map-pill.pill-medium {
  border-color: #f59e0b;
  color: #fde68a;
  box-shadow: 0 4px 14px rgba(0, 24, 34, 0.5), 0 0 12px rgba(245, 158, 11, 0.35);
}

.opp-map-pill.pill-conflict {
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 4px 14px rgba(0, 24, 34, 0.5), 0 0 12px rgba(239, 68, 68, 0.35);
}

.opp-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* Cartographic Legend for Opportunity Map */
.carto-legend-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 48, 64, 0.65);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #0a5c77;
}

.carto-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #cbd5e1;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
}

.swatch-high {
  color: #10b981;
  background: rgba(16, 185, 129, 0.35);
}

.swatch-med {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.35);
}

.swatch-conflict {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.35);
}

.swatch-blue {
  color: #0284c7;
  background: rgba(56, 189, 248, 0.35);
}

.swatch-base {
  color: #64748b;
  background: rgba(100, 116, 139, 0.15);
}

.display-mode-selector {
  display: flex;
  gap: 4px;
  background: rgba(0, 38, 51, 0.65);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid #0a5c77;
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.mode-btn.active {
  background: var(--accent-color);
  color: #003e52;
  box-shadow: 0 2px 8px var(--accent-glow);
}

/* Custom Popup Table */
.attr-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.76rem;
}

.attr-table td {
  padding: 3px 6px;
  border-bottom: 1px solid #0a5c77;
}

.attr-table td.attr-key {
  font-weight: 700;
  color: #94a3b8;
  width: 40%;
}

.attr-table td.attr-val {
  color: #f8fafc;
}

/* ==========================================================================
   LANDING PAGE (NON-MAP OVERVIEW VIEW)
   ========================================================================== */

.landing-page-view {
  display: none;
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 990;
  overflow-y: auto;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #004f69 0%, #003e52 55%, #002836 100%);
  color: var(--text-main);
  padding: 0 0 60px 0;
  -webkit-overflow-scrolling: touch;
}

/* Themed scrollbar for Landing Page View with clickable arrow buttons */
div#app:nth-of-type(2) > main#landing-page-view:nth-of-type(1),
#landing-page-view,
.landing-page-view {
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 210, 216, 0.35) rgba(0, 36, 51, 0.6);
}

div#app:nth-of-type(2) > main#landing-page-view:nth-of-type(1)::-webkit-scrollbar,
#landing-page-view::-webkit-scrollbar,
.landing-page-view::-webkit-scrollbar {
  width: 11px;
}

div#app:nth-of-type(2) > main#landing-page-view:nth-of-type(1)::-webkit-scrollbar-track,
#landing-page-view::-webkit-scrollbar-track,
.landing-page-view::-webkit-scrollbar-track {
  background: rgba(0, 32, 44, 0.7);
  border-left: 1px solid rgba(10, 92, 119, 0.35);
}

div#app:nth-of-type(2) > main#landing-page-view:nth-of-type(1)::-webkit-scrollbar-thumb,
#landing-page-view::-webkit-scrollbar-thumb,
.landing-page-view::-webkit-scrollbar-thumb {
  background: rgba(138, 210, 216, 0.28);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

div#app:nth-of-type(2) > main#landing-page-view:nth-of-type(1)::-webkit-scrollbar-thumb:hover,
#landing-page-view::-webkit-scrollbar-thumb:hover,
.landing-page-view::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 210, 216, 0.52);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Arrow Buttons for WebKit Scrollbar */
div#app:nth-of-type(2) > main#landing-page-view:nth-of-type(1)::-webkit-scrollbar-button:single-button:vertical:decrement,
#landing-page-view::-webkit-scrollbar-button:single-button:vertical:decrement,
.landing-page-view::-webkit-scrollbar-button:single-button:vertical:decrement {
  display: block;
  height: 15px;
  background-color: rgba(0, 36, 51, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 5l4-4 4 4' stroke='%238ad2d8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 8px;
  border-left: 1px solid rgba(10, 92, 119, 0.35);
  cursor: pointer;
}

div#app:nth-of-type(2) > main#landing-page-view:nth-of-type(1)::-webkit-scrollbar-button:single-button:vertical:decrement:hover,
#landing-page-view::-webkit-scrollbar-button:single-button:vertical:decrement:hover,
.landing-page-view::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
  background-color: #034b63;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 5l4-4 4 4' stroke='%2338bdf8' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

div#app:nth-of-type(2) > main#landing-page-view:nth-of-type(1)::-webkit-scrollbar-button:single-button:vertical:increment,
#landing-page-view::-webkit-scrollbar-button:single-button:vertical:increment,
.landing-page-view::-webkit-scrollbar-button:single-button:vertical:increment {
  display: block;
  height: 15px;
  background-color: rgba(0, 36, 51, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238ad2d8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 8px;
  border-left: 1px solid rgba(10, 92, 119, 0.35);
  cursor: pointer;
}

div#app:nth-of-type(2) > main#landing-page-view:nth-of-type(1)::-webkit-scrollbar-button:single-button:vertical:increment:hover,
#landing-page-view::-webkit-scrollbar-button:single-button:vertical:increment:hover,
.landing-page-view::-webkit-scrollbar-button:single-button:vertical:increment:hover {
  background-color: #034b63;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2338bdf8' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.landing-page-view.active {
  display: block;
}

.landing-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* Hero Section */
.landing-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #0a5c77;
  box-shadow: 0 20px 40px rgba(0, 24, 34, 0.5);
  margin-bottom: 24px;
  background-color: #003243;
}

.hero-backdrop {
  display: none;
}

div#app:nth-of-type(1) > main#landing-page-view:nth-of-type(1) > div:nth-of-type(1) > section#landing-hero:nth-of-type(1) > div#hero-overlay:nth-of-type(2),
#hero-overlay,
.hero-overlay,
section#landing-hero > div:nth-of-type(2) {
  position: relative;
  z-index: 2;
  padding: 36px 40px 32px 40px;
  background-image: 
    linear-gradient(
      90deg, 
      rgba(0, 62, 82, 0.96) 0%, 
      rgba(0, 62, 82, 0.88) 44%, 
      rgba(0, 62, 82, 0.45) 76%, 
      rgba(0, 62, 82, 0.70) 100%
    ),
    url('/assets/1781818783655.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  div#app:nth-of-type(1) > main#landing-page-view:nth-of-type(1) > div:nth-of-type(1) > section#landing-hero:nth-of-type(1) > div#hero-overlay:nth-of-type(2),
  #hero-overlay,
  .hero-overlay,
  section#landing-hero > div:nth-of-type(2) {
    padding: 24px 18px 20px 18px;
    background-image: 
      linear-gradient(
        180deg, 
        rgba(0, 62, 82, 0.96) 0%, 
        rgba(0, 62, 82, 0.88) 60%, 
        rgba(0, 62, 82, 0.72) 100%
      ),
      url('/assets/1781818783655.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 14px;
  max-width: 920px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.55rem;
  }
}

.hero-lead-text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 860px;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-landing-primary {
  background: linear-gradient(135deg, #056a8b, #0a84ac);
  color: #ffffff;
  border: 1px solid #0d789e;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 62, 82, 0.5);
}

.btn-landing-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 62, 82, 0.7);
  background: linear-gradient(135deg, #067c9f, #0c9bc7);
}

.btn-landing-accent {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.btn-landing-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.6);
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-landing-outline {
  background: rgba(34, 211, 238, 0.08);
  color: #e0f2fe;
  border: 1px solid #0a5c77;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-landing-outline:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: #22d3ee;
  color: #ffffff;
}

/* Section Titles */
.landing-section {
  margin-bottom: 34px;
}

.landing-section-header {
  margin-bottom: 20px;
}

.landing-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-section-sub {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* 3 Core Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.pillar-card {
  background: #034b63;
  border: 1px solid #0a5c77;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 10px 25px rgba(0, 24, 34, 0.35);
}

.pillar-card:hover {
  border-color: #22d3ee;
  transform: translateY(-2px);
}

.pillar-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.pillar-icon.planning { background: rgba(34, 211, 238, 0.18); border: 1px solid rgba(34, 211, 238, 0.4); color: #22d3ee; }
.pillar-icon.opportunity { background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(16, 185, 129, 0.4); color: #10b981; }
.pillar-icon.data-entry { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.4); color: #f59e0b; }

.pillar-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  background: rgba(0, 48, 64, 0.6);
  border: 1px solid #0a5c77;
  padding: 3px 8px;
  border-radius: 4px;
}

.pillar-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.pillar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.pillar-chip {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(0, 48, 64, 0.5);
  border: 1px solid #0a5c77;
  color: #9dc0cc;
  font-weight: 500;
}

.pillar-action-btn {
  margin-top: auto;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #0a5c77;
  background: rgba(34, 211, 238, 0.08);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.pillar-action-btn:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: #22d3ee;
  color: #ffffff;
}

/* Two-Column Field Showcase */
.showcase-card {
  background: #034b63;
  border: 1px solid #0a5c77;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  box-shadow: 0 10px 25px rgba(0, 24, 34, 0.35);
}

@media (max-width: 860px) {
  .showcase-card {
    grid-template-columns: 1fr;
  }
}

.showcase-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 280px;
  background: #003243;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

div#app:nth-of-type(1) > main#landing-page-view:nth-of-type(1) > div:nth-of-type(1) > section#landing-showcase-section:nth-of-type(3) > div#showcase-corridor-card:nth-of-type(1) > div:nth-of-type(1) > img#showcase-field-photo:nth-of-type(1),
#showcase-field-photo,
.showcase-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.showcase-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  background: linear-gradient(to top, rgba(0, 62, 82, 0.96), rgba(0, 62, 82, 0));
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.showcase-body {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #22d3ee;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.showcase-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.showcase-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 14px;
}

/* Notes & Disclaimers Section */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.note-card {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.note-card.confidential {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.note-card.governance {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid #0a5c77;
}

.note-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.note-title {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.note-card.confidential .note-title { color: #f87171; }
.note-card.governance .note-title { color: #22d3ee; }

.note-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

/* Bottom Logos & Partners Section */
.logos-footer-section {
  border-top: 1px solid #0a5c77;
  padding-top: 32px;
  text-align: center;
}

.logos-header-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 18px;
}

.logos-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.logo-card-frame {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.logo-card-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.logo-img-mesa {
  max-height: 52px;
  width: auto;
}

.logo-img-rtpo {
  max-height: 56px;
  width: auto;
}

.participating-agencies-list {
  font-size: 0.78rem;
  color: #9dc0cc;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}

/* Pulse Glow Animation for Highlighting Stakeholder Data Panel */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
  50% { box-shadow: 0 0 25px 5px rgba(34, 211, 238, 0.8); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.pulse-glow {
  animation: pulseGlow 1.2s ease-in-out 2;
  border-color: var(--accent-color) !important;
}

/* ============================================================
   CLEAN MONO-COLOR FLAT SVG ICONS
   Crisp, minimalist, vector styling matching the dark-teal theme
   ============================================================ */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke 0.15s ease, transform 0.15s ease;
}

.svg-icon-fill {
  fill: currentColor;
  stroke: none;
}

.svg-icon-sm {
  width: 0.82rem;
  height: 0.82rem;
  stroke-width: 2.2;
}

.svg-icon-xs {
  width: 0.72rem;
  height: 0.72rem;
  stroke-width: 2.2;
}

.svg-icon-lg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2;
}

.svg-icon-xl {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 2;
}

/* Ensure buttons and badges with SVG icons align cleanly */
.btn .svg-icon,
.geo-btn .svg-icon,
.nav-tab .svg-icon,
.mode-btn .svg-icon,
.filter-opp-btn .svg-icon,
.iz-action-btn .svg-icon,
.badge .svg-icon,
.object-type-title .svg-icon,
.psi-name .svg-icon,
.iz-project-name .svg-icon,
.iz-insights-title .svg-icon,
.iz-project-tag .svg-icon,
.opp-connect-btn .svg-icon {
  margin-right: 5px;
  vertical-align: -0.15em;
}

.object-type-title,
.psi-name,
.iz-project-name,
.iz-insights-title,
.iz-project-tag,
.opp-connect-btn {
  display: inline-flex;
  align-items: center;
}

.pillar-icon .svg-icon {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.note-icon .svg-icon {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

/* Key-Locked Admin Gear Button in Navigation */
.admin-hidden-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(148, 163, 184, 0.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: 6px;
  padding: 0;
}

.admin-hidden-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.admin-hidden-btn .svg-icon {
  width: 17px;
  height: 17px;
  margin: 0;
  color: inherit;
}

.admin-hidden-btn.locked-out {
  display: none !important;
}

/* Jurisdiction and Email tags in Popups & Cards */
.iz-project-tag.iz-tag-jur {
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  font-weight: 600;
}

.iz-project-tag.iz-tag-email {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.iz-project-tag.iz-tag-email:hover {
  background: #10b981;
  color: #003322;
  border-color: #10b981;
}

/* Stakeholder Auth Header Widget */
.auth-header-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #38bdf8;
  padding: 0 10px 0 8px;
  height: 28px;
  line-height: 1;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
  position: relative;
  left: -8px;
  margin-right: 8px;
}

.auth-pill-btn .svg-icon {
  width: 13px;
  height: 13px;
  margin: 0;
  display: block;
  flex-shrink: 0;
}

.auth-pill-btn #auth-status-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.auth-pill-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: #38bdf8;
  color: #f8fafc;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.25);
}

.auth-pill-btn.logged-in {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.auth-pill-btn.logged-in:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
}

/* Simulator fast buttons */
.sim-user-btn {
  transition: all 0.18s ease;
}

.sim-user-btn:hover {
  background: rgba(0, 58, 77, 0.95) !important;
  border-color: #38bdf8 !important;
  transform: translateY(-1px);
}

/* Ownership Tags in Project Popups & Inspection Cards */
.iz-project-tag.iz-tag-owner {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-weight: 700;
}

.iz-project-tag.iz-tag-readonly {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-weight: 500;
}

.ownership-callout {
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ownership-callout.owner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.ownership-callout.readonly {
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #94a3b8;
}

.ownership-callout.admin {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

/* ========================================================
   MESA COUNTY MANDATORY LOGIN SPLASH GATEWAY
   ======================================================== */
#app {
  transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#app.app-blurred {
  filter: blur(20px) brightness(0.5);
  pointer-events: none !important;
  user-select: none !important;
}

.login-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 38, 51, 0.88) 0%, rgba(0, 18, 26, 0.96) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.login-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-gate-card {
  width: 100%;
  max-width: 390px;
  background: rgba(2, 44, 59, 0.96);
  border: 1px solid #0d6380;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 10, 16, 0.85), 0 0 35px rgba(34, 211, 238, 0.15);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: gateCardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gateCardPop {
  0% { transform: scale(0.95) translateY(8px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.login-gate-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(13, 99, 128, 0.45);
}

.login-gate-logo-compact {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-gate-title-group h2 {
  font-size: 1.08rem;
  font-weight: 750;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.2px;
}

.login-gate-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 2px 0 0;
  line-height: 1.3;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate-input-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gate-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gate-field-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.gate-input-wrapper input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: rgba(0, 24, 34, 0.75);
  border: 1px solid #0d6380;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate-input-wrapper input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25);
}

.gate-clear-btn {
  position: absolute;
  right: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.gate-clear-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

.gate-code-input {
  width: 100%;
  padding: 10px;
  font-size: 1.35rem;
  font-family: var(--font-code);
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  background: rgba(0, 24, 34, 0.9);
  border: 2px solid #22d3ee;
  border-radius: 8px;
  color: #38bdf8;
  outline: none;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.22);
}

.gate-submit-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(34, 211, 238, 0.22);
  gap: 6px;
}

.gate-feedback {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.gate-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.gate-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.gate-footer-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
}

.gate-code-banner {
  background: rgba(3, 74, 98, 0.4);
  border: 1px solid #0a5c77;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.74rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.gate-link-btn {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.74rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

/* ========================================== */
/* FLOATING TOAST NOTIFICATION CONTAINER & TOASTS */
/* ========================================== */
.gis-toast-container {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: 90vw;
}

.gis-toast {
  pointer-events: auto;
  min-width: 290px;
  max-width: 480px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 15px rgba(34, 211, 238, 0.2);
  backdrop-filter: blur(12px);
  background: rgba(3, 38, 50, 0.96);
  border: 1px solid #0d6380;
  color: #f1f5f9;
  animation: toastSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.2s, transform 0.2s;
}

.gis-toast.fade-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

.gis-toast-info {
  border-color: #0284c7;
  background: linear-gradient(135deg, rgba(3, 44, 58, 0.96), rgba(8, 28, 36, 0.96));
}

.gis-toast-warning {
  border-color: rgba(245, 158, 11, 0.75);
  background: linear-gradient(135deg, rgba(66, 32, 6, 0.96), rgba(30, 20, 10, 0.96));
  color: #fef3c7;
}

.gis-toast-success {
  border-color: rgba(16, 185, 129, 0.75);
  background: linear-gradient(135deg, rgba(6, 44, 30, 0.96), rgba(4, 30, 22, 0.96));
  color: #d1fae5;
}

.gis-toast-error {
  border-color: rgba(239, 68, 68, 0.75);
  background: linear-gradient(135deg, rgba(50, 12, 12, 0.96), rgba(30, 8, 8, 0.96));
  color: #fee2e2;
}

.gis-toast-msg {
  flex: 1;
  line-height: 1.35;
}

.gis-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}

.gis-toast-close:hover {
  color: #ffffff;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================== */
/* PROJECT POINT CUSTOM SYMBOLOGY (#8ad2d8) */
/* ========================================== */
.gis-point-marker-div {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.project-point-symbology {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  filter: drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.55));
}

.project-point-symbology:hover {
  transform: scale(1.22);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 5px #8ad2d8);
  z-index: 99999 !important;
}

.gis-point-marker-div.active-selected .project-point-symbology {
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px #8ad2d8) drop-shadow(0 0 2px #ffffff);
}

/* ========================================== */
/* GOOGLE MAPS STYLE MAP NAVIGATION TOOLS */
/* ========================================== */
.leaflet-control-locate-container {
  margin-bottom: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  border-radius: 6px !important;
  overflow: hidden;
  border: 1px solid #0a5c77 !important;
}

.leaflet-control-locate-btn {
  background-color: #022330 !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  border: none !important;
}

.leaflet-control-locate-btn:hover {
  background-color: #04384c !important;
  border-color: #8ad2d8 !important;
  filter: drop-shadow(0 0 8px rgba(138, 210, 216, 0.65));
}

.leaflet-control-locate-btn:active {
  background-color: #054961 !important;
  transform: scale(0.95);
}

.leaflet-control-locate-btn.locating {
  animation: pulseLocate 1.1s infinite ease-in-out;
}

@keyframes pulseLocate {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.12); opacity: 1; filter: drop-shadow(0 0 10px #8ad2d8); }
  100% { transform: scale(1); opacity: 0.9; }
}

/* Nav Tools Cluster: Leaflet Zoom Controls */
.leaflet-control-zoom.leaflet-bar {
  border: 1px solid #0a5c77 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  border-radius: 6px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background-color: #022330 !important;
  color: #8ad2d8 !important;
  border-bottom: 1px solid #0a5c77 !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: background-color 0.15s, color 0.15s;
}

.leaflet-control-zoom a:hover {
  background-color: #04384c !important;
  color: #ffffff !important;
}

/* ========================================== */
/* MINIMAL DIVISION: DATA INGESTION & INVENTORY */
/* ========================================== */
.sidebar-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px 0;
  padding: 0 4px;
}

.sidebar-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 210, 216, 0.35), rgba(255, 255, 255, 0.08), transparent);
}

.sidebar-divider-pill {
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  font-weight: 700;
  text-transform: uppercase;
  color: #8ad2d8;
  opacity: 0.8;
}

#section-inputted-plans {
  margin-top: 2px;
}

/* ==========================================================================
   ARCGIS ONLINE STYLE MAP LEGEND WIDGET & POPUP WINDOW
   ========================================================================== */
.arcgis-legend-widget {
  position: absolute;
  top: 92px;
  right: 20px;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.landing-page-view.active ~ .arcgis-legend-widget {
  display: none !important;
}

.arcgis-legend-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  background-color: #022330;
  border: 1px solid #0a5c77;
  border-radius: 6px;
  color: #8ad2d8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.arcgis-legend-btn:hover {
  background-color: #04384c;
  border-color: #8ad2d8;
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(138, 210, 216, 0.65));
}

.arcgis-legend-btn.active {
  background-color: #07475e;
  border-color: #8ad2d8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(138, 210, 216, 0.45);
}

.arcgis-legend-window {
  pointer-events: auto;
  margin-top: 8px;
  width: 324px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 165px);
  display: flex;
  flex-direction: column;
  background: rgba(1, 32, 44, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #0a5c77;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(138, 210, 216, 0.25);
  animation: legendPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
  overflow: hidden;
}

.arcgis-legend-window.hidden {
  display: none !important;
}

@keyframes legendPopIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.legend-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 24, 35, 0.9);
  border-bottom: 1px solid #0a5c77;
}

.legend-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.legend-header-title svg {
  color: #8ad2d8;
}

.legend-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.legend-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.legend-window-body {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legend-window-body::-webkit-scrollbar {
  width: 5px;
}

.legend-window-body::-webkit-scrollbar-thumb {
  background: rgba(138, 210, 216, 0.25);
  border-radius: 3px;
}

.legend-layer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-layer-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8ad2d8;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(10, 92, 119, 0.55);
}

.legend-layer-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #8ad2d8;
  box-shadow: 0 0 6px #8ad2d8;
}

.legend-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.legend-swatch-box {
  width: 36px;
  min-width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 18, 27, 0.6);
  border: 1px solid rgba(10, 92, 119, 0.45);
  border-radius: 4px;
}

.legend-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.legend-item-name {
  font-size: 0.77rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}

.legend-item-desc {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.32;
}

.legend-window-footer {
  padding: 7px 14px;
  background: rgba(0, 15, 23, 0.85);
  border-top: 1px solid rgba(10, 92, 119, 0.45);
  font-size: 0.62rem;
  color: #64748b;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.text-emerald {
  color: #34d399 !important;
}

.text-amber {
  color: #fbbf24 !important;
}

.text-rose {
  color: #f87171 !important;
}

/* ==========================================================================
   ARCGIS ONLINE STYLE FEATURE HIGHLIGHT HALO
   ========================================================================== */
.arcgis-halo-point,
.arcgis-halo-line,
.arcgis-halo-poly {
  pointer-events: none;
  animation: arcgisHaloFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes arcgisHaloFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.arcgis-halo-point path,
.arcgis-halo-point circle {
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.75));
}

.arcgis-halo-line path {
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.7));
}

.arcgis-halo-poly path {
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
}
