/* PLG Camping — shared styles */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --forest:   #2d5016;
  --moss:     #4a7c2f;
  --bark:     #6b4423;
  --sand:     #e8d5b0;
  --sky:      #5b8fa8;
  --cream:    #faf7f2;
  --text:     #2a2a2a;
  --muted:    #6b6b6b;
  --white:    #ffffff;
  --shadow:   0 2px 16px rgba(0,0,0,0.10);
  --radius:   12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* ── Navigation bar ── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.topnav a {
  color: var(--sand);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}
.topnav a:hover, .topnav a.active {
  background: var(--moss);
  color: var(--white);
}
.topnav .brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.topnav .year-links { display: flex; gap: 4px; }

/* ── Hero header ── */
.hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--moss) 60%, var(--sky) 100%);
  color: var(--white);
  text-align: center;
  padding: 72px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60' viewBox='0 0 100 60'%3E%3Cpolygon points='50,5 95,55 5,55' fill='%23ffffff08'/%3E%3Cpolygon points='20,10 60,55 -20,55' fill='%23ffffff05'/%3E%3Cpolygon points='80,10 120,55 40,55' fill='%23ffffff05'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 200px 80px;
  opacity: 0.6;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}
.hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.85;
  margin: 0;
  font-style: italic;
  position: relative;
}

/* ── Scroll-nav anchors ── */
.scroll-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 16px;
  background: var(--white);
  border-bottom: 1px solid #e0d8cc;
}
.scroll-nav a {
  color: var(--forest);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 2px solid var(--moss);
  border-radius: 20px;
  transition: all 0.2s;
}
.scroll-nav a:hover {
  background: var(--moss);
  color: var(--white);
}

/* ── Main content ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

section {
  margin: 48px 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
}

section h2 {
  font-family: 'Arial', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--moss);
  display: flex;
  align-items: center;
  gap: 10px;
}
section h2 .icon { font-size: 1.4rem; }

/* ── Dates ── */
.date-display {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bark);
  margin: 0 0 6px;
}
.date-note {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* ── People ── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.people-grid li {
  background: var(--cream);
  border: 1px solid #e0d8cc;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: 'Arial', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
.people-grid li::before { content: '🏕️'; font-size: 0.85rem; }

/* ── Map ── */
.map-description {
  color: var(--muted);
  font-style: italic;
  margin: 0 0 16px;
}
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

/* ── Photos ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.photo-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e0d8cc;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.photo-item:hover img { transform: scale(1.04); }
.photo-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white;
  font-size: 0.8rem;
  padding: 20px 10px 8px;
  font-family: 'Arial', sans-serif;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-item:hover .caption { opacity: 1; }
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e0d4;
  border-radius: 8px;
  aspect-ratio: 4/3;
  color: var(--muted);
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  border: 2px dashed #c8bfb0;
  flex-direction: column;
  gap: 8px;
}
.photo-placeholder .ph-icon { font-size: 2rem; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 28px;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  font-family: Arial, sans-serif;
  background: none;
  border: none;
  padding: 0;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  background: none;
  border: none;
  padding: 12px;
  font-family: Arial, sans-serif;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
}

/* ── Year index page ── */
.year-index {
  max-width: 700px;
  margin: 48px auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.year-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: block;
  border-top: 5px solid var(--moss);
  transition: transform 0.2s, box-shadow 0.2s;
}
.year-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}
.year-card .yr { font-size: 2.8rem; font-weight: 700; color: var(--forest); line-height: 1; }
.year-card .yr-label { font-family: 'Arial', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 6px; }
.year-card .yr-dates { margin-top: 14px; font-size: 0.95rem; color: var(--bark); }

/* ── Gallery states ── */
.gallery-msg {
  font-family: 'Arial', sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.gallery-loading { font-style: italic; }
.gallery-error   { color: #c0392b; }
.gallery-note    { margin-top: 12px; font-size: 0.85rem; }

/* ── Video overlay ── */
.video-item { position: relative; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.3rem;
  pointer-events: none;
  transition: background 0.2s;
}
.video-item:hover .video-play-btn { background: rgba(0,0,0,0.75); }

/* ── Album link button ── */
.album-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border: 2px solid var(--moss);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--forest);
  font-family: 'Arial', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.album-link:hover {
  background: var(--moss);
  color: var(--white);
  transform: translateY(-2px);
}
.album-icon { font-size: 1.6rem; }
.album-link span:nth-child(2) { flex: 1; }
.album-arrow { font-size: 1.3rem; opacity: 0.7; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 24px;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid #e0d8cc;
}
footer a { color: var(--moss); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  section { padding: 24px 20px; }
  .topnav { padding: 0 16px; }
  .topnav .brand { font-size: 13px; }
}
