* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100vh;      /* Voller Viewport */
  overflow: hidden;   /* Kein Scrollen */
  background: #000;
  color: #e8e8e8;
  font-family: "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
}

/* HEADER */
header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #222;
}

.title {
  letter-spacing: 2px;
  font-size: 14px;
}

/* LAYOUT */
.app {
  display: flex;
  height: calc(100vh - 64px);
  position: relative;
}

/* MAP */
.map-area {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: calc(100% - 24px); /* Platz für Fortschrittsbalken */
}

.leaflet-container {
  background: #000;
}

.leaflet-control-attribution {
  display: none;
}

/* VISIT PROGRESS */
#visitProgressContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  background: #222;
}

#visitProgressBar {
  height: 100%;
  background: #00ff00;
  width: 0%;
  text-align: center;
  font-size: 12px;
  color: #000;
  line-height: 24px;
  font-weight: bold;
}

/* SIDEBAR */
.sidebar {
  width: 420px;
  padding: 24px;
  border-left: 1px solid #222;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SEARCH */
#searchInput {
  background: transparent;
  border: none;
  border-bottom: 1px solid #444;
  padding: 8px 4px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.autocomplete-items {
  position: absolute;
  background: #111;          /* dunkel wie Hintergrund */
  border: 1px solid #444;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 400px;              /* gleiche Breite wie Input */
}

.autocomplete-items li {
  padding: 8px;
  cursor: pointer;
  color: #fff;
}

.autocomplete-items li:hover {
  background: #333;
}

#searchInput::placeholder {
  color: #888;
}

/* INFO PANEL */
.popup-panel {
  display: none;
}

.popup-panel.active {
  display: block;
}

.popup-panel img {
  width: 100%;
  display: block;
  margin-bottom: 16px;
}

.popup-text h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.popup-text p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 6px 0;
}

#locationMeta {
  color: #aaa;
  font-size: 11px;
}

/* CONNECTOR */
#connector-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
