@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f9fa;
  --panel: #f8f9fa;
  --text: #212529;
  --text-muted: #6c757d;
  --accent: #fd7e14;
  --accent-hover: #e67200;
  --border: #dee2e6;
  --field-bg: #ffffff;
  --land: #d8d4c0;
  --ocean: #8fbcd4;
  --stroke: #34495e;
}

.toggles {
  gap: 12px !important;
}

.toggles label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.title-section {
  padding: 12px 16px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.title-section h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.title-section a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}

.title-section a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

header {
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.field {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--field-bg);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

input[type="number"],
input[type="text"],
select {
  background: transparent;
  border: none;
  color: var(--text);
  width: 110px;
  font-size: 14px;
  outline: none;
}

select {
  cursor: pointer;
}

select option {
  background: var(--panel);
  color: var(--text);
}

input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #0d6efd;
}

input[type="text"] {
  width: 100%;
}

button {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

button:hover { 
  background: var(--accent-hover);
  transform: translateY(-1px); 
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3); 
}

button:active { 
  transform: translateY(0); 
  box-shadow: none; 
}

button.quick {
  background: var(--field-bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-weight: 500;
}

button.quick:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.map-wrap {
  width: 100%;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.status {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.status strong { 
  color: var(--text); 
  font-weight: 600;
}

.note {
  font-size: 13px;
  color: var(--text-muted);
}

#searchResults .result:hover {
  background: #f8f9fa;
}

footer {
  padding: 16px;
  background: var(--panel);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 120ms ease;
}

footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
