:root {
  color-scheme: light;
  --ink: #173b35;
  --muted: #667d75;
  --line: #e0eae3;
  --green: #17775d;
  --deep-green: #103f3b;
  --sand: #f3c873;
  --wash: #f3f7f3;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 8% 4%, #f5e3bd88 0, transparent 28rem),
    radial-gradient(ellipse at 96% 12%, #d7ece2 0, transparent 36rem), var(--wash);
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
main {
  width: min(1280px, calc(100% - 32px));
  margin: clamp(22px, 4vw, 44px) auto 48px;
}
.auth-gate {
  width: min(520px, calc(100% - 32px));
  margin: 18vh auto 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 48px #173b3514;
}
.auth-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.auth-button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.auth-button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.session-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.app-header {
  position: relative;
  display: flex;
  min-height: 250px;
  align-items: center;
  margin-bottom: 26px;
  padding: clamp(26px, 4.3vw, 52px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #ffffff1c;
  border-radius: 26px;
  background: linear-gradient(122deg, #103f3b 0%, #165f55 58%, #237761 100%);
  box-shadow: 0 20px 54px #173b3520;
}
.app-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 82% 0%, #f3c87338, transparent 32rem);
  content: '';
}
.app-header-copy {
  position: relative;
  z-index: 1;
  width: min(62%, 700px);
}
.app-header-art {
  position: absolute;
  z-index: 0;
  right: -8px;
  bottom: 0;
  width: 55%;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 15px 28px #082a2638);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.intro {
  margin: 10px 0 0;
  color: var(--muted);
}
.app-header h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 52px);
}
.app-header .eyebrow {
  color: #c3e5d8;
}
.app-header .intro {
  max-width: 38rem;
  color: #e1efea;
}
.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.primary-nav a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.primary-nav a:hover {
  border-color: #a8c4b4;
}
.primary-nav a[aria-current='page'] {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}
.app-header .primary-nav a {
  border-color: #ffffff45;
  background: #ffffff12;
  color: #f5fbf8;
  backdrop-filter: blur(8px);
}
.app-header .primary-nav a:hover {
  border-color: #f3c873b0;
  background: #ffffff25;
}
.app-header .primary-nav a[aria-current='page'] {
  border-color: var(--sand);
  background: var(--sand);
  color: var(--deep-green);
}
.app-header .primary-nav a:focus-visible {
  outline-color: var(--sand);
}
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 48px #173b3510;
}
.controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
}
input {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #cdd9d2;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font: inherit;
}
input:focus {
  outline: 3px solid #14785a30;
  border-color: var(--green);
}
#count {
  color: var(--muted);
  font-size: 13px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 12px 22px;
  background: #fafcfb;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
td {
  padding: 15px 22px;
  border-top: 1px solid var(--line);
}
td:first-child {
  font-weight: 620;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7f5ee;
  color: #176347;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.empty {
  padding: 38px 20px;
  text-align: center;
  color: var(--muted);
}
.map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 12px;
}
.map-heading h2 {
  margin: 0;
  font-size: 16px;
}
.map-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
#map-summary {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
#route-summary {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
#lodging-summary {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.route-toggle {
  border: 1px solid #b8cec2;
  border-radius: 8px;
  padding: 8px 11px;
  background: #f4faf6;
  color: #176347;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.route-toggle:hover:not(:disabled) {
  background: #e7f5ee;
}
.route-toggle:disabled {
  color: var(--muted);
  cursor: default;
}
#map {
  height: clamp(440px, 68vh, 820px);
  background: #e8efeb;
}
.map-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 22px 0;
  color: var(--muted);
  font-size: 12px;
}
.map-gradient {
  width: 100px;
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, hsl(29 100% 46%), hsl(53 100% 46%));
}
.legend-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.legend-key i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.zero-key i {
  background: #b5101b;
}
.full-key i {
  background: #10a34a;
}
.map-note {
  margin: 0;
  padding: 8px 22px 16px;
  color: var(--muted);
  font-size: 12px;
}
.leaflet-popup-content {
  line-height: 1.45;
}
.trail-popup-row {
  margin-top: 5px;
}
.accommodation-popup {
  min-width: 210px;
}
.accommodation-popup-row {
  margin-top: 5px;
}
.accommodation-popup a {
  color: #155e9b;
  text-underline-offset: 2px;
}
.booking-pin-marker {
  border: 0;
  background: transparent;
}
.booking-map-pin {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  margin: 7px 0 0 3px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #1769aa;
  box-shadow: 0 1px 5px #102d4380;
  transform: rotate(-45deg);
}
.booking-map-pin::after {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  content: '';
}
footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.status-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #e6d6a7;
  border-radius: 10px;
  background: #fff9e8;
  color: #725719;
  font-size: 13px;
}
.status-notice[hidden] {
  display: none;
}
.page-status {
  padding: 28px;
  color: var(--muted);
}
.page-status[hidden],
.markdown-content[hidden] {
  display: none;
}
.markdown-content {
  padding: clamp(22px, 4vw, 48px);
}
.markdown-content h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}
.markdown-content h3 {
  margin: 32px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 21px;
  line-height: 1.3;
}
.markdown-content h2 + h3 {
  margin-top: 24px;
}
.markdown-content h4 {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.markdown-content p {
  margin: 8px 0 14px;
}
.markdown-content hr {
  height: 1px;
  margin: 4px 0;
  border: 0;
  background: var(--line);
}
.markdown-content a {
  color: var(--green);
  text-underline-offset: 3px;
}
.markdown-content ul {
  padding-left: 22px;
}
.markdown-content .task-list-item {
  list-style: none;
  margin-left: -22px;
}
.markdown-content .task-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
}
.markdown-content .task-list-item label:has(.task-list-item-checkbox:not(:checked)) {
  color: #b4232a;
}
.markdown-content .task-list-item-checkbox {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #8a9b91;
  border-radius: 3px;
  accent-color: var(--green);
  pointer-events: none;
}
@media (max-width: 580px) {
  main {
    margin: 20px auto 32px;
  }
  .app-header {
    min-height: 265px;
    align-items: flex-start;
    padding: 25px 22px;
    border-radius: 22px;
  }
  .app-header-copy {
    width: 100%;
  }
  .app-header-art {
    right: -35px;
    width: 100%;
    opacity: 0.27;
  }
  .app-header h1 {
    max-width: 13ch;
  }
  .app-header .primary-nav {
    position: relative;
    z-index: 2;
  }
  .controls {
    align-items: start;
    flex-direction: column;
  }
  .map-heading {
    align-items: start;
    flex-direction: column;
  }
  .map-tools {
    align-items: start;
    flex-direction: column-reverse;
    gap: 8px;
  }
  #map-summary,
  #route-summary {
    text-align: left;
  }
  th,
  td {
    padding: 12px;
  }
  .number {
    white-space: nowrap;
  }
}
