.qsolab-real-map,
.qsolab-maplibre-map {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: #08111f;
  color: #f8fafc;
}

html[data-bs-theme="light"] .qsolab-real-map,
html[data-bs-theme="light"] .qsolab-maplibre-map {
  background: #e6eef7;
  color: #0f172a;
}

.qsolab-maplibre-map .maplibregl-canvas {
  outline: none;
}

.qsolab-maplibre-map .maplibregl-ctrl-attrib,
.qsolab-maplibre-map .maplibregl-ctrl-scale {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 12, 20, 0.72);
  color: rgba(248, 250, 252, 0.82);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.qsolab-maplibre-map .maplibregl-ctrl-attrib a,
.qsolab-maplibre-map .maplibregl-ctrl-scale a {
  color: inherit;
}

html[data-bs-theme="light"] .qsolab-maplibre-map .maplibregl-ctrl-attrib,
html[data-bs-theme="light"] .qsolab-maplibre-map .maplibregl-ctrl-scale {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(15, 23, 42, 0.74);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.qsolab-map-popup .maplibregl-popup-content {
  min-width: 230px;
  padding: 0.9rem 1rem;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.35);
}

.qsolab-map-popup .maplibregl-popup-tip {
  border-top-color: rgba(15, 23, 42, 0.96);
  border-bottom-color: rgba(15, 23, 42, 0.96);
}

html[data-bs-theme="light"] .qsolab-map-popup .maplibregl-popup-content {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

html[data-bs-theme="light"] .qsolab-map-popup .maplibregl-popup-tip {
  border-top-color: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.98);
}

.qsolab-map-popup .maplibregl-popup-close-button {
  width: 2rem;
  height: 2rem;
  color: inherit;
  font-size: 1.25rem;
  opacity: 0.72;
}

.qsolab-map-popup .maplibregl-popup-close-button:hover,
.qsolab-map-popup .maplibregl-popup-close-button:focus {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.qsolab-map-popup .qsolab-popup-pad {
  padding: 0.92rem 1rem;
}

.qsolab-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.54));
  color: #f8fafc;
  text-align: center;
}

.qsolab-map-fallback.is-hidden {
  display: none;
}
