/* ========================================
   China 2026 — Reisblog stijl
   Geïnspireerd op noorwegen2026.pages.dev
   Polarsteps-touch: stats-hero, dag-cards met cover, mobiel-timeline
   ======================================== */

:root {
  /* basis kleuren */
  --bg:           #f8f4ef;
  --bg-card:     #ffffff;
  --bg-soft:     #f1ebe1;
  --bg-deep:     #ede4d3;

  --ink:         #2b2620;
  --ink-soft:    #5a5048;
  --ink-mute:    #8c8278;

  --line:        #e6dcc8;
  --line-soft:   #efe7d6;

  --accent:      #c4956a;
  --accent-deep: #a87648;
  --accent-soft: #ead7bf;

  /* tag kleuren — voor plan-activiteiten */
  --tag-hotel-bg:   #efe2d3;  --tag-hotel-ink:   #6e5538;
  --tag-food-bg:    #fbe5cc;  --tag-food-ink:    #985f24;
  --tag-nature-bg:  #dde9d8;  --tag-nature-ink:  #4d6e44;
  --tag-culture-bg: #e8dcec;  --tag-culture-ink: #6b3a82;
  --tag-tip-bg:     #fbe9b6;  --tag-tip-ink:     #8c660a;

  /* fase kleuren — voor pins/tabs */
  --phase-vertrek:    #8c8278;   /* warm grijs (transit) */
  --phase-hangzhou1:  #6ea88c;   /* groen */
  --phase-huangshan:  #8a7cbf;   /* paars */
  --phase-hangzhou2:  #c4956a;   /* oranje (accent) */
  --phase-shanghai:   #5b8bbf;   /* blauw */
  --phase-hangzhou3:  #c97a7a;   /* rood */
  --phase-thuiskomst: #8c8278;   /* warm grijs (transit) */

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;

  --shadow-sm: 0 1px 3px rgba(43, 38, 32, 0.04), 0 2px 8px rgba(43, 38, 32, 0.04);
  --shadow-md: 0 4px 16px rgba(43, 38, 32, 0.06), 0 12px 32px rgba(43, 38, 32, 0.05);
  --shadow-lg: 0 8px 30px rgba(43, 38, 32, 0.10), 0 24px 60px rgba(43, 38, 32, 0.08);

  --container: 1100px;
  --content:    760px;

  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem;
  font-family: var(--font-display);
  box-shadow: var(--shadow-sm);
}
.brand__name {
  font-weight: 600; letter-spacing: 0.02em;
}
/* HAMBURGERMENU + edit-badge */
.header-right {
  position: relative;
  display: flex; align-items: center; gap: 0.65rem;
}
.menu-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: 3px 3px 3px;
  align-content: center; justify-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: all 0.18s ease;
}
.menu-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.menu-btn__bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.menu-dropdown {
  position: absolute; top: calc(100% + 0.5rem); right: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  display: flex; flex-direction: column;
  animation: menu-in 0.18s ease-out;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.menu-dropdown[hidden] { display: none; }
.menu-item {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  width: 100%;
  transition: background 0.15s ease;
}
.menu-item:hover {
  background: var(--bg-soft);
  text-decoration: none;
}
.menu-item--accent {
  color: var(--accent-deep);
  font-weight: 600;
}
.menu-item--accent:hover {
  background: var(--accent-soft);
}
.menu-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.3rem 0;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding: 4rem 1.25rem 2.5rem;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(196, 149, 106, 0.18), transparent 60%),
    radial-gradient(800px 400px at 0% 50%, rgba(110, 168, 140, 0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--line);
}
.hero__inner {
  max-width: var(--container); margin: 0 auto;
}
.hero__eyebrow {
  margin: 0 0 0.5rem; font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600;
}
.hero__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
}
.hero__title-en { display: block; line-height: 1; }
.hero__title-cn {
  display: inline-flex;
  align-items: center;
  font-size: 0.45em;
  color: var(--accent-deep);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  font-family: var(--font-display), 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
.hero__title-cn .tr {
  font-size: 0.6em; /* compensatie voor kleinere container */
  margin-left: 0.5rem;
}
.hero__sub {
  margin: 0 0 1.2rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero__route {
  margin: 0 0 2.2rem;
  font-size: 0.95rem;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero__route span {
  color: var(--accent);
  margin: 0 0.35rem;
}

/* stats — Polarsteps-stijl grote cijfers */
.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 720px;
}
.stats li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stats li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stats .val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}
.stats .lbl {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

/* ===========================================================
   3D WERELDBOL
   =========================================================== */
.globe-section {
  position: relative;
  background:
    radial-gradient(800px 400px at 20% 50%, rgba(91, 139, 191, 0.10), transparent 60%),
    radial-gradient(800px 400px at 80% 50%, rgba(196, 149, 106, 0.12), transparent 60%),
    #1d1916;
  color: #f8f4ef;
  padding: 4rem 1.25rem 4rem;
  overflow: hidden;
}
.globe-section::before,
.globe-section::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.globe-section::before { top: 0; }
.globe-section::after  { bottom: 0; }

.globe-section__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid;
  gap: 2rem;
}
.globe-section__head {
  text-align: center;
  max-width: 720px; margin: 0 auto;
}
.globe-section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.globe-section__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  color: #f8f4ef;
}
.globe-section__sub {
  margin: 0;
  color: rgba(248, 244, 239, 0.65);
  font-size: 0.95rem;
}

