/* ===========================================================
   The Anheiers — shared styles
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f5f7f1;
  --bg-alt: #e8eee1;
  --surface: #ffffff;
  --text: #1e2a1c;
  --text-muted: #5c6b56;
  --accent: #2f5233;
  --accent-soft: #dde8da;
  --border: #dbe4d4;
  --lock: #74836d;
  --shadow: 0 1px 2px rgba(20, 30, 18, 0.05), 0 8px 24px rgba(20, 30, 18, 0.07);
  --radius: 14px;
  --max-width: 1080px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10160e;
    --bg-alt: #161f12;
    --surface: #1a2416;
    --text: #edf2e9;
    --text-muted: #a3b39c;
    --accent: #7cbf80;
    --accent-soft: #22301c;
    --border: #2a3523;
    --lock: #8b9884;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Deters casual saving of photos (right-click, drag, iOS long-press).
   Not real protection — screenshots and dev tools always work. */
.ig-item img,
.lightbox-media img,
.feed-media img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 640px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(16, 22, 14, 0.88); }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-links .lock-icon { opacity: 0.7; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 12px 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- Section cards on homepage ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 24px 0 72px;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.section-card:hover { transform: translateY(-3px); }

.card-media {
  height: 60px;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

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

.card-body h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.25em;
}

.card-body p { margin-bottom: 0; font-size: 0.85rem; }

.card-body .badge { font-size: 0.66rem; padding: 2px 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}

.badge.locked { background: #eee7dc; color: var(--lock); }

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-header p { max-width: 640px; font-size: 1.05rem; }

/* ---------- Instagram-style photo grid ---------- */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .ig-grid { gap: 6px; }
}

.ig-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  border: none;
  padding: 0;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ig-item:hover img { transform: scale(1.05); }

.ig-item .ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ig-item:hover .ig-overlay,
.ig-item:focus-visible .ig-overlay { opacity: 1; }

.ig-overlay-caption {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-overlay-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.ig-stack-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 12, 10, 0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.4;
}

.ig-stack-badge svg { width: 11px; height: 11px; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 780px) {
  .lightbox-inner {
    max-width: 920px;
    flex-direction: row;
  }
  .lightbox-media { flex: 1 1 55%; }
  .lightbox-sidebar {
    flex: 1 1 45%;
    border-left: 1px solid var(--border);
  }
}

/* Photo-only lightbox (no caption/comments sidebar) — stay a normal
   single-image size instead of the two-column caption+comments width. */
.simple-lightbox-inner,
.simple-lightbox-inner .lightbox-media {
  max-width: 700px;
}

.lightbox-media {
  position: relative;
  flex-shrink: 0;
  background: #0b0a09;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 90vh;
  overflow: hidden;
}

.lightbox-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-image-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.lightbox-image-counter[hidden] { display: none; }

.lightbox-caption {
  padding: 16px 20px;
}

.lightbox-caption p { margin: 0 0 4px; color: var(--text); font-size: 0.95rem; line-height: 1.4; }
.lightbox-caption .caption-avatar {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 7px;
}
.lightbox-caption .caption-author {
  font-weight: 700;
  color: var(--accent);
  margin-right: 6px;
}
.lightbox-caption .lightbox-date { font-size: 0.8rem; color: var(--text-muted); }

.caption-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
}

