/* ══════════════════════════════════════════════════════
   TPE → KIX Travel Website · style.css
   Color palette: coral, orange, deep navy, gold
══════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral:      #E8603C;
  --coral-dark: #C94E2E;
  --orange:     #F4A261;
  --orange-lt:  #FAD4AA;
  --navy:       #1A3A5C;
  --navy-lt:    #2A5280;
  --gold:       #D4A017;
  --gold-lt:    #F0CA5E;
  --kyoto-grn:  #4A7C59;
  --nara-brn:   #8B6340;
  --bg:         #FFFAF5;
  --bg-alt:     #FFF3E8;
  --text:       #2C2C2C;
  --text-muted: #6B6B6B;
  --border:     #E8DDD0;
  --white:      #FFFFFF;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.16);
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --transition: 0.3s ease;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
  --font-jp:    'Noto Sans JP', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utility ────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.section-desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,96,60,0.35);
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--coral);
  padding: 5px 12px;
  border: 1px solid var(--coral);
  border-radius: 20px;
  transition: var(--transition);
}

.map-link:hover {
  background: var(--coral);
  color: var(--white);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tag.flight  { background: #EEF4FF; color: #3B6FD8; border-color: #C5D8FF; }
.tag.cost    { background: #FFF4E8; color: var(--coral); border-color: var(--orange-lt); }
.tag.food    { background: #FFF0F5; color: #C8487C; border-color: #F7C5D8; }
.tag.transport { background: #EBF7F0; color: var(--kyoto-grn); border-color: #B8DFCA; }
.tag.duration  { background: #F4F0FF; color: #6B4FD8; border-color: #D8CCFF; }
.tag.time      { background: #F4F0FF; color: #6B4FD8; border-color: #D8CCFF; }

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,250,245,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--navy); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  position: relative;
}
.navbar.scrolled .nav-links a { color: var(--text); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: center;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a:hover { color: var(--coral); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--navy); }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(232,96,60,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(244,162,97,0.25) 0%, transparent 50%),
    linear-gradient(160deg, #0D2137 0%, #1A3A5C 35%, #2E617A 60%, #E05C40 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,20,40,0.35);
}

/* ── Torii gate CSS art ─── */
.torii-art {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  opacity: 0.25;
}

.torii {
  position: relative;
  flex-shrink: 0;
}

.torii::before,
.torii::after {
  content: '';
  position: absolute;
  bottom: 0;
  background: #E8603C;
}

/* Pillar columns */
.torii::before {
  width: 8px;
  height: 100%;
  left: 0;
}
.torii::after {
  width: 8px;
  height: 85%;
  right: 0;
}

/* Top crossbeam via box-shadow on pseudo */
.torii > span {
  display: block;
  position: absolute;
  top: 0;
  left: -16px;
  right: -16px;
  height: 12px;
  background: #E8603C;
  border-radius: 0 0 4px 4px;
}

.torii > span::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 8px;
  right: 8px;
  height: 8px;
  background: #E8603C;
}

.t1 { width: 40px; height: 140px; }
.t2 { width: 50px; height: 170px; margin-left: 12px; }
.t3 { width: 64px; height: 210px; margin-left: 16px; }
.t4 { width: 52px; height: 175px; margin-left: 14px; }
.t5 { width: 42px; height: 145px; margin-left: 12px; }

/* Simplified single-bar torii gates */
.torii-art::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(232,96,60,0.4);
}

/* Better torii via grid of blocks */
.torii-art {
  background-image:
    /* repeating torii shapes */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 30px,
      rgba(232,96,60,0.15) 30px,
      rgba(232,96,60,0.15) 38px
    );
}

/* ── Sakura petals ─── */
.sakura-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255,182,193,0.7);
  border-radius: 50% 0 50% 0;
  animation: petalFall linear infinite;
}

