@charset "UTF-8";
/* ==========================================================================
   hl-town.css — 花蓮包棟民宿網 鄉鎮頁與鄉鎮總覽頁專用樣式
   --------------------------------------------------------------------------
   【掛載順序】main.css → hl-system.css → 本檔（由 inc/hl_town_page.php 與 township.php
   透過 $pg['css'] 帶入）。本檔使用 hl-system.css 定義的 --hl-* 設計 token。

   【前綴】本檔所有類別一律 .hlt-（town），不與 hl-system.css 的 .hl- 元件、
   hl-guide.css 的 .hlg- 混用；唯一例外是 .hl-town-hero（掛在既有 .inbanner 上的修飾類別）。

   【回退】移除頁面上的 <link ... hl-town.css> 即可；main.css 不需任何改動。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 頁首 banner：沿用既有 images/inbanner9.png，但高度由 571px 收到 300px，
      讓 H1 與導言在第一屏就看得到（宜蘭站 2026-09-07 依站方回饋同樣把 hero 收矮）。
      圖上的標題文字位在畫面中上段，background-position 往上靠可保留完整文字。
   -------------------------------------------------------------------------- */
.inbanner.hl-town-hero { min-height: 300px; background-position: center 36%; }
@media screen and (max-width: 1200px) { .inbanner.hl-town-hero { min-height: 260px; } }
@media screen and (max-width: 970px)  { .inbanner.hl-town-hero { min-height: 220px; } }
@media screen and (max-width: 768px)  { .inbanner.hl-town-hero { min-height: 180px; } }
@media screen and (max-width: 500px)  { .inbanner.hl-town-hero { min-height: 140px; } }

/* --------------------------------------------------------------------------
   2. 導言：區域小標 + H1 + 導言段
   -------------------------------------------------------------------------- */
.hlt-intro { margin: 6px 0 var(--hl-space-md); }
.hlt-intro .hl-eyebrow { display: block; margin: 10px 0 4px; }
.hlt-intro h1 { margin-top: 0; font-family: var(--hl-font-display); letter-spacing: 2px; }
.hlt-intro .hlt-lead {
	margin: 12px 0 0;
	padding: 14px 18px;
	border-left: 4px solid var(--hl-accent);
	border-radius: 0 var(--hl-radius-sm) var(--hl-radius-sm) 0;
	background: var(--hl-accent-soft);
	color: var(--hl-ink);
	font-size: var(--hl-text-base);
	line-height: var(--hl-leading-loose);
	text-align: justify;
}

/* --------------------------------------------------------------------------
   3. 集團民宿名單（遠端片段）
      片段標記固定為 .game-box > div.col-md-2.col-sm-3.col-xs-6 > a.hvr-underline-from-center
      bootstrap 的欄位是 float 且片段內沒有 clearfix，會把後面的標題擠到右側折行
      （宜蘭站 2026-09-07 v2.3 發生過），這裡直接改成 grid，並以 flow-root 收邊。
   -------------------------------------------------------------------------- */
.hlt-listbox { display: flow-root; }
.hlt-listbox .game-box {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
}
.hlt-listbox .game-box > div {
	float: none;
	width: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
}
.hlt-listbox .game-box a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 6px 10px;
	border: 1px solid var(--hl-rule);
	border-radius: var(--hl-radius-sm);
	background: var(--hl-surface);
	color: var(--hl-ink);
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: border-color var(--hl-dur) ease, color var(--hl-dur) ease, box-shadow var(--hl-dur) ease;
}
.hlt-listbox .game-box a:hover {
	border-color: var(--hl-brand);
	color: var(--hl-brand-strong);
	box-shadow: var(--hl-shadow-xs);
}
.hlt-listbox .game-box a:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: 2px; }
.hlt-listbox img { flex: 0 0 auto; max-width: 28px; height: auto; }
.hlt-note { margin: 0 0 14px; color: var(--hl-muted); font-size: var(--hl-text-sm); line-height: 1.75; text-align: left; }

/* --------------------------------------------------------------------------
   4. 訂房確認清單（main.css 把 ul/li 的項目符號清掉了，這裡自備勾選圖示）
   -------------------------------------------------------------------------- */
.hlt-check { margin: 0; padding: 0; list-style: none; }
.hlt-check li {
	position: relative;
	margin: 0 0 8px;
	padding: 0 0 0 30px;
	color: var(--hl-ink-2);
	font-size: var(--hl-text-base);
	line-height: var(--hl-leading-normal);
	list-style: none;
}
.hlt-check li:last-child { margin-bottom: 0; }
.hlt-check li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .42em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--hl-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075463' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.hlt-check li.hlt-check-local { color: var(--hl-ink); font-weight: 700; }
.hlt-check li.hlt-check-local::before { background-color: var(--hl-accent-soft); }

