/* =======================================================
   main_interface.css
   ======================================================= */

/* ---------- Global ---------- */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f4f4;
}

#deck-container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* ---------- Search Bar ---------- */
.search-bar-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 4px;
  width: 360px;
}

.search-bar-container select {
  border: none;
  background: transparent;
  padding: 6px;
  font-size: 14px;
  border-right: 1px solid #ccc;
  outline: none;
}

.search-bar-container input {
  border: none;
  outline: none;
  padding: 6px 10px;
  font-size: 14px;
  flex: 1;
}

/* ---------- Autocomplete ---------- */
.autocomplete-suggestions {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  max-height: 200px;
  overflow-y: auto;
  width: 360px;
  z-index: 30;
}

.autocomplete-suggestions div {
  padding: 8px;
  cursor: pointer;
}

.autocomplete-suggestions div:hover {
  background: #f0f0f0;
}

/* ---------- Map Controls ---------- */
.controls {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  z-index: 20;
}

.controls label {
  margin-right: 8px;
  font-weight: bold;
  font-size: 14px;
}

.controls select {
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 5px;
  border: 1px solid #bbb;
}

/* ---------- Legend ---------- */
.legend {
  position: absolute;
  bottom: 20px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  z-index: 20;
}

.legend div {
  display: flex;
  align-items: center;
  margin: 3px 0;
}

.legend span {
  width: 20px;
  height: 12px;
  margin-right: 6px;
  border: 1px solid #ccc;
  display: inline-block;
}

/* ---------- Tooltip ---------- */
#deck-tooltip {
  position: absolute;
  display: none;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 999;
}
