/* Taylors Travel Journal – Premium light theme with motion */

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --border: rgba(0,0,0,0.08);
  --text: #1a1a1c;
  --muted: #3a3a40;
  --gold: #9a7200;
  --gold-bright: #c9a227;
  --gold-soft: rgba(154,114,0,0.12);
  --scarlet: #c73e4a;
  --navy: #163a5f;
  --teal: #2a7a8c;
  --teal-soft: rgba(42,122,140,0.10);
  --blue-soft: #e8f0fa;
  --sand: #f7f1e8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 16px 40px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 90% 60% at 5% -5%, rgba(22,58,95,0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(154,114,0,0.09), transparent 50%),
    radial-gradient(ellipse 55% 35% at 80% 80%, rgba(42,122,140,0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 105%, rgba(199,62,74,0.05), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

a { color: var(--navy); text-decoration: none; transition: opacity 0.2s, color 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(154,114,0,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(154,114,0,0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Password gate */
#password-gate {
  position: fixed; inset: 0;
  background: linear-gradient(145deg, #f4f5f7 0%, #e2e6ef 50%, #f0ebe3 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
#password-gate.hidden { display: none; }

.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 52px 40px;
  border-radius: 24px;
  max-width: 400px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
  animation: scaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gate-card h1 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  background: linear-gradient(120deg, var(--text) 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gate-card .subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
  line-height: 1.55;
  font-family: Inter, sans-serif;
  font-weight: 400;
}
.gate-card input {
  width: 100%;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.gate-card input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(22,58,95,0.12);
}
.gate-card button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--navy), #1e4a75);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s;
}
.gate-card button:hover { box-shadow: 0 10px 28px rgba(22,58,95,0.3); transform: translateY(-1px); }
.gate-card button:active { transform: scale(0.98); }
.gate-error { color: var(--scarlet); font-size: 0.9rem; margin-top: 16px; display: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--gold); }

nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 72%;
}
nav::-webkit-scrollbar { display: none; }
nav a {
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: Inter, sans-serif;
  white-space: nowrap;
  transition: all 0.25s;
}
nav a:hover, nav a.active {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* Hero */
.hero {
  position: relative;
  margin: 20px 0 36px;
  border-radius: 22px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  transition: transform 10s ease;
  will-change: transform;
}
.hero:hover .hero-photo { transform: scale(1.06); }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.4) 42%,
    rgba(0,0,0,0.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 36px 48px;
  width: 100%;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.hero-content .eyebrow {
  display: inline-block;
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0c97a;
  margin-bottom: 14px;
}
.hero-content h1 {
  font-size: clamp(2.3rem, 6.5vw, 3.5rem);
  margin-bottom: 14px;
  max-width: 700px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content .lead {
  font-family: Inter, sans-serif;
  font-size: 1.12rem;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.55;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.hero-meta div {
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.94);
}
.hero-meta strong {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f0c97a;
  margin-bottom: 3px;
  font-weight: 600;
}

/* Countdown */
.countdown-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 44px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeUp 0.75s ease 0.25s both;
  position: relative;
  overflow: hidden;
}
.countdown-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--scarlet));
  background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
}
.countdown-label {
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.countdown-unit {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 78px;
  padding: 16px 10px 12px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.countdown-unit:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.countdown-num {
  font-family: Inter, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-text {
  font-family: Inter, sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* Sections */
.section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
  padding: 10px 14px 22px;
  margin-left: -14px;
  margin-right: -14px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.section:hover {
  background: rgba(255,255,255,0.55);
  border-color: rgba(42,122,140,0.18);
  box-shadow: 0 8px 32px rgba(22,58,95,0.06);
}
.section:target,
.section.nav-focus {
  background: rgba(255,255,255,0.72);
  border-color: rgba(154,114,0,0.3);
  box-shadow: 0 10px 36px rgba(154,114,0,0.1);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  position: relative;
  padding-left: 14px;
}
.section-header h2::before {
  content: '';
  position: absolute;
  left: 0; top: 0.15em; bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}
.section-header .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  font-family: Inter, sans-serif;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.card h4 {
  font-family: Inter, sans-serif;
  font-weight: 600;
}

/* Garrison */
.garrison-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  align-items: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s, transform 0.35s;
}
.garrison-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.garrison-card img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #f0e6d0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.garrison-card:hover img { transform: scale(1.06); }
.garrison-card h3 { margin-bottom: 4px; }
.garrison-card p {
  color: var(--muted);
  font-size: 0.95rem;
  font-family: Inter, sans-serif;
}

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--scarlet), var(--navy));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}
.timeline-item:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border-color: rgba(154,114,0,0.25);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px; top: 22px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold);
  transition: transform 0.25s;
}
.timeline-item:hover::before { transform: scale(1.25); }
.timeline-item.sea::before { background: #5a7ab5; box-shadow: 0 0 0 2px #5a7ab5; }
.timeline-item.eclipse::before {
  background: var(--gold-bright);
  box-shadow: 0 0 0 2px var(--gold-bright);
  animation: pulse-soft 2.4s infinite;
}
.timeline-date {
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.timeline-port {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.timeline-time {
  color: var(--muted);
  font-size: 0.9rem;
  font-family: Inter, sans-serif;
}
.timeline-note {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--gold-soft);
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: Inter, sans-serif;
}

/* Map */
#map {
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  z-index: 1;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.map-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: Inter, sans-serif;
}
.legend-item { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.gallery-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--surface-2);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .caption {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--muted);
  font-family: Inter, sans-serif;
}
.gallery-item .day-tag {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 5px;
}

