:root {
  --forest:      #1b4332;
  --forest-dark: #0d2b1e;
  --forest-med:  #2d6a4f;
  --brown:       #3d2408;
  --brown-med:   #5c3a10;
  --gold:        #b5852e;
  --tan:         #d4a853;
  --tan-light:   #e8cfa0;
  --cream:       #faf6ed;
  --white:       #ffffff;
  --text:        #2c1a0e;
  --border:      #c8a97a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
}

/* ===== HEADER ===== */
.site-header {
  position: relative;
  background: #000;
  width: 100%;
  height: clamp(80px, 8vw, 120px);
  border-bottom: 3px solid var(--gold);
  display: flex;
  align-items: center;
  padding: 0 15px;
  box-sizing: border-box;
}
.site-header::after {
  content: '';
  position: absolute;
  left: 85px;
  top: 0;
  right: 0;
  bottom: 0;
  background: url('../Images/mainImages/homebanner_CP.png') center / cover no-repeat;
  z-index: 0;
}
.site-header img {
  position: relative;
  z-index: 1;
  display: block;
  height: clamp(68px, 6.8vw, 102px);
  width: auto;
}

/* ===== NAV ===== */
nav {
  background: var(--brown);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 3px 8px rgba(0,0,0,0.45);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.nav-links {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  flex: 1;
}
.nav-links a {
  display: block;
  padding: 11px 14px;
  color: var(--tan);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--forest);
  color: var(--white);
  border-bottom-color: var(--tan);
  text-decoration: none;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--tan);
  font-size: 1.5rem;
  padding: 10px 16px;
  cursor: pointer;
  align-self: center;
  line-height: 1;
}

/* ===== PAGE TITLE ===== */
.page-title {
  background: var(--forest);
  color: var(--tan);
  text-align: center;
  padding: 11px 20px;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--gold);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card h2 {
  font-size: 1.05rem;
  color: var(--brown);
  border-bottom: 2px solid var(--tan-light);
  padding-bottom: 6px;
  margin-bottom: 0.85rem;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ===== TYPOGRAPHY ===== */
h1 { color: var(--brown); font-size: 1.4rem; margin-bottom: 0.75rem; }
h2 { color: var(--brown); }
h3 { color: var(--brown-med); font-size: 1rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 0.8rem; font-size: 0.95rem; }
p:last-child { margin-bottom: 0; }
a  { color: var(--forest-med); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

/* ===== HOME PAGE ===== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
.date-bar {
  text-align: right;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--brown-med);
  font-style: italic;
  padding: 5px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

/* ===== NEWS SIDEBAR ===== */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.news-header {
  background: var(--forest);
  color: var(--tan);
  padding: 10px 15px;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.news-body { padding: 1rem; }
.news-item {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--tan-light);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
}
.news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-date {
  color: var(--brown);
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
  font-size: 0.8rem;
}

/* ===== SLIDESHOW ===== */
.slideshow {
  position: relative;
  overflow: hidden;
  height: 215px;
  border-radius: 3px;
  background: #111;
  margin-top: 1rem;
  border: 1px solid var(--border);
}
.slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}
.slideshow img.active { opacity: 1; z-index: 2; }

/* ===== DATA TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}
.data-table th {
  background: var(--forest);
  color: var(--tan);
  padding: 9px 14px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.data-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--tan-light);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: #f7f2e8; }
.data-table tr:hover td { background: #f0e8d8; }

/* ===== RULE / NUMBERED LIST ===== */
.rule-list {
  list-style: none;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}
.rule-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--tan-light);
}
.rule-list li:last-child { border-bottom: none; }
.rule-list .num {
  font-weight: 700;
  color: var(--brown);
  min-width: 1.5rem;
  flex-shrink: 0;
  padding-top: 1px;
}

/* ===== SECTION HEADING ===== */
.section-heading {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.25rem 0 0.6rem;
  padding: 6px 10px;
  background: var(--tan-light);
  border-left: 4px solid var(--gold);
  border-radius: 0 3px 3px 0;
}

