:root {   
 --color-overlay-bg: #191919bf;
  --color-neutral-0: #FFF;
  @supports (interpolate-size: allow-keywords) {
  :root { 
      interpolate-size: allow-keywords;
  }
}

}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: 'roboto', sans-serif;
}



.logFuncContainer {
  display: none;  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  
  z-index: 1000;  
  /*backdrop-filter: blur(26px);*/
  background-color: var(--color-overlay-bg);
}

.logFuncFormWrapper {
  display: flex;
  justify-content: center; 
  align-items: center; 
  height: 100vh; 
}

.logFuncForm {
  display: flex;
  background-color: var(--color-neutral-0);
  justify-content: center;
  align-items: center;
  padding: 24px 32px;
  border-radius: 8px;
}

/* Dark theme: match the DevExtreme material dark base background */
body.theme-dark .logFuncForm {
  background-color: #363640;
}

.logFuncText {
  color: #191919;
}

body.theme-dark .logFuncText {
  color: #fff;
}

.buttonUnderLine {
  text-decoration: underline;
 }
/* Load indicator inside contained buttons: theme draws it in the accent colour,
   which matches the button background. Force it to white in every theme. */
.button-indicator .dx-loadindicator-content,
.button-indicator .dx-loadindicator-icon {
  filter: brightness(0) invert(1);
}




/* Cluster markers */
.cluster-marker-wrapper {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 
    0px 1px 1px rgba(0, 0, 0, 0.1),
    0px 4px 6px rgba(0, 0, 0, 0.4); /* Main drop shadow */
    transition: all 0.2s ease-in-out; /* Smooth transition */
    backdrop-filter: blur(1px);
  }

  .cluster-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-neutral-800);
    color:white;
    min-width:24px;
    min-height:24px;
    padding:4px;
    border-radius: 50%;
    aspect-ratio: 1/1;
    opacity: 0.85;
    font-size:13px;
    font-family: "roboto", sans-serif;
    font-weight: 500;
  }

  
/* Trace map markers - colour comes from --trace-colour set per tracker */
.traceMarker {
  position: relative;
  width: 14px;
  height: 14px;
  /* AdvancedMarkerElement anchors bottom-centre, shift so the dot sits on the point */
  transform: translateY(50%);
  cursor: pointer;
}
.traceMarker-dot {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--trace-colour);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 6px 1px var(--trace-colour), 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}
.traceMarker:hover .traceMarker-dot {
  transform: scale(1.4);
}

/* Event points (type 1) - diamond with amber ring */
.traceMarker-event .traceMarker-dot {
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 0 0 3px #ff9800, 0 2px 5px rgba(0, 0, 0, 0.5);
}
.traceMarker-event:hover .traceMarker-dot {
  transform: rotate(45deg) scale(1.4);
}

/* Latest position - larger glowing pin with pulse */
.traceMarker-latest {
  width: 22px;
  height: 22px;
}
.traceMarker-pin {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--trace-colour) 60%, #fff), var(--trace-colour) 70%);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 0 8px 2px var(--trace-colour), 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.traceMarker-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}
.traceMarker-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--trace-colour);
  animation: tracePulse 1.8s ease-out infinite;
}
@keyframes tracePulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(2.2); opacity: 0; }
}

/* Label above the marker - always shown on latest, on hover for trail dots */
.traceMarker-label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0, 40, 60, 0.95);
  /* border-left: 4px solid var(--trace-colour); */
  color: #fff;
  font: 600 13px "Inter", sans-serif;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.traceMarker-label span {
  margin-left: 6px;
  font-weight: 400;
  opacity: 0.8;
}
.traceMarker:hover .traceMarker-label,
.traceMarker-latest .traceMarker-label {
  opacity: 1;
}

/* Map / Satellite segmented toggle */
.mapTypeToggle {
  --active-index: 0;
  --toggle-accent: #ff9800;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 34px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.72);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: "roboto", sans-serif;
  user-select: none;
}
.mapTypeToggle-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb74d, var(--toggle-accent));
  box-shadow: 0 2px 10px rgba(255, 152, 0, 0.45);
  transform: translateX(calc(var(--active-index) * 100%));
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.mapTypeToggle button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.mapTypeToggle button:hover {
  color: #fff;
}
.mapTypeToggle button.active {
  color: #1a1a1a;
}
.mapTypeToggle button:focus-visible {
  outline: 2px solid var(--toggle-accent);
  outline-offset: 2px;
}
.mapTypeToggle button i {
  font-size: 14px;
}

body.theme-light .mapTypeToggle {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
body.theme-light .mapTypeToggle button {
  color: rgba(0, 0, 0, 0.6);
}
body.theme-light .mapTypeToggle button:hover {
  color: #000;
}
body.theme-light .mapTypeToggle button.active {
  color: #fff;
}
