/* ==========================================================================
   JOURNEY SECTION — CONTEMPORARY EDITORIAL HORIZONTAL CAROUSEL
   ========================================================================== */

.journey {
  position: relative;
  background: #f2ecdf;
  border-top: 1px solid #e1d6c4;
  border-bottom: 1px solid #e1d6c4;
  scroll-margin-top: 100px;
  overflow: hidden;
}

.journey-stage {
  position: relative;
  padding: 85px 0 35px;
}

/* Header */
.journey-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 26px;
}
.journey-heading .eyebrow {
  font-size: 11.5px;
  margin-bottom: 12px;
  white-space: nowrap;
}
.journey-heading h2 {
  font-size: 38px;
  line-height: 1.28;
  margin: 0;
}
.journey-heading-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
}
.journey-aside-top {
  display: flex;
  align-items: center;
  gap: 20px;
}
.journey-range {
  font: 400 28px/1.3 var(--serif);
  letter-spacing: -1px;
  color: var(--son);
}
.journey-range i {
  font-style: normal;
  font-size: 20px;
  padding: 0 8px;
  color: #ad9279;
}
.journey-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.journey-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d5c2ac;
  background: #faf6ee;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s ease;
  user-select: none;
}
.journey-arrow:hover {
  border-color: var(--son);
  color: var(--son);
  background: #ffffff;
  transform: scale(1.06);
}
.journey-play-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d5c2ac;
  background: transparent;
  color: #786e60;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.journey-play-toggle:hover {
  border-color: var(--son);
  color: var(--son);
}
.journey-heading-aside p {
  font-size: 13px;
  line-height: 1.7;
  margin: 4px 0 0;
  color: #635748;
}
.journey-skip {
  font-size: 12px;
  border-bottom: 1px solid #bba78e;
  padding-bottom: 4px;
  white-space: nowrap;
  color: #7b6f60;
}

/* Window & Track */
.journey-window {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 20px;
  cursor: grab;
  user-select: none;
  outline-offset: -4px;
}
.journey-window:active {
  cursor: grabbing;
}
.journey-track {
  display: flex;
  align-items: stretch;
  gap: 32px;
  width: max-content;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  position: relative;
  padding: 0 max(30px, calc((100vw - min(1040px, 82vw)) / 2));
}

/* Chapter Card */
.journey-chapter {
  flex: 0 0 min(1040px, 82vw);
  width: min(1040px, 82vw);
  background: #faf6ee;
  border: 1px solid #e2d6c3;
  border-radius: 6px;
  padding: 26px 36px 30px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 55px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 22px rgba(32,45,54,0.04);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  opacity: 0.45;
  transform: scale(0.98);
}
.journey-chapter.chapter-active {
  opacity: 1;
  transform: scale(1);
  border-color: #d1beaa;
  box-shadow: 0 10px 32px rgba(32,45,54,0.08);
}

/* Visual Side */
.journey-visual {
  position: relative;
  margin: 0;
  min-width: 0;
}
.journey-place {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #786e60;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  min-height: 18px;
}
.journey-place > span:first-child {
  color: var(--son);
  font-weight: 500;
  white-space: nowrap;
}
.journey-image {
  position: relative;
  overflow: hidden;
  background: #e3d8c5;
  height: 330px;
  border-radius: 4px;
}
.journey-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.chapter-active .journey-image > img {
  transform: scale(1.02);
}
.journey-visual figcaption {
  font-size: 11px;
  color: #83786a;
  margin-top: 9px;
}

/* Copy Side */
.journey-copy {
  position: relative;
}
.journey-year {
  font: 400 78px/1.08 var(--serif);
  letter-spacing: -4px;
  color: var(--son);
  display: block;
  margin-bottom: 12px;
}
.journey-copy .eyebrow {
  font-size: 11px;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  white-space: nowrap;
  color: #55626a;
}
.journey-copy h3 {
  font: 400 29px/1.36 var(--serif);
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: var(--ink);
}
.journey-copy p {
  font-size: 15px;
  line-height: 1.82;
  margin-bottom: 0;
  max-width: 500px;
  text-wrap: pretty;
  color: #3b3630;
}
.journey-copy .text-link {
  margin-top: 15px;
  font-size: 12.5px;
  padding-bottom: 7px;
  white-space: nowrap;
  display: inline-flex;
}

/* Node marker on cards */
.journey-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--son);
  background: #f2ecdf;
  border-radius: 50%;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  transition: all .3s ease;
}
.chapter-active .journey-node {
  background: var(--son);
  box-shadow: 0 0 0 5px rgba(156,57,43,0.18);
  transform: translateY(-50%) scale(1.2);
}

