@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Special+Elite&family=IM+Fell+English:ital@0;1&display=swap');

/* ============================================================
   The page sits on a ranger-station wall: dark wood, warm light
   ============================================================ */
.parks-page {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 226, 170, 0.16) 0%, rgba(0, 0, 0, 0) 55%),
    repeating-linear-gradient(
      90deg,
      #4a3524 0px, #4a3524 84px,
      #402d1e 84px, #402d1e 86px,
      #513a28 86px, #513a28 168px,
      #3d2b1c 168px, #3d2b1c 170px
    ),
    linear-gradient(180deg, #4a3524, #35251a);
  background-color: #402d1e;
  min-height: 100vh;
}

.parks-page header {
  background: rgba(40, 28, 18, 0.92);
  border-bottom: 1px solid rgba(232, 210, 160, 0.22);
}
.parks-page .brand,
.parks-page nav a { color: #f0e2c0; }
.parks-page nav a:hover,
.parks-page nav a.active { color: #e0a355; }

.parks-page footer {
  background: transparent;
  border-top: 1px solid rgba(240, 226, 192, 0.15);
  color: rgba(240, 226, 192, 0.55);
}

.sheet {
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 22px 90px;
}

.back-link { margin: 0 0 22px; }
.back-link a {
  color: #e6cf9a;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(230, 207, 154, 0.4);
  padding-bottom: 2px;
}
.back-link a:hover { color: #e0a355; }

.page-title {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  color: #f4e8cc;
  margin: 0 0 8px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.page-intro {
  color: rgba(244, 232, 204, 0.72);
  margin: 0 0 30px;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 62ch;
}
.page-intro a { color: #e0a355; }

.map-error {
  background: #f6e6e0;
  color: #8a3a22;
  border: 1px solid rgba(138, 58, 34, 0.3);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* ============================================================
   1. The parchment map
   ============================================================ */
.parchment {
  position: relative;
  border-radius: 3px;
  padding: 14px;
  margin-bottom: 46px;
  background:
    radial-gradient(60% 45% at 18% 12%, rgba(150, 106, 46, 0.16), rgba(0, 0, 0, 0) 70%),
    radial-gradient(45% 40% at 88% 78%, rgba(129, 89, 38, 0.20), rgba(0, 0, 0, 0) 72%),
    radial-gradient(35% 30% at 72% 15%, rgba(120, 82, 34, 0.13), rgba(0, 0, 0, 0) 70%),
    radial-gradient(90% 90% at 50% 50%, #f3e6c6 0%, #e8d5a8 62%, #d4bc8a 100%);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.16) inset,
    0 0 60px rgba(90, 60, 20, 0.28) inset;
}

/* torn / darkened edge */
.parchment::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 34px rgba(96, 64, 24, 0.45);
}

.parchment-svg { display: block; width: 100%; height: auto; }

.parchment-svg text { fill: #5d431f; }

.cart-lg {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 27px;
  letter-spacing: 2.5px;
  text-anchor: middle;
}
.cart-md {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 16px;
  letter-spacing: 3px;
  text-anchor: middle;
}
.cart-sm {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 9.5px;
  letter-spacing: 2.2px;
  text-anchor: middle;
  fill: #6f5227;
}
.rose {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 15px;
  text-anchor: middle;
  letter-spacing: 1px;
}
.map-gulf {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 30px;
  letter-spacing: 7px;
  fill: #7a5a33;
  fill-opacity: 0.5;
}

.pin { cursor: pointer; }
.pin .pin-head,
.pin .pin-needle { transition: transform 0.12s ease; }
.pin:hover .pin-head { r: 9; }
.pin:hover { filter: brightness(1.08); }
.pin:focus { outline: none; }
.pin:focus .pin-head { stroke: #2f2411; stroke-width: 2; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(93, 67, 31, 0.28);
}
.map-legend span {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.76rem;
  color: #6f5227;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.map-legend i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.35);
}
.map-legend i.been { background: #2f7d43; }
.map-legend i.want { background: #b8342a; }

/* ============================================================
   2. The ranger clipboard
   ============================================================ */
.clipboard {
  position: relative;
  margin: 0 auto;
  max-width: 760px;
  padding: 46px 16px 22px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      93deg,
      #6b4a2c 0px, #6b4a2c 30px,
      #5f4126 30px, #5f4126 33px,
      #74512f 33px, #74512f 66px
    ),
    #664728;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 220, 170, 0.2);
}

/* the metal clip */
.clip {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  height: 42px;
  border-radius: 7px;
  background: linear-gradient(180deg, #e2e5e8 0%, #a9b0b6 45%, #cfd4d8 55%, #8b9298 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  z-index: 3;
}
.clip::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 15px;
  border-radius: 4px;
  background: linear-gradient(180deg, #7d858c, #aeb5bb);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* the paper */
.sheet-paper {
  position: relative;
  z-index: 2;
  padding: 26px 26px 30px;
  background:
    radial-gradient(50% 40% at 82% 8%, rgba(176, 141, 84, 0.14), rgba(0, 0, 0, 0) 70%),
    radial-gradient(40% 35% at 12% 92%, rgba(176, 141, 84, 0.13), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #fdf8ea 0%, #f6eed9 55%, #efe3c8 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transform: rotate(-0.25deg);
}

.paper-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2f4f2f;
}
.paper-emblem {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2f4f2f;
  color: #f6eed9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex: none;
}
.paper-head-text {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.74rem;
  letter-spacing: 1.4px;
  color: #2f4f2f;
  text-transform: uppercase;
  line-height: 1.35;
}

.paper-banner {
  margin: 13px 0 0;
  background: #2f4f2f;
  color: #f4ecd6;
  text-align: center;
  padding: 9px 12px;
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.95rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(244, 236, 214, 0.25);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.76rem;
  color: #4a4032;
  padding: 11px 2px 4px;
  border-bottom: 1px solid rgba(47, 79, 47, 0.3);
}
.paper-meta b { color: #2f4f2f; font-weight: 400; }

/* progress strip */
.progress-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 2px 4px;
}
.stamp-badge {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #2f4f2f;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
  position: relative;
  opacity: 0.9;
}
.stamp-badge::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed #2f4f2f;
  opacity: 0.6;
}
.stamp-badge span {
  font-family: 'IM Fell English', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #2f4f2f;
}
.progress-text { flex: 1; min-width: 0; }
.progress-text .lead {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.98rem;
  color: #2f4f2f;
  margin: 0 0 8px;
}
.progress-track {
  height: 9px;
  background: rgba(47, 79, 47, 0.14);
  border: 1px solid rgba(47, 79, 47, 0.3);
}
.progress-fill {
  height: 100%;
  background: repeating-linear-gradient(45deg, #3f6b3f 0 5px, #2f4f2f 5px 10px);
  transition: width 0.3s ease;
}
.progress-text .caption {
  display: block;
  margin-top: 8px;
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.72rem;
  color: #6d6151;
}

/* region + rows */
.region { margin-top: 22px; }

.region-title {
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #f4ecd6;
  background: rgba(47, 79, 47, 0.88);
  margin: 0 0 4px;
  padding: 5px 10px;
}

.park-list { list-style: none; margin: 0; padding: 0; }

.park {
  display: grid;
  grid-template-columns: 28px 22px 1fr 84px;
  align-items: start;
  gap: 8px;
  padding: 8px 8px 8px 4px;
  border-bottom: 1px solid rgba(47, 79, 47, 0.16);
  cursor: pointer;
  font-family: 'Special Elite', Courier, monospace;
}
.park:hover { background: rgba(47, 79, 47, 0.07); }
.park:focus { outline: 2px solid rgba(47, 79, 47, 0.5); outline-offset: -2px; }
.park.pending { opacity: 0.5; pointer-events: none; }

.park-num { color: #6d6151; font-size: 0.82rem; text-align: right; padding-top: 1px; }
.park-tree { font-size: 0.86rem; line-height: 1.3; }
.park-main { min-width: 0; }

.park-name { color: #2b2519; font-size: 0.9rem; }
.park-loc { color: #6d6151; font-size: 0.82rem; }

.park-desc {
  display: block;
  margin-top: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #7a6e5c;
  max-width: 56ch;
}

/* the checkbox column */
.park-check {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 1px;
  justify-self: end;
}
.box {
  width: 16px;
  height: 16px;
  border: 1.6px solid #4a4032;
  background: rgba(255, 255, 255, 0.55);
  flex: none;
  position: relative;
}
/* hand-drawn X, only once checked */
.box::before,
.box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #1f4a8a;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.box::before { transform: translate(-50%, -50%) rotate(43deg); }
.box::after  { transform: translate(-50%, -50%) rotate(-41deg); }
.park.done .box::before,
.park.done .box::after { opacity: 1; }

.visited-scrawl {
  font-family: 'Caveat', cursive;
  font-size: 1.02rem;
  color: #1f4a8a;
  transform: rotate(-3.5deg);
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
}
.park.done .visited-scrawl { opacity: 1; }
.park.done .park-name { color: #1c1912; }

.paper-foot {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(47, 79, 47, 0.25);
  text-align: center;
  font-family: 'Special Elite', Courier, monospace;
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  color: #8a7f6d;
}

@media (max-width: 620px) {
  .sheet { padding: 26px 12px 60px; }
  .clipboard { padding: 40px 8px 16px; }
  .sheet-paper { padding: 18px 14px 22px; }
  .park { grid-template-columns: 22px 0 1fr 30px; gap: 6px; }
  .park-tree { display: none; }
  .visited-scrawl { display: none; }
  .paper-banner { font-size: 0.78rem; letter-spacing: 2px; }
}
