.ldg-map-wrap {
  position: relative;
  width: 100%;
  height: var(--ldg-h, 640px);
  min-height: 360px;
  overflow: hidden;
  border-radius: 16px;
  background: #eaeff5;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ldg-map {
  position: absolute;
  inset: 0;
}

.ldg-map-wrap .maplibregl-canvas,
.ldg-map-wrap .maplibregl-canvas:focus,
.ldg-map-wrap .maplibregl-canvas-container:focus {
  outline: none;
}

.ldg-map-wrap .maplibregl-map {
  font: inherit;
}

.ldg-map-wrap .maplibregl-cooperative-gesture-screen {
  font: inherit;
  background: rgba(15, 23, 42, .42);
}

.ldg-map-wrap .maplibregl-popup.ldg-tip {
  pointer-events: none;
  z-index: 20;
}

.ldg-map-wrap .maplibregl-popup.ldg-tip .maplibregl-popup-content {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .93);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .8);
}

.ldg-map-wrap .maplibregl-popup.ldg-tip .maplibregl-popup-tip {
  display: none;
}

.ldg-map-wrap .maplibregl-ctrl-group {
  border: 0 !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .45) !important;
  overflow: hidden;
}

.ldg-map-wrap .maplibregl-ctrl-group button {
  width: 38px;
  height: 38px;
}

.ldg-map-wrap .maplibregl-ctrl-top-right {
  top: 14px;
  right: 14px;
}

.ldg-map-wrap:fullscreen,
.ldg-map-wrap:-webkit-full-screen {
  width: 100%;
  height: 100% !important;
  border-radius: 0;
}

.ldg-map-wrap .maplibregl-ctrl-attrib {
  border-radius: 10px 0 0 0;
  background: rgba(255, 255, 255, .82) !important;
  font-size: 10px;
}

.ldg-panel {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 330px;
  max-height: calc(100% - 36px);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 20px;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .4);
  overflow: hidden;
}

.ldg-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.ldg-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.ldg-panel-count {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  opacity: .7;
}

.ldg-icon-btn {
  display: none;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, .06);
  color: inherit;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ldg-list {
  margin: 0;
  padding: 8px;
  list-style: none;
  overflow-y: auto;
}

.ldg-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.ldg-item:hover,
.ldg-item.ldg-is-active {
  background: rgba(15, 23, 42, .07);
}

.ldg-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .95);
}

.ldg-panel-toggle {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ldg-panel-toggle-bars {
  position: relative;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ldg-panel-toggle-bars::before,
.ldg-panel-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ldg-panel-toggle-bars::before { top: -5px; }
.ldg-panel-toggle-bars::after { top: 5px; }

.ldg-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .42);
}

.ldg-modal[hidden] {
  display: none;
}

.ldg-modal-box {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 50px 24px 22px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .55);
}

.ldg-modal-close {
  display: block;
  position: absolute;
  top: 12px;
  right: 12px;
}

.ldg-modal-title {
  margin: 0 0 25px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.ldg-modal-body {
  font-size: 15px;
  line-height: 1.55;
}

.ldg-modal-body p {
  display: block;
  margin: 0 0 0.85em;
}

.ldg-modal-body p:last-child {
  margin-bottom: 0;
}

.ldg-map-wrap .ldg-modal-body br {
  display: inline !important;
  content: normal !important;
}

.ldg-modal-btn,
.ldg-modal-btn:hover,
.ldg-modal-btn:focus,
.ldg-modal-btn:visited {
  display: block;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 11px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  max-width: 200px;
  text-align: center;
  margin: 0 auto;
}

.ldg-modal-btn:hover {
  background: #f4bc04;
}

.ldg-modal-btn.ldg-is-off {
  display: none;
}

@media (max-width: 900px) {
  .ldg-map-wrap {
    height: var(--ldg-h-mobile, var(--ldg-h, 640px));
  }

  .ldg-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: 90%;
    border-radius: 22px 22px 0 0;
    transform: translateY(102%);
    opacity: 0;
    pointer-events: none;
  }

  .ldg-panel.ldg-is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .ldg-panel-toggle { display: inline-flex; }
  .ldg-icon-btn { display: block; }
  .ldg-map-wrap .maplibregl-ctrl-bottom-right { display: none; }
  .ldg-map-wrap:fullscreen .maplibregl-ctrl-bottom-right,
  .ldg-map-wrap:-webkit-full-screen .maplibregl-ctrl-bottom-right {
    display: block;
  }
}
