/* =============================================
   JAPAN 2026 — Section-specific Layouts
   ============================================= */

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
  display: flex; align-items: center;
}
.nav.scrolled {
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--space-xl);
}
.nav__logo {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: var(--fw-bold);
  color: var(--text-primary); display: flex; align-items: center; gap: var(--space-sm);
}
.nav__logo span { color: var(--primary); }
.nav__links { display: flex; gap: var(--space-lg); align-items: center; }
.nav__link {
  font-size: var(--fs-small); color: var(--text-secondary); font-weight: var(--fw-medium);
  transition: color var(--transition-fast); position: relative;
}
.nav__link:hover, .nav__link.active { color: var(--text-primary); }
.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gradient-primary); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--transition-fast);
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__mobile-btn {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 28px;
}
.nav__mobile-btn span {
  display: block; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: all var(--transition-fast);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,14,23,0.4) 0%,
    rgba(10,14,23,0.6) 50%,
    rgba(10,14,23,0.95) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative; z-index: 2;
  text-align: center; padding: var(--space-xl);
}
.hero__date {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-mono); font-size: var(--fs-small);
  color: var(--accent); background: rgba(244,162,97,0.1);
  border: 1px solid rgba(244,162,97,0.2);
  padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s ease 0.2s both;
}
.hero__title {
  font-size: var(--fs-hero); font-weight: var(--fw-black);
  line-height: 0.95; margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease 0.4s both;
}
.hero__title-jp {
  display: block; font-family: var(--font-jp);
  font-size: 0.35em; font-weight: var(--fw-light);
  color: var(--text-muted); margin-top: var(--space-sm);
  letter-spacing: 0.3em;
}
.hero__subtitle {
  font-size: var(--fs-hero-sub); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto var(--space-2xl);
  animation: fadeInUp 1s ease 0.6s both;
}
.hero__cta {
  display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
  color: var(--text-muted); font-size: var(--fs-xs);
  animation: fadeIn 1s ease 1.2s both;
}
.hero__scroll-icon {
  width: 24px; height: 38px; border: 2px solid var(--text-muted);
  border-radius: 12px; position: relative;
}
.hero__scroll-icon::after {
  content: ''; width: 4px; height: 8px;
  background: var(--primary-light); border-radius: 2px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: scrollBounce 2s ease infinite;
}

/* Sakura container */
.sakura-container {
  position: fixed; inset: 0; pointer-events: none; z-index: var(--z-max);
  overflow: hidden;
}
.sakura-petal {
  position: absolute; top: -20px;
  width: 12px; height: 12px;
  background: var(--accent-sakura);
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  animation: sakuraFall linear infinite;
}

/* ===== ROUTE MAP ===== */
.route-map { padding: var(--space-2xl) 0; }
.route-map__track {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; padding: var(--space-xl) 0;
  max-width: 900px; margin: 0 auto;
}
.route-map__line {
  position: absolute; top: 50%; left: 5%; right: 5%;
  height: 3px; background: var(--glass-bg);
  border-radius: 2px; transform: translateY(-50%);
}
.route-map__line-fill {
  height: 100%; width: 0;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 2.5s cubic-bezier(0.25,0.1,0.25,1);
  position: relative;
}
.route-map__city {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-sm);
  position: relative; z-index: 2; cursor: pointer;
}
.route-map__dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-dark-3);
  border: 3px solid var(--text-muted);
  transition: all var(--transition-base);
  position: relative;
}
.route-map__dot.active {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 20px rgba(230,57,70,0.5);
}
.route-map__dot.active::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid rgba(230,57,70,0.3);
  animation: pulseGlow 2s ease infinite;
}
.route-map__label {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; white-space: nowrap;
  transition: color var(--transition-fast);
}
.route-map__city:hover .route-map__label,
.route-map__city.active .route-map__label { color: var(--text-primary); }

