:root {
  color-scheme: light;
  --ink: #1f302b;
  --muted: #64746f;
  --paper: #f3f5ee;
  --surface: #fcfdf8;
  --line: #d8ded2;
  --pine: #244c3d;
  --moss: #6f8c62;
  --mist: #9fb7b4;
  --sun: #c8914a;
  --fern: #3f6b52;
  --shadow: 0 18px 50px rgba(31, 48, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(159, 183, 180, 0.18), rgba(243, 245, 238, 0) 360px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(243, 245, 238, 0.92);
  border-bottom: 1px solid rgba(34, 49, 45, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(200, 145, 74, 0.28);
  background: #17231f;
  box-shadow: inset 0 0 0 1px rgba(252, 253, 248, 0.06);
}

.brand-mark img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.92;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--pine);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 22, 18, 0.18), rgba(10, 22, 18, 0.82)),
    linear-gradient(90deg, rgba(10, 22, 18, 0.62), rgba(10, 22, 18, 0.16) 48%, rgba(10, 22, 18, 0.52)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Blue_Ridge_%28Great_Smoky_Mountains%2C_North_Carolina%2C_USA%29_1.jpg");
  background-position: center 42%;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 45%;
  content: "";
  background: linear-gradient(180deg, rgba(243, 245, 238, 0), var(--paper));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(56px, 12vh, 110px);
  color: white;
  text-align: center;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.72);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--fern);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #ffe0a4;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 9vw, 6.8rem);
  line-height: 0.96;
  text-wrap: balance;
}

h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  text-shadow: none;
}

.button.primary {
  background: #e2b15f;
  color: #18231f;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: white;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: 24px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.status-band div {
  padding: 22px;
  background: var(--surface);
}

.status-band strong {
  display: block;
}

.current-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.weather-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(200, 145, 74, 0.28);
  border-radius: 999px;
  background: rgba(200, 145, 74, 0.12);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.weather-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.sun-icon {
  border-radius: 50%;
  background: #d99a30;
  box-shadow:
    0 -8px 0 -6px #d99a30,
    0 8px 0 -6px #d99a30,
    8px 0 0 -6px #d99a30,
    -8px 0 0 -6px #d99a30,
    6px 6px 0 -6px #d99a30,
    -6px -6px 0 -6px #d99a30,
    6px -6px 0 -6px #d99a30,
    -6px 6px 0 -6px #d99a30;
}

.cloud-icon::before,
.rain-icon::before,
.snow-icon::before,
.storm-icon::before {
  position: absolute;
  right: 1px;
  bottom: 4px;
  width: 15px;
  height: 9px;
  border-radius: 999px;
  background: #6d7d78;
  content: "";
  box-shadow: -5px 2px 0 -1px #6d7d78;
}

.cloud-icon::after,
.rain-icon::after,
.snow-icon::after,
.storm-icon::after {
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d7d78;
  content: "";
}

.rain-icon {
  border-bottom: 2px solid #4f8ea5;
}

.snow-icon {
  border-bottom: 2px dotted #8fb8c3;
}

.storm-icon {
  border-bottom: 3px solid #c8914a;
}

.status-band div:first-child {
  border-radius: 7px 0 0 7px;
}

.status-band div:last-child {
  border-radius: 0 7px 7px 0;
}

.label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 98px) 0 0;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 28px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.route-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(34, 49, 45, 0.08);
}

.route-list span,
figcaption,
footer {
  color: var(--muted);
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: stretch;
  gap: 18px;
  min-height: 640px;
}

.route-stack {
  display: grid;
  height: 100%;
  gap: 18px;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
}

.map-panel {
  position: relative;
  z-index: 0;
  height: 100%;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfe7db;
  box-shadow: var(--shadow);
}

.map-empty {
  display: grid;
  min-height: inherit;
  margin: 0;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.route-marker span {
  display: block;
  width: 22px;
  height: 22px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--fern);
  box-shadow: 0 10px 22px rgba(34, 49, 45, 0.28);
}

