@charset "UTF-8";
/* ==========================================================================
   hl-hub.css — 花蓮包棟民宿網 「找包棟」6 個著陸頁專用樣式
   --------------------------------------------------------------------------
   【掛載順序】main.css → hl-system.css → hl-town.css → 本檔
   （由 inc/hl_hub_page.php 透過 $pg['css'] 帶入）。
   本檔使用 hl-system.css 的 --hl-* 設計 token，並沿用 hl-town.css 的
   .hlt-lead（導言）、.hlt-check（確認清單）、.hlt-faq、.hlt-more-row、.hlt-note。

   【前綴】本檔所有類別一律 .hlh-（hub）。

   【頁首為什麼不用 images/inbanner2～8.png】
   原本的 banner 把標題文字做在圖裡，其中三張不能再用：
     inbanner2.png  圖上寫「為您推薦宜蘭當季熱門旅宿」（宜蘭素材殘留）
     inbanner5.png  圖上寫「30人以上」，與本站「20人以上大型包棟」的分類不符
     inbanner8.png  端午節檔期素材，且 main.css 從來沒有 .inbanner8 規則（原頁面其實沒有顯示）
   所以 6 頁一律改用站上既有、沒有文字的 images/ad_bg1～6.jpg（與首頁人數區塊同一組照片，
   每張約 30～50KB，原 banner 每張 1～2MB），標題用真文字疊在圖上。
   照片原始寬度只有 595px，放大後偏軟，所以加上一層深色漸層，讓它退到背景。

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

/* --------------------------------------------------------------------------
   1. 頁首：無文字照片＋深色漸層＋真文字 H1
   -------------------------------------------------------------------------- */
.hlh-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 300px;
	padding: 36px 24px;
	overflow: hidden;
	background-color: #123f49;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	text-align: center;
}
.hlh-hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(180deg, rgba(7, 46, 55, .50) 0%, rgba(7, 46, 55, .68) 100%);
}
.hlh-hero--popular  { background-image: url("../../images/ad_bg1.jpg"); }
.hlh-hero--small    { background-image: url("../../images/ad_bg2.jpg"); }
.hlh-hero--medium   { background-image: url("../../images/ad_bg3.jpg"); }
.hlh-hero--large    { background-image: url("../../images/ad_bg4.jpg"); }
.hlh-hero--discount { background-image: url("../../images/ad_bg5.jpg"); }
.hlh-hero--event    { background-image: url("../../images/ad_bg6.jpg"); }

.hlh-hero-in { position: relative; z-index: 1; max-width: 960px; }
.hlh-hero-eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 3px 16px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: var(--hl-radius-pill);
	color: #fff;
	font-size: var(--hl-text-sm);
	font-weight: 700;
	line-height: 1.8;
	letter-spacing: 3px;
}
.hlh-hero h1 {
	margin: 0;
	color: #fff;
	font-family: var(--hl-font-display);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 3px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

/* --------------------------------------------------------------------------
   2. 導言（沿用 .hlt-lead 的外觀；這一頁的 H1 在頁首，導言上方不再有標題）
   -------------------------------------------------------------------------- */
.hlh-intro { margin-top: 10px; }
.hlh-intro .hlt-lead { margin-top: 6px; }

/* --------------------------------------------------------------------------
   3. 建議鄉鎮磁磚
   -------------------------------------------------------------------------- */
/* 每頁固定 6 個鄉鎮＋1 個總覽：桌機 3 欄×2 列、手機 2 欄×3 列，總覽磁磚獨占最後一列，任何寬度都不會有落單的格子 */
.hlh-towns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.hlh-towns li { min-width: 0; margin: 0; padding: 0; list-style: none; }
.hlh-town {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	box-sizing: border-box;
	height: 100%;
	padding: 14px 40px 14px 16px;
	border: 1px solid var(--hl-rule);
	border-left: 4px solid var(--hl-brand);
	border-radius: var(--hl-radius-sm);
	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;
}
.hlh-town::after {
	content: "\203A";
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--hl-accent-strong);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}
.hlh-town b {
	color: var(--hl-brand-strong);
	font-family: var(--hl-font-display);
	font-size: var(--hl-text-md);
	font-weight: 700;
	line-height: var(--hl-leading-snug);
	letter-spacing: 1px;
}
.hlh-town span { color: var(--hl-muted); font-size: var(--hl-text-sm); line-height: 1.6; }
.hlh-town:hover {
	transform: translateY(-2px);
	border-left-color: var(--hl-accent);
	box-shadow: var(--hl-shadow-md);
	color: var(--hl-ink);
	text-decoration: none;
}
.hlh-town:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: 3px; }
.hlh-towns li.hlh-towns-all { grid-column: 1 / -1; }
.hlh-town--all { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-color: var(--hl-brand-strong); border-left-color: var(--hl-brand-strong); background: var(--hl-brand-strong); }
.hlh-town--all b, .hlh-town--all span, .hlh-town--all::after { color: var(--hl-on-brand); }
.hlh-town--all:hover { border-left-color: var(--hl-brand-strong); color: var(--hl-on-brand); }