/* ===== ITINERARY TIMELINE ===== */
.timeline { position: relative; padding: var(--space-xl) 0; }
.timeline__line {
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent), var(--accent-teal));
  transform: translateX(-50%);
}
.timeline__item {
  display: flex; align-items: flex-start;
  margin-bottom: var(--space-3xl);
  position: relative;
}
.timeline__item:nth-child(odd) { flex-direction: row; padding-right: calc(50% + 30px); }
.timeline__item:nth-child(even) { flex-direction: row-reverse; padding-left: calc(50% + 30px); }
.timeline__dot {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-dark);
  z-index: 2;
}
.timeline__card {
  width: 100%;
}
.timeline__card-inner {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform var(--transition-normal), border-color var(--transition-fast);
}
.timeline__card:hover .timeline__card-inner {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline__card-body { padding: var(--space-lg); }
.timeline__day-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  font-weight: var(--fw-bold); color: var(--primary-light);
  background: rgba(230,57,70,0.1); padding: 4px 10px;
  border-radius: var(--radius-sm); margin-bottom: var(--space-sm);
}
.timeline__card-title {
  font-size: var(--fs-h3); margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.timeline__card-desc {
  font-size: var(--fs-small); color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.timeline__tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* ===== BUDGET ===== */
.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.budget-chart-wrapper {
  display: flex; align-items: center; justify-content: center;
}
.budget-chart {
  position: relative; width: 280px; height: 280px;
}
.budget-chart__center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.budget-chart__total {
  font-family: var(--font-heading); font-size: var(--fs-h2);
  font-weight: var(--fw-bold); color: var(--text-primary);
}
.budget-chart__label {
  font-size: var(--fs-xs); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.budget-categories { display: flex; flex-direction: column; gap: var(--space-md); }
.budget-item {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.budget-item:hover { background: var(--glass-bg-hover); }
.budget-item__color {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
}
.budget-item__name { flex: 1; font-weight: var(--fw-medium); }
.budget-item__amount { font-family: var(--font-heading); font-weight: var(--fw-bold); color: var(--accent); }

/* ===== PACKING CHECKLIST ===== */
.checklist-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}
.checklist-group { padding: var(--space-lg); }
.checklist-group__title {
  font-size: var(--fs-h3); margin-bottom: var(--space-md);
  display: flex; align-items: center; gap: var(--space-sm);
}

/* ===== COST CALCULATOR ===== */
.calculator-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
}
.calc-options { display: flex; flex-direction: column; gap: var(--space-2xl); }

.calc-category__title {
  font-size: var(--fs-h3); margin-bottom: var(--space-lg);
  display: flex; align-items: center; gap: var(--space-sm);
}
.calc-options-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}
.calc-summary {
  position: sticky; top: calc(var(--nav-height) + var(--space-xl));
}
.calc-summary__inner {
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: var(--space-xl); overflow: hidden;
}
.calc-summary__title {
  font-size: var(--fs-h3); margin-bottom: var(--space-lg);
  text-align: center;
}
.calc-summary__total {
  text-align: center; padding: var(--space-lg) 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin: var(--space-lg) 0;
}
.calc-summary__total-amount {
  font-family: var(--font-heading); font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.calc-summary__total-label {
  font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--space-xs);
}
.calc-summary__breakdown {
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.calc-summary__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-small);
}
.calc-summary__row-label { color: var(--text-secondary); }
.calc-summary__row-value { font-weight: var(--fw-semibold); color: var(--text-primary); }
.calc-presets {
  display: flex; gap: var(--space-sm); margin-bottom: var(--space-xl);
  justify-content: center;
}

/* ===== CREW ===== */
.crew-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 800px; margin: 0 auto;
}
.crew-couple-label {
  grid-column: 1 / -1; text-align: center;
  font-size: var(--fs-small); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.15em;
  display: flex; align-items: center; gap: var(--space-md);
}
.crew-couple-label::before, .crew-couple-label::after {
  content: ''; flex: 1; height: 1px; background: var(--glass-border);
}
.crew-card {
  text-align: center; padding: var(--space-2xl) var(--space-xl);
}
.crew-card__avatar {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto var(--space-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: var(--glass-bg); border: 2px solid var(--glass-border);
}
.crew-card__name {
  font-size: var(--fs-h3); font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}
.crew-card__role {
  font-size: var(--fs-small); color: var(--accent);
  font-weight: var(--fw-medium);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark-2);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-xl); text-align: center;
}
.footer__countdown {
  font-family: var(--font-heading); font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
}
.footer__countdown-label {
  font-size: var(--fs-small); color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.countdown-grid {
  display: flex; gap: var(--space-lg); justify-content: center;
}
.countdown-item { text-align: center; }
.countdown-item__value {
  font-family: var(--font-heading); font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.countdown-item__label {
  font-size: var(--fs-xs); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer__copy {
  font-size: var(--fs-xs); color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .budget-grid { grid-template-columns: 1fr; }
  .calculator-layout { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .crew-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__mobile-btn { display: flex; }

  .timeline__line { left: 20px; }
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    flex-direction: row;
    padding-left: 50px; padding-right: 0;
  }
  .timeline__dot { left: 20px; }

  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .route-map__track { flex-direction: column; gap: var(--space-xl); }
  .route-map__line {
    left: 50%; top: 5%; bottom: 5%; right: auto;
    width: 3px; height: auto;
    transform: translateX(-50%);
  }
  .route-map__line-fill {
    width: 100%; height: 0;
    transition: height 2.5s cubic-bezier(0.25,0.1,0.25,1);
  }
  .route-map__city { flex-direction: row; gap: var(--space-md); }
}

@media (max-width: 480px) {
  .checklist-grid { grid-template-columns: 1fr; }
  .countdown-grid { gap: var(--space-md); }
  .countdown-item__value { font-size: var(--fs-h2); }
}
.timeline__card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.5s ease;
}
.timeline__card:hover .timeline__card-img {
  transform: scale(1.05);
}
