:root {
  --lgpxp-toolbar-h: 64px;
}
.lgpxp {
  display: grid;
  grid-template-rows: var(--lgpxp-toolbar-h) 1fr;
  overflow: hidden;
  position: relative;
}
.lgpxp__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 5;
  flex-wrap: wrap;
}
/* .lgpxp__btn {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
}
.lgpxp__btn:hover {
  background: #f3f4f6;
} */
 .lgpxp__btn {
  &:disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }
 }
.lgpxp__map {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
}

/* .lgpxp__dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  color: #334155;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.lgpxp__dropzone.dragover {
  background: #f0f9ff;
  border-color: #38bdf8;
} */
.lgpxp__gpxInput {
  display: none;
}

.lgpxp__progress {
  position: absolute;
  inset: 0;
  display: none; /* toggle to flex */
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* Base grey */
  background: #e5e7eb; /* neutral grey */

  /* Shimmer */
  background-image: linear-gradient(
    110deg,
    #e5e7eb 25%,
    #f3f4f6 37%,
    #e5e7eb 63%
  );
  background-size: 200% 100%;
  animation: lgpxp-shimmer 1.4s infinite linear;
}

@keyframes lgpxp-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.lgpxp__progress__box {
  min-width: 260px;
  max-width: 90vw;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  font: 14px/1.4 system-ui, sans-serif;
}
.lgpxp__progress__label {
  margin-bottom: 8px;
}
.lgpxp__progress__bar {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.lgpxp__progress__bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: #4a90e2;
  transition: width 0.15s linear;
}
.lgpxp__progress__cancel {
  margin-top: 10px;
}

.leaflet-top.leaflet-right .leaflet-control-layers {
  display: block!important;
}

.lgpxp__mapContainer {
  height: 600px;
  overflow: hidden;
  position: relative;
}
