/* 行程頁 */

.single-mt_tour { --nav-h: 58px; }
html:has(.single-mt_tour) { scroll-padding-top: calc(var(--nav-real, 58px) + 26px); }
.single-mt_tour .site-header { position: relative; top: auto; }

/* ---------- 頂部 ---------- */
.tour-head { position: relative; background: var(--bg-soft); overflow: hidden; }
.tour-head__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 1.5rem clamp(1.75rem, 4vw, 4rem); align-items: center; padding-block: clamp(1.25rem, 1rem + 1vw, 2.25rem) clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem); }
.tour-head__text { align-self: stretch; display: flex; flex-direction: column; }
.tour-head__text .page-head__eyebrow { margin-top: auto; padding-top: 1.25rem; }
.tour-head__title { margin-top: .5rem; font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); line-height: 1.5; letter-spacing: .03em; word-break: keep-all; overflow-wrap: anywhere; }
.tour-head__sub { margin-top: 1rem; max-width: 38em; color: var(--text-muted); line-height: 1.9; }
.tour-head__promo { margin-top: 1rem; max-width: 40em; padding: .625rem 1rem; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--surface); color: var(--accent); font-size: var(--fs-sm); line-height: 1.75; }
.tour-head .facts { margin-bottom: auto; }
.tour-head__act { margin-top: 1.375rem; margin-bottom: auto; }
.tour-head .facts:has(+ .tour-head__act) { margin-bottom: 0; }
.tour-head__act .btn { min-width: 176px; min-height: 50px; }
/* 手機、平板：底部固定列或下方價格欄已有同一顆按鈕 */
@media (max-width: 1023px) { .tour-head__act { display: none; } }
.facts { display: flex; flex-wrap: wrap; gap: .625rem; padding-top: 1.375rem; }
.facts li { display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: 0 1rem; border: 1px solid var(--gold); border-radius: 99px; background: var(--bg); font-size: var(--fs-sm); font-weight: 500; }
.facts .icon { color: var(--gold-dark); }
.facts .is-charter { border-color: var(--accent); color: var(--accent); }
.tour-head__img { display: flex; justify-content: flex-end; }
.tour-head__img img { width: auto; max-width: min(100%, var(--w, 100%)); max-height: 420px; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow); }
.tour-head__img .ph { aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.tour-head--small .tour-head__in { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 899px) {
	.tour-head__in, .tour-head--small .tour-head__in { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
	.tour-head__img { justify-content: center; order: -1; }
	.tour-head__text .page-head__eyebrow { padding-top: .75rem; }
}
@media (max-width: 639px) {
	.tour-head__img { margin: -1rem calc(var(--gutter) * -1) 0; }
	.tour-head__img img { width: 100%; max-width: 100%; max-height: none; border-radius: 0; box-shadow: none; }
	.tour-head--small .tour-head__img { background: var(--bg-soft); }
}

/* ---------- 吸頂錨點 ---------- */
.tour-nav { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--border); }
.admin-bar .tour-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .tour-nav { top: 0; } }
.tour-nav .wrap { display: flex; align-items: center; gap: 1rem; }
.tour-nav ul { position: relative; flex: 1; min-width: 0; display: flex; gap: clamp(.25rem, 2vw, 1.75rem); overflow-x: auto; scrollbar-width: none; }
.tour-nav ul::-webkit-scrollbar { display: none; }
.tour-nav li { flex: none; }
.tour-nav a { position: relative; display: flex; align-items: center; min-height: var(--nav-h); padding: 0 .5rem; font-weight: 500; letter-spacing: .04em; color: var(--text-muted); }
.tour-nav a::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: 0; height: 3px; background: var(--brand); transform: scaleX(0); transition: transform .25s; }
.tour-nav a:hover, .tour-nav a[aria-current] { color: var(--text); }
.tour-nav a[aria-current]::after { transform: scaleX(1); }
.tour-nav a:focus-visible { outline-offset: -4px; }
.tour-nav .s { display: none; }
@media (min-width: 768px) and (max-width: 1023px) {
	.tour-nav ul { gap: .125rem; }
}
.tour-nav .tour-nav__top { flex: none; gap: .375rem; padding: 0 .25rem; font-size: var(--fs-sm); color: var(--gold-dark); }
.tour-nav .tour-nav__top::after { display: none; }
@media (max-width: 767px) {
	.tour-nav { --nav-h: 52px; }
	.tour-nav .wrap { gap: 0; }
	/* 放不下就折成兩行，不必左右滑 */
	.tour-nav ul { flex-wrap: wrap; justify-content: space-between; gap: 0; overflow: visible; }
	.tour-nav .l { display: none; }
	.tour-nav .s { display: inline; }
	.tour-nav li a { justify-content: center; min-width: 40px; padding: 0 2px; letter-spacing: 0; font-size: var(--ui); }
	.tour-nav li a::after { left: 6px; right: 6px; }
	.tour-nav .tour-nav__top { justify-content: center; width: 48px; margin-left: 4px; margin-right: -8px; padding: 0; border-left: 1px solid var(--border); }
	.tour-nav__top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.tour-nav ul:has(> li:nth-child(8)) ~ .tour-nav__top { display: none; } /* 項目多時讓位給文字，免得折成兩行 */
}