/* Brand Art in 2022 */
.journey-brand-art {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #202d36;
  color: #f4eee1;
  overflow: hidden;
  text-align: center;
  padding: 25px;
  border-radius: 4px;
}
.journey-brand-art > img {
  width: 95px;
  height: 75px;
  object-fit: contain;
  position: relative;
}
.journey-brand-art > strong {
  font: 600 22px/1.4 var(--sans);
  letter-spacing: 3px;
  margin-top: 12px;
  position: relative;
}
.journey-brand-art > span:not(.journey-brand-ring) {
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 10px;
  position: relative;
}
.journey-brand-art > small {
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .8px;
  margin-top: 28px;
  color: #c5bcae;
  position: relative;
}
.journey-brand-ring {
  position: absolute !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border: 1px solid #d7ad7944;
  border-radius: 50%;
}
.journey-brand-ring:after {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px solid #d7ad7922;
  border-radius: 50%;
}

/* Footer & Timeline */
.journey-footer {
  background: transparent !important;
  color: var(--ink) !important;
  border-top: 1px solid #d9cbb6;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}
.journey-footer-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.journey-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  position: relative;
}
.journey-dates button {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  color: #7b6f60;
  white-space: nowrap;
  transition: all .25s ease;
  cursor: pointer;
}
.journey-dates button:hover {
  color: var(--son);
  background: rgba(156,57,43,0.06);
}
.journey-dates button[aria-current="step"] {
  color: #ffffff;
  background: var(--son);
  border-color: var(--son);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(156,57,43,0.25);
}
.journey-progress-track {
  width: 100%;
  height: 3px;
  background: #ded1be;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.journey-progress-fill {
  height: 100%;
  background: var(--son);
  width: 0%;
  border-radius: 3px;
  will-change: width;
}

/* Footer Meta */
.journey-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.journey-disclosure {
  font-size: 11.5px;
  color: #8c8070;
  line-height: 1.75;
  margin: 0;
}
.journey-reading {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 70px;
}
.journey-mode {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 5px;
  color: #736758;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.journey-mode:hover {
  color: var(--son);
}

/* Responsive */
@media (max-width: 1050px) {
  .journey-chapter {
    flex: 0 0 min(900px, 86vw);
    width: min(900px, 86vw);
    gap: 40px;
    padding: 24px 28px 26px;
  }
  .journey-year {
    font-size: 68px;
  }
  .journey-copy h3 {
    font-size: 26px;
  }
  .journey-image {
    height: 290px;
  }
}

@media (max-width: 820px) {
  .journey-stage {
    padding: 55px 0 24px;
  }
  .journey-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
  }
  .journey-heading h2 {
    font-size: clamp(25px, 6.6vw, 30px);
    text-wrap: balance;
  }
  .journey-heading-aside {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
  .journey-aside-top {
    justify-content: space-between;
    width: 100%;
  }
  .journey-track {
    gap: 18px;
    padding: 0 16px;
  }
  .journey-chapter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    flex: 0 0 88vw;
    width: 88vw;
    padding: 18px 16px 20px;
  }
  .journey-visual {
    order: 0;
  }
  .journey-copy {
    order: 1;
  }
  .journey-image {
    height: 190px;
  }
  .journey-year {
    font-size: 46px;
    letter-spacing: -2.5px;
    margin-bottom: 6px;
  }
  .journey-copy h3 {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .journey-copy p {
    font-size: 14px;
    line-height: 1.7;
  }
  .journey-dates {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .journey-dates button {
    font-size: 12.5px;
    padding: 6px 12px;
    flex-shrink: 0;
  }
  .journey-reading {
    padding-right: 0;
  }
  .journey-footer {
    padding-top: 16px;
    gap: 12px;
  }
}

/* Flat Mode ("Đọc dạng dọc") */
.journey.is-flat .journey-window {
  cursor: default;
}
.journey.is-flat .journey-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  width: min(1040px, calc(100% - 40px));
  margin: auto;
  padding: 0;
  transform: none !important;
}
.journey.is-flat .journey-chapter {
  width: 100%;
  flex: none;
  opacity: 1;
  transform: none;
  box-shadow: 0 3px 18px rgba(32,45,54,0.04);
}
.journey.is-flat .journey-controls,
.journey.is-flat .journey-progress-track {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .journey * {
    transition: none !important;
    animation: none !important;
  }
  .journey-track {
    transition: none !important;
  }
}
