body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }

/* Dark popup styling */
.maplibregl-popup-content {
  background: #1a1a1a;
  color: #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-height: 300px;
  max-width: 400px;
  overflow-y: auto;
  position: relative;
}
.maplibregl-popup-close-button {
  color: #e0e0e0;
  font-size: 20px;
  padding: 2px 6px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  background: #1a1a1a;
}
.maplibregl-popup-close-button:hover {
  background: #333;
}
.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: #1a1a1a;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: #1a1a1a;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: #1a1a1a;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: #1a1a1a;
}

.maplibregl-ctrl-inspect_popup {
  color: #e0e0e0;
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 10px;
  padding-right: 20px;
}

.maplibregl-ctrl-inspect_feature:not(:last-child) {
  border-bottom: 1px solid #444;
}

.maplibregl-ctrl-inspect_layer:before {
  content: '#';
}

.maplibregl-ctrl-inspect_layer {
  display: block;
  font-weight: bold;
}

.maplibregl-ctrl-inspect_property {
  display: table-row;
}

.maplibregl-ctrl-inspect_property-value {
  display: table-cell;
}

.maplibregl-ctrl-inspect_property-name {
  display: table-cell;
  padding-right: 10px;
}
.maplibregl-ctrl-inspect {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333333' preserveAspectRatio='xMidYMid meet' viewBox='-10 -10 60 60'%3E%3Cg%3E%3Cpath d='m15 21.6q0-2 1.5-3.5t3.5-1.5 3.5 1.5 1.5 3.5-1.5 3.6-3.5 1.4-3.5-1.4-1.5-3.6z m18.4 11.1l-6.4-6.5q1.4-2.1 1.4-4.6 0-3.4-2.5-5.8t-5.9-2.4-5.9 2.4-2.5 5.8 2.5 5.9 5.9 2.5q2.4 0 4.6-1.4l7.4 7.4q-0.9 0.6-2 0.6h-20q-1.3 0-2.3-0.9t-1.1-2.3l0.1-26.8q0-1.3 1-2.3t2.3-0.9h13.4l10 10v19.3z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}
.maplibregl-ctrl-hover-popup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: none;
  background: white;
  cursor: pointer;
}
.maplibre-ctrl-styles-expanded {
  display: flex;
}

.maplibre-ctrl-styles-expanded button {
  width: auto;
  padding: 0 8px;
}

.maplibregl-ctrl-group.maplibre-ctrl-styles-expanded button {
  border-radius: 0;
}

.maplibregl-ctrl-group.maplibre-ctrl-styles-expanded button:first-child {
  border-radius: 4px 0 0 4px;
}

.maplibregl-ctrl-group.maplibre-ctrl-styles-expanded button:last-child {
  border-radius: 0 4px 4px 0;
}

.maplibre-ctrl-styles-expanded button+button {
  border: none;
}

.maplibre-ctrl-styles-expanded button.-active {
  background: rgba(0, 0, 0, 0.05);
}

