:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#9fb0d0;
  --text:#eef2ff;
  --accent:#4fd1c5;
  --accent2:#60a5fa;
  --danger:#fbbf24;
  --line:#1f2a44;
}

*{box-sizing:border-box;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
}

.app-header{
  position:sticky; top:0; z-index:10;
  padding:16px 18px;
  background:linear-gradient(180deg,#0e1730,#0b1220);
  border-bottom:1px solid var(--line);
}
.title{font-size:20px; font-weight:700;}
.subtitle{font-size:13px; color:var(--muted); margin-top:2px;}

.app{padding:14px 14px 84px;}
.page{display:flex; flex-direction:column; gap:12px;}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

.section-title{
  font-size:15px; font-weight:800; margin-bottom:8px;
}

.day-title{display:flex; flex-direction:column; gap:2px; margin-bottom:8px;}
.day-date{font-size:12px; color:var(--muted);}
.day-name{font-size:16px; font-weight:700;}

.timeline{display:flex; flex-direction:column; gap:8px;}
.tl-row{
  display:grid; grid-template-columns:72px 1fr; gap:8px; align-items:start;
  padding:8px; border-radius:12px; background:#0e1526;
  border:1px solid #18233f;
}
.tl-time{color:var(--muted); font-size:12px; padding-top:2px;}
.tl-text{font-size:14px; line-height:1.4;}
.tl-place{font-size:12px; color:var(--accent); margin-top:2px;}
.tl-note{font-size:12px; color:var(--danger); margin-top:4px;}
.tl-map{display:inline-block; margin-top:6px; color:var(--accent2); text-decoration:none; font-size:12px;}

.gallery{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px;}
.gallery img{
  width:100%; height:140px; object-fit:cover; border-radius:12px;
  border:1px solid #233055;
}

.spot-title{font-size:15px; font-weight:700;}
.spot-desc{color:var(--muted); font-size:13px; margin:6px 0 8px;}
.spot-subtitle{
  font-size:13px;
  color:var(--accent);
  margin-top:4px;
  margin-bottom:6px;
  font-weight:700;
}
.spot-map{color:var(--accent2); text-decoration:none; font-size:12px;}
.spot-card img{
  width:100%; border-radius:12px; margin-top:8px; border:1px solid #233055;
}
.chip{
  display:inline-block; font-size:11px; padding:3px 8px; border-radius:999px;
  background:#0e1526; border:1px solid #213157; color:var(--muted);
  margin-bottom:6px;
}

.flight-row, .hotel-row{
  padding:10px; border-radius:12px; background:#0e1526;
  border:1px solid #18233f; margin-top:8px;
}

.flight-top{display:flex; justify-content:space-between; align-items:center;}
.flight-no{font-size:15px; font-weight:800;}
.flight-airline{font-size:12px; color:var(--muted);}
.flight-mid{display:flex; justify-content:space-between; margin-top:6px; font-size:14px;}
.flight-bot{display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; font-size:12px; color:var(--muted);}
.pnr{margin-top:6px; font-size:12px; color:var(--accent);}

.hotel-name{font-size:15px; font-weight:800;}
.hotel-addr{font-size:12px; color:var(--muted); margin-top:4px;}
.hotel-meta{font-size:12px; color:var(--muted); margin-top:6px; display:grid; gap:2px;}
.hotel-note{font-size:12px; color:var(--danger); margin-top:6px;}

.tip-item{
  font-size:14px; padding:6px 0; border-bottom:1px dashed #233055;
}
.tip-item:last-child{border-bottom:none;}

.kv-row{
  display:grid; grid-template-columns:110px 1fr; gap:8px;
  padding:8px 0; border-bottom:1px dashed #233055;
}
.kv-row:last-child{border-bottom:none;}
.kv-left{font-weight:700; font-size:13px;}
.kv-right{font-size:13px;}

.market-row{
  padding:8px 0; border-bottom:1px dashed #233055;
}
.market-row:last-child{border-bottom:none;}
.market-name{font-weight:800;}

.muted{color:var(--muted); font-size:12px;}

.bottom-nav{
  position:fixed; bottom:0; left:0; right:0;
  display:grid; grid-template-columns:repeat(8,1fr);
  background:#0c1426; border-top:1px solid var(--line);
}
.nav-btn{
  border:none; background:transparent; color:var(--muted);
  padding:9px 0; font-size:11px; font-weight:700;
}
.nav-btn.active{color:var(--accent);}

/* ====== Packages 配套頁 ====== */
.package-row{
  padding:12px;
  border-radius:12px;
  background:#0e1526;
  border:1px solid #18233f;
  margin-top:10px;
  display:grid;
  gap:6px;
}
.package-name{
  font-size:15px;
  font-weight:800;
}
.package-meta{
  font-size:13px;
}
.package-subtitle{
  margin-top:6px;
  font-size:13px;
  font-weight:800;
}
.package-list{
  margin:0; padding-left:18px;
  font-size:13px; color:var(--text);
  display:grid; gap:4px;
}
.package-spots{
  display:flex; flex-wrap:wrap; gap:6px; margin-top:4px;
}
.package-spot-chip{
  font-size:11px; padding:3px 8px; border-radius:999px;
  background:#0b1220; border:1px solid #213157; color:var(--text);
}

/* ====== Currency 錢幣頁 ====== */
.currency-box{
  display:grid; gap:10px;
}
.currency-label{
  font-size:13px; font-weight:800;
}
.currency-input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #233055;
  background:#0b1220;
  color:var(--text);
  font-size:16px;
  outline:none;
}
.currency-input.small{
  font-size:14px; padding:8px 10px;
}
.currency-rate{
  display:grid; grid-template-columns:auto 1fr auto;
  align-items:center; gap:8px;
  font-size:13px; color:var(--muted);
}
.currency-btn{
  border:none; border-radius:12px;
  padding:10px; font-size:14px;
  font-weight:800; color:#001018;
  background:var(--accent);
  cursor:pointer;
}
.currency-result{
  font-size:20px; font-weight:900;
  color:var(--accent2);
  text-align:center; padding:6px 0;
}
.currency-hint{
  text-align:center;
}