/* --------------------------------------------------------------------------
   5. FAQ 在頁框內的微調（頁框的 p 預設為兩端對齊，問答內改回靠左較好讀）
   -------------------------------------------------------------------------- */
.hlt-faq .hl-faq-item > p { margin: 0; text-align: left; }

/* --------------------------------------------------------------------------
   6. 「接著看」：依人數、鄰近鄉鎮、延伸瀏覽
   -------------------------------------------------------------------------- */
.hlt-more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.hlt-more-row:last-child { margin-bottom: 0; }
.hlt-more-label {
	flex: 0 0 auto;
	min-width: 7em;
	color: var(--hl-muted);
	font-size: var(--hl-text-sm);
	font-weight: 700;
	line-height: 1.6;
}
.hlt-ext::after { content: " ↗"; font-size: .85em; }

/* --------------------------------------------------------------------------
   7. 13 鄉鎮切換列（auto-fill 網格；不照抄宜蘭只算過 12 站的車站條）
   -------------------------------------------------------------------------- */
.hlt-switch {
	margin: var(--hl-space-lg) 0 var(--hl-space-sm);
	padding: 22px 22px 20px;
	border: 1px solid var(--hl-rule);
	border-radius: var(--hl-radius-lg);
	background: linear-gradient(135deg, var(--hl-paper-2), var(--hl-surface));
}
.hlt-switch-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 14px; }
.hlt-switch-t {
	margin: 0;
	color: var(--hl-ink);
	font-family: var(--hl-font-display);
	font-size: var(--hl-text-md);
	font-weight: 700;
	line-height: var(--hl-leading-snug);
	letter-spacing: 1px;
}
.hlt-switch-all { font-size: var(--hl-text-sm); font-weight: 700; text-decoration: none; }
.hlt-switch-all:hover { text-decoration: underline; }
.hlt-switch .hl-town-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.hlt-switch .hl-town-grid a[aria-current="page"] {
	background: var(--hl-brand-strong);
	border-color: var(--hl-brand-strong);
	color: var(--hl-on-brand);
	box-shadow: none;
	cursor: default;
	transform: none;
}

/* --------------------------------------------------------------------------
   8. 鄉鎮總覽頁（township.php）
   -------------------------------------------------------------------------- */
.hlt-region { margin: var(--hl-space-lg) 0 0; }
.hlt-region-head { margin: 0 0 14px; }
.hlt-region-head h2 { margin-bottom: 6px; }
.hlt-region-head p { margin: 0; color: var(--hl-ink-2); text-align: left; }
.hlt-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: var(--hl-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}
.hlt-cards li { min-width: 0; margin: 0; padding: 0; list-style: none; }
.hlt-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	padding: 18px 18px 16px;
	border: 1px solid var(--hl-rule);
	border-top: 4px solid var(--hl-brand);
	border-radius: var(--hl-radius);
	background: var(--hl-surface);
	color: var(--hl-ink);
	text-decoration: none;
	box-shadow: var(--hl-shadow-xs);
	transition: transform var(--hl-dur) ease, box-shadow var(--hl-dur) ease, border-color var(--hl-dur) ease;
}
.hlt-card:hover { transform: translateY(-3px); border-top-color: var(--hl-accent); box-shadow: var(--hl-shadow-md); color: var(--hl-ink); text-decoration: none; }
.hlt-card:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: 3px; }
.hlt-card-name {
	display: block;
	margin: 0 0 2px;
	color: var(--hl-ink);
	font-family: var(--hl-font-display);
	font-size: var(--hl-text-lg);
	font-weight: 700;
	line-height: var(--hl-leading-snug);
	letter-spacing: 1px;
}
.hlt-card-tag { display: block; margin: 0 0 12px; color: var(--hl-brand-strong); font-size: var(--hl-text-sm); font-weight: 700; line-height: 1.6; }
.hlt-card-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.hlt-card-keys span {
	display: inline-block;
	padding: 2px 10px;
	border-radius: var(--hl-radius-pill);
	background: var(--hl-paper-2);
	color: var(--hl-ink-2);
	font-size: var(--hl-text-xs);
	line-height: 1.8;
}
.hlt-card-go { margin-top: auto; color: var(--hl-accent-strong); font-size: var(--hl-text-sm); font-weight: 700; }
.hlt-card:hover .hlt-card-go { text-decoration: underline; }

/* --------------------------------------------------------------------------
   9. 響應式
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.hlt-intro .hlt-lead { padding: 12px 14px; font-size: 15px; }
	.hlt-listbox .game-box { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
	.hlt-switch { padding: 18px 14px 16px; }
	.hlt-switch .hl-town-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
	.hlt-switch .hl-town-grid a { min-height: 40px; padding: 0 8px; font-size: 14px; }
	.hlt-more-label { min-width: 100%; }
	.hlt-cards { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.hlt-card, .hlt-listbox .game-box a { transition: none; }
	.hlt-card:hover { transform: none; }
}
