html, body, #map {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hidden { display: none !important; }

.status {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  z-index: 10;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.status--connecting { background: #b8860b; }
.status--open { background: #1a7f37; }
.status--closed { background: #b91c1c; }

.maneuver-banner {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 60px);
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  z-index: 10;
  background: #1d4ed8;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  max-width: 480px;
  margin: 0 auto;
}
.maneuver-banner.hidden { display: none; }
.maneuver-banner #maneuver-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.hud {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  z-index: 10;
  background: rgba(20, 20, 20, 0.85);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  max-width: 340px;
}
.hud.hidden { display: none; }
.hud-warning {
  color: #ffb020;
  margin-top: 4px;
  font-weight: 600;
}
.hud-warning.hidden { display: none; }

.poi-popup { font-size: 13px; line-height: 1.4; }
.poi-popup .brand { font-weight: 700; }
.poi-popup .open { color: #1a7f37; font-weight: 600; }
.poi-popup .closed { color: #b91c1c; font-weight: 600; }
.poi-popup .unknown { color: #888; }

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a12;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.login-form {
  width: min(340px, 90vw);
  box-sizing: border-box;
  background: #12121f;
  border: 1px solid #232338;
  border-radius: 16px;
  padding: 28px 24px;
  color: #ececf1;
}
.login-form h1 { font-size: 1.3rem; margin: 0 0 4px; }
.login-form p { color: #8a8aa3; font-size: 0.9rem; margin: 0 0 20px; }
.login-form input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 14px 14px;
  font-size: 16px; /* >=16px, hogy iOS Safari ne zoomoljon rá fókuszkor */
  border-radius: 10px;
  border: 1px solid #2c2c45;
  background: #0a0a12;
  color: #ececf1;
}
.login-form button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  cursor: pointer;
}
.login-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