.past-marker span {
  width: 14px;
  height: 14px;
  border-width: 3px;
  background: #8a9785;
  box-shadow: 0 7px 14px rgba(34, 49, 45, 0.16);
  opacity: 0.72;
}

.future-marker span {
  width: 24px;
  height: 24px;
  background: var(--sun);
  box-shadow: 0 12px 24px rgba(154, 101, 36, 0.3);
}

.current-marker span {
  background: var(--pine);
  outline: 5px solid rgba(226, 177, 95, 0.42);
  width: 30px;
  height: 30px;
}

.leaflet-container {
  z-index: 0;
  font: inherit;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--ink);
}

.route-list {
  min-height: 0;
  overflow: auto;
  padding: 26px;
}

.next-list {
  border-color: rgba(200, 145, 74, 0.42);
}

.current-list {
  border-color: rgba(63, 107, 82, 0.45);
}

.planned-list,
.history-list {
  max-height: 430px;
}

.route-list ol {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.route-list span {
  display: block;
  margin-top: 2px;
}

figure {
  margin: 0;
}

.photo-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.album-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--pine);
  font-weight: 800;
  text-decoration: none;
}

.places-section {
  display: grid;
  gap: 18px;
}

.place-feature,
.places-grid {
  display: grid;
  gap: 18px;
}

.place-feature {
  grid-template-columns: 1fr;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(200, 145, 74, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(200, 145, 74, 0.12), rgba(111, 140, 98, 0.1)),
    var(--surface);
  box-shadow: var(--shadow);
}

.place-feature p:not(.eyebrow),
.place-card p:not(.eyebrow) {
  color: var(--muted);
}

.place-feature p:last-child,
.place-card p:last-child {
  margin-bottom: 0;
}

.places-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-card-grid {
  grid-template-columns: 1fr;
}

.place-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(200, 145, 74, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(200, 145, 74, 0.12), rgba(111, 140, 98, 0.1)),
    var(--surface);
  box-shadow: var(--shadow);
}

.map-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.map-card .button {
  margin-top: auto;
}

.place-feature .button,
.map-card .button {
  width: 100%;
}

.place-card .button.secondary,
.place-suggestion-form .button.secondary {
  border-color: rgba(36, 76, 61, 0.34);
  color: var(--pine);
}

.suggestion-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  padding-bottom: clamp(58px, 9vw, 98px);
}

.suggestion-intro {
  position: sticky;
  top: 92px;
}

.suggestion-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.place-suggestion-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(200, 145, 74, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(200, 145, 74, 0.12), rgba(111, 140, 98, 0.1)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.place-suggestion-form label {
  display: grid;
  gap: 8px;
  color: var(--pine);
  font-size: 0.9rem;
  font-weight: 800;
}

.place-suggestion-form input,
.place-suggestion-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.place-suggestion-form input {
  min-height: 46px;
  padding: 10px 12px;
}

.place-suggestion-form textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.place-suggestion-form input:focus,
.place-suggestion-form textarea:focus {
  outline: 2px solid rgba(200, 145, 74, 0.45);
  outline-offset: 2px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

figcaption {
  padding: 14px 16px 16px;
  font-size: 0.95rem;
}

figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.photo-date {
  display: block;
  margin-bottom: 6px;
  color: var(--fern);
  font-size: 0.82rem;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .status-band,
  .route-layout,
  .photo-grid,
  .places-grid,
  .place-feature,
  .suggestion-section,
  .form-row {
    grid-template-columns: 1fr;
  }

  .suggestion-intro {
    position: static;
  }

  .place-feature {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-layout {
    min-height: 0;
  }

  .route-stack {
    height: auto;
    grid-template-rows: none;
  }

  .status-band div,
  .status-band div:first-child,
  .status-band div:last-child {
    border-radius: 0;
  }

  .hero {
    min-height: 700px;
  }

  .status-band {
    margin-top: 0;
  }

  .map-panel {
    height: 420px;
    min-height: 320px;
  }

  .route-list {
    max-height: none;
  }

  .planned-list,
  .history-list {
    max-height: 360px;
  }
}