/* ---------- 兩欄 ---------- */
.tour-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.75rem, 3.5vw, 3.25rem); align-items: start; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) var(--section); }
.tour-sec + .tour-sec { margin-top: clamp(2.75rem, 2rem + 2.6vw, 4.25rem); }
.tour-sec__title { position: relative; margin-bottom: 1.375rem; padding-bottom: .75rem; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); letter-spacing: .06em; }
.tour-sec__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.tour-sec__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.toggle-all { flex: none; min-height: 44px; padding: 0 1.125rem; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); font-size: var(--fs-sm); font-weight: 500; color: var(--gold-dark); }
.toggle-all:hover { border-color: var(--gold-dark); }
.feature-imgs { display: grid; gap: 1rem; justify-items: start; margin-top: 1.5rem; }
.feature-imgs img { width: var(--w, auto); max-width: 100%; border-radius: var(--radius); }

/* 符號開頭的連續段落：縮小段距 */
.mt-prose p.mt-li { margin-bottom: .3em; }
.mt-prose p.mt-li:has(+ :not(.mt-li)) { margin-bottom: 1.15em; }

/* ---------- 每日行程 ---------- */
.day { position: relative; padding-left: 92px; }
.day + .day { margin-top: 1.25rem; }
.day::before { content: ""; position: absolute; left: 32px; top: 20px; bottom: -2.25rem; width: 1px; background: var(--gold); opacity: .55; }
.day:last-child::before { display: none; }
.day__no { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 65px; height: 65px; border: 1px solid var(--gold); border-radius: 50%; background: var(--bg); font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.day__no small { margin-bottom: 1px; font-family: var(--sans); font-size: .875rem; font-weight: 500; letter-spacing: .04em; color: var(--gold-dark); }
.day__box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.day__box > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 65px; padding: 1rem 1.375rem; }
.day__box > summary:focus-visible { outline-offset: -4px; }
.day__box > summary .icon { color: var(--gold-dark); transition: transform .25s; }
.day__box[open] > summary .icon { transform: rotate(180deg); }
.day__title { font-size: 1.125rem; line-height: 1.65; letter-spacing: .02em; }
.day__content { padding: .25rem 1.375rem 1.375rem; }
.day__imgs { display: grid; gap: .875rem; align-content: start; }
.day__imgs img { width: var(--w, auto); max-width: 100%; border-radius: 8px; }
.day__content { display: flex; flex-direction: column; gap: 1.25rem; }
.day__imgs { order: 2; }
.day__content:not(.day__content--side) .day__imgs--2, .day__content:not(.day__content--side) .day__imgs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 小圖：桌機靠右、文字繞排；手機圖在內文下 */
@media (min-width: 720px) {
	.day__content--side { display: flow-root; }
	.day__content--side .day__imgs { float: right; width: 300px; max-width: 44%; margin: .375rem 0 .875rem 1.5rem; }
	.day__content--side .mt-prose { max-width: none; }
}
@media screen and (min-width: 720px) {
	.day__content--side .day__imgs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
}
.meals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border); background: var(--bg); }
.meals > div { padding: .875rem 1.375rem; }
.meals > div + div:not(.meals__hotel) { border-left: 1px solid var(--border); }
.meals__hotel { grid-column: 1 / -1; border-top: 1px solid var(--border); }
.meals__hotel:first-child { border-top: 0; }
.meals dt { display: flex; align-items: center; gap: .4375rem; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em; color: var(--gold-dark); }
.meals dd { margin: .125rem 0 0; font-size: var(--fs-sm); line-height: 1.65; }
.meals__hotel { display: flex; gap: .75rem; align-items: baseline; }
.meals__hotel dt { flex: none; align-items: center; transform: translateY(1px); }
.meals__hotel dd { margin: 0; }
@media (max-width: 639px) {
	.day { padding-left: 0; }
	.day::before { display: none; }
	.day__no { position: relative; flex-direction: row; gap: .375rem; width: auto; height: 34px; padding: 0 1rem; border-radius: 10px 10px 0 0; border: 0; background: var(--gold-dark); color: var(--on-dark); box-shadow: none; display: inline-flex; font-size: 1.125rem; }
	.day__no small { margin: 0; color: var(--on-dark); }
	.day__box { border-top-left-radius: 0; }
	.day__box > summary { padding: .875rem 1rem; }
	.day__title { font-size: 1.0625rem; }
	.day__content { padding: .125rem 1rem 1.125rem; }
	.meals { grid-template-columns: minmax(0, 1fr); padding: .5rem 0; }
	.meals > div, .meals__hotel { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: .5rem; align-items: baseline; padding: .3125rem 1rem; border: 0 !important; }
	.meals dt { transform: none; }
	.meals dd { margin: 0; }
}

