
:root{
  --navy:#10243f;--navy2:#17385f;--ink:#172033;--muted:#697386;--bg:#f4f6f9;
  --card:#fff;--line:#e3e8ef;--soft:#edf3f8;--blue:#eaf3ff;--good:#e9f7ef;
  --warn:#fff4d6;--danger:#fff0ee;--shadow:0 6px 22px rgba(16,36,63,.08);--r:18px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink)}
body{padding-bottom:calc(76px + env(safe-area-inset-bottom));overflow-x:hidden}
a{text-decoration:none;color:inherit}
.homeHero{position:relative;min-height:208px;background-image:linear-gradient(180deg,rgba(8,25,47,.18),rgba(8,25,47,.92)),url("hero-japan.jpg");background-size:cover;background-position:center;color:#fff;padding:24px 24px 22px}
.homeHero .tripTitle{font-size:2rem;line-height:1.06;font-weight:900;margin:44px 0 6px}
.homeHero .tripMeta{font-size:.98rem;line-height:1.45;opacity:.94}
.compactTop{background:var(--navy);color:#fff;min-height:74px;padding:18px 18px 14px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.compactTop strong{font-size:1.06rem}.compactTop .mini{font-size:.76rem;opacity:.76}
.offlineDot{display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:800;opacity:.9;margin-top:10px}
.offlineDot:before{content:"";width:7px;height:7px;border-radius:50%;background:#5ee09a}
.wrap{max-width:820px;margin:0 auto;padding:14px 14px 24px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:15px;margin-bottom:12px}
.card.tight{padding:11px 13px}
.kicker{font-size:.69rem;letter-spacing:.11em;text-transform:uppercase;color:var(--muted);font-weight:900}
h1,h2,h3,p{margin-top:0}h2{font-size:1.28rem;margin-bottom:7px}h3{font-size:1rem;margin-bottom:5px}p{line-height:1.45}.muted{color:var(--muted)}
.big{font-size:1.85rem;font-weight:900;line-height:1.04}.small{font-size:.82rem}.tiny{font-size:.73rem}
.status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:.68rem;font-weight:900;white-space:nowrap}
.good{background:var(--good)}.warn{background:var(--warn)}.plan{background:var(--blue)}.open{background:var(--danger)}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.row.start{align-items:flex-start}
.btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:var(--navy);color:#fff;border-radius:11px;padding:10px 13px;font-weight:850;font-size:.85rem}.btn.soft{background:var(--soft);color:var(--navy)}.btn.ghost{background:#fff;color:var(--navy);border:1px solid var(--line)}
.actionList{list-style:none;margin:8px 0 0;padding:0}.actionList li{padding:10px 0;border-bottom:1px solid var(--line)}.actionList li:last-child{border-bottom:0}.actionTitle{font-weight:850}.actionMeta{font-size:.78rem;color:var(--muted);margin-top:2px}
.countPill{min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:var(--danger);display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:.8rem}
.timeline{list-style:none;padding:0;margin:8px 0 0}.timeline li{display:grid;grid-template-columns:92px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.timeline li:last-child{border-bottom:0}.time{font-size:.8rem;font-weight:900;color:var(--navy)}
.dayHero{position:relative;background:linear-gradient(150deg,var(--navy),var(--navy2));color:#fff;border-radius:0 0 22px 22px;padding:16px 18px 18px;box-shadow:var(--shadow)}
.dayHero .dayLine{font-size:.72rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase;opacity:.78}.dayHero h1{font-size:1.75rem;margin:6px 0 3px}.dayHero .headline{font-size:1rem;opacity:.92}
.daySwitcher{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;margin-bottom:11px}.switchBtn{padding:9px 10px;border-radius:10px;background:var(--soft);font-weight:850;font-size:.8rem;text-align:center}.switchCenter{padding:9px 10px;border-radius:10px;background:#fff;border:1px solid var(--line);font-weight:850;text-align:center}
.opsGrid{display:grid;grid-template-columns:1fr 1fr;gap:0}.opsBlock{padding:2px 12px 2px 0}.opsBlock+ .opsBlock{border-left:1px solid var(--line);padding-left:12px}.opsLabel{font-size:.67rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:900}.opsMain{font-weight:850;margin-top:4px;line-height:1.35}
.collapsible details{border-top:1px solid var(--line);padding-top:10px}.collapsible summary{cursor:pointer;font-weight:850;color:var(--navy)}
.bookingTabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--soft);padding:4px;border-radius:12px;margin-bottom:12px}.bookingTabs button{border:0;background:transparent;padding:9px 8px;border-radius:9px;font:inherit;font-size:.82rem;font-weight:850;color:var(--muted)}.bookingTabs button.active{background:#fff;color:var(--navy);box-shadow:0 2px 8px rgba(16,36,63,.08)}
.bookingRow,.transportCard{padding:12px 0;border-bottom:1px solid var(--line)}.bookingRow:last-child,.transportCard:last-child{border-bottom:0}.bookingDate{font-size:.72rem;color:var(--muted);font-weight:850}.bookingTitle{font-weight:850;margin-top:2px}.bookingDetail{font-size:.8rem;color:var(--muted);margin-top:2px}
.transportCard.featured{background:var(--blue);border:1px solid #cfe2fb;border-radius:15px;padding:14px;margin-bottom:12px}.transportRoute{font-weight:900;font-size:1rem}.transportMode{font-size:.8rem;color:var(--muted);margin-top:3px}.transportAction{font-size:.84rem;font-weight:850;margin-top:6px}
.bottomNav{position:fixed!important;z-index:9999;left:0;right:0;bottom:0;width:100%;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));background:rgba(255,255,255,.98);border-top:1px solid var(--line);box-shadow:0 -5px 20px rgba(16,36,63,.10);padding:7px 8px calc(7px + env(safe-area-inset-bottom));backdrop-filter:blur(12px)}
.bottomNav a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:.7rem;font-weight:850;color:var(--muted);padding:7px 3px;border-radius:11px}.bottomNav a.active{background:var(--soft);color:var(--navy)}.navIcon{font-size:1.08rem;line-height:1;margin-bottom:2px}
.buildStamp{text-align:center;color:var(--muted);font-size:.65rem;margin:14px 0 4px}
.hidden{display:none!important}
.sectionTitle{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:3px 1px 10px}
@media(min-width:700px){.wrap{padding-top:20px}.homeHero{min-height:245px;padding-left:max(24px,calc((100vw - 820px)/2 + 18px));padding-right:max(24px,calc((100vw - 820px)/2 + 18px))}.homeHero .tripTitle{font-size:2.4rem}.cards2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cards2 .card{margin-bottom:0}}

/* V3.1 mobile refinement */
.homeHero{
  min-height:174px;
  padding:18px 22px 18px;
  background-image:
    linear-gradient(90deg,rgba(8,25,47,.70) 0%,rgba(8,25,47,.38) 48%,rgba(8,25,47,.08) 78%),
    linear-gradient(0deg,rgba(8,25,47,.28),rgba(8,25,47,.04)),
    url("hero-japan.jpg");
  background-position:center;
}
.homeHero .tripTitle{font-size:1.72rem;margin:34px 0 5px;max-width:92%}
.homeHero .tripMeta{font-size:.90rem;max-width:92%}
.compactTop{min-height:48px;padding:8px 16px;align-items:center}
.compactTop strong{display:none}
.compactTop .mini{font-size:.72rem;font-weight:850;opacity:.9}
.compactTop .offlineDot{margin-top:0}
.daySwitcher{grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr)}
.switchBtn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.daySelect{
  width:100%;border:1px solid var(--line);background:#fff;color:var(--ink);
  border-radius:10px;padding:9px 5px;font:inherit;font-size:.80rem;font-weight:900;text-align:center;
}
.dayHero .status.good{background:#dff3e7;color:#183c2b}
.dayHero .status{color:#172033}
.status.good{color:#183c2b}
.bookingSummarySmall{font-size:.72rem;font-weight:850;color:var(--muted)}
.clickRow{display:block;border-radius:10px}
.clickRow:active{background:var(--soft)}
@media(max-width:420px){
  .homeHero .tripTitle{font-size:1.55rem}
  .homeHero .tripMeta{font-size:.84rem}
  .daySwitcher{grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr)}
}

/* V3.1.1 destination photography */
.photoDayHero{
  position:relative; overflow:hidden; min-height:190px;
  background-image:
    linear-gradient(90deg,rgba(7,27,52,.82) 0%,rgba(7,27,52,.60) 48%,rgba(7,27,52,.28) 100%),
    var(--day-photo);
  background-size:cover;
  background-position:center;
  color:#fff;
}
.photoDayHero h1,.photoDayHero .headline,.photoDayHero .dayLine{color:#fff}
.photoDayHero .headline{opacity:.96}
.daySelect{font-size:.72rem;padding-left:4px;padding-right:4px}
@media(max-width:420px){.daySelect{font-size:.68rem}}

/* Build 3.2.5 resource-hub base */
.resourceCard{margin-top:12px}.resourceList{margin:8px 0 0;padding-left:20px}.resourceList li{margin:7px 0;line-height:1.4}.resourceRow{display:grid;grid-template-columns:minmax(105px,30%) 1fr;gap:10px;padding:9px 0;border-bottom:1px solid rgba(16,36,63,.10);font-size:.94rem;line-height:1.35}.resourceRow:last-child{border-bottom:0}.resourceRow span{color:var(--muted,#566)}@media(max-width:520px){.resourceRow{grid-template-columns:1fr;gap:2px}}

/* Build 3.2.5 — prominent day-mode labels + tappable self-guided stop sheets */
.dayModeBadge{display:inline-block;margin-top:10px;padding:9px 12px;border-radius:12px;background:rgba(255,255,255,.94);color:var(--navy);box-shadow:0 3px 12px rgba(0,0,0,.18);max-width:100%}
.dayModeBadge.guided{background:#fff3cc;color:#4d3500}.dayModeBadge.self{background:#e8f5ff;color:#0b365c}.dayModeBadge.hybrid{background:#f1ebff;color:#3e2766}.dayModeBadge.travel{background:#eef1f5;color:#243348}
.dayModeTitle{font-size:.84rem;line-height:1.05;font-weight:1000;letter-spacing:.055em}.dayModeSub{font-size:.72rem;line-height:1.25;font-weight:750;margin-top:4px;opacity:.85}
.dayHeroMain{margin-top:10px}.dayHeroMain h1{margin-top:0}
.timelineTap{cursor:pointer;margin:2px -6px;padding:11px 6px!important;border-radius:11px;transition:background .12s ease}.timelineTap:hover{background:var(--soft)}.timelineTap:active{background:#e4edf5}.timelineTap:focus-visible{outline:3px solid #92bce5;outline-offset:1px}
.timelineText{min-width:0}.tapCue{display:flex;align-items:center;gap:5px;margin-top:5px;font-size:.72rem;font-weight:900;color:#245b8c}.tapCue b{font-size:1rem;line-height:.7}
.sheetOpen{overflow:hidden}.stopBackdrop{position:fixed;inset:0;background:rgba(8,20,36,.58);z-index:10020;backdrop-filter:blur(2px)}
.stopSheet{position:fixed;z-index:10021;left:50%;bottom:0;transform:translateX(-50%);width:min(820px,100%);max-height:90dvh;overflow:auto;background:var(--bg);border-radius:24px 24px 0 0;padding:10px 16px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -14px 40px rgba(0,0,0,.28)}
.stopHandle{width:44px;height:5px;border-radius:999px;background:#c4ccd6;margin:0 auto 10px}.stopSheetTop{display:flex;align-items:center;justify-content:space-between;gap:10px}.stopBack{border:0;background:transparent;color:var(--navy);font:inherit;font-weight:900;padding:6px 0;cursor:pointer}.stopTag{font-size:.64rem;letter-spacing:.10em;font-weight:1000;color:var(--muted)}
.stopSheet h2{font-size:1.55rem;margin:10px 0 6px}.stopIntro{color:#465266;margin-bottom:14px}.stopSection{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;margin:10px 0}.stopSection h3{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:8px}.priorityList,.noticeList{list-style:none;margin:0;padding:0}.priorityList li{padding:10px 0;border-bottom:1px solid var(--line)}.priorityList li:last-child{border-bottom:0}.priorityList strong{display:block;font-size:.98rem}.priorityList span{display:block;color:var(--muted);font-size:.84rem;line-height:1.4;margin-top:2px}.noticeList li{position:relative;padding:5px 0 5px 18px;line-height:1.4}.noticeList li:before{content:'•';position:absolute;left:3px;color:var(--navy);font-weight:900}
.stopShort{display:grid;gap:3px;background:#fff7df;border:1px solid #ead8a0;border-radius:14px;padding:12px 13px;margin:10px 0}.stopShort strong{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:#705614}.stopShort span{font-size:.88rem;line-height:1.4}.stopBtns{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(244,246,249,0),var(--bg) 20%);padding-top:18px;margin-top:4px}.stopBtns button{border:0;font:inherit;cursor:pointer}
@media(max-width:520px){.dayModeBadge{display:block}.dayHeroMain{align-items:flex-start}.dayHeroMain .status{margin-top:2px}.stopSheet{max-height:92dvh;padding-left:14px;padding-right:14px}.stopSheet h2{font-size:1.38rem}.stopTag{display:none}}


/* Build 3.2.5 — stronger day selector and primary bottom navigation */
.daySwitcher{
  grid-template-columns:minmax(0,.82fr) minmax(154px,1.36fr) minmax(0,.82fr);
  gap:9px;
  align-items:stretch;
  margin-bottom:13px;
}
.daySelect{
  min-height:48px;
  border:2px solid var(--navy);
  background:var(--navy);
  color:#fff;
  border-radius:13px;
  padding:10px 9px;
  font-size:.88rem;
  font-weight:1000;
  line-height:1.15;
  text-align:center;
  box-shadow:0 5px 14px rgba(16,36,63,.22);
}
.daySelect:focus{outline:3px solid #9dc7f2;outline-offset:2px}
.switchBtn{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:9px 9px;
  border:1px solid #d6dee8;
  background:#fff;
  color:var(--navy);
  box-shadow:0 2px 7px rgba(16,36,63,.06);
}
.bottomNav{
  background:var(--navy);
  border-top:0;
  box-shadow:0 -7px 24px rgba(8,22,40,.24);
  padding:8px 9px calc(8px + env(safe-area-inset-bottom));
}
.bottomNav a{
  min-height:51px;
  color:rgba(255,255,255,.78);
  font-size:.74rem;
  font-weight:900;
  padding:7px 4px;
  border-radius:12px;
}
.bottomNav a.active{
  background:#fff;
  color:var(--navy);
  box-shadow:0 3px 10px rgba(0,0,0,.20);
}
.navIcon{font-size:1.22rem;margin-bottom:3px}
@media(max-width:420px){
  .daySwitcher{grid-template-columns:minmax(0,.72fr) minmax(145px,1.5fr) minmax(0,.72fr);gap:7px}
  .daySelect{font-size:.80rem;padding-left:5px;padding-right:5px}
  .switchBtn{font-size:.73rem;padding-left:5px;padding-right:5px}
  .bottomNav a{font-size:.71rem}
}

/* Build 3.2.5 — clearer bottom navigation, per-sight maps, private Drive links */
.bottomNav{gap:7px;padding-left:10px;padding-right:10px}
.bottomNav a{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.42);
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.03);
}
.bottomNav a:not(.active){text-shadow:0 1px 1px rgba(0,0,0,.20)}
.bottomNav a.active{
  background:#fff;
  border-color:#fff;
  color:var(--navy);
  transform:translateY(-2px);
  box-shadow:0 4px 13px rgba(0,0,0,.25);
}
.priorityList li{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.priorityCopy{min-width:0;flex:1}
.placeMapBtn{
  flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  min-width:58px;min-height:36px;
  padding:7px 10px;margin-top:1px;
  border:1px solid #b9cce0;border-radius:10px;
  background:#eef6ff;color:#174f7d;
  font-size:.75rem;font-weight:950;
}
.placeMapBtn:active{background:#dcecff}
.privateLinks{margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}
.privateNote{font-size:.72rem;color:var(--muted);font-weight:850;margin-bottom:7px}
.btn.privateBtn{background:#f4f0ff;color:#392b68;border:1px solid #d4c9f2}
@media(max-width:380px){.bottomNav{gap:5px;padding-left:7px;padding-right:7px}.bottomNav a{padding-left:2px;padding-right:2px}.placeMapBtn{min-width:54px;padding-left:8px;padding-right:8px}}


/* Build 3.2.6 — live weather, mobile overflow fixes, food layer */
.dayHeroMain{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.dayHeroCopy{min-width:0;flex:1}.heroStatus{flex:0 1 auto;max-width:48%;white-space:normal;text-align:center;line-height:1.15;overflow-wrap:anywhere}
.weatherBar{margin:-1px 0 12px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:11px 13px;box-shadow:0 2px 8px rgba(16,36,63,.05)}
.weatherTop{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:6px}.weatherTop strong{font-size:.88rem}.weatherTop span{font-size:.68rem;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.weatherMetrics{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:.78rem;line-height:1.35}.weatherMetrics span{white-space:nowrap}.weatherMeta{font-size:.63rem;color:var(--muted);margin-top:6px}.weatherBar.unavailable{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:.78rem}.weatherBar.unavailable span{color:var(--muted);text-align:right}
.foodLevel{display:inline-block;margin-top:8px;padding:4px 8px;border-radius:999px;background:#fff4d8;color:#624a0c;font-size:.68rem;font-weight:950}.foodMain{font-size:1.08rem;font-weight:950;margin-top:8px}.foodPlace{font-size:.84rem;font-weight:850;margin-top:2px}.foodNote{margin-top:6px;line-height:1.4}
.photoUploadCard{display:flex;align-items:center;justify-content:space-between;gap:12px}.photoUploadCard .btn{flex:0 0 auto}
@media(max-width:520px){.dayHeroMain{display:block}.heroStatus{display:inline-flex;max-width:100%;margin-top:10px!important}.weatherTop{align-items:flex-start}.weatherMetrics{gap:4px 10px}.photoUploadCard{display:block}.photoUploadCard .btn{margin-top:10px;width:100%}}
@media(max-width:390px){.daySwitcher{grid-template-columns:minmax(0,.68fr) minmax(138px,1.64fr) minmax(0,.68fr)}.daySelect{font-size:.74rem}.switchBtn{font-size:.69rem}.weatherMetrics{font-size:.74rem}}


/* Build 3.2.8 — daily photo + memory capture */
.tripCaptureCard{display:flex;align-items:center;justify-content:space-between;gap:14px}.captureNote{margin-top:5px}.captureActions{display:flex;gap:8px;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end}.captureBtn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
@media(max-width:620px){.tripCaptureCard{display:block}.captureActions{margin-top:11px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.captureBtn{width:100%;white-space:normal;text-align:center}}
@media(max-width:390px){.captureActions{grid-template-columns:1fr}}

/* Build 3.2.8 — Trip Assistant + expanded restaurant choices */
.foodOption{padding-top:12px;margin-top:12px;border-top:1px solid var(--line,#d8dee8)}
.foodOption:first-of-type{margin-top:8px}.foodChoice{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.62;margin-bottom:3px}
.assistantCard h3{margin:5px 0 7px}.assistantCard .btn{cursor:pointer}
