/* 內頁：頁首帶、麵包屑、聖地、心得、常見問題、文章、聯絡、表單。 */

.page-body { padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem) var(--section); }
.page-body + .section { padding-top: 0; }
.page-body + .section--soft { padding-top: var(--section); }
.narrow { max-width: calc(760px + var(--gutter) * 2); }
.empty { padding: 3rem 0; text-align: center; color: var(--text-muted); }

/* ---------- 頁首帶 ---------- */
.page-head { position: relative; background: var(--bg-soft); overflow: hidden; }
.page-head__in { position: relative; padding-block: .75rem 1.25rem; }
.page-head__eyebrow { margin-top: .375rem; line-height: 1.5; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; letter-spacing: .08em; }
.page-head__eyebrow a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.page-head__title { margin-top: .625rem; max-width: 22em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: .06em; text-wrap: balance; }
.page-head__eyebrow + .page-head__title { margin-top: 0; }
.page-head__title::after { content: ""; display: block; width: 48px; height: 2px; margin-top: .5rem; background: var(--brand); }
.page-head__lede { margin-top: .625rem; max-width: 42em; color: var(--text-muted); }
.page-head__jump { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .875rem; }
.page-head--region .page-head__in { display: grid; align-items: center; gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); }
.page-head--region.has-img .page-head__in { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: .75rem; }
.page-head__img { display: flex; justify-content: flex-end; }
.page-head__img img { width: auto; max-width: min(100%, var(--w, 100%)); max-height: 168px; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 767px) {
	.page-head--region.has-img .page-head__in { gap: .75rem; }
	.page-head__img img { max-width: min(34vw, var(--w, 100%)); }
}

