@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700;900&family=Noto+Sans+HK:wght@400;500;700;900&display=swap');

/* ═══════════════════════════════════════════════
   TOKENS — 桜 Sakura（暖白・粉紅）
   ═══════════════════════════════════════════════ */
:root {
  --bg:        #fdf5ee;
  --bg-deep:   #f8ede3;
  --card:      #fffaf6;
  --card-2:    #fff8f3;
  --paper:     #fdf0e8;
  --ink:       #241008;
  --ink-soft:  #5a2e20;
  --muted:     #8c6a5a;
  --line:      #f0d8c8;
  --line-2:    #f5e2d5;
  --accent:    #c0364e;
  --accent-h:  #a02840;
  --gold:      #b87030;
  --gold-dim:  rgba(184,112,48,.3);
  --pink:      #e87090;
  --shadow:    0 20px 56px rgba(100,40,20,.12);
  --shadow-sm: 0 4px 20px rgba(100,40,20,.07);
  --radius:    10px;
  --radius-lg: 14px;
  --serif:     'Noto Serif JP', Georgia, serif;
  --sans:      'Noto Sans HK', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ═══════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════════ */
.app-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 20px;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #2a0a10;
  box-shadow: var(--shadow);
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(30,8,10,.88) 0%, rgba(30,8,10,.42) 55%, rgba(30,8,10,.65) 100%),
    url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?auto=format&fit=crop&w=2000&q=85") center/cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.08); }
}

/* Sakura left bar */
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--pink), var(--accent));
  z-index: 3;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* Sakura petals */
.sakura {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 3;
}
.petal {
  position: absolute;
  border-radius: 0 50% 50% 50%;
  opacity: 0;
  animation: petalFall linear infinite;
}
.petal--1 { width:9px;  height:9px;  background:rgba(232,112,144,.8); left:7%;  animation-duration:12s; animation-delay:0s; }
.petal--2 { width:12px; height:12px; background:rgba(220,100,130,.7); left:17%; animation-duration:15s; animation-delay:2.2s; }
.petal--3 { width:8px;  height:8px;  background:rgba(240,130,160,.75);left:30%; animation-duration:13s; animation-delay:4.5s; }
.petal--4 { width:10px; height:10px; background:rgba(228,110,140,.8); left:46%; animation-duration:16s; animation-delay:1.5s; }
.petal--5 { width:11px; height:11px; background:rgba(215,95,125,.7);  left:60%; animation-duration:14s; animation-delay:6s; }
.petal--6 { width:8px;  height:8px;  background:rgba(235,120,150,.8); left:72%; animation-duration:12s; animation-delay:3.8s; }
.petal--7 { width:10px; height:10px; background:rgba(225,105,135,.75);left:83%; animation-duration:17s; animation-delay:7.2s; }
.petal--8 { width:9px;  height:9px;  background:rgba(232,112,144,.8); left:90%; animation-duration:13s; animation-delay:5s; }
.petal--9 { width:11px; height:11px; background:rgba(220,100,130,.7); left:24%; animation-duration:15s; animation-delay:9s; }
@keyframes petalFall {
  0%   { top:-20px; opacity:0;   transform:rotate(-45deg); }
  5%   { opacity:.85; }
  90%  { opacity:.7; }
  100% { top:480px; opacity:0;   transform:rotate(200deg) translateX(30px); }
}

/* Hero content */
.hero__content {
  position: relative; z-index: 4;
  min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end;
  max-width: 760px;
  padding: 48px 56px 44px 64px;
  color: #fff;
}

.trip-date {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #f5b8c8;
  font-weight: 700;
}
.trip-date::before { content: '── '; letter-spacing: 0; }

h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  color: #fff;
}

h2 { font-family: var(--serif); font-weight: 700; color: var(--ink); }

.hero__sub {
  margin: 0 0 24px;
  max-width: 500px;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  line-height: 1.72;
}

/* Stats bar — glassmorphism */
.hero__stats {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(232,112,144,.35);
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.hero__stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 20px;
  text-align: center; line-height: 1.2;
}
.hero__stat strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 900; color: #fff; }
.hero__stat span   { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; margin-top: 2px; }
.hero__stat-sep    { width: 1px; background: rgba(232,112,144,.3); flex-shrink: 0; margin: 10px 0; }

