:root {
  --header-bg: #ffcc00;
  --text: #111;
  --muted: rgba(0, 0, 0, 0.65);
  --btn: #111;
  --btn-text: #fff;
  --btn-secondary: #2b2b2b;
  --btn-danger: #a61b1b;
  --border: rgba(0, 0, 0, 0.15);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
}

.site-header {
  padding: 10px;
  background: var(--header-bg);
  text-align: center;
  font-weight: 700;
}

.site-title { line-height: 1.2; }

.site-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.site-hint {
  margin-top: 8px;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.search {
  width: min(80vw, 420px);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}

.btn {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--btn);
  color: var(--btn-text);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  user-select: none;
}

.btn.btn-secondary { background: var(--btn-secondary); }
.btn.btn-danger { background: var(--btn-danger); }

#map {
  height: calc(100vh - 120px);
}

@media (max-width: 520px) {
  #map { height: calc(100vh - 160px); }
}

.hidden { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-dialog {
  position: relative;
  width: min(92vw, 520px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.modal-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.modal-coords {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.modal-form {
  display: grid;
  gap: 8px;
}

.modal-label {
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.modal-input {
  width: 100%;
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}

.modal-input:focus {
  border-color: rgba(0, 0, 0, 0.35);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