/* 電腦、平板：DAY 放在卡片標題列，內文撐滿整張卡片（列印維持 print.css 的排法） */
@media screen and (min-width: 640px) {
	.day { padding-left: 0; }
	.day::before { display: none; }
	.day__no { z-index: 1; top: 0; left: 0; flex-direction: row; align-items: baseline; justify-content: center; gap: .375rem; width: 6rem; height: auto; padding-top: 1.0625rem; border: 0; border-radius: 0; background: none; box-shadow: none; line-height: 1.25; pointer-events: none; }
	.day__box > summary, .is-big .days .day__box > summary { position: relative; padding-left: 7.125rem; background: var(--bg-soft); }
	.day__box > summary::before { content: ""; position: absolute; left: 6rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--gold); opacity: .6; }
	.day__content { padding-top: 1.25rem; }
	.day__content .mt-prose { max-width: none; }
}

/* ---------- 目前選的出團日期 ---------- */
.picked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-bottom: 2rem; padding: 1rem 1.375rem; border: 1px solid var(--brand); border-left-width: 5px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); font-variant-numeric: tabular-nums; }
.picked.is-none { border-color: var(--gold); background: var(--surface); }
.picked__txt { flex: 1 1 14em; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .125rem 1rem; line-height: 1.6; }
.picked__txt strong { font-size: 1.25rem; }
.picked__txt > span { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.picked__txt em { font-style: normal; }
.day__date { display: block; margin-top: .125rem; font-family: var(--sans); font-size: .9375rem; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.day__date:empty { display: none; }
@media screen and (prefers-reduced-motion: no-preference) {
	.is-new { animation: mt-new .5s ease-out; }
	@keyframes mt-new { from { opacity: .15; } }
}
.mobile-bar__pick { display: block; }
.mobile-bar__pick u { color: var(--accent); text-underline-offset: .2em; }
.mobile-bar__price .mobile-bar__pick small { white-space: nowrap; }
@media (max-width: 767px) { .picked { padding: .875rem 1rem; } .picked__txt strong { font-size: 1.125rem; } .picked .btn { min-height: 44px; } }

/* ---------- 出團日期與費用（只顯示選定的那一天） ---------- */
.date-card { padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.date-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-bottom: .875rem; border-bottom: 1px solid var(--border); }
.date-card__d { font-size: 1.375rem; font-weight: 700; line-height: 1.4; }
.date-card__d small { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.date-card__st { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.date-card__fees { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5em), 1fr)); gap: 1rem 1.5rem; margin: 1rem 0 0; }
.date-card__fees dt { font-size: var(--fs-sm); color: var(--text-muted); }
.date-card__fees dd { margin: 0; font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; }
.date-card__fees .is-main dd { color: var(--text); font-weight: 500; }
.date-card__go { margin-top: 1.25rem; }
.dates-ask { padding: 1.25rem 1.5rem; border: 1px dashed var(--gold); border-radius: var(--radius); background: var(--surface); }
.dates-ask a { display: inline-block; padding: .5rem 0; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: .28em; }
.mini-tag { display: inline-block; padding: 0 .4375rem; border-radius: 4px; background: var(--bg-soft); font-size: .875rem; line-height: 1.6; white-space: nowrap; }
@media (max-width: 767px) {
	.date-card, .dates-ask { padding: 1.125rem; }
	.date-card__fees { grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5em), 1fr)); }
	.date-card__go .btn { width: 100%; }
}

