/* ==========================================================================
   i-tour 目的地介紹頁、景點介紹頁、景點列表（2026-12-05）
   顏色、圓角一律讀 style.css 最上面的 :root 變數；這個檔只放版面。
   ========================================================================== */

/* ---------- 共用：頂端區 ---------- */
.it-region { padding: 28px 0 8px; }
.it-region .crumbs, .it-holy .crumbs { margin-bottom: 18px; }

/* 封面大圖＋地區名稱 */
.it-rhead { position: relative; }
.it-rhead__ph { aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--it-radius); background: var(--c-band); }
.it-rhead__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.it-rhead__h { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.35; letter-spacing: .12em; color: var(--c-main); margin: 8px 0 0; }
.it-rhead.has-img::after { content: ""; position: absolute; inset: 0; border-radius: var(--it-radius); background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .42) 100%); pointer-events: none; }
.it-rhead.has-img .it-rhead__h { position: absolute; left: 44px; bottom: 30px; z-index: 1; margin: 0; color: #fff; font-size: 52px; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }

/* 介紹文 */
.it-rintro { max-width: 46em; margin: 36px auto 0; font-size: 17px; line-height: 2; color: var(--c-text); }
.it-rintro p { margin: 0 0 1em; }
.it-rintro p:last-child { margin-bottom: 0; }

/* ---------- 景點卡 ---------- */
.it-rholy { background: var(--c-card); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.it-region + .it-rholy { margin-top: 64px; }
.it-hcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.it-hcard { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--it-radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.it-hcard__ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.it-hcard__ph img, .it-hcard__ph .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.it-hcard:hover .it-hcard__ph img { transform: scale(1.03); }
.it-hcard__bd { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.it-hcard h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.5; color: var(--c-text); margin: 0; }
.it-hcard h3 a:hover { color: var(--c-main); }
.it-hcard p { font-size: 15px; line-height: 1.8; color: var(--c-muted); margin: 0; }
.it-hcard .it-more { margin-top: auto; padding-top: 6px; align-self: flex-start; }

/* ---------- 該地行程 ---------- */
.it-rtours .it-cards { list-style: none; margin: 0; padding: 0; }
.it-rempty { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--it-radius); padding: 40px 24px; text-align: center; }
.it-rempty p { font-family: var(--serif); font-size: 20px; color: var(--c-text); margin: 0 0 20px; }
.it-rempty p:last-child { margin-bottom: 0; }

/* ---------- 景點單頁 ---------- */
.it-holy { padding: 28px 0 72px; }
.it-holy__ph { max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--it-radius); background: var(--c-band); }
.it-holy__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.it-holy__bd { max-width: 760px; margin: 36px auto 0; }
.it-holy__bd .it-card__region a { color: var(--c-muted); }
.it-holy__bd .it-card__region a:hover { color: var(--c-main); }
.it-holy__h { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.4; letter-spacing: .06em; color: var(--c-main); margin: 6px 0 26px; }
.it-holy__sec { margin-bottom: 28px; }
.it-holy__sec h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--c-main-dark); margin: 0 0 14px; padding: 0; border: 0; }
.it-holy__sec .it-prose { font-size: 17px; line-height: 2; color: var(--c-text); max-width: none; }
.it-holy__sec .it-prose p { margin: 0 0 1em; }
.it-holy__sec .it-prose > :last-child { margin-bottom: 0; }
.it-holy__imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.it-holy__imgs img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--it-radius-sm); }
.it-holy__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--c-line); }

/* ---------- 景點列表 ---------- */
.it-hlist { padding-bottom: 72px; }
.it-hlist > .wrap > .it-sec-h { margin-bottom: 22px; }
.it-hlist .it-rhead__h { margin: 0; }
.it-hjump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.it-hjump a { border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-main); border-radius: var(--it-radius-pill); padding: 4px 16px; font-size: 15px; line-height: 1.7; }
.it-hjump a:hover { background: var(--c-main); border-color: var(--c-main); color: #fff; }
.it-hgroup { margin-bottom: 56px; scroll-margin-top: calc(var(--hh, 76px) + 16px); }
.it-hgroup .it-sec-h { margin-bottom: 22px; }
.it-hgroup .it-sec-h h2 { font-size: 28px; }

/* ---------- 平板 ---------- */
@media (max-width: 1060px) {
	.it-hcards { grid-template-columns: repeat(2, 1fr); }
	.it-rhead.has-img .it-rhead__h { font-size: 42px; left: 32px; bottom: 24px; }
}

/* ---------- 手機 ---------- */
@media (max-width: 640px) {
	.it-region { padding-top: 14px; }
	.it-holy { padding: 14px 0 56px; }
	.it-rhead__ph { aspect-ratio: 4 / 3; }
	.it-rhead__h { font-size: 32px; }
	.it-rhead.has-img .it-rhead__h { font-size: 32px; left: 20px; bottom: 16px; }
	.it-rintro { margin-top: 24px; font-size: 16px; line-height: 1.9; }
	.it-region + .it-rholy { margin-top: 44px; }
	.it-hcards { grid-template-columns: 1fr; gap: 18px; }
	.it-holy__ph { aspect-ratio: 4 / 3; }
	.it-holy__bd { margin-top: 24px; }
	.it-holy__h { font-size: 28px; margin-bottom: 18px; }
	.it-holy__sec .it-prose { font-size: 16px; line-height: 1.9; }
	.it-holy__imgs { grid-template-columns: 1fr; }
	.it-holy__btns .it-btn { flex: 1 1 100%; }
	.it-rempty { padding: 30px 18px; }
	.it-rempty p { font-size: 18px; }
	.it-hgroup .it-sec-h h2 { font-size: 24px; }
	.it-hjump { margin-bottom: 32px; }
}