/* Posts / Stories */
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.post-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-family: Inter, sans-serif;
}
.post-meta .day { color: var(--gold); font-weight: 600; }
.post h3 { margin-bottom: 12px; }
.post p { color: var(--muted); margin-bottom: 10px; font-family: Inter, sans-serif; }
.post .long-story {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-top: 14px;
  color: var(--muted);
  min-height: 12px;
}
.post .long-story:empty {
  min-height: 48px;
  background: linear-gradient(90deg, var(--sand), transparent);
  border-radius: 0 8px 8px 0;
}

/* Favorites */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.favorite-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
  min-height: 72px;
}
.favorite-card:nth-child(2) { border-top-color: var(--teal); }
.favorite-card:nth-child(3) { border-top-color: var(--navy); }
.favorite-card:nth-child(4) { border-top-color: var(--scarlet); }
.favorite-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.favorite-card h4 { margin-bottom: 8px; }
.favorite-card p {
  color: var(--muted);
  font-size: 0.92rem;
  font-family: Inter, sans-serif;
}

/* Packing */
.packing-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.packing-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.packing-category:hover { transform: translateY(-4px); }
.packing-category h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-family: Inter, sans-serif;
}
.packing-category ul { list-style: none; }
.packing-category li {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  font-family: Inter, sans-serif;
}
.packing-category li:last-child { border-bottom: none; }

/* Notes */
.notes-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.notes-area textarea {
  width: 100%;
  min-height: 150px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.notes-area textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.notes-area button {
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--navy), #1e4a75);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.notes-area button:hover {
  box-shadow: 0 8px 24px rgba(22,58,95,0.28);
  transform: translateY(-1px);
}
.notes-area .saved-msg {
  color: #2e7d32;
  font-size: 0.9rem;
  margin-left: 12px;
  display: none;
}