.p1  { left:  5%; animation-duration: 8s;  animation-delay: 0s;    top: -20px; }
.p2  { left: 12%; animation-duration: 10s; animation-delay: 1.5s;  top: -20px; width:7px; height:7px; }
.p3  { left: 22%; animation-duration: 7s;  animation-delay: 3s;    top: -20px; }
.p4  { left: 35%; animation-duration: 9s;  animation-delay: 0.5s;  top: -20px; width:12px;height:12px; }
.p5  { left: 48%; animation-duration: 11s; animation-delay: 2s;    top: -20px; }
.p6  { left: 58%; animation-duration: 8s;  animation-delay: 4s;    top: -20px; width:8px; height:8px; }
.p7  { left: 70%; animation-duration: 9s;  animation-delay: 1s;    top: -20px; }
.p8  { left: 80%; animation-duration: 7s;  animation-delay: 3.5s;  top: -20px; width:11px;height:11px; }
.p9  { left: 90%; animation-duration: 10s; animation-delay: 2.5s;  top: -20px; }
.p10 { left: 96%; animation-duration: 8s;  animation-delay: 1s;    top: -20px; width:7px; height:7px; }

@keyframes petalFall {
  0%   { transform: translateY(0)    rotate(0deg)   translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translateY(50vh) rotate(180deg) translateX(30px); }
  90%  { opacity: 0.6; }
  100% { transform: translateY(110vh) rotate(360deg) translateX(-20px); opacity: 0; }
}

/* ── Hero content ─── */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  max-width: 780px;
  margin: 0 auto;
  animation: heroFadeIn 1.2s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 12px;
}

.route-from { color: var(--orange); }
.route-arrow {
  display: inline-block;
  color: rgba(255,255,255,0.4);
  margin: 0 12px;
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%,100% { transform: translateX(0); opacity: 0.4; }
  50%      { transform: translateX(8px); opacity: 0.8; }
}
.route-to { color: var(--gold-lt); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  letter-spacing: 0.05em;
}

/* ── Hero date cards ─── */
.hero-dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-date-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.date-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

.date-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.date-flight {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.hero-date-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  font-weight: 600;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

/* ── Countdown ─── */
.countdown-wrap {
  margin-bottom: 40px;
}

.countdown-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cd-block {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 70px;
  text-align: center;
}

.cd-block span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-head);
  line-height: 1;
}

.cd-block small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.hero-cta {
  font-size: 1rem;
  padding: 16px 48px;
}

/* ── Hero scroll hint ─── */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(4px); }
}

/* ══════════════════════════════════════════════════════
   OVERVIEW SECTION
══════════════════════════════════════════════════════ */
.overview-section {
  background: var(--white);
}

/* ── Flight cards ─── */
.flight-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.flight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.flight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.flight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.flight-card.outbound::before { background: linear-gradient(90deg, var(--coral), var(--orange)); }
.flight-card.return::before   { background: linear-gradient(90deg, var(--navy), var(--navy-lt)); }

.flight-airline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.airline-code {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.05em;
}

.flight-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 10px;
  border-radius: 20px;
}

.flight-route {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flight-city {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 70px;
}

.flight-city.right { text-align: right; }

.flight-city strong {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-head);
  line-height: 1;
}

.flight-city small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.flight-city .flight-time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--coral);
}

.flight-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.flight-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--orange));
  position: relative;
  border-radius: 2px;
}

.return-line {
  background: linear-gradient(90deg, var(--navy-lt), var(--navy));
}

.plane-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  padding: 0 4px;
  font-size: 1rem;
}

.plane-icon.flip { transform: translate(-50%, -50%) scaleX(-1); }

.flight-dur {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.flight-date-tag {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Stats row ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--coral);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   ITINERARY SECTION
══════════════════════════════════════════════════════ */
.itinerary-section {
  background: var(--bg);
}

/* ── Day tabs ─── */
.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-lt) transparent;
}

.day-tabs::-webkit-scrollbar { height: 4px; }
.day-tabs::-webkit-scrollbar-track { background: transparent; }
.day-tabs::-webkit-scrollbar-thumb { background: var(--orange-lt); border-radius: 4px; }