/* ====== Notes 筆記頁 ====== */
.notes-box{
  display:grid; gap:10px;
}
.notes-textarea{
  min-height:140px;
  resize:vertical;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #233055;
  background:#0b1220;
  color:var(--text);
  font-size:14px;
  line-height:1.5;
  outline:none;
}
.notes-btn{
  border:none; border-radius:12px;
  padding:10px; font-size:14px;
  font-weight:800; color:#001018;
  background:var(--accent2);
  cursor:pointer;
}
.notes-list{
  display:grid; gap:8px; margin-top:6px;
}
.notes-item{
  padding:10px;
  border-radius:12px;
  background:#0e1526;
  border:1px solid #18233f;
}
.notes-time{
  font-size:12px; color:var(--muted);
  margin-bottom:4px;
}
.notes-content{
  font-size:14px; line-height:1.5;
}


/* ====== Currency 雙向兌換新增樣式 ====== */
.currency-two{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:10px;
  align-items:end;
}
.currency-col{display:grid; gap:6px;}
.swap-btn{
  height:42px;
  width:42px;
  border-radius:999px;
  border:1px solid #233055;
  background:#0b1220;
  color:var(--text);
  font-size:18px;
  font-weight:800;
  cursor:pointer;
}
.currency-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.currency-btn.alt{
  background:var(--accent2);
  color:#001018;
}


/* ====== Notes 拍照 & 刪除新增樣式 ====== */
.notes-photo-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.notes-photo-input{display:none;}
.notes-btn.photo{
  background:var(--accent);
  color:#001018;
}
.photo-preview{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:4px;
}
.photo-thumb{
  position:relative;
}
.photo-thumb img{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #233055;
}
.thumb-del{
  position:absolute;
  top:4px; right:4px;
  border:none;
  width:24px; height:24px;
  border-radius:999px;
  background:rgba(0,0,0,.6);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.notes-item{ position:relative; }
.note-del-btn{
  position:absolute;
  top:8px; right:8px;
  border:none;
  border-radius:8px;
  padding:4px 8px;
  font-size:12px;
  font-weight:800;
  background:#ef4444;
  color:white;
  cursor:pointer;
}
.notes-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-top:8px;
}
.notes-gallery img{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #233055;
}
