* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #020617;
  color: #e2e8f0;
}

main {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.panel {
  padding: 12px;
  background: linear-gradient(160deg, #0f172a, #1e293b);
  border-bottom: 1px solid #334155;
}

h1 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.sub {
  margin: 0 0 10px;
  color: #93c5fd;
  font-size: 0.9rem;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#destinationInput {
  grid-column: 1 / -1;
}

.suggestions {
  grid-column: 1 / -1;
  display: none;
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1223;
}

.suggestion-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #1e293b;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item small {
  display: block;
  color: #93c5fd;
  margin-top: 3px;
}

button,
input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1223;
  color: #e2e8f0;
  font-size: 0.95rem;
}

button {
  cursor: pointer;
  background: #1d4ed8;
  border-color: #2563eb;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#status,
#nextTurn {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.note {
  margin: 10px 0 0;
  color: #facc15;
  font-size: 0.78rem;
}

#map {
  height: 100%;
  width: 100%;
}

@media (min-width: 900px) {
  main {
    grid-template-columns: 380px 1fr;
    grid-template-rows: 1fr;
  }

  .panel {
    border-bottom: none;
    border-right: 1px solid #334155;
  }
}