/* --------------------------------------------------------------------------
   4. 集團廣告刊登區（showimg 輸出的是 bootstrap 浮動欄位，這裡改成 grid）
      標記：.hlh-adgrid > div#oki_pt_* > div.col-md-3.col-sm-4.col-xs-6 > a > img
   -------------------------------------------------------------------------- */
.hlh-ads[hidden] { display: none; }
.hlh-adgrid { display: flow-root; }
/* 廣告系統的刊登圖原始尺寸是 187×148，欄寬訂在 187px 上下，避免放大後變糊 */
.hlh-adgrid > div[id^="oki_pt_"] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(187px, 1fr));
	gap: 12px;
}
.hlh-adgrid div[class*="col-"] { float: none; width: auto; min-height: 0; margin: 0; padding: 0; }
.hlh-adgrid a {
	display: block;
	overflow: hidden;
	border: 1px solid var(--hl-rule);
	border-radius: var(--hl-radius-sm);
	background: var(--hl-surface);
	box-shadow: var(--hl-shadow-xs);
	transition: box-shadow var(--hl-dur) ease, border-color var(--hl-dur) ease;
}
.hlh-adgrid a:hover { border-color: var(--hl-brand); box-shadow: var(--hl-shadow-md); }
.hlh-adgrid a:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: 2px; }
/* aspect-ratio 先把位置留好：圖片是延遲載入，沒有預留高度的話載入時整頁會跳動 */
.hlh-adgrid img { display: block; width: 100%; height: auto; aspect-ratio: 187 / 148; object-fit: contain; background: var(--hl-paper-2); }

/* --------------------------------------------------------------------------
   5. 響應式
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) { .hlh-hero { min-height: 260px; } .hlh-hero h1 { font-size: 36px; } }
@media screen and (max-width: 970px)  { .hlh-hero { min-height: 230px; } .hlh-hero h1 { font-size: 32px; letter-spacing: 2px; } }
@media screen and (max-width: 768px)  { .hlh-hero { min-height: 200px; padding: 28px 18px; } .hlh-hero h1 { font-size: 27px; } }
@media screen and (max-width: 640px)  { .hlh-towns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 500px)  {
	.hlh-hero { min-height: 170px; padding: 24px 16px; }
	.hlh-hero h1 { font-size: 23px; letter-spacing: 1px; }
	.hlh-hero-eyebrow { margin-bottom: 8px; font-size: var(--hl-text-xs); letter-spacing: 2px; }
	.hlh-towns { gap: 8px; }
	.hlh-town { padding: 12px 28px 12px 12px; }
	.hlh-town::after { right: 10px; font-size: 18px; }
	.hlh-town b { font-size: var(--hl-text-base); letter-spacing: 0; }
	.hlh-town span { font-size: var(--hl-text-xs); }
	.hlh-adgrid > div[id^="oki_pt_"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.hlh-town, .hlh-adgrid a { transition: none; }
	.hlh-town:hover { transform: none; }
}
