/**
 * MapLibre GL Components - Common Styles
 */

/* Base control styling to match MapLibre GL controls */
.maplibre-gl-colorbar,
.maplibre-gl-legend,
.maplibre-gl-html-control {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  pointer-events: auto;
}

.maplibre-gl-colorbar *,
.maplibre-gl-legend *,
.maplibre-gl-html-control * {
  box-sizing: border-box;
}

/* Scrollbar styling */
.maplibre-gl-legend-content::-webkit-scrollbar,
.maplibre-gl-colorbar::-webkit-scrollbar,
.maplibre-gl-html-control::-webkit-scrollbar {
  width: 6px;
}

.maplibre-gl-legend-content::-webkit-scrollbar-track,
.maplibre-gl-colorbar::-webkit-scrollbar-track,
.maplibre-gl-html-control::-webkit-scrollbar-track {
  background: transparent;
}

.maplibre-gl-legend-content::-webkit-scrollbar-thumb,
.maplibre-gl-colorbar::-webkit-scrollbar-thumb,
.maplibre-gl-html-control::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.maplibre-gl-legend-content::-webkit-scrollbar-thumb:hover,
.maplibre-gl-colorbar::-webkit-scrollbar-thumb:hover,
.maplibre-gl-html-control::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
/**
 * Colorbar Component Styles
 */

.maplibre-gl-colorbar {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  padding: 8px;
}

.maplibre-gl-colorbar-label {
  font-weight: 600;
  text-align: center;
}

.maplibre-gl-colorbar-bar-wrapper {
  display: flex;
  align-items: stretch;
}

.maplibre-gl-colorbar-bar {
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.maplibre-gl-colorbar-ticks {
  display: flex;
  justify-content: space-between;
}

.maplibre-gl-colorbar-tick {
  white-space: nowrap;
}

/* Horizontal orientation */
.maplibre-gl-colorbar.horizontal {
  flex-direction: column;
}

.maplibre-gl-colorbar.horizontal .maplibre-gl-colorbar-bar-wrapper {
  flex-direction: column;
}

.maplibre-gl-colorbar.horizontal .maplibre-gl-colorbar-ticks {
  flex-direction: row;
  margin-top: 4px;
}

/* Vertical orientation */
.maplibre-gl-colorbar.vertical {
  flex-direction: row;
}

.maplibre-gl-colorbar.vertical .maplibre-gl-colorbar-bar-wrapper {
  flex-direction: row;
}

.maplibre-gl-colorbar.vertical .maplibre-gl-colorbar-ticks {
  flex-direction: column-reverse;
  margin-left: 4px;
}

.maplibre-gl-colorbar.vertical .maplibre-gl-colorbar-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
/**
 * Legend Component Styles
 */

.maplibre-gl-legend {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.maplibre-gl-legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.maplibre-gl-legend-title {
  font-weight: 600;
}

.maplibre-gl-legend-toggle {
  cursor: pointer;
  user-select: none;
}

.maplibre-gl-legend-content {
  overflow-y: auto;
}

.maplibre-gl-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.maplibre-gl-legend-swatch {
  flex-shrink: 0;
  display: inline-block;
}

.maplibre-gl-legend-swatch-square {
  border-radius: 2px;
}

.maplibre-gl-legend-swatch-circle {
  border-radius: 50%;
}

.maplibre-gl-legend-swatch-line {
  border-radius: 0;
}

.maplibre-gl-legend-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/**
 * HtmlControl Component Styles
 */

.maplibre-gl-html-control {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.maplibre-gl-html-control-content {
  overflow: hidden;
}

/* Common utility styles for HTML content */
.maplibre-gl-html-control-content h1,
.maplibre-gl-html-control-content h2,
.maplibre-gl-html-control-content h3,
.maplibre-gl-html-control-content h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 600;
}

.maplibre-gl-html-control-content p {
  margin-top: 0;
  margin-bottom: 8px;
}

.maplibre-gl-html-control-content p:last-child {
  margin-bottom: 0;
}

.maplibre-gl-html-control-content ul,
.maplibre-gl-html-control-content ol {
  margin-top: 0;
  margin-bottom: 8px;
  padding-left: 20px;
}

.maplibre-gl-html-control-content a {
  color: #4a90d9;
  text-decoration: none;
}

.maplibre-gl-html-control-content a:hover {
  text-decoration: underline;
}

.maplibre-gl-html-control-content img {
  max-width: 100%;
  height: auto;
}

.maplibre-gl-html-control-content table {
  border-collapse: collapse;
  width: 100%;
}

.maplibre-gl-html-control-content th,
.maplibre-gl-html-control-content td {
  border: 1px solid #ddd;
  padding: 4px 8px;
  text-align: left;
}

.maplibre-gl-html-control-content th {
  background-color: #f5f5f5;
  font-weight: 600;
}
/**
 * Basemap Control Styles
 */

.maplibre-gl-basemap {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Icon button for collapsed state */
.maplibre-gl-basemap-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  transition: color 0.15s;
}

.maplibre-gl-basemap-icon-button:hover {
  color: #0078d7;
}

.maplibre-gl-basemap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.maplibre-gl-basemap-title {
  font-weight: 600;
}

.maplibre-gl-basemap-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
}

.maplibre-gl-basemap-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.maplibre-gl-basemap-content {
  overflow-y: auto;
}

.maplibre-gl-basemap-search {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: inherit;
  box-sizing: border-box;
  outline: none;
}

.maplibre-gl-basemap-search:focus {
  border-color: #0078d7;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.2);
}

/* List mode */
.maplibre-gl-basemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.maplibre-gl-basemap-group {
  font-weight: 600;
  padding: 8px 0 4px;
  color: #666;
  font-size: 0.9em;
  border-top: 1px solid #eee;
}

.maplibre-gl-basemap-group:first-child {
  border-top: none;
  padding-top: 0;
}

.maplibre-gl-basemap-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.15s;
}