.globe-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .globe-wrap {
    grid-template-columns: 1fr 320px;
  }
}

.globe-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  cursor: grab;
  /* Laat verticale page-scroll DOOR de globe heen op mobiel
     (1-vinger horizontaal = roteer globe, verticaal = page scroll) */
  touch-action: pan-y pinch-zoom;
}
.globe-canvas:active { cursor: grabbing; }
.globe-canvas canvas { width: 100% !important; height: 100% !important; }

/* Overlay met progress info */
.globe-overlay {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.globe-overlay__phase {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.globe-overlay__big {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.globe-overlay__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 1;
  color: #f8f4ef;
  letter-spacing: -0.01em;
}
.globe-overlay__sub {
  font-size: 1rem;
  color: rgba(248, 244, 239, 0.6);
  font-weight: 500;
}
.globe-overlay__current {
  font-size: 0.95rem;
  color: rgba(248, 244, 239, 0.85);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.globe-overlay__bar {
  height: 4px;
  background: rgba(248, 244, 239, 0.10);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.globe-overlay__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.globe-overlay__date {
  font-size: 0.85rem;
  color: rgba(248, 244, 239, 0.5);
  text-transform: capitalize;
}

/* Globe loading state */
.globe-canvas:empty::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, #2a2520 0%, #1d1916 70%);
  border-radius: 50%;
}
.globe-canvas:empty::after {
  content: "🌏";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.4;
  animation: globe-spin 4s linear infinite;
}
@keyframes globe-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===========================================================
   2D ROUTEKAART (MapLibre)
   =========================================================== */
.map-section {
  background: var(--bg);
  padding: 3.5rem 1.25rem 3rem;
  border-bottom: 1px solid var(--line);
}
.map-section__inner {
  max-width: var(--container); margin: 0 auto;
}
.map-section__head {
  text-align: center;
  max-width: 720px; margin: 0 auto 1.8rem;
}
.map-section__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}
.map-section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.map-section__sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.map-canvas {
  width: 100%;
  height: 480px;
  background: var(--bg-soft);
  position: relative;
}
@media (max-width: 600px) {
  .map-canvas { height: 360px; }
}

/* MapLibre overrides — match site-stijl */
.maplibregl-popup-content {
  border-radius: var(--radius-md) !important;
  padding: 0.7rem 0.95rem !important;
  font-family: var(--font-sans) !important;
  box-shadow: var(--shadow-lg) !important;
}
.maplibregl-ctrl-group {
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* ===========================================================
   FASE TABS
   =========================================================== */
.phases {
  position: sticky; top: 60px; z-index: 30;
  background: rgba(248, 244, 239, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.phases__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 1.25rem;
}
.phases__tabs {
  display: flex; gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.85rem 0;
  scrollbar-width: thin;
}
.phases__tabs::-webkit-scrollbar { height: 4px; }
.phases__tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.phase-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.phase-tab:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.phase-tab[aria-current="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.phase-tab__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.phase-tab[aria-current="true"] .phase-tab__dot {
  opacity: 1;
}
.phase-tab__count {
  font-size: 0.75rem;
  background: var(--bg-soft);
  color: var(--ink-mute);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
}
.phase-tab[aria-current="true"] .phase-tab__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ===========================================================
   DAGEN GRID
   =========================================================== */
.days {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .days {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .days {
    grid-template-columns: repeat(3, 1fr);
  }
}

.day {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  scroll-margin-top: 130px;
}
.day:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.day[data-open="true"] {
  grid-column: 1 / -1;
  box-shadow: var(--shadow-lg);
}

/* cover — placeholder met fase-emoji als geen foto */
.day__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-deep));
  display: grid; place-items: center;
  overflow: hidden;
}
.day__cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.day__cover-emoji {
  font-size: clamp(3rem, 6vw, 4.5rem);
  opacity: 0.45;
  filter: grayscale(0.2);
}
.day__num {
  position: absolute; top: 0.85rem; left: 0.85rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.day__phase-badge {
  position: absolute; top: 0.85rem; right: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.day__body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex; flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.day__date {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}
.day__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.day__sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.day__pills {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.2rem;
}
.day__pill {
  font-size: 0.74rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
  font-weight: 500;
}
.day__sleep {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Speciale notitie per dag (bv. "Stijn blijft bij Samantha") */
.day__note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.day__toggle {
  margin-top: 0.65rem;
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: all 0.18s ease;
}
.day__toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.day__toggle::after {
  content: "▾";
  transition: transform 0.2s ease;
  color: var(--accent-deep);
}
.day[data-open="true"] .day__toggle::after {
  transform: rotate(180deg);
}

/* uitgeklapte sectie */
.day__detail {
  display: none;
  padding: 0 1.2rem 1.5rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 0.5rem;
}
.day[data-open="true"] .day__detail {
  display: block;
}
.day__detail h4 {
  margin: 1.2rem 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}

/* plan items */
.plan {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.plan-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.plan-item__time {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent-deep);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.plan-item__body { display: flex; flex-direction: column; gap: 0.2rem; }
.plan-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.plan-item__desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.plan-item__tag {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}
.plan-item__tag[data-tag="hotel"]   { background: var(--tag-hotel-bg);   color: var(--tag-hotel-ink); }
.plan-item__tag[data-tag="food"]    { background: var(--tag-food-bg);    color: var(--tag-food-ink); }
.plan-item__tag[data-tag="nature"]  { background: var(--tag-nature-bg);  color: var(--tag-nature-ink); }
.plan-item__tag[data-tag="culture"] { background: var(--tag-culture-bg); color: var(--tag-culture-ink); }
.plan-item__tag[data-tag="tip"]     { background: var(--tag-tip-bg);     color: var(--tag-tip-ink); }

/* story */
.story {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  padding: 1rem 1.1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  white-space: pre-wrap;
}
.story.is-empty {
  font-style: italic;
  color: var(--ink-mute);
  border-left-color: var(--line);
  background: transparent;
  padding: 0.5rem 0;
}

/* photos */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}
.photos.is-empty {
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--ink-mute);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
}
.photo {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line-soft);
  transition: transform 0.18s ease;
}
.photo:hover { transform: scale(1.02); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================================================
   INFO PANEEL
   =========================================================== */
.info {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 4rem 1.25rem;
}
.info__inner { max-width: var(--container); margin: 0 auto; }
.info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.info__card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.info__card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.info__card p { margin: 0 0 0.7rem; }
.info__small {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Adres-blok in beide talen (Latijn + Chinees) */
.addr {
  margin: 0.4rem 0 0.6rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.addr__cn {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
  font-weight: 500;
}
.addr__en {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.4;
}
.addr__phone {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.addr__phone a { color: var(--accent-deep); }

.notes-list {
  list-style: none; padding: 0; margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.notes-list li {
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
  line-height: 1.45;
}
.notes-list li::before {
  content: "·";
  position: absolute; left: 0.3rem;
  color: var(--accent);
  font-weight: 700;
}

.private-block {
  margin-top: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: rgba(196, 149, 106, 0.10);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.private-block__label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.private-block dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.8rem;
}
.private-block dt {
  font-weight: 600;
  color: var(--ink-mute);
}
.private-block dd {
  margin: 0;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

/* TRANSLATE knopjes */
.tr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; height: 1.5rem;
  margin-left: 0.4rem;
  background: var(--bg-card);
  color: var(--accent-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
  flex-shrink: 0;
}
.tr:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
  transform: scale(1.08);
}
.tr--cn { color: var(--accent-deep); }
.tr--nl { color: #5b8bbf; }

.translate-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-soft));
}
.translate-card .tr-link {
  display: inline-block;
  margin: 0.2rem 0.3rem 0.2rem 0;
  padding: 0.4rem 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s ease;
}
.translate-card .tr-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}
.translate-card .tr-link strong { color: var(--accent-deep); }

.tr-details {
  margin: 0.5rem 0;
  padding: 0.5rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.tr-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  user-select: none;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
}
.tr-details summary::after {
  content: "▾";
  color: var(--accent);
  transition: transform 0.18s ease;
}
.tr-details[open] summary::after { transform: rotate(180deg); }
.tr-details summary::-webkit-details-marker { display: none; }
.tr-details p { margin: 0.5rem 0 0.2rem; line-height: 1.55; }
.tr-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  padding: 2rem 1.25rem 5rem;
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.85rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem;
}
.edit-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .edit-badge { display: none; }  /* alleen menu-btn op klein scherm */
}

/* Edit-mode visibility helpers */
.edit-only { display: none !important; }
body[data-edit="true"] .edit-only { display: revert !important; }
body[data-edit="true"] .public-only { display: none !important; }

/* PIN input */
#pin-form {
  display: flex; flex-direction: column; gap: 1rem;
}
#pin-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.6rem;
  letter-spacing: 0.5em;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-display);
  transition: border-color 0.18s ease, background 0.18s ease;
}
#pin-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
}
.modal__error {
  background: #fbe5cc;
  color: #985f24;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  text-align: center;
  border: 1px solid #f4c794;
}
.modal__actions {
  display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap;
}
.modal__actions button {
  flex: 1;
  min-width: 120px;
}
.modal__actions button[type="button"] {
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.modal__actions button[type="button"]:hover {
  background: var(--bg-deep);
}

/* TOAST notifications */
.toast {
  position: fixed;
  bottom: 90px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #f8f4ef;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  animation: toast-in 0.25s ease-out;
}
.toast--error  { background: #985f24; }
.toast--success { background: #4d6e44; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* STORY EDITOR */
.story-editor {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.story-textarea {
  width: 100%;
  min-height: 180px;
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: border-color 0.18s ease;
}
.story-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.story-actions {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.85rem;
}
.story-save {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.18s ease;
}
.story-save:hover { background: var(--accent-deep); }
.story-save:disabled { background: var(--ink-mute); cursor: not-allowed; }
.story-status {
  color: var(--ink-mute);
  font-size: 0.82rem;
}
.story-status--ok { color: #4d6e44; }
.story-status--err { color: #985f24; }

/* PHOTO UPLOAD */
.upload {
  margin-bottom: 0.75rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--bg-soft);
  transition: all 0.18s ease;
  cursor: pointer;
}
.upload:hover, .upload[data-drag="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload__label {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
  cursor: pointer;
}
.upload__icon { font-size: 1.8rem; }
.upload__title {
  font-weight: 600;
  color: var(--ink);
}
.upload__hint {
  font-size: 0.8rem;
  color: var(--ink-mute);
}
.upload input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.upload-progress {
  margin-top: 0.6rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.upload-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}
.upload-item__name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink-soft);
}
.upload-item__status { font-weight: 600; }
.upload-item--ok  .upload-item__status { color: #4d6e44; }
.upload-item--err .upload-item__status { color: #985f24; }
.upload-item--working .upload-item__status { color: var(--accent-deep); }

/* PHOTO DELETE knop */
.photo {
  position: relative;
}
.photo-delete,
.photo-cover {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(20, 16, 12, 0.75);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: none;
  align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.photo-delete { top: 4px; right: 4px; }
.photo-cover  { top: 4px; left: 4px; font-size: 1.05rem; }
body[data-edit="true"] .photo-delete,
body[data-edit="true"] .photo-cover { display: flex; }
.photo-delete:hover { background: #985f24; transform: scale(1.1); }
.photo-cover:hover  { background: var(--accent-deep); transform: scale(1.1); }
.photo-cover[data-is-cover="true"] {
  background: var(--accent);
  color: #fff;
}

/* Cover indicator op de huidige cover-foto */
.photo--is-cover {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.photo-cover-badge {
  position: absolute;
  bottom: 6px; left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
}

/* ===========================================================
   FRASEBOEKJE — modal (open via hamburgermenu)
   =========================================================== */
.phrasebook-modal {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(20, 16, 12, 0.55);
}
.phrasebook-modal[hidden] { display: none; }
.phrasebook-inner {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 700px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-rows: auto 1fr;  /* header + scrollende body */
  overflow: hidden;
}
@media (min-width: 760px) {
  .phrasebook-inner {
    top: 2rem; bottom: 2rem;
    height: auto;
    max-height: calc(100% - 4rem);
    border-radius: var(--radius-lg);
  }
}

/* Header is fixed flex item bovenaan inner, body scrollt eronder */
.phrasebook-header {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 0.7rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.phrasebook-header h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}
.phrasebook-sub {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.78rem;
  line-height: 1.3;
}
.phrasebook-close {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  display: grid; place-items: center;
}
.phrasebook-close:hover { background: var(--accent-soft); border-color: var(--accent); }

/* Body scrollt onder header */
.phrasebook-body {
  flex: 1 1 auto;
  min-height: 0;            /* CRUCIAAL voor iOS flex-overflow */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 1.2rem 0 4rem;
}
.phrasebook-emergency,
.phrasebook-nav,
.phrasebook-cat {
  margin-left: 1.2rem;
  margin-right: 1.2rem;
}
.phrasebook-cat:last-child { padding-bottom: 4rem; }

/* Naar boven floating button — alleen zichtbaar bij scroll */
.phrasebook-totop {
  position: absolute;
  right: 1rem; bottom: 1rem;
  z-index: 6;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease;
}
.phrasebook-totop:hover { transform: translateY(-2px); }
.phrasebook-totop[hidden] { display: none; }

/* TTS diagnose-blok */
.phrasebook-diag {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.phrasebook-diag--err {
  background: #fbe5cc;
  border-color: #f4c794;
  color: #985f24;
}
.phrasebook-diag summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
  user-select: none;
}
.phrasebook-diag summary:hover { color: var(--accent-deep); }
.phrasebook-diag__body { margin-top: 0.7rem; color: var(--ink-soft); }
.phrasebook-diag__body p { margin: 0 0 0.5rem; }
.diag-list {
  list-style: none; padding: 0; margin: 0.5rem 0;
  font-size: 0.82rem;
  line-height: 1.6;
}
.diag-actions {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem;
}
.diag-test {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--ink);
  font-family: inherit;
}
.diag-test:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.phrasebook-diag__hint {
  margin-top: 0.85rem !important;
  padding: 0.7rem 0.85rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Noodnummers blok */
.phrasebook-emergency {
  background: linear-gradient(135deg, #fbe5cc, #fbe9b6);
  border: 1px solid #f4c794;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.4rem;
}
.phrasebook-emergency h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: #8c660a;
  letter-spacing: 0.02em;
}
.phrasebook-emergency ul {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}
.emerg-call {
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid #f4c794;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.18s ease;
}
.emerg-call:hover {
  background: #fef5e3;
  border-color: var(--accent);
  text-decoration: none;
}
.emerg-emoji { font-size: 1.6rem; }
.emerg-call strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: #8c660a;
}
.emerg-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Category nav (chips) */
.phrasebook-nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding-bottom: 1.2rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.phrasebook-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.phrasebook-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--ink);
}

/* Category sectie */
.phrasebook-cat {
  margin: 1.5rem 0;
  scroll-margin-top: 80px;  /* compenseer sticky header bij scroll-naar */
}
.phrasebook-cat h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

/* Phrase lijst */
.phrase-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 0.55rem;
}
.phrase {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease;
}
.phrase:hover { border-color: var(--accent); }
.phrase__text { min-width: 0; }
.phrase__nl {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.phrase__cn {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-display), 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  line-height: 1.3;
}
.phrase__pinyin {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-style: italic;
}
.phrase__actions {
  display: flex; gap: 0.35rem;
  align-items: center;
}
.phrase__speak,
.phrase__translate {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--accent-deep);
  font-size: 1.05rem;
  cursor: pointer;
  display: grid; place-items: center;
  text-decoration: none;
  transition: all 0.15s ease;
}
.phrase__speak:hover,
.phrase__translate:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.06);
}
.phrase__speak:active {
  transform: scale(0.94);
}

/* ===========================================================
   MOBIEL TIMELINE STRIP — Polarsteps-stijl swipe
   =========================================================== */
.timeline-strip {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(248, 244, 239, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.timeline-strip__inner {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.timeline-strip__inner::-webkit-scrollbar { display: none; }
.timeline-thumb {
  flex-shrink: 0;
  scroll-snap-align: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}
.timeline-thumb__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1;
}
.timeline-thumb__phase {
  position: absolute;
  bottom: -3px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 3px; border-radius: 2px;
}
.timeline-thumb[data-active="true"] {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.08);
}
.timeline-thumb[data-active="true"] .timeline-thumb__num {
  color: #fff;
}

@media (max-width: 760px) {
  .timeline-strip { display: block; }
  body { padding-bottom: 75px; }
}

/* ===========================================================
   LIGHTBOX
   =========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 16, 12, 0.94);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.15s ease;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }
.lightbox__caption {
  position: absolute; bottom: 1.2rem; left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* ===========================================================
   MODAL (PIN placeholder)
   =========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 16, 12, 0.55);
  display: grid; place-items: center;
  padding: 1.25rem;
}
.modal[hidden] { display: none; }
.modal__inner {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal__inner h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.modal__inner p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}
.modal__inner button {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
}
.modal__inner button:hover {
  background: var(--accent-deep);
}

/* ===========================================================
   RESPONSIVE FINETUNES
   =========================================================== */
@media (max-width: 600px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .site-nav { display: none; }
  .phases { top: 56px; }
  .days { padding-top: 1.5rem; }
}