.tour-intro { margin-bottom: 2rem; line-height: 1.9; }

/* ---------- 航班卡 ---------- */
.flights__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.flight { padding: 1.125rem 1.375rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.flight__name { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-sm); color: var(--text-muted); }
.flight__name b { padding: 0 .625rem; border-radius: 4px; background: var(--bg-soft); color: var(--gold-dark); font-weight: 500; line-height: 1.8; }
.flights__when { display: flex; align-items: center; gap: .5rem; margin-bottom: .875rem; font-weight: 500; }
.flights__when .icon { flex: none; color: var(--gold-dark); }
.flights__src { margin: .75rem 0 0; font-size: .875rem; color: var(--text-muted); }
.flight__date { margin-top: .625rem; font-weight: 700; font-size: 1.125rem; line-height: 1.4; color: var(--accent); font-variant-numeric: tabular-nums; }
.flight__date small { font-size: .9375rem; font-weight: 400; color: var(--text-muted); }
.flight__leg { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; gap: .875rem; align-items: center; margin-top: .75rem; }
.flight__leg p { line-height: 1.4; }
.flight__leg p:last-child { text-align: right; }
.flight__leg strong { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.flight__leg p span { font-size: var(--fs-sm); color: var(--text-muted); }
.flight__line { position: relative; display: flex; align-items: center; justify-content: center; height: 24px; color: var(--gold); }
.flight__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--gold); }
.flight__line .icon { position: relative; padding: 0 4px; box-sizing: content-box; background: var(--surface); transform: rotate(30deg); border-radius: 50%; }