.day-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  min-width: 80px;
}

.day-tab:hover {
  border-color: var(--orange);
  background: var(--bg-alt);
}

.day-tab.active {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,96,60,0.3);
}

.tab-date {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.8;
}

.day-tab.active .tab-date { opacity: 0.9; color: rgba(255,255,255,0.85); }

.tab-label {
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Day panels ─── */
.day-panel {
  display: none;
  animation: panelIn 0.35s ease both;
}

.day-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.day-panel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--coral);
  flex-wrap: wrap;
}

.day-num-badge {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: var(--coral);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.day-panel-info { flex: 1; }

.day-panel-info h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.2;
}

.day-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.day-city-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.day-city-tag.osaka  { background: #FFF0E8; color: var(--coral); border: 1px solid var(--orange-lt); }
.day-city-tag.kyoto  { background: #EBF7F0; color: var(--kyoto-grn); border: 1px solid #B8DFCA; }
.day-city-tag.nara   { background: #F5EEE6; color: var(--nara-brn); border: 1px solid #D9C7B5; }
.day-city-tag.flight { background: #EEF4FF; color: #3B6FD8; border: 1px solid #C5D8FF; }

/* ── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange-lt), var(--border));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  margin-bottom: 24px;
}

.tl-dot {
  position: absolute;
  left: -33px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--coral);
  background: var(--coral);
}

.tl-item.morning  .tl-dot { background: var(--gold);    box-shadow: 0 0 0 2px var(--gold); }
.tl-item.afternoon .tl-dot { background: var(--coral);   box-shadow: 0 0 0 2px var(--coral); }
.tl-item.evening  .tl-dot { background: var(--navy-lt); box-shadow: 0 0 0 2px var(--navy-lt); }

.tl-time-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

.tl-item.morning   .tl-time-badge { background: #FFF8E8; color: #A07810; }
.tl-item.afternoon .tl-time-badge { background: #FFF0E8; color: var(--coral); }
.tl-item.evening   .tl-time-badge { background: #EBF0FF; color: var(--navy); }

.tl-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tl-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.tl-card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.tl-card h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.tl-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-hotel {
  margin-top: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hotel-icon { font-size: 1.2rem; }

/* ══════════════════════════════════════════════════════
   ATTRACTIONS SECTION
══════════════════════════════════════════════════════ */
.attractions-section {
  background: var(--white);
}

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.attraction-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.attraction-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.attr-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}

.attr-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}

/* CSS gradient "photos" for each attraction */
.attr-fushimi  {
  background: linear-gradient(135deg, #C8381A 0%, #E8603C 30%, #F4A261 55%, #2D0A05 100%);
}
.attr-arashiyama {
  background: linear-gradient(160deg, #1A3A1A 0%, #2D5A2D 30%, #4A8A4A 60%, #8BBF8B 100%);
}
.attr-kinkakuji {
  background: linear-gradient(135deg, #1A3A5C 0%, #2E7A9A 40%, #D4A017 65%, #F0CA5E 100%);
}
.attr-kiyomizu {
  background: linear-gradient(145deg, #8B4513 0%, #CD853F 30%, #DEB887 55%, #87CEEB 100%);
}
.attr-dotonbori {
  background: linear-gradient(135deg, #0D0D2B 0%, #1A1A4E 30%, #E8603C 60%, #F4A261 100%);
}
.attr-castle {
  background: linear-gradient(145deg, #1A3A5C 0%, #4A7A9C 35%, #87CEEB 65%, #E8E8E0 100%);
}
.attr-nara {
  background: linear-gradient(135deg, #2D5A1A 0%, #4A8A30 35%, #7BBF5A 60%, #D4E8B8 100%);
}
.attr-nijo {
  background: linear-gradient(145deg, #3A2800 0%, #6B4E1A 30%, #C4860A 60%, #F0CA5E 100%);
}

.attr-city-badge {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.attr-body {
  padding: 20px 22px;
}

.attr-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.attr-jp {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.attr-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.attr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.attr-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ══════════════════════════════════════════════════════
   TRANSPORT SECTION
══════════════════════════════════════════════════════ */
.transport-section {
  background: var(--bg);
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.transport-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.transport-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.transport-card.featured {
  border-color: var(--coral);
  background: linear-gradient(135deg, #FFF6F3 0%, var(--white) 100%);
}

.transport-card.featured::before {
  content: 'Essential';
  position: absolute;
  top: 16px;
  right: -20px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 30px;
  transform: rotate(35deg);
}

.transport-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--bg-alt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.transport-icon { font-size: 1.8rem; }

.transport-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.transport-subtitle {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.transport-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.transport-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.transport-tips li {
  font-size: 0.82rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}

.transport-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

.transport-cost {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--coral);
  background: var(--bg-alt);
  padding: 8px 14px;
  border-radius: var(--radius);
  text-align: center;
}

/* ── Route visual ─── */
.route-visual {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.route-visual h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 28px;
}

.route-map {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 8px;
  gap: 0;
}

.route-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.route-stop span:first-of-type {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  white-space: nowrap;
}

.route-stop small {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.stop-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--border);
  order: -1;
  margin-bottom: 8px;
}

.stop-dot.kyoto { background: var(--kyoto-grn); box-shadow: 0 0 0 2px var(--kyoto-grn); }
.route-stop.active .stop-dot { background: var(--coral); box-shadow: 0 0 0 2px var(--coral); }

.route-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  margin-bottom: 24px;
  min-width: 60px;
  position: relative;
}

.route-line.highlight {
  background: linear-gradient(90deg, var(--coral), var(--kyoto-grn));
}

/* ══════════════════════════════════════════════════════
   PACKING SECTION
══════════════════════════════════════════════════════ */
.packing-section {
  background: var(--white);
}

.packing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.packing-category {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.packing-category:hover {
  box-shadow: var(--shadow-sm);
}

.pack-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.pack-icon { font-size: 1.6rem; }

.pack-cat-header h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--navy);
}

.pack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  padding: 2px 0;
}

.pack-item span:last-child {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
  transition: var(--transition);
}

.check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
  position: relative;
  background: var(--white);
}

.pack-item.checked .check-box {
  background: var(--coral);
  border-color: var(--coral);
}

.pack-item.checked .check-box::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
}

.pack-item.checked span:last-child {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.6;
}

.pack-item.tip { border-left: 2px solid var(--orange-lt); padding-left: 8px; margin-left: -8px; }

/* ══════════════════════════════════════════════════════
   BUDGET SECTION
══════════════════════════════════════════════════════ */
.budget-section {
  background: var(--bg);
}

.budget-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.budget-table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
}

.budget-table thead th:last-child,
.budget-table thead th:nth-child(3) { text-align: right; }

.budget-row td {
  padding: 14px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.budget-row td:last-child,
.budget-row td:nth-child(3) { text-align: right; color: var(--text-muted); font-weight: 500; }

.budget-icon { font-size: 1rem; margin-right: 6px; }

.budget-row:hover td { background: var(--bg); }

.budget-row.flight  td:first-child { color: #3B6FD8; }
.budget-row.hotel   td:first-child { color: var(--navy); }
.budget-row.food    td:first-child { color: #C8487C; }
.budget-row.transport td:first-child { color: var(--kyoto-grn); }
.budget-row.attractions td:first-child { color: var(--coral); }
.budget-row.shopping td:first-child { color: var(--gold); }

.budget-total td {
  padding: 16px 20px;
  background: linear-gradient(135deg, #FFF8F3, var(--white));
  font-size: 1rem;
}

.budget-total td:last-child,
.budget-total td:nth-child(2) {
  text-align: right;
  font-size: 1.1rem;
  color: var(--coral);
}

/* ── Budget tips ─── */
.budget-tips-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.budget-tip-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  border: 1px solid var(--border);
}

.budget-tip-card.save  { border-top: 4px solid var(--kyoto-grn); }
.budget-tip-card.splurge { border-top: 4px solid var(--gold); }

.budget-tip-card h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.budget-tip-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.budget-tip-card li {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.budget-tip-card.save li::before   { content: '✓'; position: absolute; left: 0; color: var(--kyoto-grn); font-weight: 700; }
.budget-tip-card.splurge li::before { content: '★'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ── Budget bar chart ─── */
.budget-bars {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border);
}

.budget-bars h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 80px;
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--orange));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0 !important; /* starts at 0, animated by JS */
}

.bar-fill.animated { width: var(--target-width) !important; }

.bar-fill.hotel-bar     { background: linear-gradient(90deg, var(--navy), var(--navy-lt)); }
.bar-fill.food-bar      { background: linear-gradient(90deg, #C8487C, #E8789C); }
.bar-fill.transport-bar { background: linear-gradient(90deg, var(--kyoto-grn), #6FAF85); }
.bar-fill.shop-bar      { background: linear-gradient(90deg, var(--gold), var(--gold-lt)); }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}

.footer-top {
  text-align: center;
  margin-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--orange);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-bottom p:first-child {
  font-family: var(--font-jp);
  color: var(--gold-lt);
  font-size: 1rem;
}

.footer-note {
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.3) !important;
}

/* ── Back to top ─── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--coral);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(232,96,60,0.4);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--coral-dark);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (max 1024px)
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .flight-cards    { grid-template-columns: 1fr; }
  .stats-row       { grid-template-columns: repeat(2, 1fr); }
  .budget-tips-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .section { padding: 64px 0; }

  /* Nav */
  .nav-toggle { display: flex; z-index: 10; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: 1.25rem;
    color: var(--white) !important;
  }

  /* Hero */
  .hero-dates { flex-direction: column; align-items: stretch; }
  .hero-date-divider { flex-direction: row; }
  .hero-date-card { min-width: unset; }
  .countdown { gap: 8px; }
  .cd-block { min-width: 56px; padding: 10px 12px; }
  .cd-block span { font-size: 1.4rem; }

  /* Overview */
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Itinerary */
  .day-panel-header { flex-direction: column; align-items: flex-start; }
  .timeline { padding-left: 28px; }
  .tl-dot { left: -23px; }

  /* Transport */
  .transport-grid { grid-template-columns: 1fr; }

  /* Budget */
  .budget-table thead th:nth-child(3) { display: none; }
  .budget-row td:nth-child(3)         { display: none; }
  .budget-total td:nth-child(2)       { text-align: right; }
  .budget-total td:nth-child(3)       { display: none; }

  /* Budget bars */
  .bar-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bar-label { text-align: left; }
  .bar-track { width: 100%; }

  /* Footer */
  .footer-links { gap: 8px 16px; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.8rem; }
  .route-arrow { margin: 0 6px; }
  .section-title { font-size: 1.8rem; }
  .attractions-grid { grid-template-columns: 1fr; }
  .packing-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   BUDGET TOGGLE
═══════════════════════════════════════ */
.budget-toggle-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.budget-toggle-btn {
  padding: 0.45rem 1.4rem;
  border-radius: 50px;
  border: 2px solid var(--coral);
  background: transparent;
  color: var(--coral);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.budget-toggle-btn.active,
.budget-toggle-btn:hover {
  background: var(--coral);
  color: #fff;
}

/* ═══════════════════════════════════════
   EXCHANGE RATE SECTION
═══════════════════════════════════════ */
.exchange-section { background: var(--bg-alt); }

.exchange-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  max-width: 700px;
  margin: 0 auto;
}

.exchange-rate-display {
  text-align: center;
  margin-bottom: 2rem;
}

.rate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1A3A5C, #2a5a8c);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.rate-flag { font-size: 1.4rem; }
.rate-equals { opacity: 0.7; margin: 0 0.25rem; }
.rate-value { color: #F4A261; font-size: 1.4rem; }

.rate-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #888;
}
.rate-refresh-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--coral);
  transition: all 0.2s;
}
.rate-refresh-btn:hover { background: var(--coral); color: #fff; border-color: var(--coral); }

.converter-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.converter-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.converter-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.converter-input {
  padding: 0.7rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.converter-input:focus {
  outline: none;
  border-color: var(--coral);
}
.converter-result {
  font-size: 0.9rem;
  color: var(--coral);
  font-weight: 600;
  min-height: 1.2rem;
}
.converter-swap {
  display: flex;
  align-items: center;
  padding-bottom: 1.8rem;
}
.swap-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  background: #fff;
  color: var(--coral);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swap-btn:hover { background: var(--coral); color: #fff; }

.quick-convert-row { border-top: 1px solid #f0f0f0; padding-top: 1.25rem; }
.quick-label { font-size: 0.85rem; color: #888; margin-bottom: 0.6rem; font-weight: 500; }
.quick-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.quick-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--navy);
}
.quick-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ═══════════════════════════════════════
   EXPENSE TRACKER SECTION
═══════════════════════════════════════ */
.expenses-section { background: #fff; }

.traveler-names {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.traveler-name-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.traveler-name-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
}
.name-input {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  width: 140px;
  transition: border-color 0.2s;
}
.name-input:focus { outline: none; border-color: var(--coral); }

.expense-form-card {
  background: #fafafa;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid #f0f0f0;
}
.expense-form-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.expense-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}
.form-input {
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: var(--coral); }
.form-input-readonly { background: #f5f5f5; color: var(--coral); font-weight: 600; }
.btn-add-expense {
  background: linear-gradient(135deg, var(--coral), var(--orange));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-add-expense:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-add-expense:active { transform: translateY(0); }

/* Split Summary */
.split-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, #1A3A5C 0%, #2a5a8c 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}
.split-card {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.split-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.split-paid { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.2rem; }
.split-share { font-size: 0.85rem; opacity: 0.85; }
.split-paid strong, .split-share strong { color: #F4A261; }
.split-result {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.split-arrow { font-size: 1.5rem; opacity: 0.6; }
.split-owe {
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* Expense Stats */
.expense-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.stat-chip {
  background: #f0f4ff;
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.88rem;
  color: var(--navy);
}
.stat-chip strong { color: var(--coral); }

/* Expense List */
.expense-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.expense-list-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.list-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: #666;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.expense-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 80px;
}
.expense-empty {
  text-align: center;
  padding: 2.5rem;
  color: #aaa;
  font-size: 0.95rem;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
}
.expense-empty small { font-size: 0.82rem; opacity: 0.7; }

.expense-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: box-shadow 0.2s;
  animation: slideIn 0.25s ease;
}
.expense-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.07); }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.expense-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.cat-food { background: #fff3e0; }
.cat-transport { background: #e3f2fd; }
.cat-attraction { background: #fce4ec; }
.cat-shopping { background: #f3e5f5; }
.cat-accommodation { background: #e8f5e9; }
.cat-misc { background: #f5f5f5; }

.expense-info { display: flex; flex-direction: column; gap: 0.15rem; }
.expense-desc { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.expense-meta { font-size: 0.78rem; color: #999; }
.expense-meta .paid-by { color: var(--coral); font-weight: 600; }

.expense-amount { text-align: right; }
.expense-jpy { font-weight: 700; font-size: 1rem; color: var(--navy); }
.expense-twd { font-size: 0.78rem; color: #aaa; }

.expense-delete {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1;
}
.expense-delete:hover { color: #ef4444; background: #fee2e2; }

/* Responsive */
@media (max-width: 900px) {
  .expense-form-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 600px) {
  .converter-row { flex-direction: column; }
  .converter-swap { padding-bottom: 0; justify-content: center; }
  .expense-form-grid { grid-template-columns: 1fr 1fr; }
  .split-summary { grid-template-columns: 1fr; }
  .split-result { flex-direction: row; justify-content: center; }
  .traveler-names { flex-direction: column; align-items: center; }
}