/* ═══════════════════════════════════════════════
   TAB NAVIGATION
   ═══════════════════════════════════════════════ */
.tabs {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: stretch;
  padding: 0; margin-top: 8px;
  background: rgba(253,245,238,.97);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--line);
  overflow: hidden;
}

.tabs__indicator {
  position: absolute; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--accent));
  border-radius: 3px 3px 0 0;
  transition: left 320ms cubic-bezier(.4,0,.2,1), width 320ms cubic-bezier(.4,0,.2,1);
  z-index: 1;
}

.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  border: 0; border-bottom: 3px solid transparent;
  background: transparent; color: var(--muted);
  padding: 11px 8px 9px;
  min-height: 52px; cursor: pointer;
  font-weight: 700; font-size: .77rem; letter-spacing: .02em;
  transition: color 180ms, background 180ms;
  margin-bottom: -2px;
}
.tab__icon { font-size: .95rem; line-height: 1; }
.tab:hover { color: var(--accent); background: rgba(192,54,78,.04); }
.tab.is-active { color: var(--accent); background: rgba(192,54,78,.05); }

/* ═══════════════════════════════════════════════
   PANELS + ANIMATIONS
   ═══════════════════════════════════════════════ */
.panel { display: none; padding: 24px 0 64px; animation: panelIn 260ms ease forwards; }
.panel.is-active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 440ms ease, transform 440ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   SECTION HEADING
   ═══════════════════════════════════════════════ */
.section-heading {
  margin: 8px 0 24px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}
.section-heading h2, .home-section-title h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.15; margin-bottom: 6px;
}
.section-heading p, .home-section-title p, .helper-text {
  color: var(--muted); font-size: .9rem; margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   NOW CARD
   ═══════════════════════════════════════════════ */
.now-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px 20px 24px;
  margin-bottom: 16px;
}
.now-card span {
  display: block; color: var(--accent);
  font-size: .72rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .12em;
}
.now-card strong {
  display: block; margin: 4px 0 8px;
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink);
}

/* ═══════════════════════════════════════════════
   WEATHER MODE TOGGLE
   ═══════════════════════════════════════════════ */
.weather-mode-bar {
  display: inline-grid; grid-template-columns: 1fr 1fr;
  gap: 4px; margin-top: 14px; padding: 4px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(192,54,78,.04);
}
.weather-mode-btn {
  min-height: 38px; border: 0; border-radius: 6px;
  padding: 7px 18px; background: transparent;
  color: var(--muted); font-weight: 700; cursor: pointer;
  transition: background 180ms, color 180ms;
}
.weather-mode-btn.is-active { background: var(--accent); color: #fff; }

/* ═══════════════════════════════════════════════
   DAY CARDS — photo header
   ═══════════════════════════════════════════════ */
#dayCards { display: grid; gap: 12px; }

.day-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 200ms, transform 200ms;
}
.day-card:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(100,40,20,.14); }

.day-summary {
  display: block; width: 100%; border: 0;
  padding: 0; cursor: pointer; background: none; text-align: left;
}

.day-card__photo {
  width: 100%; height: 190px;
  background: var(--day-photo, url("https://images.unsplash.com/photo-1528360983277-13d401cdc186?w=1400&q=80")) center/cover no-repeat;
  position: relative;
  transition: filter 200ms;
}
.day-card__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,5,5,.85) 0%, rgba(20,5,5,.15) 60%, rgba(20,5,5,.08) 100%);
}

.day-card__photo-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end;
  justify-content: space-between;
  padding: 16px; gap: 12px;
}

.date-badge {
  flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 56px; height: 66px;
  background: var(--accent);
  border-radius: var(--radius);
  color: #fff; line-height: 1; padding: 6px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.2);
}
.date-badge strong {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 900; display: block;
}
.date-badge small {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .06em; color: rgba(255,255,255,.78);
  display: block; text-transform: uppercase;
}