/* ===== DOC LIST ===== */
.doc-list {
  list-style: none;
  padding: 0;
  font-family: Arial, sans-serif;
}
.doc-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--tan-light);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.doc-list li:last-child { border-bottom: none; }
.doc-icon { font-size: 1.15rem; flex-shrink: 0; }

/* ===== PICTURES PAGE ===== */
.pics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.pic-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.pic-category:hover {
  box-shadow: 0 5px 18px rgba(0,0,0,0.2);
  transform: translateY(-2px);
  text-decoration: none;
}
.pic-category img {
  width: 100%;
  height: 225px;
  object-fit: contain;
  background: #000;
  display: block;
}
.pic-label {
  padding: 12px 15px;
  background: var(--forest);
  color: var(--tan);
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.87rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 3px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
  display: block;
}
.gallery-grid img:hover {
  transform: scale(1.04);
  border-color: var(--gold);
}
.gallery-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.gallery-grid figure img {
  flex: 1;
}
.gallery-grid figcaption {
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--brown-med);
  padding: 4px 2px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== OFFICERS ===== */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.officer-card {
  background: #f7f2e8;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1rem 1.1rem;
  font-family: Arial, sans-serif;
}
.officer-title {
  font-size: 0.72rem;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 3px;
}
.officer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 4px;
}
.officer-card a { font-size: 0.83rem; }

/* ===== CAMPGROUND ===== */
.campground-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.campground-photos img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  border-radius: 3px;
  border: 2px solid var(--border);
  display: block;
}

/* ===== MAP PAGE ===== */
body.map-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body.map-page header.site-header { flex-shrink: 0; }
body.map-page nav { flex-shrink: 0; }
body.map-page .map-toolbar { flex-shrink: 0; }
body.map-page #map-canvas {
  flex: 1;
  min-height: 0;
  width: 100%;
}
.map-toolbar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  font-size: 0.83rem;
}
.map-toolbar .sep {
  border-left: 1px solid var(--border);
  height: 1.2rem;
}
.map-toolbar label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-weight: 600;
  color: var(--brown);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red   { background: #e03a00; border: 1px solid #a02800; }
.dot-green { background: #20a020; border: 1px solid #107010; }

/* ===== FOOTER ===== */
footer {
  background: var(--forest-dark);
  color: #b8d4b4;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2.5rem;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  border-top: 3px solid var(--gold);
}
footer a { color: var(--tan); }
footer a:hover { color: var(--white); }
footer p { margin-bottom: 0.4rem; }
.disclaimer { opacity: 0.65; font-size: 0.75rem; margin-top: 0.6rem; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 3px solid var(--tan);
  border-radius: 3px;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  color: var(--tan);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  font-family: Arial, sans-serif;
  background: none;
  border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .home-grid { grid-template-columns: 1fr; }
  .hamburger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--brown);
    border-top: 1px solid rgba(200,160,80,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(200,160,80,0.18);
    border-bottom-width: 1px;
  }
  .pics-grid { grid-template-columns: 1fr; }
  .officers-grid { grid-template-columns: 1fr; }
  .campground-photos { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  body.map-page {
    display: block;   /* exit flex mode so explicit canvas height works */
    height: auto;
    overflow: auto;
  }
  body.map-page #map-canvas {
    height: 65vh;
    min-height: 300px;
    width: 100%;
  }
  /* Compact toolbar on mobile: hide decorative separators, shrink search */
  body.map-page .map-toolbar .sep { display: none; }
  body.map-page .stand-search input { width: 120px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 1rem; letter-spacing: 1px; }
  .map-toolbar { gap: 8px; font-size: 0.78rem; padding: 6px 10px; }
  /* Hide legend icons on very small screens to reduce toolbar height */
  .map-toolbar .legend-item { display: none; }
  body.map-page .stand-search input { width: 100px; }
}
