:root {
  --primary: #2563eb;
  --danger: #ef4444;
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #1f2937;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  padding: 20px;
  color: var(--text);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

h1 {
  font-weight: 600;
}

button, .import-label {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}

button:hover, .import-label:hover {
  opacity: 0.85;
}

.secondary {
  background: #9ca3af;
}

main {
  display: grid;
  gap: 30px;
}

.form-section, .list-section {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, textarea {
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid #ddd;
}

#mapList {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.map-item {
  padding: 15px;
  background: #f3f4f6;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
}

#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111827;
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.3s;
}