/* ---------- 右側固定欄 ---------- */
.tour-side { position: sticky; top: calc(var(--nav-h) + 22px); }
.side-box { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-hover); }
.side-box__price { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); line-height: 1.2; }
.side-box__fees { display: flex; gap: 1.25rem; margin-top: .25rem; margin-bottom: -.5rem; font-size: var(--fs-sm); }
.side-box__fees a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.side-box__fees a:hover { color: var(--accent); }
.side-box__price .price__num { font-size: 1.25rem; }
.side-box__price .price__cur { font-size: 1.25rem; }
.side-box__h { display: flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 500; font-size: var(--fs-sm); letter-spacing: .04em; }
.side-box__h .icon { color: var(--gold-dark); }
.date-list { margin: .5rem -.5rem 0; padding: 0 .5rem; }
.month-bar { display: none; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: .375rem; margin-top: .5rem; }
.js .month-bar { display: grid; }
.month-bar button { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--gold-dark); }
.month-bar button:hover:not(:disabled) { border-color: var(--gold-dark); color: var(--text); }
.month-bar button:disabled { opacity: .35; cursor: default; }
.month-bar button:first-child .icon { transform: rotate(90deg); }
.month-bar button:last-child .icon { transform: rotate(-90deg); }
.month-bar select { width: 100%; min-width: 0; min-height: 46px; padding: 0 .25rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--text); font: inherit; font-size: calc(1.0625rem * min(1, 1.2 / var(--ts, 1))); font-weight: 700; text-align: center; text-align-last: center; cursor: pointer; }
.date-month + .date-month { margin-top: 1rem; }
.js .month-bar ~ .date-month { margin-top: 0; }
.date-month__h { margin-top: .5rem; font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; }
.js .month-bar ~ .date-month .date-month__h, .js .date-month.is-off { display: none; }
.date-list li + li { margin-top: .375rem; }
.date-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 .5rem; min-height: 46px; padding: .4375rem .75rem; border: 1px solid var(--border); border-radius: 8px; font-variant-numeric: tabular-nums; line-height: 1.4; transition: border-color .2s; }
.date-opt:hover { border-color: var(--gold-dark); }
.date-opt.is-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); box-shadow: inset 0 0 0 1px var(--brand); }
.date-opt__d { font-weight: 700; font-size: 1.0625rem; white-space: nowrap; }
.date-opt__d small { font-weight: 400; font-size: .875rem; color: var(--text-muted); }
.date-opt__p { text-align: right; font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.date-opt__s { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--gold-dark); }
.date-list--many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .375rem; }
.date-list--many li + li { margin: 0; }
.date-list--many .date-opt { grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; height: 100%; padding: .375rem .25rem; }
.date-list--many .date-opt__p { text-align: center; }
@media (min-width: 1024px) { .date-list--many { max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; } }
.side-tools__msg { width: 100%; font-size: var(--fs-sm); color: var(--accent); }
.date-opt__s.stat--full, .date-opt__s.stat--closed { border: 0; background: none; color: var(--text-muted); }
.side-box__charter .stat { min-height: 40px; padding: 0 1.125rem; font-size: 1rem; }
.side-box__act { display: grid; gap: .625rem; margin-top: 1.125rem; }
.side-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; margin-top: 1.125rem; padding-top: .75rem; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.side-nav a { display: flex; align-items: center; min-height: 44px; color: var(--text-muted); }
.side-nav a:hover { color: var(--accent); }
.side-copy { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0; border: 0; background: none; font-size: var(--fs-sm); color: var(--gold-dark); }
.side-copy:hover { color: var(--text); }
.side-copy.is-done { color: var(--line-green); font-weight: 500; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; padding-top: .875rem; border-top: 1px solid var(--border); }
.share__label { font-size: var(--fs-sm); color: var(--text-muted); }
.share__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; color: #fff; transition: filter .2s; }
.share__btn[hidden] { display: none; }
.share__btn:hover { color: #fff; filter: brightness(.92); }
.share__btn--line { background: #06c755; --icon-cut: #06c755; }
.share__btn--fb { background: #1877f2; }
.share__btn--more, .share__btn--more:hover { background: var(--bg-soft); color: var(--gold-dark); }
.share .side-copy { padding: 0 .75rem; border: 1px solid var(--border); border-radius: 10px; }
@media print { .share { display: none; } }
.side-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; margin-top: .25rem; }
.side-tool { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0; border: 0; background: none; font-size: var(--fs-sm); color: var(--text-muted); text-decoration: none; }
.side-tool[hidden] { display: none; }
.side-tool:hover { color: var(--text); }
ol.flights__list { margin: 0; padding: 0; list-style: none; }
@media (max-height: 990px) and (min-width: 1024px) {
	.side-nav { display: none; }
}
@media (max-width: 1023px) {
	.tour-body { grid-template-columns: minmax(0, 1fr); }
	.tour-side { position: static; order: -1; }
	.side-nav { display: none; }
	.date-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.25em), 1fr)); gap: .5rem; max-height: none; margin-inline: 0; padding: 0; overflow: visible; }
	.date-list li + li { margin: 0; }
	.date-opt { grid-template-columns: auto; justify-content: center; justify-items: center; height: 100%; padding: .5rem; }
	.date-opt__p { text-align: center; }
	.side-box__act { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
}
@media (max-width: 767px) {
	.side-box__act > .btn--primary, .side-box__act > .btn--line { display: none; }
	.side-box { padding: 1.25rem; box-shadow: var(--shadow); }
	.date-opt__d { font-size: 1rem; }
}

/* 從日期連結直接落在日期方格時，手機、平板看不到上方標題，這裡補行程名稱 */
.side-box__name { display: none; }
@media (max-width: 1023px) { .side-box__name { display: block; margin-bottom: .5rem; font-weight: 600; line-height: 1.5; } }
.tour-sec__name { margin-bottom: .25rem; font-size: var(--fs-sm); color: var(--text-muted); }