/* Viewer component styles (moved from viewer.html) */
/* Global geocoder styles - only for non-sidebar usage */
.maplibregl-ctrl-geocoder:not(.sidebar-geocoder) {
  width: 200px;
  max-width: 200px;
  font-size: 11px;
}
.maplibregl-ctrl-geocoder:not(.sidebar-geocoder) input {
  font-size: 11px;
  padding: 4px 8px;
  height: 28px;
}
.maplibregl-ctrl-geocoder--icon-search {
  display: none;
}
.maplibregl-ctrl-geocoder--button {
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  margin: auto !important;
}
.maplibregl-ctrl-group select {
  padding: 3px 4px !important;
  font-size: 10px !important;
  max-width: 140px !important;
}
.maplibregl-ctrl-source-panel {
  background: white;
  border-radius: 4px;
  min-width: 300px;
  max-width: 400px;
  max-height: calc(60vh - 60px);
  overflow: visible;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
/* Mobile responsive styles */
@media (max-width: 480px) {
  .maplibregl-ctrl-geocoder {
    width: 180px;
    max-width: 180px;
    font-size: 12px;
  }
  .maplibregl-ctrl-geocoder input {
    font-size: 12px;
    padding: 4px 8px;
    height: 28px;
  }
  .maplibregl-ctrl-source-panel {
    min-width: 200px;
    max-width: 240px;
    max-height: calc(55vh - 50px);
  }
  .panel-header {
    padding: 6px 10px;
    min-height: 32px;
  }
  .panel-header h3 {
    font-size: 12px;
  }
  .panel-content {
    padding: 10px;
  }
  .search-box input {
    padding: 6px;
    font-size: 11px;
  }
  .category-filter {
    font-size: 9px;
    padding: 3px 8px;
  }
  .source-option {
    font-size: 10px;
  }
  .filter-title {
    font-size: 10px;
  }
  .layers-heading {
    font-size: 10px;
  }
  .category-section h4 {
    font-size: 11px;
  }
  .selected-source-item {
    font-size: 10px;
    padding: 3px 6px;
  }
}
.maplibregl-ctrl-source-panel.collapsed {
  min-width: auto;
  max-height: none;
  height: auto;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  user-select: none;
  min-height: 28px;
  flex-shrink: 0;
}
.panel-header:hover {
  background: #efefef;
}
.maplibregl-ctrl-source-panel.collapsed .panel-header {
  border-bottom: none;
}
.panel-header h3 {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: bold;
  margin-right: 10px;
}
.toggle-icon {
  font-size: 12px;
  color: #666;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.maplibregl-ctrl-source-panel.collapsed .toggle-icon {
  transform: rotate(-90deg);
}
.panel-content {
  padding: 15px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.maplibregl-ctrl-source-panel.collapsed .panel-content {
  display: none;
}
.search-box {
  margin-bottom: 10px;
}
.search-box input {
  width: 100%;
  padding: 8px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
}
.search-box input:focus {
  outline: none;
  border-color: #4a9eff;
}
.filter-section {
  margin-bottom: 10px;
}
.filter-title {
  font-size: 11px;
  color: #666;
  margin-bottom: 5px;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}
.filter-title:hover {
  color: #4a9eff;
}
.filter-toggle-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
}
.filter-section.collapsed .filter-toggle-icon {
  transform: rotate(-90deg);
}
.category-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  max-height: 120px;
  overflow-y: auto;
}
.filter-section.collapsed .category-filters {
  display: none;
}
.category-filter {
  font-size: 9px;
  padding: 2px 7px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: capitalize;
  font-family: 'Open Sans', sans-serif;
}
.category-filter:hover {
  border-color: #4a9eff;
  color: #4a9eff;
}
.category-filter.active {
  background: rgba(74, 158, 255, 0.2);
  border-color: #4a9eff;
  color: #4a9eff;
}
.category-count {
  opacity: 0.7;
  font-size: 9px;
}
.layers-heading {
  font-size: 11px;
  color: #666;
  margin: 10px 0 5px 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
}
.category-section {
  margin-bottom: 15px;
}
.category-section h4 {
  margin: 0 0 5px 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #666;
}
.source-option {
  display: block;
  margin: 3px 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
}
.source-option input {
  margin-right: 5px;
}
.source-option label {
  cursor: pointer;
}
.selected-sources-list {
  margin: 10px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}
