/* ===== BASE ===== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

/* ===== MAP (always behind everything) ===== */
#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* ===== TOP TITLE ===== */
#topBar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;

  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: 10px;

  font-size: 18px;
  font-weight: bold;

  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ===== CONTROLS (BOTTOM) ===== */
#controls {
  position: fixed;
  bottom: 80px;   /* 🔴 was too low — now above Safari bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;

  background: rgba(255,255,255,0.95);
  padding: 8px;
  border-radius: 10px;

  display: flex;
  gap: 6px;

  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ===== BUTTONS ===== */
button {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
}

/* ===== STATUS ===== */
#status {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;

  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
  border-radius: 6px;

  font-size: 12px;
}

/* ===== SELECTOR OVERLAY ===== */
#selector {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.4);

  display: none;
  z-index: 10000;

  justify-content: center;
  align-items: center;
}

#selectorBox {
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 80%;
  max-height: 70%;
  overflow-y: auto;
}

.selectorItem {
  padding: 12px;
  margin-bottom: 6px;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
}

.selectorItem:active {
  background: #ddd;
}

/* ===== BIRD BUTTON ===== */
#birdBtn {
  position: fixed;
  right: 15px;
  bottom: 100px;
  z-index: 6000;

  display: none;

  font-size: 18px;
  padding: 12px 16px;
  border-radius: 50%;

  background: #00c853;
  color: white;

  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#birdBtn:active {
  background: #00a844;
}