/* 次選單左邊的小 logo：往下滑、大頁首離開後才出現，點了回首頁 */
.tour-nav .tour-nav__logo { flex: none; min-height: var(--nav-h); padding: 0; width: 0; opacity: 0; visibility: hidden; overflow: hidden; transition: width .2s, opacity .2s, visibility .2s; }
.tour-nav .tour-nav__logo::after { display: none; }
.tour-nav__logo img { width: 36px; height: 36px; max-width: none; object-fit: contain; }
.tour-nav.is-stuck .tour-nav__logo { width: 36px; opacity: 1; visibility: visible; }
.tour-nav:not(.is-stuck) .tour-nav__logo { margin-right: -1rem; }
@media (max-width: 767px) {
	.tour-nav:not(.is-stuck) .tour-nav__logo { margin-right: 0; }
	.tour-nav__logo img { width: 32px; height: 32px; }
	.tour-nav.is-stuck .tour-nav__logo { width: 40px; margin-left: -4px; }
	/* 右下角已有「回到最上面」，黏住時把位置讓給 logo */
	.tour-nav.is-stuck .tour-nav__top { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) { .tour-nav.is-stuck .tour-nav__top span { display: none; } }

/* 字很大或畫面很窄（見 main.css 最後一段） */
.is-big .date-opt__d { white-space: normal; text-align: center; }
.is-big .day__box > summary, .is-big .day__content { padding-inline: 14px; }
.is-big .day__title { font-size: calc(1.125rem * var(--hx)); }
.is-big .side-box__price :is(.price__num, .price__cur) { font-size: calc(1.25rem * var(--hx)); }
.is-tight .side-box { padding: 14px; }
.is-tight .facts li { border-radius: 14px; padding-block: 4px; }
.is-tight .day__content:not(.day__content--side) .day__imgs { grid-template-columns: minmax(0, 1fr); }
.is-tight .meals { display: block; }
.is-tight .meals > div, .is-tight .meals__hotel { display: block; border-left: 0; }
.is-tight .day__no { height: auto; min-height: 34px; }
.is-tight .flight__name { flex-wrap: wrap; white-space: normal; }
@media (max-width: 767px) {
				.is-tight .flight__leg { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.is-tight .flight__leg p:last-child { text-align: left; }
	.is-tight .flight__line { justify-content: flex-start; }
	.is-tight .date-card, .is-tight .dates-ask { padding: 14px; }
	.is-tight .date-list--many { grid-template-columns: minmax(0, 1fr); }
	.is-tight .month-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.is-tight .month-bar select { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 339px) {
	.tour-nav { --nav-h: 42px; }
	.tour-nav li { flex: 1 0 25%; }
	.tour-nav li a { min-width: 0; font-size: calc(.9375rem / var(--ts, 1)); }
	.tour-nav .tour-nav__top { display: none; }
	.tour-nav__logo img { width: 28px; height: 28px; }
	.tour-nav.is-stuck .tour-nav__logo { width: 34px; }
}
/* 電腦把字放大：右側欄會比畫面高，改成不固定、加寬 */
@media (min-width: 1024px) {
	.is-big .tour-body { grid-template-columns: minmax(0, 1fr) 380px; }
	.is-big .tour-side { position: static; }
	.is-big .side-box { padding: 20px; }
	.is-big .tour-nav ul { flex-wrap: wrap; gap: 0 8px; }
	.is-big .tour-nav a { font-size: calc(1rem * min(1, 1.2 / var(--ts))); }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.is-big .tour-nav ul { flex-wrap: wrap; }
	.is-big .tour-nav a { font-size: calc(1rem / var(--ts)); padding-inline: 6px; }
}

/* 電腦版加寬：行程頁標題、主照片、內文跟著放大（字級被使用者放大時不套用） */
@media screen and (min-width: 1280px) {
	html:not(.is-big) .tour-body { grid-template-columns: minmax(0, 1fr) clamp(320px, 20vw, 380px); gap: clamp(2rem, 2.6vw, 3.25rem); }
	html:not(.is-big) .tour-head:not(.tour-head--small) .tour-head__in { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
	html:not(.is-big) .tour-head:not(.tour-head--small) .tour-head__img img { width: 100%; max-width: 100%; max-height: 520px; object-fit: cover; }
	html:not(.is-big) .tour-head__title { font-size: clamp(2.125rem, 1rem + 1.7vw, 3rem); }
	html:not(.is-big) .tour-head__sub { font-size: 1.0625rem; max-width: 44em; }
	.tour-body .mt-prose { max-width: none; font-size: 1.0625rem; }
	html:not(.is-big) .day__title { font-size: 1.25rem; }
	.day__content--side .day__imgs { width: 400px; }
}
