:root {
  --ink: #17372f;
  --forest: #153f35;
  --forest-deep: #0c2c26;
  --moss: #60786d;
  --paper: #f3efe6;
  --paper-deep: #e8e1d5;
  --cream: #fffdf8;
  --sun: #d69a4c;
  --line: #d9d3c7;
  --danger: #9d2f2f;
  --shadow: 0 18px 50px rgba(25, 47, 39, 0.12);
  --soft-shadow: 0 8px 24px rgba(25, 47, 39, 0.08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d69a4c; outline-offset: 3px; }

.topbar {
  min-height: 64px;
  padding: 0 max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(217, 211, 199, 0.75);
  position: relative;
  z-index: 30;
}
.brand { font-weight: 850; letter-spacing: -0.05em; font-size: 1.25rem; }
.brand span { color: var(--sun); }
.topbar-actions { display: flex; align-items: center; gap: 16px; color: var(--moss); font-size: 0.88rem; font-weight: 700; }
.topbar-actions form { margin: 0; }
.link-button { border: 0; background: none; color: inherit; padding: 12px 0; cursor: pointer; }

.page-head, .journey-grid, .trip-overview, .public-timeline, .form-page, .upload-page, .map-head {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 56px 0 28px; }
.page-head h1, .form-page h1, .upload-page h1, .map-head h1 {
  font: clamp(2.55rem, 7vw, 5.1rem) / 0.95 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
  margin: 0.12em 0;
}
.page-intro { margin: 12px 0 0; color: var(--moss); font-size: 1rem; line-height: 1.6; }
.eyebrow, .section-label, .destination-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 850;
  color: var(--moss);
}
.muted { color: var(--moss); line-height: 1.6; }
.button, button.primary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.quiet-button { background: transparent; color: var(--forest); }
.secondary { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--moss); font-weight: 750; }
.light { color: white; }

/* Journey index */
.journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 90px; }
.journey-card {
  --journey-cover: url('/static/south-korea-hero.webp');
  isolation: isolate;
  position: relative;
  min-height: 460px;
  display: flex;
  overflow: hidden;
  border-radius: 28px;
  color: white;
  background-image: var(--journey-cover);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}
.journey-card-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 21, 18, 0.12) 8%, rgba(5, 21, 18, 0.32) 46%, rgba(5, 21, 18, 0.93) 100%); }
.journey-card-content { width: 100%; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; }
.journey-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.privacy-badge { display: inline-flex; align-items: center; min-height: 30px; width: max-content; padding: 0 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(14, 42, 35, .56); color: white; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(10px); }
.open-cue { font-size: .8rem; font-weight: 800; opacity: .9; }
.journey-story { margin-top: auto; }
.journey-story .destination-kicker { color: rgba(255,255,255,.78); }
.journey-story h2 { max-width: 650px; margin: 8px 0; font: clamp(2rem, 4.2vw, 3.5rem) / .98 Georgia, serif; letter-spacing: -.045em; }
.journey-dates { margin: 0; font-weight: 750; }
.journey-description { max-width: 560px; margin: 12px 0 0; color: rgba(255,255,255,.8); line-height: 1.5; }
.journey-meta { display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 22px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.journey-meta div { display: grid; gap: 2px; }
.journey-meta strong { font-size: 1rem; }
.journey-meta span { font-size: .71rem; color: rgba(255,255,255,.68); }
.journey-meta .journey-crew { text-align: right; }
.journey-meta .journey-crew strong { overflow-wrap: anywhere; }
.journey-card:hover { box-shadow: 0 24px 66px rgba(20, 45, 36, .2); }

/* Destination hero */
.destination-hero {
  --cover: url('/static/south-korea-hero.webp');
  min-height: 490px;
  display: flex;
  align-items: end;
  color: white;
  background-image: linear-gradient(180deg, rgba(6, 22, 19, .18) 5%, rgba(6, 22, 19, .35) 48%, rgba(6, 22, 19, .92) 100%), var(--cover);
  background-size: cover;
  background-position: center;
}
.hero-inner { width: min(100% - 36px, 1120px); margin: 0 auto; padding: 46px 0; }
.hero-badges { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: rgba(255,255,255,.76); font-size: .8rem; }
.destination-hero .destination-kicker { color: rgba(255,255,255,.78); }
.destination-hero h1 { max-width: 850px; margin: 7px 0 10px; font: clamp(3rem, 8vw, 6.2rem) / .9 Georgia, serif; letter-spacing: -.06em; }
.hero-dates { margin: 0; font-size: 1rem; font-weight: 780; }
.hero-description { max-width: 630px; margin: 14px 0; color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.55; }
.hero-crew { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.crew-avatars .crew-person { display: grid; justify-items: center; gap: 5px; padding: 0; background: transparent; }
.crew-person b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #dfe9e2; color: var(--forest); font-size: .86rem; font-style: normal; font-weight: 900; }
.crew-person small { color: var(--moss); font-size: .68rem; font-weight: 750; }
.hero-crew .crew-person b { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.16); color: white; backdrop-filter: blur(10px); }
.hero-crew .crew-person small { color: rgba(255,255,255,.86); }
.hero-journey-links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 25px; }
.continue-button { min-height: 54px; display: inline-flex; align-items: center; gap: 11px; padding: 0 21px; border-radius: 999px; background: var(--cream); color: var(--forest); font-weight: 900; box-shadow: var(--soft-shadow); }
.continue-button span { font-size: 1.1rem; }
.manage-link { min-height: 44px; display: inline-flex; align-items: center; color: rgba(255,255,255,.82); font-size: .8rem; font-weight: 760; text-decoration: underline; text-underline-offset: 4px; }

