:root {
  --bg: #f2f5ef;
  --text: #1c241f;
  --muted: #5f6a62;
  --line: #d8ddd5;
  --panel: #fefefb;
  --accent: #2f8058;
  --accent-2: #153e2b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Onest", "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 380px at 5% 0%, #d9eddc, transparent 56%),
    radial-gradient(900px 420px at 95% -10%, #e9dec7, transparent 58%),
    var(--bg);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 16px;
}

.back {
  color: #2d6c4d;
  text-decoration: none;
  font-weight: 600;
}

.eyebrow {
  margin: 12px 0 0;
  color: #3a845f;
  font: 700 12px/1 "Onest", sans-serif;
  letter-spacing: 0.1em;
}

h1 {
  margin: 10px 0 12px;
  font: 700 clamp(30px, 6vw, 58px)/1 "Fraunces", "Georgia", serif;
}

.hero p:last-child {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.quick-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: #1f5f42;
  border-radius: 999px;
  padding: 8px 12px;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px 34px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, white);
  border-radius: 16px;
  padding: 16px;
}

.controls h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

select, button {
  margin-top: 6px;
  width: 100%;
  border: 1px solid #d2d9d3;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

button {
  border: 0;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.small {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.result article {
  animation: reveal 260ms ease;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.empty {
  margin: 0;
  color: var(--muted);
}

.route-title {
  margin: 0;
  font: 700 clamp(26px, 5vw, 38px)/1.04 "Fraunces", serif;
}

.route-meta {
  margin: 8px 0 12px;
  color: var(--muted);
}

.route-plan {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.route-plan li {
  line-height: 1.35;
}

.chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #ebf4ee;
  color: #2f6f4f;
  padding: 6px 10px;
}

.links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links a {
  text-decoration: none;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 9px;
  color: #fff;
  background: var(--accent-2);
}

@media (max-width: 940px) {
  .shell { grid-template-columns: 1fr; }
}