.selected-sources-heading {
  font-size: 11px;
  font-weight: bold;
  color: #666;
  margin-bottom: 5px;
  font-family: 'Open Sans', sans-serif;
}
.selected-sources-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.selected-source-item {
  font-size: 11px;
  padding: 4px 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #333;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.source-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.source-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remove-source-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.remove-source-btn:hover {
  background: #ffebee;
  color: #d32f2f;
}
.remove-source-btn:active {
  background: #ffcdd2;
}
.no-results {
  text-align: center;
  color: #999;
  padding: 20px;
  font-size: 11px;
  font-family: 'Open Sans', sans-serif;
}
/* Download Panel Styles */
.maplibregl-ctrl-download-panel {
  background: white;
  border-radius: 4px;
  min-width: 250px;
  max-width: 350px;
  max-height: calc(45vh - 40px);
  overflow: visible;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.maplibregl-ctrl-download-panel.collapsed {
  min-width: auto;
  max-height: none;
  height: auto;
}
.maplibregl-ctrl-download-panel.collapsed .toggle-icon {
  transform: rotate(-90deg);
}
.maplibregl-ctrl-download-panel.collapsed .panel-content {
  display: none;
}
.maplibregl-ctrl-download-panel .panel-content {
  padding: 10px;
  overflow-y: auto;
  overflow-x: visible;
  flex: 1;
  min-height: 120px;
}
.download-source-dropdown {
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 10px;
}
.download-source-dropdown:focus {
  outline: none;
  border-color: #4a9eff;
}
.download-source-dropdown-container {
  margin-bottom: 10px;
}
.custom-dropdown {
  position: relative;
  font-family: 'Open Sans', sans-serif;
}
.dropdown-selected {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: white;
  cursor: pointer;
  font-size: 11px;
}
.dropdown-selected:hover {
  border-color: #4a9eff;
}
.dropdown-label {
  color: #aaa;
  font-size: 12px;
  margin-bottom: 4px;
}
.dropdown-placeholder {
  color: #999;
  flex: 1;
}
.dropdown-arrow {
  font-size: 10px;
  color: #666;
  margin-left: auto;
}
.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 3px 3px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 100;
}
.dropdown-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 11px;
}
.dropdown-option:hover {
  background: #f0f0f0;
}
.no-sources-message {
  text-align: center;
  color: #999;
  padding: 15px;
  font-size: 11px;
  font-family: 'Open Sans', sans-serif;
}
.download-links-container {
  font-family: 'Open Sans', sans-serif;
}
.loading-message {
  text-align: center;
  color: #666;
  padding: 10px;
  font-size: 11px;
}
.error-message {
  text-align: center;
  color: #d32f2f;
  padding: 10px;
  font-size: 11px;
}
.partitions-heading {
  font-size: 11px;
  font-weight: bold;
  color: #666;
  margin-bottom: 8px;
}
.source-info-container {
  margin-bottom: 4px;
}
.source-info-section {
  margin-bottom: 6px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #f9f9f9;
}
.source-info-heading {
  font-size: 11px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
}
.source-info-heading:hover {
  color: #4a9eff;
}
.source-info-toggle {
  font-size: 10px;
  transition: transform 0.3s ease;
}
.source-info-section.collapsed .source-info-toggle {
  transform: rotate(-90deg);
}
.source-info-content {
  font-size: 11px;
  color: #555;
  padding: 4px 8px 8px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.source-info-content a {
  color: #4a9eff;
}
.source-info-content p {
  margin: 0;
}
.source-info-content ul {
  margin: 2px 0 2px 16px;
  padding: 0;
}
.source-info-content li {
  margin: 1px 0;
}
.source-info-section.collapsed .source-info-content {
  display: none;
}
.download-section {
  margin-bottom: 8px;
}
.download-section-heading {
  font-size: 11px;
  font-weight: bold;
  color: #666;
  margin-bottom: 5px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}
.download-section-heading:hover {
  color: #4a9eff;
}
.download-section-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.download-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ddd;
  color: #666;
  font-size: 10px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
}
.download-help-btn:hover {
  background: #4a9eff;
  color: white;
  text-decoration: none;
}
.download-toggle-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
}
.download-section.collapsed .download-toggle-icon {
  transform: rotate(-90deg);
}
.download-section.collapsed .partitions-list {
  display: none;
}
.partitions-list {
  max-height: 125px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #f9f9f9;
}
.download-link-item {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.download-link-item:last-child {
  border-bottom: none;
}
.download-link {
  color: #1976d2;
  text-decoration: none;
  font-size: 10px;
  word-break: break-all;
  flex: 1;
}
.download-link:hover {
  text-decoration: underline;
}
.file-size {
  font-size: 10px;
  color: #666;
  flex-shrink: 0;
  min-width: 45px;
  text-align: right;
}
.file-size.loading::after {
  content: '...';
  animation: ellipsis 1.2s infinite;
}
@keyframes ellipsis {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}
.copy-url-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 3px;
  flex-shrink: 0;
}
.copy-url-btn:hover {
  background: #e0e0e0;
}
.bbox-display {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 11px;
  color: #666;
}
.bbox-display code {
  display: block;
  margin-top: 4px;
  padding: 4px 6px;
  background: #f0f0f0;
  border-radius: 3px;
  font-family: monospace;
  font-size: 10px;
  word-break: break-all;
  user-select: all;
}
.bbox-label {
  color: #888;
}
/* Data extents checkbox styles */
.extents-checkbox-container {
  margin: 8px 0;
  padding: 6px 0;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.extents-checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.extents-checkbox-label {
  font-size: 11px;
  color: #555;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.extents-checkbox {
  accent-color: #ff9800;
  cursor: pointer;
}
.extents-status {
  font-size: 10px;
  color: #999;
  margin-left: auto;
}
/* Partial download section styles */
.partial-download-section {
  margin-top: 10px;
  border-top: 1px solid #e0e0e0;
  padding-top: 8px;
}
.partial-download-section.collapsed .partial-download-content {
  display: none;
}
.partial-download-content {
  padding: 8px 0;
}
.partial-bbox {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 10px;
}
.partial-format-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.partial-format-label {
  font-size: 11px;
  color: #666;
  font-family: 'Open Sans', sans-serif;
}
.partial-format-select {
  flex: 1;
  padding: 5px 8px;
  font-size: 11px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  background: white;
}
.partial-format-select:focus {
  outline: none;
  border-color: #4a9eff;
}
.partial-format-select:disabled {
  background: #f5f5f5;
  color: #999;
}
.partial-memory-slider {
  flex: 1;
  cursor: pointer;
}
.partial-memory-value {
  min-width: 55px;
  text-align: right;
  font-size: 12px;
  color: #555;
}
.partial-buttons-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.partial-start-btn, .partial-cancel-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 11px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  transition: background 0.2s;
}
.partial-start-btn {
  background: #1976d2;
  color: white;
}
.partial-start-btn:hover:not(:disabled) {
  background: #1e88e5 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.partial-start-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.partial-cancel-btn {
  background: #d32f2f;
  color: white;
}
.partial-cancel-btn:hover {
  background: #ef5350 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.partial-progress-container {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 8px;
}
.partial-download-info {
  font-size: 12px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.partial-download-info-detail {
  display: block;
  font-size: 11px;
  color: #777;
}
.partial-progress-bar-outer {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.partial-progress-bar-inner {
  height: 100%;
  background: #4caf50;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.partial-status-text {
  font-size: 10px;
  color: #666;
  font-family: 'Open Sans', sans-serif;
  word-break: break-word;
}
.partial-status-text.error {
  color: #d32f2f;
}
/* Mobile responsive styles for download panel */
@media (max-width: 480px) {
  .maplibregl-ctrl-download-panel {
    min-width: 180px;
    max-width: 220px;
    max-height: calc(35vh - 30px);
  }
  .maplibregl-ctrl-download-panel .panel-content {
    padding: 8px;
  }
  .download-source-dropdown {
    font-size: 10px;
    padding: 5px 6px;
  }
  .no-sources-message {
    font-size: 10px;
    padding: 10px;
  }
  .partitions-list {
    max-height: 100px;
  }
  .download-link {
    font-size: 9px;
  }
}
/* Sidebar styles */
.sidebar-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  pointer-events: auto;
}
.sidebar-icons {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.sidebar-icon-btn:last-child {
  border-bottom: none;
}
.sidebar-icon-btn:hover {
  background: #f0f0f0;
}
.sidebar-icon-btn.active {
  background: #e3f2fd;
  color: #1976d2;
}
.sidebar-panels {
  margin-left: 8px;
  flex-shrink: 0;
}
.sidebar-panel {
  background: white;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 100px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Geocoder panel styles */
.sidebar-panel.geocoder-panel {
  width: 250px;
  padding: 0;
  overflow: visible;
}
.sidebar-panel.geocoder-panel .maplibregl-ctrl-geocoder {
  box-shadow: none !important;
  width: 250px !important;
  max-width: 250px !important;
  min-width: 0 !important;
  font-size: 12px;
  margin: 0 !important;
}
.sidebar-panel.geocoder-panel .maplibregl-ctrl-geocoder input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-size: 12px;
  padding: 8px 10px !important;
  height: 36px;
  border: none !important;
  border-bottom: 3px solid #1976d2 !important;
  border-radius: 0 !important;
  background: #f5f5f5 !important;
}
.sidebar-panel.geocoder-panel .maplibregl-ctrl-geocoder--button {
  display: none !important;
}
.sidebar-panel.geocoder-panel .maplibregl-ctrl-geocoder--suggestions-wrapper {
  position: absolute;
  left: 0;
  right: auto;
  width: 300px;
  max-width: 300px;
}
.sidebar-panel.geocoder-panel .maplibregl-ctrl-geocoder .suggestions {
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  min-width: 0;
  max-width: 300px;
  max-height: 250px;
  overflow-x: auto;
  overflow-y: auto;
}
.sidebar-panel.geocoder-panel .maplibregl-ctrl-geocoder .suggestions li {
  white-space: nowrap;
}
.sidebar-panel.geocoder-panel .maplibregl-ctrl-geocoder .suggestions li a {
  display: block;
  white-space: nowrap;
  min-width: max-content;
}
/* Base layer panel styles */
.sidebar-panel.base-layer-panel {
  width: 180px;
  padding: 10px;
}
.base-layer-panel .panel-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.base-layer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 300px;
  overflow-y: auto;
}
.base-layer-option {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: #333;
  transition: background 0.2s;
}
.base-layer-option:hover {
  background: #f5f5f5;
}
.base-layer-option.active {
  background: #e3f2fd;
  color: #1976d2;
}
.base-layer-option input[type="radio"] {
  margin-right: 8px;
}
/* Mobile responsive styles for sidebar */
@media (max-width: 480px) {
  .sidebar-container {
    top: 5px;
    left: 5px;
  }
  .sidebar-icon-btn {
    width: 32px;
    height: 32px;
  }
  .sidebar-icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .sidebar-panels {
    margin-left: 5px;
  }
  .sidebar-panel {
    max-height: calc(100vh - 80px);
  }
  .sidebar-panel.geocoder-panel {
    min-width: 200px;
  }
  .sidebar-panel.base-layer-panel {
    width: 160px;
    padding: 8px;
  }
}