.day-card__title-wrap { flex: 1; min-width: 0; }
.day-card__title-wrap strong {
  display: block; font-family: var(--serif);
  font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.day-card__title-wrap small {
  display: block; font-size: .78rem;
  color: rgba(255,255,255,.62); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.chevron {
  flex-shrink: 0; width: 9px; height: 9px;
  border-right: 2px solid rgba(255,255,255,.7);
  border-bottom: 2px solid rgba(255,255,255,.7);
  transform: rotate(45deg);
  transition: transform 220ms ease; margin-bottom: 4px;
}
[aria-expanded="true"] .chevron { transform: rotate(-135deg); }
.fold-toggle .chevron {
  border-right-color: var(--muted); border-bottom-color: var(--muted);
  transform: rotate(45deg);
}
.fold-toggle[aria-expanded="true"] .chevron { transform: rotate(-135deg); }

/* ═══════════════════════════════════════════════
   DAY DETAIL + TIMELINE
   ═══════════════════════════════════════════════ */
.day-detail, .fold-content { display: none; padding: 0 18px 20px; }
.day-detail.is-open, .fold-content.is-open { display: block; }
.fold-content.food-list { display: none; }
.fold-content.food-list.is-open { display: grid; }

.timeline {
  display: grid; gap: 8px;
  margin: 18px 0 16px;
  position: relative; padding-left: 22px;
}
.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(192,54,78,.2));
  border-radius: 2px;
}

.timeline__item {
  display: grid; grid-template-columns: 68px 1fr;
  gap: 14px; padding: 13px 14px 13px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card-2); position: relative;
  transition: border-color 180ms, box-shadow 180ms;
}
.timeline__item::before {
  content: ''; position: absolute;
  left: -27px; top: 18px;
  width: 10px; height: 10px;
  background: var(--card); border: 2px solid var(--accent);
  border-radius: 50%;
}
.timeline__item:hover {
  border-color: rgba(192,54,78,.3);
  box-shadow: 0 4px 18px rgba(192,54,78,.08);
}
.timeline__item time { color: var(--accent); font-weight: 900; font-size: .86rem; padding-top: 2px; }
.timeline__item p { margin-bottom: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.place-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.place-title strong { font-family: var(--serif); font-size: .98rem; color: var(--ink); }

/* ═══════════════════════════════════════════════
   MINI CARDS (day hints)
   ═══════════════════════════════════════════════ */
.option-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.day-hints { margin: 0 0 14px; }

.mini-card {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.mini-card strong {
  display: block; font-size: .76rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 6px;
}
.mini-card p { color: var(--muted); margin-bottom: 0; font-size: .86rem; }

/* ═══════════════════════════════════════════════
   WEATHER CARDS — CSS animated icons
   ═══════════════════════════════════════════════ */
.timezone-bar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 14px; margin-bottom: 18px;
}
.tz-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.tz-item span {
  display: block; color: var(--muted);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px;
}
.tz-time { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--accent); }
.tz-sep { color: var(--muted); font-size: .78rem; font-weight: 700; text-align: center; }

.weather-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 14px;
}

.weather-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 0; overflow: hidden;
  transition: transform 180ms, box-shadow 180ms;
  position: relative;
  min-height: 200px;
  display: flex; flex-direction: column;
}
.weather-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(100,40,20,.16); }

