/* The national parks page (site/national-parks.html) - what it adds on
   top of style.css. Every colour is a style.css token so both themes
   hold. Phone first: one column of cards, the map above them; three
   columns from 900px. */

.np-main {
  padding-bottom: var(--sp-7, 48px);
}

.np-intro {
  padding-top: var(--sp-6, 32px);
  padding-bottom: var(--sp-3, 12px);
  max-width: 760px;
}

.np-eyebrow {
  margin: 0 0 6px;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.np-intro h1 {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

.np-intro h1 em {
  font-style: italic;
  color: var(--accent-green);
}

.np-lead {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 62ch;
}

/* Region tabs: a wrapping row of pills, the active one filled. */
.np-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: var(--sp-3, 12px);
  padding-bottom: var(--sp-3, 12px);
}

.np-region {
  padding: 8px 14px;
  border: 1px solid var(--ink-muted);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}

.np-region small {
  color: var(--ink-muted);
  font-weight: 400;
}

.np-region.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.np-region.active small {
  color: rgba(255, 255, 255, 0.8);
}

.np-region:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

#np-map {
  height: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--tint, #eef3ef);
}

@media (min-width: 900px) {
  #np-map {
    height: 340px;
  }
}

.np-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 14px 0 6px;
  font-size: var(--text-sm);
  color: var(--ink);
}

.np-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.np-filters input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-green);
}

.np-filters input[type="search"] {
  flex: 1 1 160px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--ink-muted);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
}

.np-muted {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  margin: 0 0 10px;
}

/* Cards */
.np-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .np-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .np-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.np-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-top: 4px solid var(--accent-nps);
}

.np-card.np-open {
  grid-column: 1 / -1;
  box-shadow: var(--shadow-md);
}

.np-card-head {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.np-card-head:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: -2px;
}

.np-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--tint, #eef3ef);
}

.np-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.np-photo-credit {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-card-title {
  padding: 12px 14px 4px;
}

.np-card-title h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--text-xl);
  line-height: 1.15;
  color: var(--ink);
}

.np-card-title .np-states {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.np-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 12px;
}

.np-chip {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tint, #eef3ef);
  color: var(--ink);
  font-size: var(--text-xs);
}

.np-chip-fee {
  background: var(--notice-tint);
  color: var(--notice);
}

.np-chip-free {
  background: var(--ok-tint);
  color: var(--ok);
}

/* How you get there (2026-09-29): drive is quiet, the rest stand out. */
.np-chip-reach {
  border: 1px solid transparent;
}

.np-reach-ferry, .np-reach-boat {
  background: #e3f1f7;
  color: #1c5f80;
}

.np-reach-air {
  background: #fdecea;
  color: #9b2c1f;
}

.np-reach-flight, .np-reach-flight-ferry {
  background: #f3ecfa;
  color: #5b3a8a;
}

/* The plan (2026-09-29): the count line with its bar, the filter rows,
   the two buttons under each card's head, and the marked cards and pins. */
.np-plan {
  margin-top: 14px;
}

.np-plan-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--tint, #eef3ef);
}

.np-plan-bar-visited {
  background: var(--accent-green);
}

.np-plan-bar-want {
  background: #d98c1f;
}

.np-plan-count {
  margin: 8px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.np-plan-count strong {
  color: var(--ink);
}

.np-plan-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.np-plan-label {
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-right: 4px;
}

.np-plan-chip {
  padding: 5px 11px;
  border: 1px solid var(--ink-muted);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-xs);
  cursor: pointer;
}

.np-plan-chip small {
  color: var(--ink-muted);
}

.np-plan-chip.on {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.np-plan-chip.on small {
  color: rgba(255, 255, 255, 0.8);
}

.np-plan-btns {
  display: flex;
  gap: 6px;
  padding: 0 14px 8px;
}

.np-plan-btn {
  padding: 5px 12px;
  border: 1px solid var(--ink-muted);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-xs);
  cursor: pointer;
}

.np-plan-btn.on[data-plan="want"] {
  background: #d98c1f;
  border-color: #d98c1f;
  color: #fff;
}

.np-plan-btn.on[data-plan="visited"] {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.np-card.np-visited {
  border-color: var(--accent-green);
}

.np-card.np-want {
  border-color: #d98c1f;
}

.np-pin.np-pin-visited {
  background: var(--accent-green);
  border-color: #fff;
}

.np-pin.np-pin-want {
  background: #d98c1f;
  border-color: #fff;
}

.np-desc {
  padding: 0 14px 10px;
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--ink);
}

.np-card-body {
  padding: 4px 14px 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.np-card-body[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .np-card.np-open .np-card-body {
    grid-template-columns: repeat(2, 1fr);
  }
}

.np-block h3 {
  margin: 0 0 6px;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.np-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-item {
  padding: 6px 0;
  border-top: 1px solid var(--tint, #eef3ef);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.np-item:first-child {
  border-top: 0;
}

.np-item a {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
}

.np-item a:hover {
  text-decoration: underline;
}

.np-item-meta {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.np-item-text {
  margin: 2px 0 0;
  color: var(--ink);
}

.np-empty {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.np-links {
  padding: 0 14px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: var(--text-sm);
}

.np-links a {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
}

.np-weather {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  line-height: 1.45;
}

.np-weather summary {
  cursor: pointer;
  color: var(--accent-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Map pins */
.np-pin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-nps);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