/* Comments */
.comments-section { margin-top: 28px; }
.comment {
  background: var(--surface-2);
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  animation: fadeUp 0.4s ease;
}
.comment-author {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  font-size: 0.9rem;
  font-family: Inter, sans-serif;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.comment-form input,
.comment-form textarea {
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.comment-form button {
  align-self: flex-start;
  padding: 12px 22px;
  background: var(--scarlet);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.comment-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(199,62,74,0.3);
}

/* Train box */
.train-box {
  background: linear-gradient(135deg, var(--blue-soft), var(--teal-soft));
  border: 1px solid #c5d6ea;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: Inter, sans-serif;
}
.train-box strong { color: var(--text); }

.badge {
  display: inline-block;
  background: var(--scarlet);
  color: white;
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
  font-family: Inter, sans-serif;
}
.badge.eclipse {
  background: linear-gradient(90deg, #d4a84b, var(--gold));
  color: #fff;
}

.placeholder-note {
  background: linear-gradient(135deg, #fdf8ef, #f5f0e6);
  border: 1px solid #ead9b0;
  color: #5c4a1e;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-family: Inter, sans-serif;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.88rem;
  font-family: Inter, sans-serif;
}
footer strong {
  color: var(--text);
  font-family: "Playfair Display", serif;
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }
  nav { max-width: 100%; width: 100%; }
  .hero {
    min-height: 460px;
    margin: 14px 0 28px;
    border-radius: 16px;
  }
  .hero-content { padding: 28px 20px 32px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content .lead { font-size: 1.02rem; }
  .garrison-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
  }
  .garrison-card img { margin: 0 auto 6px; }
  #map { height: 300px; }
  .timeline { padding-left: 22px; }
  .timeline-item::before { left: -21px; }
  .card, .post { padding: 22px; }
  main { padding: 0 16px 80px; }
  .section { margin-bottom: 44px; }
  .countdown-unit { min-width: 68px; padding: 14px 8px 10px; }
  .countdown-num { font-size: 1.7rem; }
}

@media (max-width: 420px) {
  .hero { min-height: 420px; }
  .hero-content h1 { font-size: 1.75rem; }
  .gallery-grid,
  .favorites-grid,
  .packing-list { grid-template-columns: 1fr; }
  .countdown { gap: 8px; }
  .countdown-unit { min-width: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero:hover .hero-photo { transform: none; }
  .timeline-item.eclipse::before { animation: none; }
  .countdown-wrap::before { animation: none; }
  #password-gate { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* Collapsible panels */
.summary-card p { font-family: Inter, sans-serif; color: var(--muted); line-height: 1.55; }
.summary-card p strong { color: var(--text); }
.collapse-toggle {
  margin-top: 16px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--navy), #1e4a75);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: transform 0.15s, box-shadow 0.2s;
}
.collapse-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22,58,95,0.28);
}
.collapse-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--teal), #1f6b7a);
}
.collapse-panel {
  margin-top: 18px;
  animation: fadeUp 0.45s ease;
}
.collapse-panel[hidden] {
  display: none !important;
}


/* Lightbox + photo comments */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 12, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.lightbox[hidden] { display: none !important; }
.lightbox-inner {
  display: flex;
  gap: 24px;
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  align-items: stretch;
  width: 100%;
}
.lightbox-inner > img {
  max-width: min(65vw, 720px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  flex-shrink: 1;
  background: #111;
}
.lightbox-side {
  flex: 1;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  color: #fff;
  max-height: 85vh;
  overflow: auto;
}
.lightbox-caption {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  line-height: 1.4;
}
.lightbox-comments h4 {
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0c97a;
  margin-bottom: 12px;
}
#lightbox-comments-list {
  flex: 1;
  overflow: auto;
  margin-bottom: 12px;
  max-height: 280px;
}
#lightbox-comments-list .comment {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}
#lightbox-comments-list .comment-author {
  color: #f0c97a;
}
.lightbox-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lightbox-comment-form input,
.lightbox-comment-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
}
.lightbox-comment-form input::placeholder,
.lightbox-comment-form textarea::placeholder {
  color: rgba(255,255,255,0.45);
}
.lightbox-comment-form input:focus,
.lightbox-comment-form textarea:focus {
  outline: none;
  border-color: rgba(240,201,122,0.5);
}
.lightbox-comment-form button {
  align-self: flex-start;
  padding: 10px 16px;
  background: var(--scarlet);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, sans-serif;
}
.lightbox-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-family: Inter, sans-serif;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.gallery-item, .gallery-item img, .garrison-card img { cursor: zoom-in; }

@media (max-width: 768px) {
  .lightbox-inner {
    flex-direction: column;
    align-items: center;
    overflow: auto;
    max-height: 92vh;
  }
  .lightbox-inner > img {
    max-width: 94vw;
    max-height: 45vh;
  }
  .lightbox-side {
    max-width: 100%;
    width: 100%;
  }
}