/* Gradient backgrounds per condition */
.weather-card[data-cond="sun"]   { background: linear-gradient(145deg, #7a2e10 0%, #d47020 100%); }
.weather-card[data-cond="cloud"] { background: linear-gradient(145deg, #4a5a70 0%, #7a8a9e 100%); }
.weather-card[data-cond="fog"]   { background: linear-gradient(145deg, #5a5a6a 0%, #7a7a8e 100%); }
.weather-card[data-cond="rain"]  { background: linear-gradient(145deg, #2a3a58 0%, #4a5a80 100%); }
.weather-card[data-cond="storm"] { background: linear-gradient(145deg, #1a1a28 0%, #2a2a40 100%); }
.weather-card:not([data-cond])   { background: linear-gradient(145deg, #4a5a70 0%, #7a8a9e 100%); }

.weather-card--primary { border-top: 3px solid var(--accent); }

.weather-card__body {
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-between; padding: 20px;
}
.weather-card__city {
  font-size: .7rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .14em; color: rgba(255,255,255,.6); margin-bottom: 8px;
}
.weather-card__icon-row {
  display: flex; align-items: center; gap: 14px; margin: 6px 0;
}
.weather-card__temp {
  font-family: var(--serif); font-size: 2.7rem; font-weight: 900;
  color: #fff; line-height: 1; letter-spacing: -.02em;
}
.weather-card__desc { font-size: .88rem; color: rgba(255,255,255,.72); margin-top: 6px; }
.weather-card__meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12);
}
.weather-card__meta span { font-size: .78rem; color: rgba(255,255,255,.55); font-weight: 700; }
.weather-card__meta span strong { color: rgba(255,255,255,.9); }

/* ── CSS Animated Weather Icons ─────────────── */
.wx { position: relative; width: 88px; height: 88px; flex-shrink: 0; }

/* Sun */
.wx-sun .sun-body {
  position: absolute; top:50%; left:50%;
  width:36px; height:36px; margin:-18px 0 0 -18px;
  background: radial-gradient(circle, #ffe066, #ffa830);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,185,40,.25), 0 0 22px rgba(255,160,10,.5);
  animation: sunPulse 2.5s ease-in-out infinite;
}
.wx-sun .sun-rays {
  position: absolute; top:50%; left:50%;
  width:76px; height:76px; margin:-38px 0 0 -38px;
  animation: spinRay 8s linear infinite;
}
.wx-sun .sun-rays::before {
  content: ''; position: absolute; inset: 0;
  background: conic-gradient(
    #ffc040 0deg 12deg, transparent 12deg 33deg,
    #ffc040 33deg 45deg, transparent 45deg 66deg,
    #ffc040 66deg 78deg, transparent 78deg 99deg,
    #ffc040 99deg 111deg, transparent 111deg 132deg,
    #ffc040 132deg 144deg, transparent 144deg 165deg,
    #ffc040 165deg 177deg, transparent 177deg 198deg,
    #ffc040 198deg 210deg, transparent 210deg 231deg,
    #ffc040 231deg 243deg, transparent 243deg 264deg,
    #ffc040 264deg 276deg, transparent 276deg 297deg,
    #ffc040 297deg 309deg, transparent 309deg 330deg,
    #ffc040 330deg 342deg, transparent 342deg 360deg
  );
  border-radius: 50%; opacity: .55;
  clip-path: polygon(50% 0%,53% 38%,100% 50%,53% 62%,50% 100%,47% 62%,0% 50%,47% 38%);
}
@keyframes sunPulse {
  0%,100% { box-shadow: 0 0 0 5px rgba(255,185,40,.25), 0 0 18px rgba(255,160,10,.5); }
  50%     { box-shadow: 0 0 0 8px rgba(255,185,40,.15), 0 0 28px rgba(255,160,10,.7); }
}
@keyframes spinRay { to { transform: rotate(360deg); } }

/* Cloud */
.wx-cloud .cloud {
  position: absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: 58px; height: 26px;
  background: rgba(255,255,255,.9);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  animation: cloudFloat 3.8s ease-in-out infinite;
}
.wx-cloud .cloud::before {
  content: ''; position: absolute;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.9);
  border-radius: 50%; top: -14px; left: 10px;
}
.wx-cloud .cloud::after {
  content: ''; position: absolute;
  width: 22px; height: 22px;
  background: rgba(255,255,255,.85);
  border-radius: 50%; top: -10px; right: 10px;
}
@keyframes cloudFloat {
  0%,100% { transform: translate(-50%,-50%) translateY(0); }
  50%     { transform: translate(-50%,-50%) translateY(-5px); }
}

/* Rain */
.wx-rain .cloud-r {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 22px;
  background: rgba(255,255,255,.85);
  border-radius: 22px;
}
.wx-rain .cloud-r::before {
  content: ''; position: absolute;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.85);
  border-radius: 50%; top: -12px; left: 8px;
}
.wx-rain .drop {
  position: absolute;
  width: 3px; border-radius: 2px;
  background: rgba(140,200,255,.9);
  animation: dropFall .8s linear infinite;
}
.wx-rain .drop:nth-child(2) { height:10px; left:22px; top:40px; animation-delay:0s; }
.wx-rain .drop:nth-child(3) { height:13px; left:33px; top:38px; animation-delay:.25s; }
.wx-rain .drop:nth-child(4) { height:9px;  left:44px; top:42px; animation-delay:.5s; }
.wx-rain .drop:nth-child(5) { height:11px; left:12px; top:42px; animation-delay:.35s; }
@keyframes dropFall {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Fog */
.wx-fog .fog-line {
  position: absolute; left: 8px; right: 8px; height: 3px;
  background: rgba(255,255,255,.7);
  border-radius: 3px;
  animation: fogDrift 3s ease-in-out infinite;
}
.wx-fog .fog-line:nth-child(1) { top: 22px; animation-delay: 0s; }
.wx-fog .fog-line:nth-child(2) { top: 32px; width: 80%; animation-delay: .6s; }
.wx-fog .fog-line:nth-child(3) { top: 42px; animation-delay: 1.2s; }
@keyframes fogDrift {
  0%,100% { opacity: .6; transform: translateX(0); }
  50%     { opacity: 1;  transform: translateX(4px); }
}

/* Forecast section */
.forecast-section {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 22px; margin-top: 14px;
}
.forecast-section h3 { font-family: var(--serif); margin-bottom: 16px; color: var(--ink); }
.forecast-group { margin-bottom: 18px; }
.forecast-group h4 {
  font-size: .78rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 10px;
}
.forecast-strip {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
.forecast-day {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 10px; min-height: 120px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 3px;
}
.forecast-day strong,
.forecast-day span { display: block; }
.forecast-day strong { color: var(--ink); font-size: .86rem; }
.forecast-day span { color: var(--muted); font-size: .8rem; margin-top: 2px; }

/* Colour tint per condition */
.forecast-day.fc-sun   { border-top: 2px solid #d47020; background: #fff8f0; }
.forecast-day.fc-cloud { border-top: 2px solid #7a8a9e; }
.forecast-day.fc-fog   { border-top: 2px solid #9a9aaa; }
.forecast-day.fc-rain  { border-top: 2px solid #4a6a90; background: #f5f8ff; }
.forecast-day.fc-storm { border-top: 2px solid #4a4a60; }

.fc-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 2px; }
.fc-desc { font-size: .76rem !important; color: var(--ink-soft) !important; font-weight: 700; }
.fc-temp { font-family: var(--serif); font-size: .88rem !important; font-weight: 900; color: var(--ink) !important; }
.fc-rain-bar {
  width: 100%; height: 4px; border-radius: 999px;
  background: var(--line); overflow: hidden; margin-top: 4px;
}
.fc-rain-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #6ab0e8, #3a6aa0);
  transition: width .4s ease;
}
.fc-rain-pct { font-size: .72rem !important; color: #5a8ab0 !important; margin-top: 2px; }

/* Trip forecast */
.trip-forecast {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
}
.trip-day {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px;
  transition: transform .2s, box-shadow .2s;
}
.trip-day:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Coloured top stripe per condition */
.trip-day--sun   { border-top: 3px solid #d47020; }
.trip-day--cloud { border-top: 3px solid #7a8a9e; }
.trip-day--fog   { border-top: 3px solid #9a9aaa; }
.trip-day--rain  { border-top: 3px solid #4a5a80; }
.trip-day--storm { border-top: 3px solid #2a2a40; }
.trip-day--pending { border-top: 3px solid var(--line); }

.trip-day__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.trip-day__date {
  font-family: var(--serif); font-size: 1rem; font-weight: 900; color: var(--ink);
}
.trip-day__icon { font-size: 1.6rem; line-height: 1; }
.trip-day__title {
  font-size: .78rem; color: var(--muted); margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trip-day__weather {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.trip-day__desc { font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
.trip-day__temp { font-family: var(--serif); font-size: .95rem; font-weight: 900; color: var(--accent); }
.trip-day__rain { font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.trip-day__outfit {
  font-size: .78rem; color: var(--muted); line-height: 1.55;
  border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px;
}
.trip-day__note { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* Advice card */
.advice-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 20px 22px; margin-top: 14px;
}
.advice-card h3 { font-family: var(--serif); margin-bottom: 8px; color: var(--ink); }
.advice-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .91rem; }

/* ═══════════════════════════════════════════════
   TIPS GRID
   ═══════════════════════════════════════════════ */
.tips-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 14px;
}
.tips-grid .advice-card {
  border-top: 3px solid var(--accent); margin-top: 0;
}

/* ═══════════════════════════════════════════════
   MAP PREVIEW CARDS
   ═══════════════════════════════════════════════ */
.home-map-preview { margin-top: 32px; }
.home-section-title {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px; margin-bottom: 16px;
}
.preview-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.preview-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms, box-shadow 220ms;
}
.preview-card:hover { transform: translateY(-5px); box-shadow: 0 22px 52px rgba(100,40,20,.16); }
.preview-card img {
  display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover;
  transition: transform 450ms;
}
.preview-card:hover img { transform: scale(1.06); }
.preview-card strong, .preview-card span { display: block; padding: 0 16px; }
.preview-card strong { padding-top: 14px; font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.preview-card span   { padding-bottom: 16px; color: var(--muted); font-size: .83rem; margin-top: 3px; }

/* ═══════════════════════════════════════════════
   CARDS: reservation, money, expense, prep, fold
   ═══════════════════════════════════════════════ */
.reservation-card, .money-card, .expense-card, .prep-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 22px; margin-top: 16px;
}
.fold-section {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 18px 20px; margin-top: 14px;
}

.reservation-card h3, .prep-card__top h3, .expense-card__top h3 {
  font-family: var(--serif); color: var(--ink); margin: 0;
}

.fold-toggle {
  width: 100%; display: grid; grid-template-columns: 1fr auto;
  gap: 14px; align-items: center; text-align: left;
  border: 0; background: transparent; padding: 0; cursor: pointer;
}
.fold-toggle strong { font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.fold-toggle small  { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.info-button, .inline-link, .text-button, .icon-button {
  border: 0; background: transparent;
  color: var(--accent); font-weight: 700; cursor: pointer;
  transition: color 150ms; padding: 0;
}
.info-button {
  border: 1px solid rgba(192,54,78,.3); border-radius: 999px;
  padding: 2px 10px; font-size: .75rem; color: var(--accent);
}
.info-button:hover, .inline-link:hover { color: var(--accent-h); }
.text-button--danger { color: var(--accent) !important; }

.action-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.action-row a, .quick-link, .primary-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--accent); color: #fff;
  border: 1.5px solid var(--accent);
  font-weight: 700; font-size: .86rem; cursor: pointer;
  transition: background 180ms, border-color 180ms, transform 120ms;
}
.action-row a:hover, .quick-link:hover, .primary-button:hover {
  background: var(--accent-h); border-color: var(--accent-h);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════════════ */
.reservation-form, .expense-form { display: grid; gap: 12px; }
.reservation-grid, .converter-grid, .expense-form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

input, select {
  width: 100%; min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-2); color: var(--ink);
  padding: 10px 14px;
  transition: border-color 160ms, box-shadow 160ms;
  -webkit-appearance: none;
}
input:focus, select:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px rgba(192,54,78,.1);
}
input::placeholder { color: var(--muted); }

.field { display: grid; gap: 6px; }
.field span { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .03em; }

/* ═══════════════════════════════════════════════
   LISTS
   ═══════════════════════════════════════════════ */
.link-list, .food-list, .reservation-list, .expense-list,
.packing-list, .phrase-list { display: grid; gap: 10px; }

.link-item, .food-item, .reservation-item, .expense-item,
.packing-item, .phrase-item, .route-result {
  display: grid; gap: 4px; padding: 14px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card-2);
  transition: border-color 160ms, box-shadow 160ms;
}
.link-item:hover, .food-item:hover {
  border-color: rgba(192,54,78,.3);
  box-shadow: 0 4px 16px rgba(192,54,78,.07);
}
.link-item { grid-template-columns: 1fr auto; align-items: center; }
.link-item p, .food-item p, .reservation-item p,
.expense-item p, .phrase-item p {
  margin-bottom: 0; color: var(--muted); font-size: .87rem;
}
.food-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin: 4px 0; }

/* ═══════════════════════════════════════════════
   CARD TOPS
   ═══════════════════════════════════════════════ */
.prep-card__top, .money-card__top, .expense-card__top {
  display: flex; justify-content: space-between; gap: 14px;
  align-items: flex-start; margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   PACKING + BUDGET
   ═══════════════════════════════════════════════ */
.packing-item { grid-template-columns: auto 1fr; align-items: center; }
.packing-item input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.checkbox-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; }
.checkbox-row input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.packing-item.is-done { opacity: .5; text-decoration: line-through; }

.packing-add, .budget-form {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px;
}
.budget-section {
  padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card-2);
  margin-bottom: 16px; display: grid; gap: 10px;
}
.budget-top, .budget-nums {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.budget-status { margin: 0; color: var(--muted); font-weight: 700; }
.budget-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.budget-bar__fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 300ms ease;
}
.split-member-box {
  padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card-2); display: grid; gap: 8px;
}
.split-member-box p { margin: 0; color: var(--muted); font-weight: 700; font-size: .85rem; }
.split-member-options { display: flex; gap: 12px; flex-wrap: wrap; }
.expense-summary { margin: 12px 0; color: var(--muted); font-weight: 700; font-size: .9rem; }
.split-summary, .settlement-list { display: grid; gap: 8px; margin: 8px 0; }
.split-summary { color: var(--muted); }

/* ═══════════════════════════════════════════════
   RATE CHIPS
   ═══════════════════════════════════════════════ */
.rate-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.rate-chips span {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(192,54,78,.08); border: 1px solid rgba(192,54,78,.2);
  color: var(--accent); font-size: .82rem; font-weight: 700;
}

/* ═══════════════════════════════════════════════
   PHRASES
   ═══════════════════════════════════════════════ */
.phrase-category { display: grid; gap: 8px; }
.phrase-category h4 { margin: 16px 0 0; color: var(--accent); font-family: var(--serif); font-size: .95rem; }
.phrase-row { grid-template-columns: auto 1fr auto; align-items: center; }
.phrase-speak {
  width: 40px; min-height: 40px; border: 1.5px solid var(--line);
  border-radius: 50%; background: var(--accent); color: #fff;
  cursor: pointer; display: grid; place-items: center;
  transition: background 160ms;
}
.phrase-speak:hover { background: var(--accent-h); }
.copy-mini { min-width: 60px; }

/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(36,16,8,.5); backdrop-filter: blur(8px); }
.modal__card {
  position: relative; width: min(560px,100%);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); border-top: 4px solid var(--accent);
  animation: modalIn 240ms cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 12px; color: var(--ink); }
.modal__card p { color: var(--muted); }
.modal__card ul { color: var(--muted); padding-left: 20px; }
.modal__card li { margin-bottom: 6px; font-size: .9rem; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border: 1.5px solid var(--line);
  border-radius: 50%; background: var(--card-2); cursor: pointer;
  font-size: 1.25rem; color: var(--muted);
  display: grid; place-items: center;
  transition: border-color 150ms, color 150ms;
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb { background: rgba(192,54,78,.3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 760px) {
  .app-shell { padding: 12px; }
  .hero, .hero__content { min-height: 380px; }
  .hero__content { padding: 28px 24px 32px 30px; }
  .hero__stats { flex-wrap: wrap; gap: 10px; padding: 8px 14px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 10px 8px 8px; font-size: .73rem; min-width: 58px; }
  .day-card__photo { height: 160px; }
  .option-grid, .preview-grid, .weather-grid, .tips-grid,
  .trip-forecast, .reservation-grid, .converter-grid,
  .expense-form__row, .timezone-bar { grid-template-columns: 1fr; }
  .tz-sep { text-align: center; }
  .timeline { padding-left: 12px; }
  .timeline::before { display: none; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
  .timeline__item::before { display: none; }
  .link-item { grid-template-columns: 1fr; }
  .packing-add, .budget-form { grid-template-columns: 1fr; }
  .budget-top, .budget-nums { flex-direction: column; align-items: flex-start; }
  .phrase-row { grid-template-columns: auto 1fr; }
  .phrase-row .copy-mini { grid-column: 2; justify-self: start; }
  .forecast-strip { grid-template-columns: repeat(7,minmax(92px,1fr)); }
}
