html,
body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

#map {
  height: 100%;
}

.topbar {
  position: absolute;
  top: 8px;
  right: 12px;
  display: flex;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}
.topbar button,
.profile-wrap {
  pointer-events: auto;
}
.home-btn,
.profile-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #1c3144;
  background: #fff;
  color: #1c3144;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.home-btn:hover,
.profile-btn:hover {
  background: #eef3ff;
}

.profile-wrap {
  position: relative;
}
.profile-menu {
  position: absolute;
  right: 0;
  top: 48px;
  background: #fff;
  min-width: 150px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  z-index: 1100;
}
.profile-menu a {
  padding: 9px 14px;
  color: #1c3144;
  text-decoration: none;
}
.profile-menu a:hover {
  background: #eef3ff;
}

.flash {
  list-style: none;
  margin: 0;
  padding: 6px 12px;
}
.flash li {
  margin-bottom: 4px;
}
.flash .error {
  color: #b70000;
}
.flash .success {
  color: #0a781e;
}
.flash .info {
  color: #0051b7;
}
