:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  --panel-height: 150px;
  --brand-blue: #005ea8;
  --brand-blue-hover: #004b86;
  --border: #c7c7c7;
  --muted: #555;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: #fff;
  color: #1f1f1f;
}

.app-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
}

arcgis-map {
  display: block;
  width: 100%;
  min-height: 0;
}

.location-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--panel-height);
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

p {
  margin: 4px 0;
}

.coordinates {
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.status {
  min-height: 1.2em;
  color: var(--danger);
}

.actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.primary-button {
  color: #fff;
  background: var(--brand-blue);
}

.primary-button:hover:not(:disabled) {
  background: var(--brand-blue-hover);
}

.secondary-button {
  color: #1f1f1f;
  border-color: var(--border);
  background: #fff;
}

.secondary-button:hover:not(:disabled) {
  background: #f3f3f3;
}

@media (max-width: 680px) {
  .location-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
  }

  .actions {
    width: 100%;
  }

  .actions button {
    flex: 1;
  }
}
