/* trip.css — 旅程頁 */

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

body {
  margin: 0;
  padding: 0 0 7.5rem;       /* 60 (bottom-nav) + 54 (rec-sheet tab bar) + buffer */
  font-family: "Geist", "Noto Sans TC", sans-serif;
  background: #fff;
  color: #201F21;
}

.d-none { display: none !important; }

.trip {
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
  padding: 0 0 0.75rem;
}

/* ---- 搜尋列 ---- */
.search-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  padding: 0.625rem 1rem;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 0.625rem 2.5rem 0.625rem 2.375rem;
  font-size: 0.875rem;
  background: #fff;
  outline: none;
  font-family: inherit;
}
.search-input-wrap input:focus { border-color: #201F21; }
.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9e9e9e;
  font-size: 0.875rem;
  pointer-events: none;
}
.clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9e9e9e;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-results-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  box-shadow: 0 0.375rem 1.25rem rgba(0,0,0,0.12);
  max-height: 55vh;
  overflow-y: auto;
  z-index: 40;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid #f3f3f3;
  cursor: pointer;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #fafafa; }
.search-result-distance {
  font-size: 0.75rem;
  color: #757575;
  min-width: 3.5rem;
  text-align: left;
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-title {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-sub { font-size: 0.6875rem; color: #9e9e9e; margin-top: 0.125rem; }
.search-result-arrow { color: #bdbdbd; font-size: 0.75rem; }
.search-loading, .search-empty-row { padding: 0.875rem; color: #9e9e9e; font-size: 0.8125rem; text-align: center; }

/* ---- 類型 tab ---- */
.type-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 0.5rem;
}
.type-tab {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: #444;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.type-tab:hover { border-color: #111; color: #111; }
.type-tab.is-active { background: #111; color: #fff; border-color: #111; font-weight: 600; }

/* ---- 地圖 ---- */
.map-section {
  position: relative;
  margin: 0 1rem;
}
#map {
  width: 100%;
  height: 45vh;
  min-height: 18.75rem;
  max-height: 30rem;
  border-radius: 0;
  background: #f0f0f0;
}

/* 展覽卡片：地圖下方，不再疊在地圖上 */
.map-info-card {
  margin: 0 1rem;
  background: #fff;
  box-shadow: 0 -0.125rem 0 #e0e0e0, 0 0.25rem 1rem rgba(0,0,0,0.10);
  padding: 0;
  display: flex;
  flex-direction: column;
  animation: slideDown .18s ease;
  overflow: hidden;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.map-info-card .info-main {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.75rem 0;
}
.map-info-card .info-thumb {
  width: 5rem;
  height: 5rem;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
}
.map-info-card .info-body { flex: 1; min-width: 0; }
.map-info-card .info-sub  { font-size: 0.6875rem; color: #9e9e9e; margin-bottom: 0.125rem; }
.map-info-card .info-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.map-info-card .info-date {
  font-size: 0.6875rem;
  color: #666;
  margin-top: 0.25rem;
}
.map-info-card .info-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem 0.75rem;
}
.map-info-card .info-add {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 500;
  color: #201F21;
  background: #f4f4f4;
  border: 1px solid #ddd;
  padding: 0.4375rem 0.625rem;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.map-info-card .info-create {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #201F21;
  border: none;
  padding: 0.4375rem 0.625rem;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.map-info-card .info-close {
  position: absolute;
  top: 0.5rem;
  right: 0.625rem;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.125rem 0.25rem;
}

/* ---- 我的旅程 ---- */
.my-plans { padding: 1rem; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}
.section-title { font-size: 0.9375rem; font-weight: 600; margin: 0; }
.btn-link-primary {
  background: none;
  border: none;
  color: #201F21;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.plans-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.plans-list::-webkit-scrollbar { display: none; }
.plan-card {
  flex: 0 0 8.75rem;
  cursor: pointer;
  position: relative;
}
.plan-card .plan-thumb {
  width: 100%;
  height: 8.75rem;
  border-radius: 0;
  object-fit: cover;
  background: #eaeaea;
}
.plan-card .plan-edit-btn {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  background: rgba(255,255,255,0.95);
  border: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #201F21;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.1);
}
.plan-card .plan-name {
  font-size: 0.8125rem;
  margin-top: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-card .plan-date { font-size: 0.6875rem; color: #9e9e9e; margin-top: 0.125rem; }
.plans-empty { text-align: center; padding: 1.5rem 0; color: #9e9e9e; font-size: 0.8125rem; }
.plan-card .plan-share-btn {
  position: absolute; top: 0.375rem; left: 0.375rem;
  background: rgba(255,255,255,0.95); border: none;
  width: 1.75rem; height: 1.75rem; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #888; cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.1);
  transition: color .15s;
}
.plan-card .plan-share-btn.is-shared { color: var(--primary, #d18700); }

/* ---- 推薦旅程 ---- */
.shared-loading { text-align: center; padding: 1.5rem; color: #aaa; font-size: 0.8125rem; }
.shared-empty   { text-align: center; padding: 1.5rem; color: #aaa; font-size: 0.8125rem; }
.shared-trips-list { padding: 0.5rem 0; }
.shared-trip-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 1rem; cursor: pointer; transition: background .15s;
}
.shared-trip-card:hover { background: #fafafa; }
.shared-trip-cover {
  width: 4.5rem; height: 3.5rem; border-radius: 0;
  object-fit: cover; flex-shrink: 0; background: #eee;
}
.shared-trip-cover--empty {
  display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 1.375rem;
}
.shared-trip-body { flex: 1; min-width: 0; }
.shared-trip-title {
  font-size: 0.875rem; font-weight: 600; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shared-trip-meta { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; }
.shared-trip-avatar { width: 1.25rem; height: 1.25rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.shared-trip-user  { font-size: 0.75rem; color: #888; }
.shared-trip-count { font-size: 0.75rem; color: #aaa; margin-left: auto; }

/* 推薦旅程 詳細 */
.shared-detail-header {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid #f0f0f0;
}
.shared-back-btn {
  background: none; border: none; color: #555; font-size: 1rem;
  cursor: pointer; padding: 0.25rem; flex-shrink: 0;
}
.shared-detail-title-text { font-size: 0.9375rem; font-weight: 600; color: #111; }
.shared-detail-user {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem; font-size: 0.8125rem; color: #888;
}
.shared-detail-avatar { width: 1.75rem; height: 1.75rem; border-radius: 50%; object-fit: cover; }
.shared-detail-date { margin-left: auto; font-size: 0.75rem; color: #aaa; }
.shared-detail-stops { list-style: none; padding: 0 0 5rem; margin: 0; }
.shared-stop-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid #f5f5f5;
}
.shared-stop-num {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: #201F21; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.shared-stop-title { font-size: 0.875rem; color: #111; }
.shared-detail-footer {
  position: sticky; bottom: 0;
  padding: 0.75rem 1rem env(safe-area-inset-bottom, 0.75rem);
  background: #fff; border-top: 1px solid #f0f0f0;
}
.btn-copy-trip {
  display: block; width: 100%;
  background: #201F21; color: #fff; border: none;
  border-radius: 0; padding: 0.75rem;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.btn-copy-trip:hover { opacity: .85; }
.btn-copy-trip:disabled { opacity: .5; cursor: not-allowed; }

/* ---- 暫存區（現在在 sheet 內，stash-section 已移除） ---- */
.stash-count {
  font-size: 0.6875rem; color: #9e9e9e;
  margin-left: 0.1875rem;
}
.view-toggle { display: flex; gap: 0.375rem; }
.view-btn {
  background: none;
  border: none;
  color: #9e9e9e;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem;
}
.view-btn.is-active { color: #201F21; }

.stash-list.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}
.stash-list.grid .stash-card { position: relative; cursor: pointer; }
.stash-list.grid .stash-card .stash-thumb {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 0;
  background: #eaeaea;
}
.stash-list.grid .stash-card .stash-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.625rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  color: #fff;
  border-radius: 0;
}
.stash-list.grid .stash-card .stash-title {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stash-list.grid .stash-card .stash-sub { font-size: 0.625rem; opacity: 0.85; margin-top: 0.125rem; }
.stash-list.grid .stash-card .stash-add {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 0;
  font-size: 0.6875rem;
  padding: 0.1875rem 0.5625rem;
  cursor: pointer;
}

.stash-list.list { display: flex; flex-direction: column; gap: 0.5rem; }
.stash-list.list .stash-card {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0;
  background: #fafafa;
  cursor: pointer;
}
.stash-list.list .stash-card .stash-thumb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
}
.stash-list.list .stash-card .stash-body { flex: 1; min-width: 0; }
.stash-list.list .stash-card .stash-title {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stash-list.list .stash-card .stash-sub { font-size: 0.6875rem; color: #9e9e9e; margin-top: 0.125rem; }
.stash-list.list .stash-card .stash-add {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  padding: 0.1875rem 0.625rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

/* ✕ 移除暫存按鈕 — grid 模式 */
.stash-list.grid .stash-card .stash-remove {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.375rem;
  height: 1.375rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
}
.stash-list.grid .stash-card .stash-remove:hover { background: rgba(0,0,0,0.80); }

/* ✕ 移除暫存按鈕 — list 模式 */
.stash-list.list .stash-card .stash-remove {
  background: none;
  border: none;
  color: #bdbdbd;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0.25rem 0.375rem;
  line-height: 1;
  flex-shrink: 0;
}
.stash-list.list .stash-card .stash-remove:hover { color: #757575; }

.stash-empty { text-align: center; padding: 1rem 0; color: #9e9e9e; font-size: 0.8125rem; }

/* ---- 推薦展覽 (上拉式 sheet) ---- */
.rec-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 3.75rem;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -0.1875rem 0.875rem rgba(0,0,0,0.12);
  z-index: 80;
  transition: transform 0.3s ease;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
/* handle(12) + tab-bar(42) = 3.375rem → 收合時只露 tab 列 */
.rec-sheet.collapsed { transform: translateY(calc(100% - 3.375rem)); }
.rec-sheet.expanded  { transform: translateY(0); }

.sheet-handle-wrap {
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0 0.25rem;
  flex-shrink: 0;
}
.sheet-handle {
  width: 2.5rem;
  height: 0.3125rem;
  background: #d9d9d9;
  border-radius: 0.1875rem;
  margin: 0 auto;
}

/* ---- Sheet Tab 列 ---- */
.sheet-tab-bar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 1rem;
  flex-shrink: 0;
  height: 2.625rem;
}
.sheet-tab {
  background: none;
  border: none;
  border-bottom: 0.125rem solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9e9e9e;
  padding: 0 0.75rem;
  height: 100%;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.sheet-tab.is-active {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}
.sheet-tab-spacer { flex: 1; }

.sheet-content {
  padding: 0 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.rec-list { display: flex; flex-direction: column; gap: 0.5rem; }
.rec-card {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  padding: 0.625rem;
  border-radius: 0;
  background: #fafafa;
  cursor: pointer;
}
.rec-card .rec-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
  background: #eaeaea;
}
.rec-card .rec-body { flex: 1; min-width: 0; }
.rec-card .rec-title {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-card .rec-sub { font-size: 0.6875rem; color: #9e9e9e; margin-top: 0.125rem; }
.rec-dist { color: #bbb; }
.rec-card .rec-meta { font-size: 0.6875rem; color: #9e9e9e; margin-top: 0.125rem; }
.rec-card .rec-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}
.rec-card .rec-like {
  background: none;
  border: none;
  padding: 0.125rem 0.25rem;
  cursor: pointer;
  color: #ccc;
  font-size: 0.875rem;
  line-height: 1;
  transition: color .15s;
}
.rec-card .rec-like.liked,
.rec-card .rec-like.liked i { color: #e74c3c; }
.rec-card .rec-like:disabled { opacity: .5; cursor: default; }
.rec-card .rec-add {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}
.rec-card .rec-countdown {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  font-size: 0.625rem;
  padding: 1px 0.375rem;
  border-radius: 0.25rem;
  margin-left: 0.375rem;
  vertical-align: middle;
}
.rec-card .rec-countdown.normal { background: #f0f4ff; color: #3a5bd9; }
.rec-card .rec-countdown.muted { background: #f5f5f5; color: #9e9e9e; }
.rec-empty { text-align: center; padding: 1rem 0; color: #9e9e9e; font-size: 0.8125rem; }

/* ---- modal 共用 ---- */
.picker-list { list-style: none; padding: 0; margin: 0; }
.picker-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.picker-list li:last-child { border-bottom: none; }
.picker-list .picker-name { font-size: 0.875rem; font-weight: 500; }
.picker-list .picker-date { font-size: 0.6875rem; color: #9e9e9e; margin-top: 0.125rem; }
.picker-list .picker-add {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.plan-dest-map {
  width: 100%;
  border-radius: 0.625rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.plan-dest-info {
  font-size: 0.8125rem;
  color: #888;
  background: #f7f7f7;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.625rem;
}
.plan-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f0f0f0;
  display: block;
  cursor: pointer;
}
.plan-cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: none; }
.plan-cover-wrap.has-cover img { display: block; }
.cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  gap: 0.375rem;
  pointer-events: none;
}
.plan-cover-wrap.has-cover .cover-placeholder { display: none; }
.cover-placeholder i { font-size: 1.75rem; }
.cover-placeholder span { font-size: 0.8125rem; }
.cover-placeholder .cover-hint { font-size: 0.6875rem; color: #bbb; }
.cover-edit-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.15);
  margin: 0;
  color: #201F21;
}
.plan-cover-wrap.has-cover .cover-edit-btn { display: flex; }
.muted-tip { margin-left: 0.375rem; font-size: 0.6875rem; color: #bdbdbd; }

.btn-delete-plan {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #fff;
  border: 1px solid #d9534f;
  color: #d9534f;
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.5rem;
}
.btn-delete-plan:hover {
  background: #fff1f0;
}

/* ---- 行程編輯頁 (overlay) ---- */
.plan-editor {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 100;
  overflow-y: auto;
  padding-bottom: 6.25rem;
}
.editor-search-bar {
  padding: 0.625rem 1rem;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #f3f3f3;
}
.editor-back {
  background: none;
  border: none;
  font-size: 1.125rem;
  color: #201F21;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.editor-tabs { display: flex; gap: 0.5rem; padding: 0.5rem 1rem; }
.editor-map-wrap { margin: 0 1rem; }
#editor-map {
  width: 100%;
  height: 17.5rem;
  border-radius: 0.75rem;
  background: #f0f0f0;
}
.editor-body { padding: 1rem; }
.editor-plan-name { font-size: 0.9375rem; font-weight: 600; }
.editor-plan-date { font-size: 0.75rem; color: #9e9e9e; margin-top: 0.125rem; }

.editor-stops {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.editor-stop {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #ececec;
  border-radius: 0;
  background: #fff;
  cursor: grab;
}
.editor-stop.sortable-chosen { background: #f7f7f7; }
.editor-stop .stop-handle { color: #bdbdbd; cursor: grab; font-size: 0.875rem; }
.editor-stop .stop-thumb {
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  object-fit: cover;
  background: #eaeaea;
  flex-shrink: 0;
}
.editor-stop .stop-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9e9e9e;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.editor-stop .stop-icon-current {
  background: #201F21;
  color: #fff;
}
.editor-stop.is-current {
  border-color: #201F21;
  background: #fafafa;
}
.editor-stop.is-current .stop-title {
  font-weight: 600;
}
.editor-stop.sortable-ghost { opacity: 0.4; }
.editor-stop .stop-title {
  flex: 1;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ── 打卡按鈕 ── */
/* 設計稿 TC26101604：未上傳為線條相機圖示（無外框），上傳後為直角照片縮圖 */
.editor-stop .stop-checkin {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  color: #14140C;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  overflow: hidden;
}
.editor-stop .stop-checkin.has-photo { width: 2.375rem; height: 1.875rem; background: #E6E6E4; }
.editor-stop .stop-checkin:hover { color: #72736E; }
.editor-stop .stop-checkin.has-photo:hover { opacity: .85; }
.editor-stop .stop-checkin:focus-visible { outline: 2px solid #14140C; outline-offset: 2px; }
.editor-stop .stop-checkin .stop-checkin-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.editor-stop .stop-remove {
  background: none;
  border: none;
  color: #9e9e9e;
  cursor: pointer;
  font-size: 0.875rem;
}
.drag-tip {
  font-size: 0.6875rem;
  color: #bdbdbd;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.editor-stop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.btn-add-current {
  background: #fff;
  border: 1px dashed #d9d9d9;
  border-radius: 0;
  padding: 0.3125rem 0.75rem;
  font-size: 0.75rem;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.btn-add-current:hover {
  border-color: #201F21;
  color: #201F21;
}

.editor-search-add {
  position: relative;
  margin-top: 0.75rem;
}
.editor-search-add input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 0.5625rem 0.75rem 0.5625rem 2.125rem;
  font-size: 0.8125rem;
  outline: none;
  font-family: inherit;
}
.editor-search-add .search-icon { left: 0.75rem; }
.editor-add-results {
  margin-top: 0.375rem;
  max-height: 13.75rem;
  overflow-y: auto;
  border: 1px solid #ececec;
  border-radius: 0;
}
.editor-add-results .add-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #f3f3f3;
}
.editor-add-results .add-result-item:last-child { border: none; }
.editor-add-results .add-result-title {
  font-size: 0.8125rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editor-add-results .add-result-add {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  padding: 0.1875rem 0.625rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  margin-left: 0.625rem;
}

.editor-section { margin-top: 1.125rem; }
.editor-section-title { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.5rem; }
.editor-transport { display: flex; gap: 1.125rem; color: #757575; }
.transport-btn {
  background: none;
  border: none;
  font-size: 0.8125rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
  padding: 0;
}
.transport-btn.is-active { color: #201F21; font-weight: 600; }
.editor-route-summary { font-size: 0.8125rem; }

.editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 0.75rem;
}
.editor-actions .btn {
  flex: 1;
  border-radius: 0;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

/* ── 查看打卡記錄連結 ── */
.btn-view-checkins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding: 0.625rem;
  font-size: 0.8125rem;
  color: #555;
  background: #f5f5f5;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid #e8e8e8;
}
.btn-view-checkins:hover { background: #eee; color: #111; }

/* ---- 底部 nav（由 bottomnavbar2.css 統一管理）---- */

/* ---- toast ---- */
.trip-toast {
  position: fixed;
  left: 50%;
  bottom: 6.25rem;
  transform: translateX(-50%) translateY(1.25rem);
  background: rgba(32,31,33,0.92);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0;
  font-size: 0.8125rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  text-align: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.trip-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- 今日推薦路線 ---- */
.today-route-wrap {
  padding: 0.75rem 0.75rem 0;
}
.today-route-card {
  background: #fff8ec;
  border: 0.0938rem solid #f5c842;
  border-radius: 0;
  padding: 0.75rem 0.875rem;
  margin-bottom: 0.625rem;
}
.tr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}
.tr-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b07c00;
  letter-spacing: 0.02em;
}
.tr-label i {
  margin-right: 0.3125rem;
}
.btn-tr-add {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #f5c842;
  border: none;
  border-radius: 1.25rem;
  padding: 0.3125rem 0.875rem;
  cursor: pointer;
  transition: background .15s;
}
.btn-tr-add:hover {
  background: #e0b035;
}
.tr-stops {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.tr-stops::-webkit-scrollbar { display: none; }
.tr-stop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.tr-stop-img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.tr-stop-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  max-width: 4rem;
}
.tr-stop-name {
  font-size: 0.6875rem;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.tr-stop-count {
  font-size: 0.625rem;
  color: #b07c00;
}
.tr-arrow {
  font-size: 0.625rem;
  color: #bbb;
  flex-shrink: 0;
}
.tr-meta {
  font-size: 0.6875rem;
  color: #aaa;
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════
   REDESIGN v2: T261012_10–19
   ══════════════════════════════════════════ */

body {
  background: #F7F7F7;
  color: #14140C;
}

/* ── Header ticker (T261012_10) ── */
.v2-ticker-wrap--header {
  background: #14140C;
  border-bottom: 1px solid #F7F7F7;
  margin: 0;
}
.v2-ticker-wrap--header .v2-ticker__track {
  color: rgba(247,247,247,0.6);
}

/* ── Hero (T261012_11) ── */
.trip-hero {
  padding: 5rem 1.25rem 2.5rem;
  background: #F7F7F7;
}
.trip-hero__title {
  font-size: 2.5rem;
  font-weight: 200;
  font-family: 'Geist', 'Helvetica Neue', ui-sans-serif, sans-serif;
  color: #14140C;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}
.trip-hero__subtitle {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  color: #14140C;
  margin: 0;
  line-height: 1.6;
}

/* ── Type tabs: connected, fill container (T261012_12) ── */
.type-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  justify-content: stretch;
}
.type-tab {
  flex: 1;
  background: #F7F7F7;
  border: 1px solid #14140C;
  margin-right: -1px;
  border-radius: 0;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  cursor: pointer;
  color: #14140C;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.type-tab:last-child { margin-right: 0; }
.type-tab[hidden] { display: none !important; }
.type-tab:hover { background: #e8e8e2; }
.type-tab.is-active {
  background: #14140C;
  color: #F7F7F7;
  position: relative;
  z-index: 1;
}

/* ── Map (T261012_13) ── */
.map-section {
  margin: 0;
  position: relative;
}
#map {
  width: 100%;
  height: 21.3125rem;
  min-height: 21.3125rem;
  max-height: 21.3125rem;
  border-radius: 0;
  background: #e8e8e8;
}

/* ── CTA: overlaps map bottom by half (T261012_13) ── */
.trip-cta-row {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 5;
  pointer-events: none;
}
.btn-create-trip {
  background: #14140C;
  color: #F7F7F7;
  border: none;
  border-radius: 0;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity .15s;
  pointer-events: all;
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.3);
  white-space: nowrap;
}
.btn-create-trip:hover { opacity: .85; }

/* ── Search bar (T261012_14) ── */
.search-bar {
  position: static;
  background: #F7F7F7;
  padding: 2.5rem 1rem 1rem;
}
.trip-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  position: relative;
}
.trip-search-wrap .search-input-wrap {
  flex: 1;
  border: 1px solid #14140C;
  background: #F7F7F7;
}
.trip-search-wrap .search-input-wrap input {
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  color: #A1A19F;
}
.trip-search-wrap .search-input-wrap input::placeholder { color: #A1A19F; }
.trip-search-wrap .search-icon { color: #14140C; }
/* TC26110301：與搜尋頁同一套排法——flex 垂直置中（原本絕對定位 top:50% 被 .ico 的 -6px 上邊距拉高 6px），
   手機 左 12px、圖示到文字約 8px；桌面見下方 media（照原型 22px／約 15px） */
.trip-search-wrap .search-input-wrap { gap: 0.5rem; padding: 0 0 0 0.75rem; }
.trip-search-wrap .search-input-wrap .search-icon { position: static; transform: none; }
.trip-search-wrap .search-input-wrap input { flex: 1; min-width: 0; padding-left: 0; }
.trip-search-hint {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #A1A19F;
  margin: 0.5rem 0 0;
  padding: 0;
}
.trip-advanced-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #14140C;
  border-radius: 0;
  background: #F7F7F7;
  cursor: pointer;
  white-space: nowrap;
  color: #14140C;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-weight: 500;
  transition: background 0.15s;
}
.trip-advanced-btn:hover { background: #e8e8e2; }

/* ── Content section ── */
.rec-sheet {
  position: static !important;
  transform: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: auto !important;
  display: block !important;
  background: #F7F7F7;
  margin-top: 0;
}
.rec-sheet.collapsed,
.rec-sheet.expanded { transform: none !important; }

/* ── Sheet tab bar (T261012_15) ── */
.sheet-tab-bar {
  display: flex;
  align-items: stretch;
  border-bottom: none;
  padding: 1.25rem 1rem 0;
  flex-shrink: 0;
  height: auto;
  gap: 0;
  overflow: hidden;
  background: #F7F7F7;
}
.sheet-tabs-scroll {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.sheet-tabs-scroll::-webkit-scrollbar { display: none; }
.sheet-tab {
  background: none;
  border: none;
  border-bottom: 0.125rem solid transparent;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  color: #A1A19F;
  padding: 0 0.75rem 1.25rem;
  height: auto;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.sheet-tab.is-active {
  color: #14140C;
  border-bottom-color: #14140C;
}

/* ── Sort row (T261012_16) ── */
.sheet-tab-sort-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  background: #F7F7F7;
}
.sheet-tab-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trip-sort-select {
  border: none;
  border-bottom: 1px solid #14140C;
  border-radius: 0;
  padding: 0.25rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  color: #14140C;
  background: transparent;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.tabs-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

/* ── Sheet content ── */
.sheet-content {
  padding: 0;
  overflow-y: visible;
  flex: none;
  min-height: 0;
  background: #F7F7F7;
}

/* ── Trip card grid (T261012_17) ── */
.trip-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  background: #F7F7F7;
}

.trip-card-grid .plan-card {
  flex: none;
  width: 100%;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0;
  background: #F7F7F7;
}
.trip-card-grid .plan-card .plan-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 0;
  object-fit: cover;
  background: #e0e0dc;
  display: block;
}
.trip-card-grid .plan-card .plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  color: #14140C;
  margin: 0.75rem 1rem 0;
  line-height: 1.3;
}
.trip-card-grid .plan-card .plan-card__divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0.5rem 1rem;
}
.trip-card-grid .plan-card .plan-date {
  font-size: 0.75rem;
  font-weight: 400;
  font-family: 'Geist Mono', ui-monospace, 'Courier New', monospace;
  color: #43423E;
  margin: 0 1rem 0.875rem;
}
.trip-card-grid .plan-card .plan-edit-btn {
  background: #14140C;
  color: #F7F7F7;
  border: none;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: 'Geist Mono', ui-monospace, 'Courier New', monospace;
  width: auto;
  height: auto;
  padding: 0.25rem 0.625rem;
  box-shadow: none;
}
.trip-card-grid .plan-card .plan-share-btn {
  background: rgba(247,247,247,0.95);
}

.sheet-content .rec-list { padding: 0.5rem 1rem 1rem; }
.sheet-content .shared-trips-list { padding: 0.25rem 0 1rem; }
.plans-empty { padding: 2rem 1rem; text-align: center; color: #A1A19F; }

/* ── Ticker (T261012_18) ── */
.v2-ticker-wrap {
  background: #F7F7F7;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5625rem 0;
  border-bottom: 1px solid #14140C;
}
.v2-ticker-wrap--bottom {
  border-bottom: none;
  border-top: 1px solid #14140C;
  margin-top: 2rem;
}
.v2-ticker {
  display: inline-flex;
  gap: 0;
}
.v2-ticker__track {
  display: inline-block;
  animation: ticker-scroll 35s linear infinite;
  color: #14140C;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-family: "Geist Mono", "Noto Sans TC", monospace;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── Footer (T261012_19) ── */

/* ── Desktop overrides ≥768px ── */
@media (min-width: 48rem) {
  /* 設計稿：地圖滿版，其餘區塊左右留 5rem（原本整區限寬 37.5rem 置中） */
  .trip { max-width: none; }
  /* 類型 tab 為置中的三顆固定寬度按鈕（不跟著滿版撐開），與地圖間留距 */
  .type-tabs { justify-content: center; margin-bottom: 1.75rem; }
  .type-tab { flex: 0 0 7rem; }
  /* 下方各分頁與「我的旅程」一樣左右留 5rem；暫存卡片三欄（與旅程卡片同大小） */
  #sheet-pane-stash, #sheet-pane-nearby, #sheet-pane-shared,
  #sheet-pane-shared-detail, #sheet-pane-myphotos { padding: 0 5rem 3.75rem; }
  .sheet-content .rec-list, .sheet-content .shared-trips-list { padding-left: 0; padding-right: 0; }
  .stash-list.grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .trip-hero {
    padding: 3.75rem 5rem 4.375rem;
  }
  .trip-hero__title { font-size: 3.75rem; }
  .trip-hero__subtitle { font-size: 1.125rem; }

  .type-tab { padding: 1.625rem 0; }

  #map {
    height: 25.125rem;
    min-height: 25.125rem;
    max-height: 25.125rem;
  }

  .search-bar { padding: 2.5rem 5rem 1rem; }

  .sheet-tab-bar { padding: 5.5rem 0 0 5rem; }
  .sheet-tab {
    font-size: 1.125rem;
    padding: 0 0.875rem 3.875rem;
  }

  .sheet-tab-sort-row { padding: 1.75rem 5rem 1.75rem 5rem; }
  .trip-sort-select { padding: 0.5rem 0.25rem; }

  .trip-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 5rem 3.75rem;
  }
  .trip-card-grid .plan-card { border-bottom: none; }
  .trip-card-grid .plan-card .plan-name { margin: 0.75rem 0 0; }
  .trip-card-grid .plan-card .plan-card__divider { margin: 0.5rem 0; }
  .trip-card-grid .plan-card .plan-date { margin: 0 0 0.75rem; }
}

/* ── TC26101409 新增行程彈窗（設計稿 web/mobile 新增行程）── */
#planFormModal.plan-v2 .modal-dialog { max-width: 28.25rem; }
#planFormModal.plan-v2 .modal-content {
  border: none; border-radius: 0; background: #F7F7F7; color: #14140C;
  padding: 0 1.625rem 1.6875rem; font-family: 'Noto Sans TC', sans-serif;
}
#planFormModal.plan-v2 .modal-header {
  align-items: center; padding: 1.8125rem 0 1.125rem; border-bottom: 1px solid #BDBDBA; border-radius: 0;
}
#planFormModal.plan-v2 .modal-title { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
#planFormModal.plan-v2 .plan-v2-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; margin: 0 -0.375rem 0 0; padding: 0;
  color: #14140C; opacity: 1; text-shadow: none; float: none;
}
#planFormModal.plan-v2 .modal-body { padding: 0; }
#planFormModal.plan-v2 .plan-dest-map {
  aspect-ratio: 401 / 323; height: auto; margin: 1.25rem 0 0; border-radius: 0; background: #E6E6E4;
}
#planFormModal.plan-v2 .plan-cover-wrap {
  margin-top: 1.25rem; border-radius: 0; aspect-ratio: 401 / 323;
  background: #EFEFED; border: 1px dashed #A1A19F; transition: border-color .15s, background-color .15s;
}
#planFormModal.plan-v2 .plan-cover-wrap.has-cover { border-style: solid; border-color: transparent; }
#planFormModal.plan-v2 .plan-cover-wrap.is-dragover { border-color: #14140C; background: #E6E6E4; }
#planFormModal.plan-v2 .plan-cover-wrap:focus-within { outline: 2px solid #14140C; outline-offset: 2px; }
#planFormModal.plan-v2 .cover-placeholder { gap: 0.75rem; color: #43423E; }
#planFormModal.plan-v2 .cover-placeholder .cover-drop-text { font-size: 0.875rem; }
#planFormModal.plan-v2 .cover-placeholder .cover-pick-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 2.1875rem; padding: 0 1.25rem;
  border: 1px solid #14140C; background: #F7F7F7; color: #14140C; font-size: 0.8125rem; font-weight: 700;
}
#planFormModal.plan-v2 .plan-cover-wrap:hover .cover-pick-btn { background: #14140C; color: #F7F7F7; }
#planFormModal.plan-v2 .cover-placeholder .cover-hint { font-size: 0.6875rem; color: #A1A19F; }
#planFormModal.plan-v2 .cover-edit-btn { border-radius: 0; }
#planFormModal.plan-v2 .form-group { margin: 1.5rem 0 0; }
#planFormModal.plan-v2 .plan-v2-label { display: block; margin: 0 0 0.4375rem; font-size: 0.875rem; color: #14140C; }
#planFormModal.plan-v2 .plan-v2-input {
  height: 2.1875rem; padding: 0 0.8125rem; border: 1px solid transparent; border-radius: 0;
  background: #E6E6E4; box-shadow: none; font-size: 0.875rem; color: #14140C;
}
#planFormModal.plan-v2 .plan-v2-input::placeholder { color: #A1A19F; }
#planFormModal.plan-v2 .plan-v2-input:focus { border-color: #14140C; }
#planFormModal.plan-v2 .plan-v2-input.is-invalid { border-color: #D7263D; }
#planFormModal.plan-v2 .plan-v2-date { position: relative; }
#planFormModal.plan-v2 .plan-v2-date .plan-v2-input { padding-right: 2.5rem; -webkit-appearance: none; appearance: none; }
#planFormModal.plan-v2 .plan-v2-date::after {
  content: ""; position: absolute; right: 1.125rem; top: 50%; width: 0.4375rem; height: 0.4375rem; margin-top: -0.3125rem;
  border-right: 1.5px solid #14140C; border-bottom: 1.5px solid #14140C; transform: rotate(45deg); pointer-events: none;
}
#planFormModal.plan-v2 .plan-v2-date input::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer;
}
#planFormModal.plan-v2 .modal-footer { justify-content: flex-end; gap: 0.625rem; padding: 1.1875rem 0 0; border: none; }
#planFormModal.plan-v2 .modal-footer > * { margin: 0; }
#planFormModal.plan-v2 .plan-v2-submit,
#planFormModal.plan-v2 .plan-v2-cancel {
  min-width: 4.875rem; height: 2.1875rem; padding: 0 1.25rem; border-radius: 0;
  font-size: 0.8125rem; font-weight: 700; line-height: 1; box-shadow: none;
}
#planFormModal.plan-v2 .plan-v2-submit { background: #14140C; border: 1px solid #14140C; color: #F7F7F7; }
#planFormModal.plan-v2 .plan-v2-cancel { background: transparent; border: 1px solid #14140C; color: #14140C; }
#planFormModal.plan-v2 button:focus-visible { outline: 2px solid #14140C; outline-offset: 2px; }
/* 新增模式：只有地圖、行程名稱、行程日期、完成（封面與取消僅在編輯時出現） */
#planFormModal.plan-v2.is-create.has-dest .plan-cover-wrap,
#planFormModal.plan-v2.is-create.has-dest #plan-cover-error,
#planFormModal.plan-v2.is-create .plan-dest-info,
#planFormModal.plan-v2.is-create .plan-v2-cancel { display: none !important; }

/* 地圖上的展覽圖片地標：方框＋朝下三角 */
.plan-photo-pin {
  position: absolute; width: 3rem; height: 3rem; box-sizing: border-box;
  transform: translate(-50%, calc(-100% - 0.5rem));
  border: 2px solid #7B4FD9; background: #F7F7F7; cursor: default;
}
.plan-photo-pin img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plan-photo-pin::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border-style: solid; border-width: 0.5rem 0.625rem 0; border-color: #7B4FD9 transparent transparent;
}

@media (max-width: 47.999rem) {
  #planFormModal.plan-v2 .modal-dialog { max-width: none; margin: 1rem; }
  #planFormModal.plan-v2 .modal-content { padding: 0 1.1875rem 1.25rem; }
  #planFormModal.plan-v2 .modal-header { padding: 1.5rem 0 1rem; }
  #planFormModal.plan-v2 .modal-title { font-size: 1.0625rem; }
  #planFormModal.plan-v2 .plan-dest-map { aspect-ratio: 249 / 192; }
  #planFormModal.plan-v2 .plan-v2-label { font-size: 0.9375rem; }
  #planFormModal.plan-v2 .plan-v2-input { height: 2.5rem; font-size: 0.9375rem; }
  #planFormModal.plan-v2 .plan-v2-submit, #planFormModal.plan-v2 .plan-v2-cancel { height: 2.5rem; min-width: 5rem; font-size: 0.875rem; }
}

/* ── TC26101803 我的上傳：黑底上傳照片按鈕、照片卡片右上角刪除鍵 ── */
.myphotos-toolbar { padding: 2.75rem 0 2.25rem; }
.myphotos-upload-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem;
  min-width: 10.25rem; height: 3.125rem; padding: 0 1.75rem;
  background: #14140C; color: #F7F7F7; border: none; border-radius: 0;
  font: 700 0.9375rem/1 'Noto Sans TC', sans-serif; cursor: pointer;
}
.myphotos-upload-btn:hover { background: #43423E; }
.myphotos-upload-btn:focus-visible { outline: 2px solid #14140C; outline-offset: 2px; }
.myphotos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1rem; }
.myphoto-card { position: relative; aspect-ratio: 491 / 406; overflow: hidden; background: #E6E6E4; cursor: pointer; }
.myphoto-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.myphoto-card-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 0.625rem 0.5rem;
  background: linear-gradient(transparent, rgba(20,20,12,.55));
  color: #F7F7F7; font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.myphoto-card-del {
  position: absolute; top: 0; right: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 1.6875rem; height: 1.6875rem; padding: 0; border: none; border-radius: 0;
  background: rgba(247,247,247,.85); color: #14140C; cursor: pointer;
}
.myphoto-card-del:hover { background: #F7F7F7; }
.myphoto-card-del:focus-visible { outline: 2px solid #14140C; outline-offset: -2px; }
@media (max-width: 47.999rem) {
  .myphotos-toolbar { padding: 1.75rem 0 1.5rem; }
  .myphotos-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* TC26101921 拖拉排序：只從左側把手拖；當下的位子不顯示把手、不能拖 */
.editor-stop .stop-handle { touch-action: none; padding: 0.375rem 0.25rem; margin: -0.375rem 0; }
.editor-stop .stop-handle:active { cursor: grabbing; }
.editor-stop.is-current .stop-handle { visibility: hidden; }
.sortable-fallback { opacity: 0.9 !important; box-shadow: 0 0.5rem 1.25rem rgba(20,20,12,.18); background: #F7F7F7; }

/* ══════════════════════════════════════════
   T26102101–T26102110 行程頁尺寸修正（設計稿）
   ══════════════════════════════════════════ */
/* T26102101 頁首跑馬燈：高 51px、底色 #14140C、文字 14px #F7F7F7 */
.v2-ticker-wrap--header { display: flex; align-items: center; height: 3.1875rem; padding: 0; }
.v2-ticker-wrap--header .v2-ticker__track { color: #F7F7F7; font-size: 0.875rem; }
/* T26102104 建立旅程：無陰影 */
.btn-create-trip { box-shadow: none; }
/* T26102108 我的上傳空狀態：靠左、16px／500／#72736E，位於上傳按鈕上方 */
.myphotos-empty { padding: 2.75rem 0 0; font: 500 1rem/1.6 'Noto Sans TC', 'PingFang TC', sans-serif; color: #72736E; text-align: left; }
.myphotos-empty + .myphotos-toolbar { padding-top: 1.5rem; }
/* T26102109 上傳照片按鈕 169×52 */
.myphotos-upload-btn { min-width: 10.5625rem; height: 3.25rem; }
/* T26102107 排序：106×28、右側 16×16 下拉箭頭 */
.trip-sort-select {
  width: 6.625rem; height: 1.75rem; padding: 0 1.25rem 0 0.25rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314140C' stroke-width='1.4'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right center / 1rem 1rem;
}
/* T26102110 頁尾上方跑馬燈：高 76px、底色 #F7F7F7、文字 #14140C */
.v2-ticker-wrap--bottom { display: flex; align-items: center; height: 4.75rem; padding: 0; background: #F7F7F7; }
.v2-ticker-wrap--bottom .v2-ticker__track { color: #14140C; }

@media (min-width: 48rem) {
  /* T26102102 展覽／藝術空間切換鈕 102×48 */
  .type-tab { flex: 0 0 6.375rem; height: 3rem; padding: 0; }
  /* T26102105 搜尋框高 62px */
  .trip-search-wrap .search-input-wrap { height: 3.875rem; gap: 0.9375rem; padding-left: 1.375rem; }
  .trip-search-wrap .search-input-wrap input { height: 100%; }
  /* T26102106 頁籤：上 88、下 62、左 80，靠左；底線與各選項同寬 */
  .sheet-tab-bar { padding: 5.5rem 0 0 5rem; }
  .sheet-tabs-scroll { gap: 1.625rem; } /* TC26102106 261022：TAB 間距太遠，改與個人頁頁籤一致 */
  .sheet-tab { padding: 0 0 3.875rem; font-size: 1.125rem; font-weight: 700; }
}

/* ══════════════════════════════════════════
   推薦旅程（設計稿 web/plan/推薦旅程、檢視旅程）
   ══════════════════════════════════════════ */
/* 頁籤點擊後的焦點框：只在鍵盤操作時顯示、貼著文字 */
.sheet-tab:focus { outline: none; box-shadow: none; }
.sheet-tab:focus-visible { outline: 1px solid #14140C; outline-offset: 0.25rem; }

/* 列表卡片：沿用我的旅程卡片，底部「查看旅程」 */
.sheet-content .shared-trips-list.trip-card-grid { padding: 0 0 1rem; }
.trip-card-grid .shared-trip-card { display: block; padding: 0; cursor: pointer; } /* 蓋掉舊版橫向列表樣式 */
.trip-card-grid .shared-trip-card:hover { background: transparent; }
.trip-card-grid .shared-trip-card:hover .plan-thumb { opacity: 0.92; }
.trip-card-grid .shared-trip-card .sd-share {
  position: absolute; top: 0.75rem; right: 0.75rem; display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; padding: 0; border: none; border-radius: 0; background: rgba(247,247,247,.9); color: #14140C; cursor: pointer;
}
.trip-card-grid .plan-view-btn {
  display: block; width: 100%; height: 2.5rem; margin: 0 0 0.5rem; border: none; border-radius: 0;
  background: #14140C; color: #F7F7F7; font: 700 0.875rem/1 'Noto Sans TC', sans-serif; cursor: pointer;
}
.trip-card-grid .plan-view-btn:hover { background: #43423E; }
.trip-card-grid .plan-card .plan-card__divider, .sd-rule {
  height: 1px; border: none; background: linear-gradient(to right, #14140C calc(100% - 0.375rem), transparent calc(100% - 0.375rem), transparent calc(100% - 0.125rem), #14140C calc(100% - 0.125rem));
}

/* 檢視旅程 */
#sheet-pane-shared-detail { padding-top: 2.5rem; }
.sd-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.sd-title { margin: 0; font: 700 1.25rem/1.4 'Noto Sans TC', sans-serif; color: #14140C; }
.sd-stops { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.sd-stop { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid #72736E; background: #F7F7F7; }
.sd-handle { display: flex; padding: 0.375rem; color: #14140C; cursor: grab; touch-action: none; }
.sd-handle:active { cursor: grabbing; }
.sd-thumb { width: 4.5rem; height: 4.5rem; flex-shrink: 0; object-fit: cover; background: #E5E5E5; }
.sd-type { display: flex; color: #43423E; flex-shrink: 0; }
.sd-name { flex: 1; min-width: 0; font-size: 1rem; color: #14140C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-icon-btn { display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; padding: 0; border: none; background: none; color: #14140C; cursor: pointer; flex-shrink: 0; }
.sd-icon-btn:hover { color: #72736E; }
.sd-empty { padding: 1.5rem 0; color: #A1A19F; font-size: 0.875rem; }
.sortable-ghost.sd-stop { opacity: 0.4; }
.sd-rule { margin: 3.5rem 0; }
.sd-transport { display: flex; gap: 1.75rem; align-items: stretch; }
.sd-modes { display: flex; flex-direction: column; gap: 0.625rem; flex-shrink: 0; }
.sd-mode {
  width: 5.5rem; height: 2.25rem; border: 1px solid #14140C; border-radius: 0; background: transparent;
  font: 700 0.875rem/1 'Noto Sans TC', sans-serif; color: #14140C; cursor: pointer;
}
.sd-mode.is-active { background: var(--accent, #6537CF); border-color: var(--accent, #6537CF); color: #F7F7F7; }
.sd-mode:not(.is-active):hover { background: #E8E8E2; }
.sd-summary { flex: 1; display: flex; align-items: center; padding: 1.25rem; background: #EDEDEB; }
.sd-summary__item { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 2.25rem 0 0; }
.sd-summary__item + .sd-summary__item { padding-left: 2.25rem; border-left: 1px solid #A1A19F; }
.sd-summary .k { font-size: 0.75rem; color: #72736E; }
.sd-summary .v { font-size: 1rem; color: #14140C; }
.sd-actions { display: flex; justify-content: flex-end; gap: 0.625rem; margin-top: 3.5rem; }
.sd-btn {
  height: 3rem; padding: 0 1.75rem; border: 1px solid #14140C; border-radius: 0; background: transparent;
  font: 700 1rem/1 'Noto Sans TC', sans-serif; color: #14140C; cursor: pointer;
}
.sd-btn--primary { background: #14140C; color: #F7F7F7; }
.sd-btn--primary:hover { background: #43423E; }
.sd-btn:disabled { opacity: 0.6; cursor: default; }
.sd-btn:focus-visible, .sd-mode:focus-visible, .sd-icon-btn:focus-visible, .plan-view-btn:focus-visible, .sd-share:focus-visible { outline: 2px solid #14140C; outline-offset: 2px; }

@media (min-width: 48rem) {
  .sd-row { grid-template-columns: 22rem minmax(0, 1fr); gap: 0; }
  .sd-title { font-size: 1.5rem; }
  .sd-stop { padding: 1.375rem 1.75rem; gap: 1.75rem; }
  .sd-thumb { width: 5.75rem; height: 5.75rem; }
}
@media (max-width: 47.999rem) {
  .sd-transport { flex-direction: column; gap: 1rem; }
  .sd-modes { flex-direction: row; }
  .sd-mode { flex: 1; width: auto; }
  .sd-stop { padding: 0.75rem; gap: 0.625rem; }
  .sd-actions .sd-btn { flex: 1; padding: 0; }
}

/* ══════════ TC26102104 附近景點 ══════════ */
#today-route-wrap { display: none; } /* 設計稿附近景點沒有今日路線 */
.sheet-content .rec-list { display: flex; flex-direction: column; gap: 0.625rem; padding: 0 0 1rem; }
.nb-card {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 1rem; padding: 1rem 1.25rem; border: 1px solid #72736E;
  background: transparent; cursor: pointer;
}
.nb-thumb { display: none; }
.nb-title { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font: 400 0.875rem/1.5 "Noto Sans TC", sans-serif; color: #14140C; }
.nb-icon { display: flex; flex-shrink: 0; color: #43423E; }
.nb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-actions { display: flex; justify-content: center; gap: 1.5rem; }
.nb-btn {
  min-width: 4.125rem; height: 1.5rem; padding: 0 0.75rem; border: 1px solid #14140C; border-radius: 0; background: transparent;
  font: 700 0.6875rem/1 "Noto Sans TC", sans-serif; color: #14140C; cursor: pointer;
}
.nb-btn:hover { background: #E8E8E2; }
.nb-btn.is-on { background: #14140C; color: #F7F7F7; }
.nb-card:focus-visible, .nb-btn:focus-visible { outline: 2px solid #14140C; outline-offset: 2px; }
@media (min-width: 48rem) {
  .sheet-content .rec-list { gap: 1rem; }
  .nb-card { grid-template-columns: 5.5rem minmax(0, 1fr) auto; column-gap: 1.75rem; align-items: center; padding: 0.75rem 1.25rem; }
  .nb-thumb { display: block; width: 5.5rem; height: 5.5rem; object-fit: cover; background: #E5E5E3; }
  .nb-title { font-size: 1rem; }
  .nb-actions { flex-direction: column; gap: 0.625rem; }
  .nb-btn { min-width: 6.875rem; height: 2rem; font-size: 0.75rem; }
}

/* ══════════ TC26102105 暫存 ══════════ */
.stash-list.grid, .stash-list.list, .stash-list { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.st-card { position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.st-thumb { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #E5E5E3; display: block; }
.st-body { display: flex; flex-direction: column; min-width: 0; min-height: 100%; }
.st-title { padding-right: 1.5rem; font: 700 1rem/1.5 "Noto Sans TC", sans-serif; color: #14140C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-title-en { font: 600 0.875rem/1.4 "Geist", "Noto Sans TC", sans-serif; color: #14140C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-line { height: 3px; margin: 0.5rem 0; border: none; opacity: 1;
  background: linear-gradient(#14140C, #14140C) left center / calc(100% - 0.5rem) 3px no-repeat, linear-gradient(#14140C, #14140C) right center / 3px 3px no-repeat; }
.st-meta { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.125rem; font: 400 0.75rem/1.5 "Noto Sans TC", sans-serif; color: #43423E; }
.st-meta svg { flex-shrink: 0; }
.st-meta--mono { font-family: "Geist Mono", ui-monospace, monospace; }
.st-add { margin-top: auto; height: 2.25rem; border: none; border-radius: 0; background: #14140C; color: #F7F7F7; font: 400 0.75rem/1 "Noto Sans TC", sans-serif; cursor: pointer; }
.st-body .st-meta:last-of-type { margin-bottom: 0.75rem; }
.st-add:hover { background: #43423E; }
.st-remove { position: absolute; top: 0; right: 0; display: flex; padding: 0.25rem; border: none; background: none; color: #72736E; cursor: pointer; }
.st-remove:hover { color: #14140C; }
.st-add:focus-visible, .st-remove:focus-visible { outline: 2px solid #14140C; outline-offset: 2px; }
@media (min-width: 48rem) {
  .stash-list.grid, .stash-list.list, .stash-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.75rem; row-gap: 3rem; }
  .st-card { grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 1rem; }
  .st-thumb { aspect-ratio: 136 / 176; }
}

@media (max-width: 47.999rem) {
  #sheet-pane-nearby, #sheet-pane-stash, #sheet-pane-shared, #sheet-pane-shared-detail, #sheet-pane-myphotos { padding: 0 1rem 2.5rem; }
  .trip-card-grid { padding: 0 1rem 2.5rem; gap: 2rem; }
}

/* TC26102108 我的旅程卡片：封面右上分享、名稱、一長一點線、日期（加入／建立當天）、整列「編輯行程」 */
.trip-card-grid .plan-card .plan-edit-btn.plan-edit-full {
  position: static; display: block; width: 100%; height: 2.25rem; margin: 0; padding: 0;
  background: #14140C; color: #F7F7F7; border: none; border-radius: 0;
  font: 400 0.75rem/1 "Noto Sans TC", sans-serif; letter-spacing: 0; box-shadow: none; cursor: pointer;
}
.trip-card-grid .plan-card .plan-edit-btn.plan-edit-full:hover { background: #43423E; }
.trip-card-grid .plan-card .plan-card__divider { height: 3px; border: none; /* 1804 全站標準：線與點同為 3px（原 2px 把線裁細） */
  background: linear-gradient(#14140C, #14140C) left center / calc(100% - 0.5rem) 3px no-repeat, linear-gradient(#14140C, #14140C) right center / 3px 3px no-repeat; }
.trip-card-grid .plan-card .plan-share-btn { top: 0.5rem; right: 0.5rem; border-radius: 0; }
/* TC26110506：圖片右上角加回鉛筆編輯鈕（與左上分享鈕同款白底方塊），點了開「編輯行程」 */
.trip-card-grid .plan-card .plan-edit-btn.plan-pen-btn {
  position: absolute; top: 0.5rem; right: 0.375rem; left: auto; /* 與左上分享鈕（left 0.375rem）左右對稱 */
  display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; padding: 0; border: none; border-radius: 0;
  background: rgba(247,247,247,0.95); color: #14140C; cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.1);
}
.trip-card-grid .plan-card .plan-edit-btn.plan-pen-btn:hover { background: #FFFFFF; }
.trip-card-grid .plan-card .plan-edit-btn.plan-pen-btn:focus-visible { outline: 2px solid #14140C; outline-offset: 2px; }
.trip-card-grid .plan-card .plan-thumb { aspect-ratio: 4 / 3; }

/* TC26102214 手機附近景點：按鈕靠右、間距 6px（設計稿 mobile/plan/附近景點） */
@media (max-width: 47.999rem) {
  .nb-actions { justify-content: flex-end; gap: 0.375rem; }
  .nb-card { row-gap: 0.75rem; padding: 1rem; }
}

/* TC26102213：頁首跑馬燈底色被通用 .v2-ticker-wrap 蓋成淺色，文字看不見 → 固定黑底；頁籤底線貼近文字；頁尾下方不留白 */
.v2-ticker-wrap.v2-ticker-wrap--header { background: #14140C; }
/* TC26110403-1：頁首跑馬燈上緣白色細線（同搜尋頁：手機 0.8px、桌面 0.5px #F7F7F7） */
.v2-ticker-wrap.v2-ticker-wrap--header { border-top: 0.8px solid #F7F7F7; }
@media (min-width: 48rem) { .v2-ticker-wrap.v2-ticker-wrap--header { border-top-width: 0.5px; } }
body { padding-bottom: 0 !important; }
@media (min-width: 48rem) {
  .sheet-tab { padding-bottom: 0.9375rem; }      /* TC26110403：頁籤字→底線 17→20 */
  .sheet-tab-sort-row { padding-top: 0.9375rem; } /* TC26110403：底線→排序 28→23 */
  /* TC26110403 依 11/18 設計稿比例：跑馬燈→標題 +16、標題→副標 +10、副標→切換鈕 +29、建立旅程→搜尋框 +8、提示→頁籤 +57 */
  .trip-hero { padding-top: 4.75rem; padding-bottom: 6.1875rem; }
  .trip-hero__title { margin-bottom: 1.125rem; }
  .search-bar { padding-top: 3rem; }
  .sheet-tab-bar { padding-top: 9.0625rem; }
  /* TC26110403：排序→卡片 29→38、編輯行程鈕 36→40 高 */
  .sheet-tab-sort-row { padding-bottom: 2.3125rem; }
  .trip-card-grid .plan-card .plan-edit-btn.plan-edit-full { height: 2.5rem; }
  /* TC26110403：卡片→底部跑馬燈 設計稿 60px。原本 卡片格線 60＋main 12＋導覽列墊高 72＋跑馬燈上外距 32＝176；
     導覽列墊高（bottomnavbar2.js，捲到底時讓浮動導覽列不蓋住最後一排）保留，其餘歸零 → 72px */
  .trip { padding-bottom: 0; }
  .trip-card-grid,
  #sheet-pane-stash, #sheet-pane-nearby, #sheet-pane-shared,
  #sheet-pane-shared-detail, #sheet-pane-myphotos { padding-bottom: 0; }
  .v2-ticker-wrap--bottom { margin-top: 0; }
}

/* TC26110403（11/20）：桌面「我的旅程」卡片固定寬 400px（原本 3 欄均分，1440 寬約 410.7）；
   1440 寬內容 1280 剛好 3 張＋間距 40px，更寬的螢幕自動多放一張 */
@media (min-width: 64rem) {
  .trip-card-grid { grid-template-columns: repeat(auto-fill, 25rem); column-gap: 2.5rem; }
}