.maplibre-gl-basemap-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.maplibre-gl-basemap-item--selected {
  background: rgba(0, 120, 215, 0.1);
}

.maplibre-gl-basemap-item--selected:hover {
  background: rgba(0, 120, 215, 0.15);
}

.maplibre-gl-basemap-item-radio {
  margin-right: 8px;
  cursor: pointer;
}

/* Gallery mode */
.maplibre-gl-basemap-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
}

.maplibre-gl-basemap-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.15s;
}

.maplibre-gl-basemap-gallery-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.maplibre-gl-basemap-gallery-item--selected {
  background: rgba(0, 120, 215, 0.1);
  outline: 2px solid #0078d7;
}

.maplibre-gl-basemap-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
}

.maplibre-gl-basemap-name {
  margin-top: 4px;
  font-size: 0.75em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70px;
}

/* Dropdown mode */
.maplibre-gl-basemap-dropdown {
  position: relative;
}

.maplibre-gl-basemap-dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-align: left;
}

.maplibre-gl-basemap-dropdown-button:hover {
  border-color: #ccc;
}

.maplibre-gl-basemap-dropdown-button:focus {
  outline: none;
  border-color: #0078d7;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.2);
}

.maplibre-gl-basemap-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 4px;
}

/* Loading and error states */
.maplibre-gl-basemap-loading {
  padding: 20px;
  text-align: center;
  color: #666;
}

.maplibre-gl-basemap-error {
  padding: 10px;
  color: #d32f2f;
  font-size: 0.9em;
}

/* API key badge */
.maplibre-gl-basemap-apikey-badge {
  font-size: 0.7em;
  background: #ff9800;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

/* Scrollbar styling for the dropdown menu and list */
.maplibre-gl-basemap-dropdown-menu::-webkit-scrollbar,
.maplibre-gl-basemap-list::-webkit-scrollbar,
.maplibre-gl-basemap-gallery::-webkit-scrollbar {
  width: 6px;
}

.maplibre-gl-basemap-dropdown-menu::-webkit-scrollbar-track,
.maplibre-gl-basemap-list::-webkit-scrollbar-track,
.maplibre-gl-basemap-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.maplibre-gl-basemap-dropdown-menu::-webkit-scrollbar-thumb,
.maplibre-gl-basemap-list::-webkit-scrollbar-thumb,
.maplibre-gl-basemap-gallery::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.maplibre-gl-basemap-dropdown-menu::-webkit-scrollbar-thumb:hover,
.maplibre-gl-basemap-list::-webkit-scrollbar-thumb:hover,
.maplibre-gl-basemap-gallery::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/**
 * MapLibre GL Components - Terrain Control Styles
 */

/* Base terrain control styling */
.maplibre-gl-terrain {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  pointer-events: auto;
}

.maplibre-gl-terrain * {
  box-sizing: border-box;
}

/* Toggle button - matches MapLibre GL native controls */
.maplibre-gl-terrain-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  transition: color 0.15s ease, background-color 0.15s ease;
  border-radius: 4px;
}

