:root {
  --gradient-end: #a65a4c;
  --background: #f3e9d8;
  --text: #3a2a22;
  --text-muted: #7a6a5e;
  --border: #e3d5c0;
  --danger: #b3402a;
  --danger-bg: #f7ded8;
  --success: #3f6b3f;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#status-bar {
  padding: 10px 16px;
  background: var(--gradient-end);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

#status-bar.stale {
  background: var(--danger);
}

#map {
  flex: 1;
  min-height: 0;
}

#info-panel {
  padding: 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

#horse-name {
  font-size: 18px;
  font-weight: 700;
}

#ride-type {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

#last-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

#last-updated.stale {
  color: var(--danger);
  font-weight: 600;
}

#error-panel[hidden] {
  display: none;
}

#error-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 16px;
}
