/* Volledige pagina & kaart */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

#map {
  height: 100vh;
  width: 100vw;
  z-index:10;
}

/* ===== Inklapbaar menu linksonder, verticaal ===== */

.bottom-menu {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1000;

  display: flex;
  flex-direction: column-reverse; /* toggle onder, menu erboven */
  align-items: flex-start;
  gap: 8px;
}

.menu-toggle {
  border: none;
  border-radius: 12px;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-group {
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column; /* verticaal */
  gap: 8px;
  max-width: 240px;

  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: left bottom;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Verborgen in collapsed state */
.bottom-menu.collapsed .menu-group {
  opacity: 0;
  transform: translateY(5px) scale(0.95);
  pointer-events: none;
}

/* Grote knoppen (handschoenvriendelijk) */
.menu-btn {
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 18px;
  cursor: pointer;
  background: #f0f0f0;
  width: 100%;
  text-align: left;
  min-height: 60px;

  display: flex;
  align-items: center;
  gap: 10px;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.menu-btn:active {
  transform: scale(0.96);
  background: #e0e0e0;
}

.hidden {
  display: none;
}

/* ===== Login popup overlay ===== */

.login-overlay {
  position: fixed;
  inset: 0; /* top:0, right:0, bottom:0, left:0 */
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.login-overlay.hidden {
  display: none;
}

.login-popup {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.login-popup h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}

.login-popup label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}

.login-popup input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

.login-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.login-actions button {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}

#login-submit {
  background: #007bff;
  color: white;
}

#login-cancel {
  background: #e0e0e0;
}

/* Optioneel: iets aanpassen op mobiel */
@media (max-width: 600px) {
  .login-popup {
    width: calc(100% - 40px);
  }
}
.msg {
    border-radius: 12px;
    border: 3px solid rgba(0,0,255,0.6);
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    display: none;
    z-index:40;
}

/* labels */
.leaflet-tooltip.traccar-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: black; /* kies zelf */
    font-weight: bold !important;
}
