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

:root {
  --cream: #fdf6ec;
  --tan: #f0e0c0;
  --gold: #8B6914;
  --brown: #5c3d11;
  --dark: #3d2b1f;
  --border: #d4b483;
  --shadow: rgba(92, 61, 17, 0.15);
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ─────────────────────────────────────── */

nav {
  background: var(--brown);
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

nav a {
  color: var(--tan);
  text-decoration: none;
  padding: 14px 24px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--gold);
  color: #fff;
}

nav a.locked::after {
  content: ' 🔒';
  font-size: 0.75em;
}

/* ── Header / Hero ──────────────────────────── */

.site-header {
  background: linear-gradient(160deg, var(--brown) 0%, #7a4f1a 60%, var(--gold) 100%);
  color: #fdf6ec;
  text-align: center;
  padding: 60px 20px 50px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.site-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  position: relative;
}

.site-header .tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-top: 10px;
  opacity: 0.85;
  font-style: italic;
  position: relative;
}

.site-header .year-badge {
  display: inline-block;
  margin-top: 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  padding: 4px 20px;
  font-size: 1rem;
  letter-spacing: 0.15em;
  position: relative;
}

/* ── Main content ────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ── Section headings ────────────────────────── */

.section-title {
  font-size: 1.6rem;
  color: var(--brown);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

/* ── Cards ───────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow);
}

.card .card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.card h3 {
  color: var(--brown);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p,
.card a {
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card a {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

/* ── Schedule ────────────────────────────────── */

.schedule {
  margin-bottom: 50px;
}

.schedule-day {
  margin-bottom: 30px;
}

.schedule-day h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-style: italic;
}

.schedule-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tan);
  align-items: flex-start;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  min-width: 90px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: bold;
  padding-top: 2px;
  font-family: 'Courier New', monospace;
}

.schedule-desc strong {
  display: block;
  color: var(--brown);
  margin-bottom: 2px;
}

.schedule-desc span {
  font-size: 0.9rem;
  color: #6b5240;
}

/* ── Location cards ──────────────────────────── */

.location-group {
  margin-bottom: 44px;
}

.location-group h2 {
  font-size: 1.4rem;
  color: var(--brown);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.place-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow);
}

.place-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--tan);
}

.place-card-body {
  padding: 16px;
}

.place-card-body h3 {
  color: var(--brown);
  font-size: 1rem;
  margin-bottom: 6px;
}

.place-card-body .address {
  font-size: 0.85rem;
  color: #6b5240;
  line-height: 1.5;
  margin-bottom: 8px;
}

.place-card-body .notes {
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-style: italic;
}

.directions-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
}

.directions-link:hover {
  text-decoration: underline;
}

/* ── Photo gallery ───────────────────────────── */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.photo-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  box-shadow: 0 2px 6px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px var(--shadow);
}

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

/* ── Lightbox ────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.lb-close {
  position: fixed;
  top: 16px;
  right: 22px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.lb-close:hover { opacity: 1; }

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 10px 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  user-select: none;
  opacity: 0.7;
}

.lb-prev:hover,
.lb-next:hover { opacity: 1; background: rgba(255,255,255,0.2); }

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-family: sans-serif;
}

/* ── Login form ──────────────────────────────── */

.login-wrap {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 40px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 32px var(--shadow);
  text-align: center;
}

.login-card .lock-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.login-card h1 {
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 6px;
}

.login-card p {
  color: #6b5240;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.login-card input[type="password"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: Georgia, serif;
  background: var(--cream);
  color: var(--dark);
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.login-card input[type="password"]:focus {
  border-color: var(--gold);
}

.login-card button {
  width: 100%;
  padding: 13px;
  background: var(--brown);
  color: #fdf6ec;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Georgia, serif;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.login-card button:hover {
  background: var(--gold);
}

.error-msg {
  background: #fff0f0;
  border: 1px solid #e0b0b0;
  color: #8b1a1a;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* ── Footer ──────────────────────────────────── */

footer {
  background: var(--brown);
  color: var(--tan);
  text-align: center;
  padding: 18px 20px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* ── Utility ─────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--brown);
  color: var(--cream);
  text-decoration: none;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--gold);
}

.placeholder-note {
  background: var(--tan);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--brown);
  border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
  font-style: italic;
}

@media (max-width: 600px) {
  .site-header { padding: 40px 16px 34px; }
  main { padding: 28px 14px 40px; }
  .login-card { padding: 32px 22px; }
  .lb-prev, .lb-next { font-size: 1.8rem; padding: 8px 12px; }
}