/* Trip overview and actions */
.trip-overview { padding: 28px 0 120px; }
.overview-grid { display: grid; grid-template-columns: .8fr 1.7fr; gap: 14px; }
.crew-panel, .stat-panel { background: rgba(255,253,248,.78); border: 1px solid rgba(217,211,199,.8); border-radius: 20px; padding: 20px; }
.crew-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.crew-list > span:not(.crew-person) { padding: 9px 13px; border-radius: 999px; background: #e5ece7; font-size: .82rem; font-weight: 800; }
.stat-panel { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.stat-panel div { min-width: 0; padding: 3px 12px; border-left: 1px solid var(--line); }
.stat-panel div:first-child { border-left: 0; }
.stat-panel strong, .stat-panel span, .stat-panel i { display: block; }
.stat-panel i { margin-bottom: 5px; color: var(--sun); font-size: .9rem; font-style: normal; }
.stat-panel strong { font: 2rem Georgia, serif; }
.stat-panel span { margin-top: 3px; color: var(--moss); font-size: .72rem; overflow-wrap: anywhere; }
.trip-actions { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 10px; margin: 18px 0 54px; }
.trip-actions > a, .trip-actions form, .trip-actions button { min-width: 0; }
.trip-actions > a, .trip-actions button { width: 100%; min-height: 82px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--soft-shadow); }
.trip-actions .action-primary { flex-direction: row; align-items: center; justify-content: center; gap: 8px; background: var(--forest); color: white; border-color: var(--forest); }
.trip-actions .action-primary span { font-size: 1.6rem; font-weight: 300; }
.trip-actions strong { font-size: .93rem; }
.trip-actions small { color: var(--moss); font-size: .7rem; line-height: 1.2; }
.trip-actions .action-primary small { color: rgba(255,255,255,.7); }
.continue-admin { margin: -36px 0 48px; }
.success { padding: 18px; border-radius: 16px; margin: 0 0 18px; background: #deeee3; }
.success p { margin: .35rem 0 .8rem; }
.success input { width: 100%; padding: 12px; border: 1px solid #9eb6a6; border-radius: 9px; background: white; }
.timeline-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.timeline-heading h2 { margin: 5px 0 0; font: clamp(2rem, 5vw, 3.4rem) / 1 Georgia, serif; letter-spacing: -.04em; }
.timeline-heading > a { color: var(--moss); font-size: .82rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

/* Timeline chapters */
.chapter { margin: 0 0 22px; padding: 22px; border: 1px solid rgba(217,211,199,.9); border-radius: 24px; background: rgba(255,253,248,.82); box-shadow: var(--soft-shadow); }
.chapter-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.chapter-head > div:first-child > span { color: var(--sun); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 850; }
.chapter-head h2, .chapter-head h3 { margin: 3px 0 0; font: 2rem Georgia, serif; letter-spacing: -.035em; }
.chapter-head p { margin: 2px 0 0; color: var(--moss); font-size: .8rem; }
.chapter-counts { display: flex; gap: 6px; }
.chapter-counts span { padding: 7px 10px; border-radius: 999px; background: var(--paper); color: var(--moss); font-size: .7rem; white-space: nowrap; }
.place-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 16px; }
.place-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.place-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.category { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; background: #e4ebe6; color: var(--forest); font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.place-card time { color: var(--moss); font-size: .75rem; font-weight: 700; }
.place-card h3, .place-card h4 { margin: 12px 0 6px; font: 1.35rem Georgia, serif; }
.place-card p { margin: 0; color: #425b51; line-height: 1.5; font-size: .9rem; }
.place-card blockquote { margin: 12px 0 0; padding-left: 12px; border-left: 3px solid var(--sun); color: var(--moss); font-size: .85rem; font-style: italic; }
.place-card footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #ebe5d9; color: var(--moss); font-size: .69rem; }
.rating { color: #a76d20; letter-spacing: .08em; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 16px; }
.gallery figure { min-width: 0; margin: 0; }
.gallery img, .photo img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; border-radius: 12px; }
.gallery figcaption { margin: 6px 2px; color: var(--moss); font-size: .7rem; }
.photo { padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-tools { display: flex; align-items: start; justify-content: space-between; gap: 5px; }
.tiny, .photo-tools summary { min-height: 38px; padding: 8px 2px; border: 0; background: none; color: var(--forest); font-size: .72rem; text-decoration: underline; cursor: pointer; }
.mini-form { position: absolute; z-index: 8; width: min(280px, 82vw); display: grid; gap: 8px; padding: 13px; border-radius: 12px; background: var(--cream); box-shadow: var(--shadow); }
.mini-form label { display: grid; gap: 4px; font-size: .7rem; }
.mini-form input, .mini-form textarea { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.mini-form button { min-height: 40px; border: 0; border-radius: 8px; background: var(--forest); color: white; }
.photo-fab { display: none; }

/* Shared public journal */
.journal-tabs { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; gap: 5px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.94); backdrop-filter: blur(12px); }
.journal-tabs a { min-height: 47px; display: grid; place-items: center; border-radius: 999px; font-weight: 820; }
.journal-tabs a.active { background: var(--forest); color: white; }
.public-timeline { padding: 28px 0 100px; }
.public-chapter { margin-bottom: 24px; }
.public-gallery { grid-template-columns: repeat(4, 1fr); }
.journal-dashboard { width: min(100% - 32px, 1120px); margin: 22px auto; }
.journal-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.8); box-shadow: var(--soft-shadow); }
.journal-stats div { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; padding: 8px 14px; border-left: 1px solid var(--line); }
.journal-stats div:first-child { border-left: 0; }
.journal-stats .stat-icon { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e4ebe6; color: var(--forest); font-size: .8rem; }
.journal-stats strong { font: 1.65rem/1 Georgia, serif; }
.journal-stats small { color: var(--moss); font-size: .7rem; font-weight: 720; }
.journal-actions { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 9px; margin-top: 12px; }
.journal-actions > a, .journal-actions form, .journal-actions button { min-width: 0; }
.journal-actions > a, .journal-actions button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--cream); color: var(--forest); font-weight: 850; cursor: pointer; box-shadow: var(--soft-shadow); }
.journal-actions .journal-action-primary { background: var(--forest); border-color: var(--forest); color: white; }
.journal-actions .journal-action-primary span { font-size: 1.5rem; font-weight: 300; }
.mobile-add-photos { display: none; }

/* Upload and forms */
.upload-page { max-width: 680px; padding: 28px 0 110px; }
.upload-intro { margin: 22px 0 28px; }
.upload-intro > p:not(.eyebrow):not(.upload-trip-count) { max-width: 620px; color: var(--moss); line-height: 1.65; }
.upload-intro .upload-trip-count { width: max-content; display: flex; align-items: baseline; gap: 6px; margin: 18px 0 0; padding: 8px 13px; border-radius: 999px; background: #e4ebe6; color: var(--forest); line-height: 1; }
.upload-trip-count strong { font: 1.35rem/1 Georgia, serif; }
.upload-trip-count span { font-size: .78rem; font-weight: 760; }
.stack { display: grid; gap: 18px; margin-top: 26px; }
.stack label { display: grid; gap: 8px; font-size: .9rem; font-weight: 760; }
.stack input, .stack textarea, .stack select { width: 100%; padding: 14px 15px; border: 1px solid #bfc9c1; border-radius: 12px; background: var(--cream); color: var(--ink); }
.stack input:focus, .stack textarea:focus, .stack select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(21,63,53,.12); outline: none; }
.photo-picker { min-height: 310px; place-content: center; justify-items: center; padding: 30px; border: 2px dashed #91a79b; border-radius: 24px; background: var(--cream); text-align: center; cursor: pointer; box-shadow: var(--soft-shadow); }
.photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picker-mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: 2rem; font-weight: 300; }
.photo-picker strong { margin-top: 10px; font-size: 1.45rem; }
.photo-picker > span:not(.picker-mark) { color: var(--moss); font-weight: 600; }
.photo-picker small { color: #75887f; font-size: .75rem; font-weight: 500; line-height: 1.65; }
.photo-source-picker { min-width: 0; margin: 0; padding: 21px; border: 1px solid var(--line); border-radius: 22px; background: var(--cream); box-shadow: var(--soft-shadow); }
.photo-source-picker legend { padding: 0 8px; color: var(--forest); font-size: 1rem; font-weight: 850; }
.photo-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-source-option { position: relative; min-height: 170px; place-content: center; justify-items: center; padding: 20px; border: 2px solid #91a79b; border-radius: 18px; background: var(--cream); text-align: center; cursor: pointer; }
.photo-source-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-source-option:focus-within { outline: 3px solid var(--sun); outline-offset: 3px; }
.photo-source-option strong { margin-top: 8px; font-size: 1.15rem; }
.photo-source-option small { max-width: 210px; color: var(--moss); font-size: .73rem; font-weight: 550; line-height: 1.4; }
.photo-source-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #e4ebe6; color: var(--forest); font-size: 1.45rem; }
.photo-source-primary { border-color: var(--forest); background: var(--forest); color: white; }
.photo-source-primary .photo-source-icon { background: white; }
.photo-source-primary small { color: rgba(255,255,255,.78); }
.photo-source-picker > p { margin: 15px 0 5px; color: var(--moss); font-size: .8rem; line-height: 1.5; text-align: center; }
.photo-format-note { display: block; color: #75887f; font-size: .7rem; font-weight: 550; text-align: center; }
.selected-photo-panel { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); box-shadow: var(--soft-shadow); }
.selected-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.selected-photo-heading h2 { margin: 4px 0 0; font: 1.55rem/1.1 Georgia, serif; }
.selected-photo-heading > span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #e4ebe6; font-weight: 850; }
.selected-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.selected-photo-grid figure { min-width: 0; margin: 0; }
.selected-photo-grid img, .selected-file-placeholder { width: 100%; aspect-ratio: 1; display: grid; place-items: center; object-fit: cover; border-radius: 11px; background: var(--paper-deep); color: var(--moss); font-size: .72rem; font-weight: 850; }
.selected-photo-grid figcaption { margin-top: 5px; overflow: hidden; color: var(--moss); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.selected-photo-note { margin: 14px 0 0; color: var(--moss); font-size: .78rem; line-height: 1.5; }
.upload-progress { padding: 17px; border-radius: 16px; background: var(--cream); }
.upload-progress > div { display: flex; justify-content: space-between; gap: 15px; }
.upload-progress progress { width: 100%; height: 15px; accent-color: var(--sun); }
.upload-progress p { margin: .5rem 0 0; color: var(--moss); font-size: .82rem; }
.upload-live-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 15px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.upload-live-details div { min-width: 0; padding: 11px; background: var(--cream); }
.upload-live-details dt { color: var(--moss); font-size: .67rem; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; }
.upload-live-details dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: .82rem; font-weight: 800; }
.upload-summary { padding: 28px 21px 21px; border: 2px solid #a9c5b2; border-radius: 22px; background: #e5f0e8; text-align: center; box-shadow: var(--shadow); }
.upload-summary.has-only-failures { border-color: #d8aaa5; background: #fff5f3; }
.upload-summary.has-only-failures .upload-complete-icon { background: var(--danger); }
.upload-complete-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; background: var(--forest); color: white; font-size: 1.8rem; font-weight: 850; }
.upload-summary h2 { margin: 6px 0 8px; font: clamp(2.25rem, 8vw, 3.4rem)/1 Georgia, serif; letter-spacing: -.04em; }
.upload-summary-lead { margin: 0 0 20px; color: var(--moss); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.summary-grid div { display: grid; gap: 3px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.7); text-align: left; }
.summary-grid strong { font: 1.6rem Georgia, serif; }
.summary-grid span { color: var(--moss); font-size: .68rem; }
.summary-grid .has-failures { background: #f8dede; color: var(--danger); }
.failed-upload-details { margin-top: 13px; padding: 13px; border-radius: 12px; background: #fff5f3; color: var(--danger); text-align: left; font-size: .78rem; line-height: 1.5; }
.failed-upload-details ul { margin: 5px 0 0; padding-left: 19px; }
.upload-summary-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.upload-summary-actions .button { min-width: 0; min-height: 56px; padding-inline: 12px; }
.upload-button { min-height: 64px !important; font-size: 1.04rem; }
.upload-button:disabled { opacity: .65; }
.form-page { max-width: 650px; padding: 30px 0 100px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex !important; grid-template-columns: auto 1fr !important; align-items: start; }
.check input { width: 22px; }
.check span { display: grid; gap: 3px; }
.check small { color: var(--moss); font-weight: 400; }
.alert { padding: 16px; border-radius: 12px; background: #f8dede; color: var(--danger); }

/* Login, empty, map and lightbox */
.center-card { width: min(100% - 32px, 430px); margin: 9vh auto; padding: 32px; border-radius: 24px; background: var(--cream); box-shadow: var(--shadow); }
.center-card h1 { margin: .2em 0; font: 2.5rem Georgia, serif; }
.empty { grid-column: 1 / -1; padding: 54px 22px; border-radius: 20px; background: rgba(255,255,255,.42); color: var(--moss); text-align: center; }
.empty h2 { margin: 8px 0; color: var(--ink); font: 1.8rem Georgia, serif; }
.empty .button { margin-top: 12px; }
.map-head { padding: 30px 0 20px; }
.map-head h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
.map-location-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map-location-controls .button { min-width: 148px; min-height: 56px; }
.map-location-primary span { font-size: 1.25rem; }
.map-location-controls button:disabled { cursor: wait; opacity: .68; }
.map-location-status { max-width: 720px; min-height: 24px; margin: 13px 0 0; color: var(--moss); font-size: .86rem; font-weight: 650; line-height: 1.5; }
#map { width: 100%; max-width: 100%; height: calc(100vh - 232px); min-height: 440px; overflow: hidden; }
.leaflet-container { max-width: 100%; overflow: hidden; }
.current-location-marker { filter: drop-shadow(0 2px 5px rgba(12,44,38,.35)); }
.popup-image { width: 180px; height: 110px; display: block; margin-bottom: 8px; object-fit: cover; border-radius: 8px; }
.leaflet-popup-content strong, .leaflet-popup-content small { display: block; margin: 4px 0; }
.map-credit { color: var(--moss); font-size: .7rem; text-align: center; }
.health-card { width: min(100% - 32px, 650px); margin: 15vh auto; display: flex; gap: 18px; align-items: center; padding: 28px; border-radius: 20px; background: var(--cream); box-shadow: var(--shadow); }
.health-card h1 { margin: .1em 0; font: 2.5rem Georgia, serif; }
.health-dot { width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%; }
.health-dot.ok { background: #2e9d62; box-shadow: 0 0 0 7px #dff3e7; }
.health-dot.bad { background: var(--danger); box-shadow: 0 0 0 7px #f8dede; }
dialog { width: min(94vw, 1100px); height: min(90vh, 900px); padding: 12px; border: 0; border-radius: 15px; background: #101916; color: white; }
dialog::backdrop { background: rgba(0,0,0,.85); }
dialog img { width: 100%; height: calc(100% - 50px); object-fit: contain; }
dialog button { position: absolute; right: 18px; top: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 1.6rem; }
dialog p { margin: 7px; text-align: center; }

@media (max-width: 900px) {
  .journey-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .trip-actions { grid-template-columns: repeat(3, 1fr); }
  .trip-actions .action-primary { grid-row: span 1; }
  .stat-panel { min-height: 120px; }
  .journal-stats { grid-template-columns: repeat(3, 1fr); gap: 10px 0; }
  .journal-stats div { border-left: 1px solid var(--line); }
  .journal-stats div:nth-child(1), .journal-stats div:nth-child(4) { border-left: 0; }
  .journal-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .topbar { min-height: 58px; }
  .topbar-actions > a { display: none; }
  .page-head, .journey-grid, .trip-overview, .public-timeline, .form-page, .upload-page, .map-head { width: min(100% - 24px, 1120px); }
  .page-head { align-items: start; padding: 32px 0 20px; }
  .page-head h1 { font-size: 2.8rem; }
  .page-head .quiet-button { min-height: 46px; padding: 0 15px; font-size: .8rem; }
  .page-intro { max-width: 260px; font-size: .9rem; }
  .journey-grid { gap: 14px; padding-bottom: 55px; }
  .journey-card { min-height: 485px; border-radius: 22px; background-position: 56% center; }
  .journey-card-content { padding: 20px; }
  .journey-story h2 { font-size: 2.35rem; }
  .journey-description { font-size: .9rem; }
  .journey-meta { grid-template-columns: auto auto; gap: 16px 24px; }
  .journey-meta .journey-crew { grid-column: 1 / -1; text-align: left; }
  .destination-hero { min-height: 520px; background-position: 58% center; }
  .admin-hero { min-height: 480px; }
  .hero-inner { width: calc(100% - 28px); padding: 28px 0; }
  .destination-hero h1 { font-size: 3.35rem; }
  .hero-description { font-size: .9rem; }
  .hero-crew { gap: 9px; }
  .crew-person b { width: 40px; height: 40px; }
  .hero-journey-links { gap: 14px; margin-top: 21px; }
  .continue-button { min-height: 52px; }
  .trip-overview { padding-top: 14px; padding-bottom: 135px; }
  .crew-panel, .stat-panel { padding: 16px; }
  .stat-panel { grid-template-columns: repeat(3, 1fr); gap: 14px 0; }
  .stat-panel div, .stat-panel div:first-child { padding: 0 9px; border-left: 1px solid var(--line); }
  .stat-panel div:nth-child(1), .stat-panel div:nth-child(4) { border-left: 0; }
  .stat-panel strong { font-size: 1.65rem; }
  .continue-admin { margin: -34px 0 44px; }
  .trip-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0; padding: 7px 7px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,248,.97); box-shadow: 0 -10px 30px rgba(25,47,39,.12); backdrop-filter: blur(14px); }
  .trip-actions .action-primary { display: none; }
  .trip-actions > a, .trip-actions button { min-height: 58px; align-items: center; padding: 6px 3px; border: 0; border-radius: 9px; background: transparent; box-shadow: none; text-align: center; }
  .trip-actions strong { font-size: .75rem; }
  .trip-actions small { display: none; }
  .photo-fab { position: fixed; right: 16px; bottom: calc(79px + env(safe-area-inset-bottom)); z-index: 26; min-height: 58px; display: inline-flex; align-items: center; gap: 7px; padding: 0 20px; border-radius: 999px; background: var(--forest); color: white; font-weight: 850; box-shadow: 0 14px 36px rgba(12,44,38,.32); }
  .journal-dashboard { width: min(100% - 24px, 1120px); margin: 12px auto 18px; }
  .journal-stats { grid-template-columns: repeat(3, 1fr); padding: 10px 6px; border-radius: 18px; }
  .journal-stats div { grid-template-columns: 1fr; justify-items: center; gap: 3px; padding: 8px 4px; text-align: center; }
  .journal-stats .stat-icon { grid-row: auto; width: 28px; height: 28px; }
  .journal-stats strong { font-size: 1.4rem; }
  .journal-stats small { font-size: .63rem; }
  .journal-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0; padding: 7px 7px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,248,.97); box-shadow: 0 -10px 30px rgba(25,47,39,.12); backdrop-filter: blur(14px); }
  .journal-actions .journal-action-primary { display: none; }
  .journal-actions > a, .journal-actions button { min-height: 58px; padding: 5px 2px; border: 0; border-radius: 9px; background: transparent; box-shadow: none; font-size: .72rem; text-align: center; }
  .mobile-add-photos { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; border-radius: 999px; background: var(--forest); color: white; font-weight: 900; box-shadow: var(--soft-shadow); }
  .mobile-add-photos span { font-size: 1.45rem; font-weight: 300; }
  .timeline-heading { align-items: start; margin-top: 35px; }
  .timeline-heading h2 { font-size: 2.25rem; }
  .timeline-heading > a { margin-top: 5px; }
  .chapter { padding: 16px; border-radius: 19px; }
  .chapter-head { gap: 12px; }
  .chapter-head h2, .chapter-head h3 { font-size: 1.7rem; }
  .chapter-counts { display: grid; gap: 4px; }
  .place-list { grid-template-columns: 1fr; }
  .place-card { padding: 16px; }
  .place-card h3, .place-card h4 { font-size: 1.4rem; }
  .gallery, .public-gallery { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .journal-tabs { grid-template-columns: repeat(2, 1fr); }
  .public-timeline { padding-top: 14px; padding-bottom: 145px; }
  .two-col { grid-template-columns: 1fr; }
  .upload-page { padding-bottom: 128px; }
  .upload-page h1 { font-size: 3.2rem; }
  .photo-picker { min-height: 330px; padding: 24px; }
  .photo-source-picker { padding: 17px; }
  .photo-source-grid { grid-template-columns: 1fr; }
  .photo-source-option { min-height: 142px; }
  .upload-button { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 26; width: calc(100% - 24px); box-shadow: 0 12px 30px rgba(12,44,38,.28); }
  .upload-progress { margin-bottom: 12px; }
  .upload-live-details { grid-template-columns: 1fr; }
  .selected-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .upload-summary-actions { grid-template-columns: 1fr; }
  .upload-summary-actions .button { width: 100%; }
  .map-location-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .map-location-controls .button { min-width: 0; width: 100%; padding-inline: 12px; }
  #map { height: calc(100vh - 260px); min-height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