/* ---------- 麵包屑 ---------- */
.crumbs { font-size: var(--fs-xs); color: var(--text-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .375rem; }
.crumbs li { display: inline-flex; align-items: center; gap: .375rem; min-width: 0; }
.crumbs li:last-child { max-width: 26em; }
.crumbs [aria-current] { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { padding-block: .25rem; }
@media (min-width: 640px) {
	.crumbs ol { flex-wrap: nowrap; }
	.crumbs li { flex: none; }
	.crumbs li:last-child { flex: 0 1 auto; }
}
@media (max-width: 1023px) {
	.crumbs a, .page-head__eyebrow a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
}
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 639px) {
	.crumbs li:nth-child(n+3):last-child { display: none; }
	.crumbs li:nth-last-child(2):nth-child(n+2) .icon { display: none; }
}

/* ---------- 標籤鈕 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .625rem; }
.chip { display: inline-flex; align-items: center; 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; letter-spacing: .03em; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.chip.is-active { border-color: var(--brand); background: var(--brand); color: var(--on-dark); }
.chips-bar { padding-top: clamp(1.25rem, 1rem + 1vw, 1.875rem); }
@media (max-width: 639px) {
	.chips-bar .chips, .faq__tabs { position: relative; flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
	.chips-bar .chips::-webkit-scrollbar, .faq__tabs::-webkit-scrollbar { display: none; }
	.chips-bar li, .faq__tabs .chip { flex: none; }
}

/* ---------- 行程總覽 ---------- */
.filter--bar { border: 1px solid var(--border); box-shadow: var(--shadow); }
.filter--bar .filter__field > .icon:first-child { color: var(--gold-dark); }
.filter--search { max-width: 560px; margin-bottom: 2rem; }
.result-count { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; min-height: 44px; margin: 1rem 0 .75rem; color: var(--text-muted); }
.result-count strong { color: var(--text); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.result-count a { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; color: var(--accent); font-weight: 500; }
.result-count a:hover { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 767px) {
	.filter--bar .filter__field { flex: 1 1 50%; padding-inline: .875rem; }
	.filter--bar .filter__field:nth-child(3) { flex-basis: 100%; border-top: 1px solid var(--border); }
	.filter--bar .filter__field:nth-child(3)::before { display: none; }
	.filter--bar .filter__chev { right: .5rem; }
	.filter--search .filter__field { flex-basis: 100%; }
}
/* 手機：有篩選條件時收成一行摘要 */
.filter-sum { display: none; }
@media (max-width: 767px) {
	.js .filter-sum { display: flex; align-items: center; gap: .625rem; width: 100%; min-height: 52px; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
	.filter-sum .icon { color: var(--gold-dark); }
	.filter-sum__t { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.filter-sum__act { flex: none; font-size: var(--fs-sm); color: var(--gold-dark); }
	.filter-sum .icon:last-child { transition: transform .2s; }
	.filter-sum[aria-expanded="true"] .icon:last-child { transform: rotate(180deg); }
	.js .filter-box.is-collapsed .filter { display: none; }
	.filter-box .filter { margin-top: .625rem; }
	.post-type-archive-mt_tour #results { padding-top: 1.25rem; scroll-margin-top: -12px; }
}
.alt-results { margin-top: clamp(2.25rem, 1.75rem + 2vw, 3.5rem); }
@media (max-width: 419px) {
	.filter--bar .filter__field { flex-basis: 100%; }
	.filter--bar .filter__field + .filter__field { border-top: 1px solid var(--border); }
	.filter--bar .filter__field + .filter__field::before { display: none; }
}

/* ---------- 聖地 ---------- */
.holy-group + .holy-group { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.holy--toc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.toc { position: sticky; top: 112px; padding-left: 1.125rem; border-left: 1px solid var(--gold); }
.toc a { display: block; padding: .4375rem 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); }
.toc a:hover { color: var(--accent); }
.holy:not(.holy--toc) .holy__secs { max-width: 1000px; margin-inline: auto; }
.holy-sec + .holy-sec { margin-top: clamp(2.25rem, 1.75rem + 2vw, 3.75rem); padding-top: clamp(2.25rem, 1.75rem + 2vw, 3.75rem); border-top: 1px solid var(--border); }
.holy-sec h2 { margin-bottom: 1rem; font-size: var(--fs-h3); letter-spacing: .04em; }
.holy-sec__img { display: grid; gap: 1rem; justify-items: center; align-content: start; }
.holy-sec__img img { width: var(--w, auto); max-width: 100%; height: auto; border-radius: var(--radius); }
@media (min-width: 900px) {
	.holy-sec.has-img { display: grid; grid-template-columns: fit-content(400px) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
	.holy-sec.has-img:nth-child(even) { grid-template-columns: minmax(0, 1fr) fit-content(400px); }
	.holy-sec.has-img:nth-child(even) .holy-sec__img { order: 2; }
}
@media (max-width: 1023px) {
	.holy--toc { grid-template-columns: minmax(0, 1fr); }
	.toc { position: static; border-left: 0; padding: 0; }
	.toc { min-width: 0; }
	.toc ul { position: relative; display: flex; gap: .5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
	.toc li { flex: none; }
	.toc a { display: block; max-width: 9.5em; min-height: 44px; padding: 0 .875rem; line-height: 42px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); }
}
@media (max-width: 899px) { .holy-sec__img { justify-items: start; margin-bottom: 1.25rem; } }

/* ---------- 文章、心得單篇 ---------- */
.article { max-width: calc(860px + var(--gutter) * 2); }
.article__cover { margin: 0 0 2rem; text-align: center; }
.article__cover img { width: auto; max-width: min(100%, var(--w, 100%)); max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.article > .mt-prose, .mt-prose--center { margin-inline: auto; }
.article__back { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
.post-navigation { margin-top: clamp(2.5rem, 2rem + 2vw, 3.75rem); border-block: 1px solid var(--border); }
.nav-links { display: flex; justify-content: space-between; }
.post-navigation .nav-links > div { flex: 1 1 50%; min-width: 0; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.post-navigation .nav-previous + .nav-next { border-left: 1px solid var(--border); }
.post-navigation a { display: flex; align-items: center; gap: .625rem; min-height: 68px; padding: .625rem .75rem; font-size: var(--fs-sm); line-height: 1.6; }
.post-navigation .nav-next a { justify-content: flex-end; }
.post-navigation small { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.holy .post-navigation .nav-links > div { flex: 0 1 50%; }
.post-navigation a:hover { color: var(--accent); }

/* ---------- 分頁 ---------- */
.pagination { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.pagination .nav-links { justify-content: center; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .5rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-weight: 500; font-variant-numeric: tabular-nums; }
a.page-numbers:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.page-numbers.current { border-color: var(--brand); background: var(--brand); color: var(--on-dark); }
.page-numbers.dots { border: 0; background: none; }

/* ---------- 手風琴 ---------- */
.acc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.acc + .acc { margin-top: .75rem; }
.acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .875rem 1.25rem; }
.acc > summary h3, .acc > summary h4 { font-size: var(--fs-h4); line-height: 1.55; }
.acc > summary:hover h3, .acc > summary:hover h4 { color: var(--accent); }
.acc > summary .icon { color: var(--gold-dark); transition: transform .25s; }
.acc[open] > summary .icon { transform: rotate(180deg); }
.acc__body { padding: 0 1.25rem 1.25rem; max-width: calc(42em + 2.5rem); }
.faq { max-width: calc(920px + var(--gutter) * 2); }
.faq__intro { margin-bottom: 2rem; }
.faq__tabs { margin-bottom: 1.75rem; }
.faq__cat { margin: 2rem 0 1rem; font-size: var(--fs-h3); }
.faq__tabs + .faq__group .faq__cat, .tour-faq .section-head + .faq__group .faq__cat { margin-top: 0; }

/* ---------- 聯絡我們、自組一團 ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.two-col--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 899px) { .two-col, .two-col--even { grid-template-columns: minmax(0, 1fr); } }
.panel { padding: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); border-radius: var(--radius-lg); background: var(--bg-soft); }
.panel__title { font-size: var(--fs-h3); letter-spacing: .06em; }
.panel__sub { color: var(--text-muted); }
.panel .company { margin-top: 1.125rem; padding-top: 1rem; border-top: 1px solid rgba(var(--shade), .12); }
.panel__act { margin-top: 1.375rem; }
/* 聯絡頁下半：編輯器內容（服務項目、下載、連結）改多欄 */
.contact-extra { max-width: none; }
.contact-extra > p { max-width: 42em; }
@media (min-width: 768px) {
	.contact-extra ul:not(.mt-tiles) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem 2rem; padding-left: 0; list-style: none; }
	.contact-extra ul:not(.mt-tiles) > li { margin: 0; }
	.contact-extra ul:not(.mt-tiles) > li:has(> ul) { grid-column: 1 / -1; }
	.contact-extra li > ul { margin-top: .75rem; }
}
/* 聯絡頁：表單下載、線上留言說明 */
.panel-files { margin-top: 1.25rem; padding: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.panel-files :is(h2, h3, h4) { margin: 0 0 .75rem; font-size: var(--fs-h4); letter-spacing: .04em; }
.panel-files li + li { border-top: 1px solid var(--border); }
.pdf-link { display: flex; align-items: center; gap: .75rem; min-height: 52px; padding: .5rem 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
.pdf-link:hover { color: var(--text); }
.pdf-link__tag { flex: none; padding: 0 .5rem; border: 1px solid var(--gold); border-radius: 4px; font-size: .875rem; line-height: 1.6; letter-spacing: .04em; color: var(--gold-dark); }
.contact-form__title { font-size: var(--fs-h3); letter-spacing: .06em; }
.contact-form__note { margin: .375rem 0 1.125rem; color: var(--text-muted); }
.contact-form__title + .mt-form { margin-top: 1.125rem; }
.map { display: block; width: 100%; height: min(420px, 70vh); border: 0; border-radius: var(--radius-lg); }

/* ---------- 表單（外掛輸出） ---------- */
.mt-form { padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.mt-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem 1.5rem; }
.mt-field { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.mt-field:has(textarea), .mt-field:has(input[type="email"]), .mt-field--tour, .mt-form .mt-submit { grid-column: 1 / -1; }
.mt-form form > div { grid-column: 1 / -1; }
.mt-field label, .mt-label { font-weight: 500; font-size: var(--fs-sm); letter-spacing: .04em; }
.mt-req { color: var(--brand); }
.mt-field input, .mt-field select, .mt-field textarea { width: 100%; min-height: 50px; padding: .625rem .875rem; border: 1px solid var(--field-border); border-radius: 8px; background: var(--bg); font-size: 1rem; line-height: 1.6; transition: border-color .2s, background-color .2s; }
.mt-field textarea { resize: vertical; }
/* iPhone 的日期欄：沒選時是空白、字置中、寬度會跑掉，統一成和其他欄位一樣 */
@supports (-webkit-touch-callout: none) {
	.mt-field input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; text-align: left; }
	.mt-field input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.6em; }
	.mt-field input[type="date"].is-empty:not(:focus)::before { content: "請選擇日期"; color: var(--text-muted); }
}
.mt-field select { appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237D5E33' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; }
.mt-field input:focus, .mt-field select:focus, .mt-field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); background-color: var(--surface); }
.mt-tour-name { display: block; padding: .6875rem .875rem; border-radius: 8px; background: var(--bg-soft); font-family: var(--serif); font-weight: 700; line-height: 1.7; }
.mt-field ::placeholder { color: var(--text-muted); opacity: .8; }
.mt-submit button { display: inline-flex; align-items: center; justify-content: center; min-width: min(220px, 100%); max-width: 100%; min-height: 52px; padding: 0 2rem; border: 0; border-radius: 8px; background: var(--brand); color: var(--on-dark); font-weight: 500; font-size: 1.0625rem; letter-spacing: .2em; text-indent: .2em; transition: background-color .2s; }
.mt-submit button:hover { background: var(--brand-dark); }
.mt-form-msg { padding: 1rem 1.25rem; border-radius: 8px; font-weight: 500; }
.mt-form-ok { background: color-mix(in srgb, var(--line-green) 10%, var(--surface)); color: var(--line-green-dark); }
.mt-form-err { margin-bottom: 1.25rem; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); color: var(--brand-dark); }
.booking .mt-form { max-width: 900px; margin-inline: auto; }

/* 分段（報名表、自組一團） */
.mt-sec { min-width: 0; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.mt-sec:first-of-type { padding-top: 0; border-top: 0; }
.mt-sec + .mt-sec { margin-top: .625rem; }
.mt-sec__h { display: flex; align-items: center; gap: .625rem; margin-bottom: 1rem; font-size: var(--fs-h4); letter-spacing: .06em; }
.mt-sec__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-dark); font-family: var(--serif); font-weight: 700; font-size: .9375rem; line-height: 1; letter-spacing: 0; }
.mt-field label .mt-sec__n { margin-right: .625rem; }
.mt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem 1.5rem; align-items: start; }
.mt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt-grid--tr { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .875rem 1rem; }
.custom-tour > .mt-prose + .mt-form { margin-top: 1.5rem; }
.custom-tour > .mt-form { max-width: 900px; }
.mt-grid--plan label { margin-bottom: .25rem; font-family: var(--serif); font-weight: 700; font-size: var(--fs-h4); letter-spacing: .06em; }
.mt-grid .mt-field:has(input[type="email"]) { grid-column: auto; }
.mt-note { grid-column: 1 / -1; margin-bottom: -.5rem; font-size: var(--fs-xs); color: var(--text-muted); }
.mt-hint { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.6; }
.mt-error { font-size: var(--fs-xs); font-weight: 500; color: var(--brand); line-height: 1.6; }
.mt-field [aria-invalid="true"] { border-color: var(--brand); background-color: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.mt-submit button:disabled { opacity: .65; cursor: default; }

/* 參考費用 */
.mt-ref { margin-top: 1.125rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.mt-ref__h { font-size: var(--fs-sm); color: var(--text-muted); letter-spacing: .04em; }
.mt-ref dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem 1rem; margin-top: .5rem; }
.mt-ref dt { font-size: var(--fs-xs); color: var(--text-muted); }
.mt-ref dd { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

/* 人數步進 */
.mt-step { display: flex; border: 1px solid var(--field-border); border-radius: 8px; background: var(--bg); overflow: hidden; }
.mt-step:focus-within { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.mt-step:has([aria-invalid="true"]) { border-color: var(--brand); }
.mt-field .mt-step input { flex: 1; min-width: 0; min-height: 50px; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.mt-field .mt-step input:focus { outline: none; }
.mt-step input::-webkit-inner-spin-button, .mt-step input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.mt-step button { flex: none; width: 52px; min-height: 50px; padding: 0; border: 0; background: var(--bg-soft); color: var(--gold-dark); font-size: 1.125rem; touch-action: manipulation; }
.mt-step button:hover { background: var(--border); }
.mt-step button[aria-disabled="true"] { opacity: .4; cursor: default; }
.mt-notes { margin-top: 1.125rem; font-size: var(--fs-xs); line-height: 1.75; color: var(--text-muted); }
.mt-notes ul { padding-left: 1.25em; list-style: disc; }
.mt-notes li + li { margin-top: .25em; }
.mt-notes li::marker { color: var(--gold); }

/* 收合區塊：旅客名單、契約 */
.mt-fold { border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.mt-fold > summary { display: flex; align-items: center; gap: .25rem 1rem; min-height: 52px; padding: .5rem 1rem; font-weight: 500; }
.mt-fold > summary small { font-size: var(--fs-xs); font-weight: 400; color: var(--text-muted); }
.mt-fold > summary::after { content: ""; flex: none; width: .5rem; height: .5rem; margin: 0 .25rem .25rem auto; border: solid var(--gold-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.mt-fold[open] > summary::after { margin-bottom: -.25rem; transform: rotate(225deg); }
.mt-fold[open] > summary { border-bottom: 1px solid var(--border); }
.mt-fold__in { padding: 1rem; }
.mt-tr { padding: .75rem 1rem 1.125rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.mt-tr + .mt-tr { margin-top: .875rem; }
.mt-tr__h { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: .25rem; font-family: var(--serif); font-weight: 700; }
.mt-tr__rm { min-width: 44px; min-height: 44px; padding: 0 .5rem; margin-right: -.5rem; border: 0; background: none; color: var(--text-muted); font-family: var(--sans); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: .22em; }
.mt-tr__rm:hover { color: var(--accent); }
.mt-field--cname { grid-column: span 2; }
.mt-trs__add { margin-top: .875rem; }
.mt-btn { min-height: 48px; padding: 0 1.375rem; border: 1px solid var(--gold); border-radius: 8px; background: var(--surface); color: var(--gold-dark); font-weight: 500; letter-spacing: .04em; }
.mt-btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--on-dark); }
.mt-contract { max-height: min(420px, 60vh); padding: 1rem 1.25rem 1.25rem; overflow-y: auto; font-size: .9375rem; line-height: 1.85; }
.mt-contract:focus-visible { outline-offset: -3px; }
.mt-contract h4 { margin: 1.5em 0 .4em; font-size: 1rem; }
.mt-contract > :first-child { margin-top: 0; }
.mt-contract p { margin: 0 0 .75em; }
.mt-contract ul { margin: 0 0 .75em; padding-left: 1.5em; list-style: disc; }
.mt-contract li { min-height: 1.85em; margin-bottom: .25em; }

/* 勾選、單選 */
.mt-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.mt-form .mt-choice { display: flex; align-items: center; gap: .75rem; min-height: 50px; padding: .5rem 1rem; border: 1px solid var(--field-border); border-radius: 8px; background: var(--bg); font-size: 1rem; font-weight: 500; line-height: 1.5; letter-spacing: .02em; cursor: pointer; }
.mt-form .mt-choice:has(:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.mt-form .mt-choice:has([aria-invalid="true"]) { border-color: var(--brand); }
.mt-form .mt-choice input { flex: none; width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--brand); }
.mt-form .mt-choice:focus-within { outline: 2px solid var(--brand); outline-offset: 0; }
.mt-form .mt-choice input:focus { outline: none; }
.mt-field--other { margin-top: 1rem; }
.mt-grid > .mt-field--wide { grid-column: 1 / -1; margin-top: 0; }
.mt-form .mt-field--wide .mt-choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13em), 1fr)); margin-top: .375rem; }
.mt-field--agree { margin-top: 1rem; }
@media (max-width: 767px) {
	.mt-grid--tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mt-ref dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mt-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
	.mt-form form { grid-template-columns: minmax(0, 1fr); }
	.mt-submit button { width: 100%; }
	.mt-grid, .mt-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.mt-grid--tr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
	.mt-field:has(.mt-step) { flex-flow: row wrap; align-items: center; justify-content: space-between; }
	.mt-field:has(.mt-step) .mt-step { width: 180px; }
	.mt-field:has(.mt-step) .mt-error { width: 100%; }
	.mt-tr select { padding-left: .5rem; padding-right: 1.375rem; background-position: right .25rem center; }
	.mt-fold > summary { flex-wrap: wrap; position: relative; padding-right: 2.5rem; }
	.mt-fold > summary::after { position: absolute; right: 1.125rem; top: 1.25rem; margin: 0; }
	.mt-fold[open] > summary::after { margin: 0; top: 1.5rem; }
	.mt-fold__in { padding: .5rem; }
	.mt-tr { padding: .5rem .75rem 1rem; }
	.mt-contract { padding: .875rem 1rem 1rem; }
}

/* 圖片磚列表（聯絡我們的服務項目） */
.mt-prose .mt-tiles { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.mt-prose .mt-tiles li { margin: 0; padding: 0; text-align: center; }
.mt-prose .mt-tiles li::before, .mt-prose .mt-tiles li::marker { content: none; }
.mt-prose .mt-tiles img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; }
.mt-prose .mt-tiles h4 { margin: .5rem 0 0; font-size: 1rem; }

.contact-extra ul:not(.mt-tiles) a { display: inline-flex; align-items: center; min-height: 44px; }

/* 電腦版加寬：內頁的文字區、表單跟著放寬（字級被使用者放大時不套用） */
@media screen and (min-width: 1280px) {
	html:not(.is-big) .page-body.article { max-width: calc(1120px + var(--gutter) * 2); }
	html:not(.is-big) .holy:not(.holy--toc) .holy__secs { max-width: 1200px; }
	html:not(.is-big) .page-body .mt-prose { max-width: 1120px; font-size: 1.0625rem; }
	html:not(.is-big) .faq { max-width: calc(var(--wrap) + var(--gutter) * 2); }
	html:not(.is-big) .faq .mt-prose, html:not(.is-big) .tour-faq .mt-prose { max-width: none; }
	html:not(.is-big) .custom-tour > .mt-form { max-width: none; }
	html:not(.is-big) .booking .mt-form { max-width: 1120px; }
}
