:root {
  color-scheme: light;
  --ink: #14251f;
  --muted: #5d6d66;
  --pine: #174b3a;
  --pine-dark: #0f352a;
  --orange: #d9772c;
  --orange-dark: #b95d1e;
  --cream: #f6f7f1;
  --line: #dce5dd;
  --white: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; min-width: 320px; background: var(--cream); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.home-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 78px;
  border-bottom: 1px solid rgba(20, 37, 31, .1);
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 18px rgba(19, 55, 42, .06);
  backdrop-filter: blur(12px);
}
.home-header-inner { width: min(1220px, calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 34px; }
.home-brand { display: inline-flex; align-items: center; flex: none; font-size: 25px; font-weight: 800; letter-spacing: -.7px; white-space: nowrap; }
.home-brand .brand-mark { width: 54px; height: 45px; margin-right: 9px; }
.mark-mountain-back { fill: #2a6b57; }
.mark-mountain { fill: #154b3a; }
.mark-snow { fill: #eef7f0; }
.mark-tent { fill: #dc8537; stroke: #173f32; stroke-width: 1.5; }
.mark-tent-door { fill: #f7d6a6; }
.mark-ground { fill: none; stroke: #173f32; stroke-width: 3; stroke-linecap: round; }
.home-brand > span > span, .home-brand b { color: var(--orange); }
.home-brand b { font-size: .82em; }
.home-nav { display: flex; align-items: center; gap: 27px; margin: 0 auto; font-size: 14px; font-weight: 700; }
.home-nav a { white-space: nowrap; transition: color .2s; }
.home-nav a:hover { color: var(--orange); }
.home-actions { display: flex; align-items: center; gap: 17px; font-size: 13px; font-weight: 700; }
.header-search { display: flex; align-items: center; gap: 7px; }
.header-search svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.admin-link { color: #51615b; }
.plan-button { padding: 13px 18px; border-radius: 8px; color: #fff; background: var(--orange); box-shadow: 0 7px 16px rgba(191, 94, 25, .18); }
.plan-button:hover, .gps-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 8px; background: #eef3ef; padding: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.discovery-hero { position: relative; min-height: 575px; display: grid; align-items: center; overflow: hidden; background: #26493d url('/campwild-hero.png') center center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 27, 22, .87) 0%, rgba(9, 35, 28, .67) 40%, rgba(8, 31, 25, .12) 72%, rgba(8, 31, 25, .08) 100%), linear-gradient(0deg, rgba(8,26,22,.25), transparent 45%); }
.hero-content { position: relative; width: min(1220px, calc(100% - 40px)); margin: auto; padding: 76px 0 86px; color: #fff; }
.hero-kicker, .section-kicker { margin: 0 0 15px; color: #f4b77d; font-size: 12px; font-weight: 850; letter-spacing: 1.7px; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: 10px; }
.hero-kicker span { width: 30px; height: 2px; background: #f4b77d; }
.hero-content h1 { max-width: 790px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(45px, 5.2vw, 74px); line-height: .99; letter-spacing: -2.8px; text-shadow: 0 2px 25px rgba(0,0,0,.22); }
.hero-content h1 em { color: #ffd2a7; font-weight: 500; }
.hero-copy { max-width: 650px; margin: 22px 0 28px; color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.58; }
.discovery-search { width: min(1080px, 100%); display: grid; grid-template-columns: minmax(280px, 1.7fr) minmax(170px, .9fr) minmax(145px, .7fr) auto; align-items: stretch; padding: 8px; border-radius: 13px; background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 18px 55px rgba(0,0,0,.25); }
.search-control { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 7px 17px; border-right: 1px solid #dce3de; }
.search-control > span:first-child { color: #697771; font-size: 10px; font-weight: 850; letter-spacing: .9px; text-transform: uppercase; }
.input-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.input-row svg { flex: none; width: 19px; fill: none; stroke: var(--orange); stroke-width: 2; }
.search-control input, .search-control select { width: 100%; height: 28px; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 700; }
.search-control select { cursor: pointer; }
.discovery-search button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 184px; border: 0; border-radius: 9px; padding: 0 20px; color: #fff; background: var(--orange); font-weight: 800; cursor: pointer; }
.discovery-search button:hover { background: var(--orange-dark); }
.discovery-search button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-note { margin: 13px 4px 0; color: rgba(255,255,255,.72); font-size: 12px; }

.gps-feature { width: min(1220px, calc(100% - 40px)); margin: 74px auto; display: grid; grid-template-columns: .82fr 1.18fr; gap: 68px; align-items: center; }
.section-kicker { color: var(--orange); }
.gps-copy h2, .section-heading-row h2, .camping-types h2, .how-section h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -1.5px; color: var(--pine-dark); }
.gps-copy > p:not(.section-kicker) { margin: 20px 0; color: var(--muted); line-height: 1.7; font-size: 16px; }
.feature-points { display: grid; gap: 10px; margin: 25px 0; }
.feature-points span { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.feature-points i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--pine); background: #dceee5; font-size: 11px; font-style: normal; font-weight: 900; }
.gps-cta { width: fit-content; display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-radius: 8px; color: #fff; background: var(--orange); font-size: 14px; font-weight: 800; transition: .2s; }
.gps-cta svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.gps-cta span { margin-left: 8px; font-size: 19px; }
.gps-preview { position: relative; min-height: 420px; overflow: hidden; border: 10px solid #fff; border-radius: 18px; background: #d6e6dc; box-shadow: 0 24px 65px rgba(20, 54, 42, .22); }
.gps-preview > img { width: 100%; height: 390px; display: block; object-fit: cover; object-position: center; filter: saturate(.85); }
.preview-browser { position: absolute; z-index: 3; inset: 0 0 auto; height: 36px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: rgba(255,255,255,.94); }
.preview-browser span { width: 7px; height: 7px; border-radius: 50%; background: #d3d9d5; }
.preview-browser small { margin: auto; color: #75817b; font-size: 9px; }
.preview-route { position: absolute; inset: 36px 0 0; width: 100%; height: calc(100% - 36px); pointer-events: none; }
.preview-route path { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 13; stroke-linecap: round; }
.preview-route path + path { stroke: #38bdf8; }
.preview-route path { filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.preview-start, .preview-destination { position: absolute; z-index: 4; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.28); font-weight: 900; }
.preview-start { right: 11%; bottom: 4%; width: 48px; height: 48px; color: #fff; background: #0284c7; font-size: 11px; }
.preview-destination { left: 47%; top: 18%; width: 50px; height: 50px; color: #fff; background: #7c3aed; }
.preview-instruction { position: absolute; z-index: 4; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 9px; color: #fff; background: rgba(14, 45, 36, .94); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.preview-instruction svg { width: 25px; fill: none; stroke: #65d1ff; stroke-width: 2; }
.preview-instruction span { display: grid; }
.preview-instruction small { color: #9ab2a9; font-size: 9px; text-transform: uppercase; }
.preview-instruction b { font-size: 12px; }

.local-section { padding: 77px max(20px, calc((100% - 1220px) / 2)); background: #fff; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 31px; }
.section-heading-row h2 { font-size: clamp(34px, 3.5vw, 47px); }
.section-heading-row > div > p:last-child { max-width: 650px; margin: 12px 0 0; color: var(--muted); line-height: 1.5; }
.result-status { flex: none; padding: 8px 12px; border-radius: 999px; color: #456155; background: #edf4ef; font-size: 12px; font-weight: 800; }
.campground-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.campground-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 10px 28px rgba(29, 64, 50, .09); transition: transform .22s, box-shadow .22s; }
.campground-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(29, 64, 50, .14); }
.card-image { position: relative; height: 205px; overflow: hidden; background: #274a3e url('/campwild-hero.png') center 45% / cover; }
.card-image > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.campground-card:nth-child(2) .card-image { background-position: 24% 48%; }
.campground-card:nth-child(3) .card-image { background-position: 63% 44%; }
.card-image::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(5,27,20,.48)); }
.card-badge { position: absolute; z-index: 2; top: 13px; left: 13px; padding: 7px 10px; border-radius: 999px; color: #fff; background: rgba(20,75,58,.9); font-size: 10px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.card-badge.map-ready { background: #087d61; }
.card-location { position: absolute; z-index: 2; bottom: 13px; left: 14px; display: flex; align-items: center; gap: 5px; color: #fff; font-size: 12px; font-weight: 800; }
.card-location svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.card-body { padding: 20px; }
.card-body h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; color: var(--pine-dark); font-size: 23px; line-height: 1.15; }
.card-organization { margin: 6px 0 11px; color: var(--orange); font-size: 11px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.card-description { min-height: 63px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 17px; }
.card-tags span { padding: 5px 8px; border-radius: 5px; color: #4b6158; background: #f0f4f1; font-size: 10px; font-weight: 800; }
.card-action { display: flex; align-items: center; justify-content: space-between; width: 100%; border-top: 1px solid var(--line); padding-top: 15px; color: var(--pine); font-size: 13px; font-weight: 900; }
.card-action span:last-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--orange); font-size: 16px; }
.card-skeleton { height: 405px; border: 0; background: linear-gradient(100deg, #edf1ed 30%, #f8faf7 50%, #edf1ed 70%); background-size: 300% 100%; animation: skeleton 1.5s infinite; }
@keyframes skeleton { to { background-position: -150% 0; } }
.empty-results { padding: 30px; border-radius: 10px; text-align: center; color: var(--muted); background: #f4f7f4; }

.camping-types { padding: 74px max(20px, calc((100% - 1120px) / 2)); }
.section-heading-row.centered { justify-content: center; text-align: center; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type-grid button { display: grid; justify-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 25px 16px; color: var(--ink); background: #fff; cursor: pointer; transition: .2s; }
.type-grid button:hover { border-color: #a8c6b8; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(29,64,50,.1); }
.type-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--orange); background: #fbede0; font-family: Georgia, serif; font-size: 31px; }
.type-grid b { color: var(--pine-dark); font-size: 16px; }
.type-grid small { max-width: 180px; color: var(--muted); line-height: 1.4; }

.how-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; padding: 70px max(20px, calc((100% - 1220px) / 2)); color: #fff; background: var(--pine-dark); }
.how-section h2 { color: #fff; }
.how-section ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.how-section li { border-left: 1px solid rgba(255,255,255,.2); padding-left: 19px; }
.how-section li > span { color: #f0a05e; font-size: 11px; font-weight: 900; }
.how-section li b { display: block; margin: 8px 0; font-family: Georgia, serif; font-size: 22px; }
.how-section li p { margin: 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.55; }

.home-footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 28px; align-items: center; padding: 35px max(20px, calc((100% - 1220px) / 2)); background: #fff; color: var(--muted); }
.footer-brand { color: var(--ink); font-size: 19px; }
.footer-brand .brand-mark { width: 40px; height: 33px; }
.home-footer p, .home-footer small { font-size: 11px; }
.home-footer nav { display: flex; gap: 20px; color: var(--ink); font-size: 12px; font-weight: 800; }

@media (max-width: 1050px) {
  .home-header-inner { gap: 18px; }
  .home-nav { gap: 16px; }
  .home-nav a:nth-child(3), .admin-link, .header-search span { display: none; }
  .gps-feature { gap: 35px; }
  .discovery-search { grid-template-columns: 1.4fr .8fr .7fr auto; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 70px; }
  .home-header { height: 70px; }
  .home-header-inner { width: min(100% - 28px, 1220px); }
  .home-brand { font-size: 21px; }
  .home-brand .brand-mark { width: 45px; height: 38px; }
  .home-nav, .home-actions { display: none; }
  .home-header.menu-open { height: auto; }
  .home-header.menu-open .home-header-inner { flex-wrap: wrap; padding: 12px 0; }
  .home-header.menu-open .home-nav { order: 3; width: 100%; display: grid; gap: 0; }
  .home-header.menu-open .home-nav a { padding: 12px 4px; border-top: 1px solid var(--line); }
  .menu-toggle { display: block; margin-left: auto; }
  .discovery-hero { min-height: 690px; background-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(6,27,22,.91), rgba(9,35,28,.62)), linear-gradient(0deg, rgba(6,27,22,.55), transparent); }
  .hero-content { width: calc(100% - 28px); padding: 54px 0; }
  .hero-content h1 { font-size: clamp(41px, 11vw, 60px); letter-spacing: -2px; }
  .hero-copy { font-size: 15px; }
  .discovery-search { grid-template-columns: 1fr 1fr; }
  .search-location { grid-column: 1 / -1; }
  .search-control:nth-of-type(2) { border-bottom: 0; }
  .search-control { min-height: 58px; border-bottom: 1px solid #dce3de; }
  .discovery-search button { grid-column: 1 / -1; min-height: 52px; margin-top: 5px; }
  .gps-feature { grid-template-columns: 1fr; margin: 55px auto; }
  .gps-preview { order: -1; min-height: 330px; }
  .gps-preview > img { height: 330px; }
  .campground-grid { grid-template-columns: 1fr; }
  .card-image { height: 245px; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .how-section { grid-template-columns: 1fr; gap: 35px; }
  .home-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .discovery-hero { min-height: 720px; }
  .hero-content { padding-top: 40px; }
  .hero-content h1 { font-size: 41px; }
  .discovery-search { grid-template-columns: 1fr; }
  .search-location, .discovery-search button { grid-column: auto; }
  .search-control { border-right: 0; }
  .gps-feature, .local-section { width: 100%; }
  .gps-feature { padding: 0 15px; }
  .gps-preview { border-width: 6px; }
  .local-section { padding-left: 15px; padding-right: 15px; }
  .card-image { height: 210px; }
  .type-grid { grid-template-columns: 1fr; }
  .how-section ol { grid-template-columns: 1fr; }
  .home-footer nav { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