.maplibre-gl-terrain-button:hover {
  color: #0078d7;
  background: rgba(0, 120, 215, 0.1);
}

.maplibre-gl-terrain-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.4);
}

.maplibre-gl-terrain-button:focus:not(:focus-visible) {
  box-shadow: none;
}

/* Active state when terrain is enabled */
.maplibre-gl-terrain-button--active {
  color: #0078d7;
  background: rgba(0, 120, 215, 0.15);
}

.maplibre-gl-terrain-button--active:hover {
  background: rgba(0, 120, 215, 0.25);
}

/* Icon sizing */
.maplibre-gl-terrain-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
/**
 * SearchControl Component Styles
 */

.maplibre-gl-search {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.maplibre-gl-search-toggle {
  transition: color 0.15s ease;
}

.maplibre-gl-search-toggle:hover {
  color: #0078d7 !important;
}

.maplibre-gl-search-input-wrapper {
  border-bottom: none;
}

.maplibre-gl-search-input::placeholder {
  color: #999;
}

.maplibre-gl-search-input:focus {
  outline: none;
}

.maplibre-gl-search-clear:hover,
.maplibre-gl-search-collapse:hover {
  color: #333 !important;
}

.maplibre-gl-search-loader svg {
  animation: maplibre-gl-search-spin 1s linear infinite;
}

@keyframes maplibre-gl-search-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.maplibre-gl-search-results {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.maplibre-gl-search-results::-webkit-scrollbar {
  width: 6px;
}

.maplibre-gl-search-results::-webkit-scrollbar-track {
  background: transparent;
}

.maplibre-gl-search-results::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.maplibre-gl-search-result {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.maplibre-gl-search-result:last-child {
  border-bottom: none;
}

.maplibre-gl-search-result:hover .maplibre-gl-search-result-name {
  color: #0078d7;
}

/* Marker styles */
.maplibre-gl-search-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.maplibre-gl-search-marker svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.15s ease;
}

.maplibre-gl-search-marker:hover svg {
  transform: scale(1.1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .maplibre-gl-search {
    background: rgba(40, 40, 40, 0.95);
    color: #e0e0e0;
  }

  .maplibre-gl-search-input {
    color: #e0e0e0;
  }

  .maplibre-gl-search-input::placeholder {
    color: #888;
  }

  .maplibre-gl-search-icon,
  .maplibre-gl-search-clear,
  .maplibre-gl-search-collapse,
  .maplibre-gl-search-toggle {
    color: #aaa !important;
  }

  .maplibre-gl-search-result-detail {
    color: #999 !important;
  }

  .maplibre-gl-search-result:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
  }
}
/**
 * MapLibre GL Components - Vector Dataset Control Styles
 */

/* Base control styling */
.maplibre-gl-vector-dataset {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  pointer-events: auto;
}

.maplibre-gl-vector-dataset * {
  box-sizing: border-box;
}

/* Upload button - matches MapLibre GL native controls */
.maplibre-gl-vector-dataset-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  transition: color 0.15s ease, background-color 0.15s ease;
  border-radius: 4px;
}

.maplibre-gl-vector-dataset-button:hover {
  color: #0078d7;
  background: rgba(0, 120, 215, 0.1);
}

.maplibre-gl-vector-dataset-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.4);
}

.maplibre-gl-vector-dataset-button:focus:not(:focus-visible) {
  box-shadow: none;
}

.maplibre-gl-vector-dataset-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Loading state */
.maplibre-gl-vector-dataset-button--loading {
  animation: vector-dataset-pulse 1s ease-in-out infinite;
}

