:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
  line-height: 1.5;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header,
footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 0.75rem 1.25rem;
}

header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.toolbar select,
.toolbar button {
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #475569;
  background: #e2e8f0;
  font-size: 0.9rem;
}

.toolbar button.toggle.active {
  background: #38bdf8;
  color: #0f172a;
}

main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.map {
  flex: 3;
  height: calc(100vh - 160px);
}

#sidebar {
  flex: 1;
  border-left: 1px solid #cbd5f5;
  padding: 1rem;
  background: #fff;
  overflow-y: auto;
}

#details {
  font-size: 0.85rem;
  color: #334155;
}

footer {
  text-align: center;
}

@media (max-width: 960px) {
  main {
    flex-direction: column;
  }

  #sidebar {
    border-left: none;
    border-top: 1px solid #cbd5f5;
  }

  .map {
    height: 50vh;
  }
}
