#header-wrapper {
  display: block !important;
}

#content-wrapper {
  position: relative !important;
  inset: auto !important;
  top: 74px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: initial !important;
  padding-top: initial !important;
  overflow: visible !important;
  transform: none !important;
}

.selected-layers-list {
  padding: 0 !important;
}

.selected-layers-footer {
  padding-inline: 0;
  padding-bottom: 0
}

.cesium-map-shell {
  position: relative;
  min-height: calc(100vh - 74px);
  height: calc(100vh - 74px);
  overflow: hidden;
  background: #111827;
}

.cesium-map-canvas {
  position: absolute;
  inset: 0;
}

.cesium-toolbox {
  position: absolute;
  top: 50%;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
  transform: translateY(-50%);
}

.cesium-tool-button {
  padding: 0.5rem;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(31, 41, 55, .86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
  transition: background-color 0.2s ease;
}

.cesium-tool-button:hover,
.cesium-tool-button.active {
  background: #2563eb;
}

.cesium-tool-button i {
  font-size: 2rem;
  line-height: 1;
}

.cesium-loader {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  color: #fff;
  background: rgba(15, 23, 42, .86);
  border-radius: 999px;
  z-index: 6;
}

.cesium-catalog-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100vw - 10rem);
  height: calc(100vh - 10rem);
  display: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
  transform: translate(-50%, -50%);
  z-index: 6;
}

.cesium-catalog-panel.show {
  display: flex;
  flex-direction: column;
}

.cesium-catalog-panel .sidebar-title-placeholder {
  flex: 0 0 auto;
}

.cesium-catalog-panel .sidebar-content-placeholder {
  min-height: 0;
  flex: 1 1 auto;
}

.cesium-catalog-panel .catalog-browser-panel {
  height: 100%;
}

.cesium-catalog-close {
  cursor: pointer;
}

.cesium-side-panel {
  position: absolute;
  top: 5rem;
  right: 5rem;
  bottom: 5rem;
  width: 360px;
  display: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
  z-index: 6;
}

.cesium-side-panel.show {
  display: flex;
  flex-direction: column;
}

.cesium-side-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
}

.cesium-widget-credits {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.cesium-basemap-panel {
  position: absolute;
  top: 50%;
  right: 92px;
  width: 180px;
  padding: 6px;
  background: rgba(38, 38, 38, .94);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 4px;
  z-index: 7;
  transform: translateY(64px);
}

.cesium-basemap-option {
  width: 100%;
  display: block;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  color: #eee;
  background: transparent;
  text-align: left;
}

.cesium-basemap-option:hover,
.cesium-basemap-option.active {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

[data-bs-theme="dark"] .cesium-catalog-panel,
[data-bs-theme="dark"] .cesium-side-panel {
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  border-color: var(--bs-border-color);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .48);
}

[data-bs-theme="dark"] .cesium-catalog-panel .sidebar-title-placeholder,
[data-bs-theme="dark"] .cesium-side-panel .sidebar-title-placeholder,
[data-bs-theme="dark"] .cesium-catalog-panel .sidebar-content-placeholder,
[data-bs-theme="dark"] .cesium-side-content {
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .response-title,
[data-bs-theme="dark"] .cesium-side-panel .response-title,
[data-bs-theme="dark"] .cesium-catalog-close,
[data-bs-theme="dark"] .cesium-side-close,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-heading,
[data-bs-theme="dark"] .cesium-side-panel .selected-layer-meta strong {
  color: var(--bs-emphasis-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-browser-panel,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-nav,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-main,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-toolbar,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-list,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-footer {
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-footer {
  box-shadow: 0 -18px 38px rgba(0, 0, 0, .18);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-nav-item {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-nav-item:hover,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-nav-item.active {
  color: var(--bs-emphasis-color);
  background: rgba(var(--bs-primary-rgb), .14);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-description-alert {
  color: var(--bs-body-color);
  background: var(--bs-secondary-bg);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .input-group,
[data-bs-theme="dark"] .cesium-catalog-panel .input-group-text,
[data-bs-theme="dark"] .cesium-catalog-panel .form-control {
  color: var(--bs-body-color);
  background-color: var(--bs-tertiary-bg) !important;
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .form-control::placeholder {
  color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-layer-card,
[data-bs-theme="dark"] .cesium-side-panel .selected-layer-item {
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .cesium-side-panel .cesium-opacity-input {
  accent-color: var(--bs-primary);
}

[data-bs-theme="dark"] .cesium-side-panel .selected-layers-footer {
  background: rgba(15, 23, 42, .72);
  border-top-color: rgba(148, 163, 184, .18);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-layer-card:hover,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-layer-card.is-active {
  background: rgba(var(--bs-primary-rgb), .14);
  border-color: rgba(var(--bs-primary-rgb), .45);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-list-mode .catalog-layer-card:nth-child(odd) {
  background: var(--bs-tertiary-bg);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-layer-title-row h6,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-layer-body h6 {
  color: var(--bs-emphasis-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-layer-body p,
[data-bs-theme="dark"] .cesium-catalog-panel .catalog-footer-info,
[data-bs-theme="dark"] .cesium-catalog-panel .text-muted,
[data-bs-theme="dark"] .cesium-side-panel .text-muted,
[data-bs-theme="dark"] .cesium-side-panel .selected-layer-meta small {
  color: var(--bs-secondary-color) !important;
}

[data-bs-theme="dark"] .cesium-catalog-panel .catalog-empty,
[data-bs-theme="dark"] .cesium-side-panel .catalog-empty {
  color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .btn-outline-secondary,
[data-bs-theme="dark"] .cesium-side-panel .btn-outline-secondary {
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .cesium-catalog-panel .btn-outline-secondary:hover,
[data-bs-theme="dark"] .cesium-side-panel .btn-outline-secondary:hover,
[data-bs-theme="dark"] .cesium-catalog-panel .btn-outline-secondary.active {
  color: var(--bs-emphasis-color);
  background: rgba(var(--bs-primary-rgb), .16);
  border-color: rgba(var(--bs-primary-rgb), .5);
}

[data-bs-theme="dark"] .cesium-widget,
[data-bs-theme="dark"] .cesium-widget-credits,
[data-bs-theme="dark"] .cesium-widget-credits a,
[data-bs-theme="dark"] .cesium-credit-lightbox,
[data-bs-theme="dark"] .cesium-credit-lightbox-title,
[data-bs-theme="dark"] .cesium-credit-lightbox ul {
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .cesium-credit-lightbox,
[data-bs-theme="dark"] .cesium-credit-lightbox-overlay {
  background: var(--bs-body-bg) !important;
  border-color: var(--bs-border-color) !important;
}

@media (max-width: 768px) {
  #content-wrapper {
    top: 56px !important;
  }

  .cesium-map-shell {
    min-height: 620px;
    height: calc(100vh - 56px);
  }

  .cesium-toolbox {
    right: 12px;
  }

  .cesium-catalog-panel {
    top: 50%;
    left: 50%;
    width: calc(100vw - 24px);
    height: calc(100% - 24px);
  }

  .cesium-side-panel {
    top: 80px;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .cesium-basemap-panel {
    top: 50%;
    right: 80px;
    transform: translateY(64px);
  }
}