@keyframes vector-dataset-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Icon sizing */
.maplibre-gl-vector-dataset-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Drop zone overlay */
.maplibre-gl-vector-dataset-dropzone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 120, 215, 0.15);
  border: 3px dashed #0078d7;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.maplibre-gl-vector-dataset-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.maplibre-gl-vector-dataset-dropzone-content svg {
  color: #0078d7;
}

.maplibre-gl-vector-dataset-dropzone-content p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* Loading overlay */
.maplibre-gl-vector-dataset-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  pointer-events: none;
}

.maplibre-gl-vector-dataset-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 48px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.maplibre-gl-vector-dataset-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #0078d7;
  border-radius: 50%;
  animation: vector-dataset-spin 0.8s linear infinite;
}

@keyframes vector-dataset-spin {
  to {
    transform: rotate(360deg);
  }
}

.maplibre-gl-vector-dataset-loading-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.maplibre-gl-vector-dataset-loading-progress {
  margin: 0;
  font-size: 12px;
  color: #666;
  text-align: center;
}
/**
 * InspectControl Component Styles
 */

/* Base control styling */
.maplibre-gl-inspect {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  pointer-events: auto;
}

.maplibre-gl-inspect * {
  box-sizing: border-box;
}

/* Button styling */
.maplibre-gl-inspect-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  transition: color 0.15s ease, background-color 0.15s ease;
  border-radius: 4px;
}

.maplibre-gl-inspect-button:hover {
  color: #0078d7;
  background: rgba(0, 120, 215, 0.1);
}

.maplibre-gl-inspect-button--active {
  color: #0078d7;
  background: rgba(0, 120, 215, 0.15);
}

.maplibre-gl-inspect-button--active:hover {
  background: rgba(0, 120, 215, 0.25);
}

/* Popup styling */
.maplibre-gl-inspect-popup .maplibregl-popup-content {
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  font-size: 13px;
  color: #333;
}

.maplibre-gl-inspect-popup .maplibregl-popup-close-button {
  font-size: 18px;
  padding: 4px 8px;
  color: #666;
  right: 4px;
  top: 4px;
}

.maplibre-gl-inspect-popup .maplibregl-popup-close-button:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.maplibre-gl-inspect-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 32px 8px 12px;
  background: rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
}

.maplibre-gl-inspect-geometry {
  padding: 2px 6px;
  background: #0078d7;
  color: white;
  border-radius: 3px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10px;
  flex-shrink: 0;
}

.maplibre-gl-inspect-layer {
  color: #666;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.maplibre-gl-inspect-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.maplibre-gl-inspect-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.maplibre-gl-inspect-nav button:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

.maplibre-gl-inspect-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.maplibre-gl-inspect-nav-count {
  font-size: 11px;
  color: #666;
  min-width: 32px;
  text-align: center;
}

.maplibre-gl-inspect-content {
  padding: 8px 12px;
  overflow-y: auto;
}

.maplibre-gl-inspect-properties {
  width: 100%;
  border-collapse: collapse;
}

.maplibre-gl-inspect-properties tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.maplibre-gl-inspect-properties tr:last-child {
  border-bottom: none;
}

.maplibre-gl-inspect-properties td {
  padding: 4px 0;
  vertical-align: top;
}

.maplibre-gl-inspect-properties td.key {
  font-weight: 500;
  color: #666;
  padding-right: 12px;
  white-space: nowrap;
  width: 1%;
}

.maplibre-gl-inspect-properties td.value {
  color: #333;
  word-break: break-word;
}

.maplibre-gl-inspect-properties td.value.null {
  color: #999;
  font-style: italic;
}

.maplibre-gl-inspect-properties td.value pre {
  margin: 0;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 6px;
  border-radius: 3px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.maplibre-gl-inspect-empty {
  padding: 12px;
  text-align: center;
  color: #999;
  font-style: italic;
}

/* Scrollbar styling */
.maplibre-gl-inspect-content::-webkit-scrollbar {
  width: 6px;
}

.maplibre-gl-inspect-content::-webkit-scrollbar-track {
  background: transparent;
}

.maplibre-gl-inspect-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.maplibre-gl-inspect-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}