.lightbox-prev[hidden],
.lightbox-next[hidden] { display: none; }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 640px) {
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- Comments (in the lightbox) ---------- */

.comments {
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
}

.comments h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.comment-loading {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.comment-loading[hidden] { display: none; }

.comment-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.comment-empty[hidden] { display: none; }

.comment-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.comment-list li {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 10px 14px;
}

.comment-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 6px;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-body {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  resize: vertical;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.comment-form-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.comment-form button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.comment-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

.comment-error {
  font-size: 0.82rem;
  color: #c0392b;
  margin: 0;
}
.comment-error[hidden] { display: none; }

/* Honeypot: present in the DOM for bots, invisible to people */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Timeline (house progress) ---------- */

.progress-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
  margin: 8px 0 4px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.house-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.year-nav button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.year-nav button:hover { background: var(--bg-alt); color: var(--text); }

.house-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.house-search input[type="search"] {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  width: 220px;
  max-width: 60vw;
}

.house-search input[type="search"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.house-search-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-item.search-hidden { display: none; }

.timeline {
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg);
}

.timeline-item.done::before { background: var(--accent); }
.timeline-item.current::before {
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-item h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.timeline-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-title-row .share-btn { flex-shrink: 0; margin-top: 2px; }

.timeline-item .status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.timeline-item.done .status { background: var(--accent-soft); color: var(--accent); }
.timeline-item.current .status { background: var(--accent); color: #fff; }

.timeline-item .date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }

.house-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.house-photo-grid img {
  border-radius: 8px;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.house-photo-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.house-photo-story[hidden] { display: none; }

.house-photo-story p {
  max-width: 480px;
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.house-photo {
  margin: 10px 0;
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.house-photo img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.house-photo figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
}

.house-video {
  max-width: 480px;
  width: 100%;
  margin: 10px 0;
}

.house-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.house-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.post-preview[hidden] { display: none; }

.preview-photos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preview-photos img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
}

.preview-text {
  width: 100%;
  max-width: 480px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.expand-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.expand-btn:hover { text-decoration: underline; }

/* ---------- Travel / itinerary ---------- */

.private-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 36px;
  font-size: 0.9rem;
  color: var(--text);
}

.trip-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.trip-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--text-muted);
}

.trip-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.trip-panel { display: none; }
.trip-panel.active { display: block; }

.trip-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.trip-meta strong { color: var(--text); }

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.day-card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.day-card .day-num {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

.day-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.day-card li { margin-bottom: 6px; }

/* ---------- Travel: sub-nav ---------- */

.travel-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.travel-subnav a {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
}

.travel-subnav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Travel: overview page ---------- */

.trip-title-block {
  margin-bottom: 32px;
}

.trip-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.trip-title-block h1 { margin-bottom: 6px; }

.trip-dates {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.tz-note {
  display: flex;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 20px 0 36px;
}

.quicklink-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

@media (max-width: 720px) {
  .quicklink-grid { grid-template-columns: 1fr; }
}

.quicklink-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}

.quicklink-card .qc-icon { font-size: 1.6rem; margin-bottom: 8px; }
.quicklink-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.quicklink-card p { font-size: 0.88rem; margin: 0; }

.todo-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.todo-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.92rem;
}

.todo-list li::before {
  content: '';
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 4px;
  border: 2px solid var(--accent);
}

.guest-note {
  display: flex;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

/* ---------- Travel: day-by-day itinerary ---------- */

.section-divider {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 48px 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.section-divider h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-divider .tz-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

.day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.day-head h3 { font-size: 1.15rem; margin: 0; }

.weather-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.entry {
  display: flex;
  gap: 16px;
  padding: 10px 0;
}

.entry + .entry { border-top: 1px dashed var(--border); }

.entry-time {
  flex: 0 0 90px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.entry-time-sea {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.entry-content { flex: 1; min-width: 0; }

.entry-title {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 8px;
  border-radius: 999px;
}

.entry-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.free-block {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 0;
  border-top: 1px dashed var(--border);
}

.tip {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.tip-title {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin: 0 0 4px;
}

.tip p:last-child { margin: 0; color: var(--text-muted); }

.day-note {
  display: flex;
  gap: 10px;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text);
}

.open-day {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0 16px;
}

/* ---------- Travel: logistics tables & directory ---------- */

.table-scroll { overflow-x: auto; margin-bottom: 40px; }

.bags-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 640px;
}

.bags-table th,
.bags-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.bags-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 600;
}

.bags-table td:first-child { font-weight: 600; white-space: nowrap; }
.bags-table .muted { color: var(--text-muted); }

.jetlag-step {
  margin-bottom: 28px;
}

.jetlag-step h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.jetlag-step .step-num {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
}

.jetlag-step ul {
  padding-left: 20px;
  color: var(--text-muted);
}

.jetlag-step li { margin-bottom: 6px; }

.note-section { margin-bottom: 40px; }
.note-section h3 { font-size: 1.05rem; margin-bottom: 8px; }
.note-section ul { padding-left: 20px; color: var(--text-muted); }
.note-section li { margin-bottom: 6px; }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .directory-grid { grid-template-columns: 1fr; }
}

.directory-group h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.directory-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}

.directory-group li strong { color: var(--text); }

.source-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

/* ---------- Here & There feed ---------- */

.feed {
  border-top: 1px solid var(--border);
  padding-bottom: 64px;
}

.feed-loading {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
}

.feed-post {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.feed-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.feed-avatar img { width: 100%; height: 100%; object-fit: cover; }

.feed-body { flex: 1; min-width: 0; }

.feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.feed-meta .share-btn { margin-left: auto; }

.feed-author { font-weight: 700; color: var(--text); }
.feed-time { font-size: 0.85rem; color: var(--text-muted); }

.feed-text {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
}

.feed-media img {
  width: 100%;
  border-radius: 12px;
  max-height: 420px;
  object-fit: cover;
}

/* ---------- Share button, toast, deep-link highlight ---------- */

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.share-btn:hover { background: var(--bg-alt); color: var(--text); }

.share-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.share-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes share-flash {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  20% { box-shadow: 0 0 0 4px var(--accent); }
}

.share-highlight { animation: share-flash 2.2s ease; border-radius: var(--radius); }

/* ---------- Post-photo (phone upload) form ---------- */

.post-photo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.post-photo-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
}

.post-photo-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.post-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-photo-previews img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.post-photo-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
}

.post-photo-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.post-photo-form button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.post-photo-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

.post-photo-status { font-size: 0.9rem; margin: 0; }
.post-photo-status.success { color: var(--accent); }
.post-photo-status.error { color: #c0392b; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.subscribe-box {
  max-width: 420px;
  margin: 0 auto 28px;
  text-align: center;
}

.subscribe-label {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 10px;
}

.subscribe-form {
  display: flex;
  gap: 8px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
}

.subscribe-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.subscribe-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}

.subscribe-form button:disabled { opacity: 0.6; cursor: default; }

.subscribe-message {
  margin-top: 10px;
  font-size: 0.82rem;
}

.subscribe-message.success { color: var(--accent); }
.subscribe-message.error { color: #c0392b; }
.subscribe-message[hidden] { display: none; }
