/* =========================================
   羅米親子玩樂地圖 - 全站核心樣式表 (Modern App Style)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Chiron+GoRound+TC:wght@200..900&family=Chiron+Hei+HK:ital,wght@0,200..900;1,200..900&family=Dela+Gothic+One&family=Kosugi+Maru&family=Mochiy+Pop+P+One&display=swap');
:root {
  /* 主題色：湖水綠 (景點/通用) */
  --primary: #14B8A6;
  --primary-hover: #0D9488;
  --primary-light: #E6FFFA;
  --primary-gradient: linear-gradient(135deg, #CCFBF1 0%, #F0FDF4 100%);
  
  /* 主題色：珊瑚橘 (餐廳/熱門標示) */
  --secondary: #F97316;
  --secondary-hover: #EA580C;
  --secondary-light: #FFF7ED;
  --secondary-gradient: linear-gradient(135deg, #FFEDD5 0%, #FFF7ED 100%);

  /* 主題色：薰衣草紫 (活動專屬) */
  --tertiary: #6366F1;
  --tertiary-hover: #4F46E5;
  --tertiary-light: #EEF2FF;
  --tertiary-gradient: linear-gradient(135deg, #E0E7FF 0%, #EEF2FF 100%);

  /* 文字與背景色 */
  --text-dark: #1E293B;
  --text-main: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg-app: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 65px;  /* 數值建議設定為選單的高度（約 65-70px） */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  background-image: url('/images/background.jpg');
  /* 防止圖片重複平鋪 */
  background-repeat: no-repeat;
  /* 圖片縮放以覆蓋整個背景區域，這會讓圖片可能部分被裁切以保持比例 */
  background-size: cover;
  /* 圖片居中 */
  background-position: center;
  /* 圖片固定在視窗中，不隨頁面滾動 */
  background-attachment: fixed;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.page-pad { padding-bottom: 90px; } 

/* =========================================
   1. 共用頂部導航 (Header)
   ========================================= */
.site-header {
  position: fixed;    /* 從 sticky 改為 fixed，確保絕對置頂 */
  top: 0;
  left: 0;
  width: 100%;       /* fixed 定位需要指定寬度 */
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
/* Header: 漢堡(左) ─ Logo(置中) ─ 空白佔位(右) */
.header-inner {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 10px 16px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
  font-family: 'Chiron GoRound TC', sans-serif;
}
.brand-title { white-space: nowrap; }
.header-spacer { /* 右側佔位，保持 logo 視覺置中 */ }

/* ── 漢堡按鈕 ─────────────────────────────────── */
.ham-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.15s;
  width: 38px;
  height: 38px;
}
.ham-btn:hover { background: var(--border-light); }
.ham-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── 遮罩 ─────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
body.drawer-open { overflow: hidden; }

/* ── 側邊 Drawer ──────────────────────────────── */
.site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 88vw;
  height: 100dvh;          /* dvh 在行動端考慮到工具列高度 */
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
}
.site-drawer.open { transform: translateX(0); }

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.drawer-brand { font-size: 14px; font-weight: 800; color: var(--primary); }
.drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
  line-height: 1;
}
.drawer-close:hover { background: var(--border-light); color: var(--text-dark); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 2px;
  flex-shrink: 0;
}
.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.drawer-nav-link:hover { background: var(--border-light); }
.drawer-nav-link.current { background: var(--primary-light); color: var(--primary-hover); }

.drawer-sep { height: 1px; background: var(--border-color); margin: 0 12px; flex-shrink: 0; }

.drawer-filter-slot { padding: 14px 16px 32px; overflow-y: auto; }
.drawer-filter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* 舊的 top-links（header.js 重寫後不再注入，保留相容） */
.top-links { display: flex; gap: 4px; flex-shrink: 0; }
.top-link { padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 800; color: var(--text-muted); white-space: nowrap; }
.top-link:hover, .top-link.active { color: var(--primary); background: var(--primary-light); }

/* 手機版：縮小 header 字級與間距，讓品牌名不會擠成兩行 */
@media (max-width: 600px) {
  .header-inner { padding: 10px 14px; gap: 6px; }
  .brand { font-size: 20px; gap: 6px; }
  .top-link { padding: 6px 9px; font-size: 13px; }
  .top-links { gap: 2px; }
}

/* =========================================
   2. 頂部視覺看板 (Hero Sections)
   ========================================= */
.hero-block {
  padding: 40px 24px 60px;
  text-align: center;
  border-radius: 0 0 32px 32px;
  margin-bottom: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  /* 白底為主，顏色只留極淡的提示，跟縣市首頁風格一致 */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.72) 100%);
}
.hero-block.green  { background: linear-gradient(135deg, rgba(255,255,255,0.82) 0%, rgba(20,184,166,0.08) 100%); }
.hero-block.orange { background: linear-gradient(135deg, rgba(255,255,255,0.82) 0%, rgba(249,115,22,0.08) 100%); }
.hero-block.purple { background: linear-gradient(135deg, rgba(255,255,255,0.82) 0%, rgba(99,102,241,0.08) 100%); }

.hero-block h1 { font-size: 28px; font-weight: 900; margin: 0 0 12px 0; color: var(--text-dark); }
.hero-block.green h1 { color: #0F766E; }
.hero-block.orange h1 { color: #C2410C; }
.hero-block.purple h1 { color: #4338CA; } /* 紫色版標題 */

.hero-block p { font-size: 15px; color: var(--text-muted); margin: 0; line-height: 1.6; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb { font-size: 13px; font-weight: 700; margin-bottom: 16px; color: var(--text-light); }
.hero-block.green .breadcrumb { color: #0F766E; }
.hero-block.orange .breadcrumb { color: #C2410C; }
.hero-block.purple .breadcrumb { color: #4338CA; } /* 紫色版麵包屑 */

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-action-btn {
    margin-left: 0 !important;
  }
}

.city-header {
  /* 使用白底半透明，並微微透出一點湖水綠的漸層 */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(20, 184, 166, 0.1) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  padding: 30px 20px; 
  border-radius: 24px; 
  margin-bottom: 30px; 
  margin-top: 20px;
}
.city-header h1 { margin: 0; font-size: 28px; color: var(--text-dark); display: flex; align-items: center; gap: 10px;}

/* =========================================
   3. 全台城市選擇與分區按鈕 (Home & Index)
   ========================================= */
.all-cities-container { margin-top: -8px; padding: 0 20px 40px; }

/* ── 全台快速篩選外框 ──────────────────────
   調透明度：修改 background 最後一個數字（0~1）
   例如 0.55 = 55% 白色；數字越大越不透明
   調模糊感：修改 backdrop-filter: blur(Npx)
   ─────────────────────────────────────── */
.filter-section-group {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  padding: 20px 18px 16px;
  margin-bottom: 16px;
}
.filter-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* ── 篩選連結按鈕 ───────────────────────────
   調透明度：修改 background 最後一個數字
   ─────────────────────────────────────── */
.filter-feature-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s, background .15s;
}
.filter-feature-banner:last-of-type { margin-bottom: 0; }
.filter-feature-banner:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.filter-feature-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-feature-icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}
.filter-feature-icon--spot { background: rgba(204, 251, 241, 0.6); }
.filter-feature-icon--rest { background: rgba(254, 226, 226, 0.6); }
.filter-feature-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}
.filter-feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.5;
}
.filter-feature-arrow {
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.7;
}
.region-group {
  /* 將原本的純白底色改成 65% 透明度的白色 */
  background: rgba(255, 255, 255, 0.05); 
  /* 加上毛玻璃模糊效果，讓背後的風景暈開，確保文字好讀 */
  backdrop-filter: blur(1px); 
  -webkit-backdrop-filter: blur(1px); /* 支援 Safari */
  border-radius: 20px; 
  padding: 24px 20px;
  margin-bottom: 20px; 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  /* 邊框也改成帶有一點透明的白色，增加玻璃邊緣的反光感 */
  border: 1px solid rgba(255, 255, 255, 0.8); 
  scroll-margin-top: 80px;
}
.region-title {
  font-size: 18px; color: var(--primary-hover); font-weight: 900; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--border-light); padding-bottom: 10px;
}
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 600px) { .city-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .city-grid { grid-template-columns: repeat(6, 1fr); } }

.city-btn {
  /* 按鈕改為 50% 透明度 */
  background: rgba(255, 255, 255, 0.5); 
  border: 1px solid rgba(255, 255, 255, 0.6); 
  color: var(--text-main);
  text-align: center; 
  padding: 12px 4px; 
  border-radius: 12px; 
  font-weight: 800; 
  font-size: 15px; 
  transition: all 0.2s;
}
/* 預設為湖水綠 Hover */
.city-btn:hover {
  background: var(--primary-light); 
  border-color: var(--primary); 
  color: var(--primary-hover); 
  transform: translateY(-2px); 
}
.city-btn.hot {
  /* 針對已建置的熱門城市，微微透出一點暖橘色 */
  background: rgba(255, 247, 237, 0.8); 
  border-color: #FED7AA; 
  color: #C2410C;
}
.city-btn.hot:hover {
  background: #FFEDD5; 
  border-color: var(--secondary);
}

.anchor-nav {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: -30px; margin-bottom: 30px; position: relative; z-index: 10;
}
.anchor-btn {
  /* 跳轉按鈕改為 70% 透明度 */
  background: rgba(255, 255, 255, 0.4); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8); 
  padding: 10px 18px; 
  border-radius: 20px;
  font-size: 14px; 
  font-weight: 800; 
  color: var(--text-muted); 
  box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
  transition: all 0.2s;
}
.anchor-btn:hover {
  background: var(--primary); 
  color: white; 
  border-color: var(--primary);
}

/* --- 🌟 紫色活動主題作用域 (Theme Purple) --- */
.theme-purple .region-title { color: #4338CA; }
.theme-purple .anchor-btn:hover { background: var(--tertiary); color: white; border-color: var(--tertiary); }
.theme-purple .city-btn:hover { background: var(--tertiary-light); border-color: var(--tertiary); color: var(--tertiary-hover); }

/* =========================================
   4. 列表頁現代化卡片 (List Pages)
   ========================================= */
.modern-cards-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 20px;}
@media (min-width: 768px) { .modern-cards-grid { grid-template-columns: repeat(2, 1fr); } }

.modern-card {
  /* 將白底改為 65% 透明度 + 毛玻璃 */
  background: rgba(255, 255, 255, 0.65); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px; 
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex; flex-direction: column; transition: all 0.2s ease;
}
.modern-card:hover {
  transform: translateY(-4px); 
  box-shadow: 0 12px 25px rgba(20, 184, 166, 0.1); 
  border-color: var(--primary); 
  /* 滑鼠游標移過去時，卡片稍微變白一點，增加互動感 */
  background: rgba(255, 255, 255, 0.85);
}
.modern-card .card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.modern-card .card-title { font-size: 20px; font-weight: 800; color: var(--text-dark); margin: 0; line-height: 1.3; }
.modern-card .district-tag {
  background: var(--secondary-light); color: #C2410C; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; flex-shrink: 0;
}
.modern-card .card-desc {
  font-size: 15px; color: var(--text-muted); margin: 0 0 20px 0;
}

.info-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex-grow: 1; }
.info-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.info-icon { font-size: 16px; min-width: 20px; text-align: center; }
.info-text { color: var(--text-main); font-weight: 600; }
.info-text span { color: var(--text-light); font-weight: normal; font-size: 13px; margin-right: 6px; }

.action-btn {
  display: block; width: 100%; background: #F0FDF4; color: #0F766E; padding: 14px; border-radius: 12px; 
  text-align: center; font-size: 15px; font-weight: 800; transition: 0.2s;
}
.action-btn:hover { background: var(--primary); color: white; }

/* =========================================
   5. 詳細資訊頁 (Detail Pages - Tabelog 風格)
   ========================================= */
.tabelog-wrap {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px;
  padding: 24px 20px; margin-top: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.tabelog-title {
  font-size: 18px; font-weight: 900; color: var(--primary); margin: 0 0 16px 0;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-color);
}
.tabelog-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tabelog-table th, .tabelog-table td {
  border-bottom: 1px solid var(--border-color); padding: 20px 0; vertical-align: top; font-size: 14px;
}
.tabelog-table tr:last-child th, .tabelog-table tr:last-child td { border-bottom: none; padding-bottom: 0; }
.tabelog-table th { width: 25%; min-width: 80px; color: var(--text-dark); font-weight: 800; text-align: left; }
.tabelog-table td { width: 75%; color: var(--text-main); padding-left: 16px; }
.tabelog-table ul { margin: 0; padding-left: 1.2em; }
.tabelog-table p { margin: 0 0 6px 0; }
.tabelog-table p:last-child { margin-bottom: 0; }
.friendly-card{
  border:1px solid #cdeee9;
  background:linear-gradient(0deg,#f6fffd,#f0fdfa);
  border-left:4px solid var(--primary);
  border-radius:12px;
  padding:12px 14px;
  margin:10px 0 4px;
}
.fc-title{
  font-size:14px;
  font-weight:700;
  color:#0f766e;
  margin-bottom:8px;
}
.fc-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin:5px 0;
}
.fc-ico{
  font-size:13px;
  font-weight:600;
  color:var(--text-muted);
  min-width:58px;
}
.fc-pill{
  background:#fff;
  border:1px solid #99e2da;
  color:#0f766e;
  border-radius:8px;
  padding:3px 10px;
  font-size:13px;
}

.bold-days { font-weight: 800; color: var(--text-dark); margin-bottom: 4px; display: block; }
.btn-primary-outline {
  display: inline-flex; align-items: center; justify-content: center; 
  background: rgba(255, 255, 255, 0.8); /* 半透明白底 */
  color: var(--primary); /* 文字維持主題色 */
  border: 2px solid var(--primary); /* 加上2px的主題色邊框 */
  padding: 10px 16px; border-radius: 12px; font-weight: 800; 
  margin-top: 10px; width: 100%; max-width: 280px; font-size: 14px; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary-outline:hover {
  background: var(--primary-light); 
  transform: translateY(-2px);
}

.sticky-bottom-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; background: var(--bg-card);
  border-top: 1px solid var(--border-color); display: flex; justify-content: center; z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05); padding-bottom: env(safe-area-inset-bottom);
}

/* 當頁面有 sticky-bottom-bar（詳細頁），在 body 底部留空間，
   讓共用頁尾不會被固定工具列蓋住 */
body:has(.sticky-bottom-bar) { padding-bottom: 98px; }
.sticky-bottom-inner { width: min(1100px, 100%); display: flex; align-items: center; padding: 12px 20px; gap: 16px; }
.action-back {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; font-weight: 700;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,250,250,0.92) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  min-width: 58px;
  min-height: 56px;
  padding: 8px 6px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.action-back svg {
  width: 22px; height: 22px; margin-bottom: 4px; fill: var(--primary);
}
.action-back:hover,
.action-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  border-color: rgba(16, 185, 129, 0.18);
}
.action-back:active,
.action-share:active {
  transform: translateY(0);
}
.action-share {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; font-weight: 700;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(250,250,250,0.92) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  min-width: 58px;
  min-height: 56px;
  padding: 8px 6px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.action-share svg { width: 22px; height: 22px; margin-bottom: 4px; fill: var(--primary); }
.action-tool-label {
  line-height: 1;
  white-space: nowrap;
}
.action-main-btn {
  flex: 1; 
  /* 用微漸層取代死板的單一橘色 */
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); 
  color: white; font-size: 16px; font-weight: 900;
  text-align: center; padding: 14px; 
  border-radius: 16px; /* 圓角加大一點，看起來更現代 */
  display: flex; justify-content: center; align-items: center; border: none; cursor: pointer;
  /* 加上柔和的立體陰影 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  text-decoration: none;
}
.action-main-btn:hover {
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tabelog-table td a.info-inline-link,
.spot-info-table td a.info-inline-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tabelog-table td a.info-inline-link:hover,
.spot-info-table td a.info-inline-link:hover {
  color: var(--primary-hover);
}

.gmaps-cta {
  justify-content: flex-start;
  gap: 12px;
  min-height: 56px;
  padding: 11px 16px;
  text-align: left;
  background: linear-gradient(135deg, #0f766e 0%, #0ea5a4 100%);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.28);
}
.gmaps-cta:hover {
  box-shadow: 0 9px 24px rgba(15, 118, 110, 0.34);
}
.gmaps-cta-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.gmaps-cta-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.14));
}
.gmaps-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.gmaps-cta-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.gmaps-cta-arrow {
  font-size: 14px;
  opacity: 0.9;
}
.gmaps-cta-subtitle {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.84;
}

@media (max-width: 640px) {
  body:has(.sticky-bottom-bar) { padding-bottom: 104px; }
  .sticky-bottom-inner { gap: 12px; padding: 10px 14px; }
  .action-back,
  .action-share {
    min-width: 54px;
    min-height: 54px;
    font-size: 11px;
    border-radius: 14px;
    padding: 7px 4px;
  }
  .gmaps-cta { padding: 10px 14px; gap: 10px; min-height: 54px; }
  .gmaps-cta-icon { width: 28px; height: 28px; }
  .gmaps-cta-icon svg { width: 19px; height: 19px; }
  .gmaps-cta-title { font-size: 15px; }
  .gmaps-cta-subtitle { font-size: 10px; }
}

/* =========================================
   6. 其他共用元件 (Nav Pills, Mini Cards)
   ========================================= */
.scroll-nav { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; margin-top: 20px; scrollbar-width: none; }
.scroll-nav::-webkit-scrollbar { display: none; }
.nav-pill {
  /* 65% 透明白底 + 8px 模糊 */
  background: rgba(255, 255, 255, 0.65); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px 24px; 
  border-radius: 16px; 
  font-weight: 800;
  color: var(--text-muted); 
  white-space: nowrap; 
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
  display: flex; 
  align-items: center; 
  gap: 8px;
  transition: all 0.2s;
}
.nav-pill:hover, .nav-pill.active {
  background: var(--primary); 
  color: white; 
  border-color: var(--primary);
}

.preview-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .preview-grid { grid-template-columns: 1fr 1fr; } }
.mini-card {
  display: flex; 
  gap: 16px; 
  /* 65% 透明白底 + 12px 模糊 */
  background: rgba(255, 255, 255, 0.65); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px; 
  border-radius: 16px; 
  border: 1px solid rgba(255, 255, 255, 0.8); 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  align-items: center;
  transition: transform 0.2s, background 0.2s;
}
.mini-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85); /* 滑鼠游標移過去時稍微變白一點 */
}
.mini-card-icon {
  width: 50px; height: 50px; background: #F0FDF4; color: #22C55E;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink:0;
}
.mini-card-info { min-width: 0; flex: 1; }
.mini-card-info h3 { margin: 0 0 4px 0; font-size: 16px; color: var(--text-main); }
.mini-card-info p {
  margin: 0; font-size: 13px; color: var(--text-light);
  /* 首頁預覽卡片：最多 2 行，保持版面整齊 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer - 舊版共用頁尾小字（保留相容） */
.footer-note { text-align: center; color: var(--text-light); padding-top: 40px; font-size: 13px; padding-bottom: 20px; }

/* =========================================
   共用頁尾 (Site Footer - 由 /assets/footer.js 注入)
   行動優先：單欄、極簡、只保留必要連結
   ========================================= */
.site-footer-main {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 20px 16px 24px;
}
.site-footer-main .footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.site-footer-main .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.site-footer-main .footer-legal a {
  color: var(--text-main);
  transition: color 0.2s;
}
.site-footer-main .footer-legal a:hover { color: var(--primary-hover); }
.site-footer-main .footer-sep { color: var(--text-light); }
.site-footer-main .footer-mail {
  font-size: 13px;
}
.site-footer-main .footer-mail a {
  color: var(--text-muted);
  font-weight: 600;
}
.site-footer-main .footer-mail a:hover { color: var(--primary-hover); }
.site-footer-main .footer-copy {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
}

/* Mobile RWD */
@media (max-width: 600px) {
  .tabelog-wrap { padding: 20px 16px; border-radius: 0; border-left: none; border-right: none; }
  .tabelog-table th { width: 30%; }
  .tabelog-table td { width: 70%; padding-left: 12px; }
}

/* =========================================
   7. 城市儀表板專屬：不滾動的分類小按鈕
   ========================================= */
.wrap-nav { 
  display: flex; 
  flex-wrap: wrap; /* 允許自動換行，取代原本的左右滑動 */
  gap: 10px; 
  margin-top: 16px; 
}
.mini-pill {
  background: rgba(255, 255, 255, 0.65); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px; /* 縮小按鈕尺寸，比 nav-pill 更精簡 */
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.mini-pill:hover,
.mini-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}
/* ══════════════════════════════════════════
   Homepage Filter Widget (.hw-*)
   ══════════════════════════════════════════ */
.hw-widget {
  background: rgba(255, 255, 255, 0.6);   /* 外框透明度：0~1，數字越大越不透明 */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  padding: 18px 16px 14px;
  margin-bottom: 16px;
}

/* 景點 / 餐廳 分頁標籤 */
.hw-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.hw-tab {
  flex: 1;
  padding: 9px 0;
  border: 1.5px solid rgba(20,184,166,0.25);
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.hw-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(20,184,166,0.22);
}

/* 篩選面板 */
.hw-panel { display: block; }
.hw-panel.hidden { display: none; }

/* 每一行篩選 */
.hw-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.hw-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.hw-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* 類型 / 設施 / 空間 / 費用：等寬兩欄 grid
   .hw-tag-btn = 首頁，.tag-btn = 全台篩選頁 */
.hw-btns:has(.hw-tag-btn),
.hw-btns:has(.tag-btn) {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* 篩選按鈕 */
.hw-city-btn,
.hw-tag-btn {
  padding: 5px 11px;
  border: 1.5px solid rgba(20,184,166,0.2);
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.hw-city-btn.active,
.hw-tag-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(20,184,166,0.2);
}

/* 送出按鈕 */
.hw-submit-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.hw-submit-btn {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20,184,166,0.28);
  transition: all 0.18s;
  letter-spacing: 0.02em;
}
.hw-submit-btn:hover {
  background: var(--primary-dark, #0d9488);
  box-shadow: 0 6px 18px rgba(20,184,166,0.35);
  transform: translateY(-1px);
}

/* Drawer 內的 hw-widget：移除玻璃卡片外框 */
.site-drawer .hw-widget {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0 2px 4px;
  margin-bottom: 0;
  border-radius: 0;
}
.site-drawer .hw-tab {
  background: rgba(20,184,166,0.06);
  border-color: rgba(20,184,166,0.2);
}
.site-drawer .hw-tab.active {
  background: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
}
.site-drawer .hw-city-btn,
.site-drawer .hw-tag-btn {
  background: rgba(20,184,166,0.06);
}
.site-drawer .hw-city-btn.active,
.site-drawer .hw-tag-btn.active {
  background: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
  box-shadow: 0 2px 8px rgba(13,148,136,0.35);
}
.site-drawer .hw-widget .city-btn,
.site-drawer .hw-widget .tag-btn {
  padding: 5px 11px;
  border: 1.5px solid rgba(20,184,166,0.2);
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.site-drawer .hw-widget .city-btn:hover,
.site-drawer .hw-widget .tag-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.site-drawer .hw-widget .city-btn.active,
.site-drawer .hw-widget .tag-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(20,184,166,0.2);
}
.site-drawer .hw-widget .dist-btn,
.site-drawer .hw-widget .f-btn {
  padding: 5px 11px;
  border: 1.5px solid rgba(20,184,166,0.2);
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.site-drawer .hw-widget .dist-btn:hover,
.site-drawer .hw-widget .f-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.site-drawer .hw-widget .dist-btn.active,
.site-drawer .hw-widget .f-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(20,184,166,0.2);
}
.site-drawer .hw-widget .tag-btn.reset,
.site-drawer .hw-widget .tag-btn#reset-btn {
  border-color: transparent;
  background: var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 0;
}
.site-drawer .hw-widget .tag-btn.reset:hover,
.site-drawer .hw-widget .tag-btn#reset-btn:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}
.site-drawer .hw-widget .reset-btn,
.site-drawer .hw-widget #filter-reset {
  border-color: transparent;
  background: var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
}
.site-drawer .hw-widget .reset-btn:hover,
.site-drawer .hw-widget #filter-reset:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}
.site-drawer .hw-widget .filter-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 10px;
}
.site-drawer .hw-widget .filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  width: auto;
  min-width: 0;
  flex-shrink: 0;
  padding-top: 0;
}
.site-drawer .hw-widget .hw-row-location .hw-btns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.site-drawer .hw-widget .hw-btns:has(.dist-btn),
.site-drawer .hw-widget .hw-btns:has(.f-btn),
.site-drawer .hw-widget .hw-btns:has(.tag-btn) {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.site-drawer .hw-widget .hw-btns:has(#filter-reset) {
  display: block;
}
.site-drawer .hw-widget #filter-reset {
  width: 100%;
  padding: 10px 0;
  border-radius: 12px;
  margin-top: 4px;
}
.site-drawer .hw-submit-btn {
  width: 100%;
  text-align: center;
}

/* 首頁 篩選 CTA 按鈕 */
.hw-open-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 36px 16px 14px;
  padding: 13px 0;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20,184,166,0.28);
  letter-spacing: 0.03em;
  transition: all 0.18s;
}
.hw-open-btn:hover {
  background: var(--primary-dark, #0d9488);
  box-shadow: 0 6px 20px rgba(20,184,166,0.35);
  transform: translateY(-1px);
}

/* 全台/縣市頁的城市/地區按鈕都改成 4 欄 */
.site-drawer .hw-widget .hw-btns:has(.city-btn) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* 清除篩選按鈕獨佔一整行 */
.hw-btns #reset-btn {
  grid-column: 1 / -1;
}

/* ══════════════════════════════════════════
   Drawer Filter Accordion (.filter-row.collapsible)
   ══════════════════════════════════════════ */
.filter-row.collapsible {
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 0;
  margin-bottom: 0;
}
.filter-row.collapsible:last-child {
  border-bottom: none;
}

/* 標題列：label 左 + 收放符號右 */
.filter-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}
.filter-row-toggle {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  flex-shrink: 0;
}
.filter-row-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 0 10px;
}
.filter-row.collapsed .filter-row-btns {
  display: none;
}

/* =========================================
   城市首頁入口卡 (entry-grid)
   ========================================= */
.entry-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.entry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: box-shadow 0.15s;
}
.entry-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.entry-att { background: #F0FDF4; border-color: #BBF7D0; }
.entry-res { background: #FFF7ED; border-color: #FED7AA; }
.entry-evt { background: #EEF2FF; border-color: #C7D2FE; }
.entry-map { background: linear-gradient(135deg, #F0FDF4 0%, #EEF2FF 100%); border-color: #A5B4FC; }
.entry-icon { font-size: 32px; flex-shrink: 0; }
.entry-body { flex: 1; }
.entry-body h2 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin: 0 0 4px; }
.entry-body p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.entry-arrow { font-size: 22px; color: var(--text-muted); flex-shrink: 0; }

/* =========================================
   Homepage SEO / Detail SEO shared blocks
   ========================================= */
.breadcrumb a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-stats-banner {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: #065f46;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 18px;
  padding: 10px 16px;
  margin: 22px 16px 10px;
}

.home-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px 16px 14px;
}

.home-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(20,184,166,0.65);
  background: rgba(255,255,255,0.92);
  color: var(--primary-hover);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(13,148,136,0.08);
}

.home-seo-section {
  margin: 24px 16px 0;
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 28px rgba(15,118,110,0.08);
}

.home-seo-section h2 {
  margin: 0 0 12px;
  color: var(--text-dark);
  font-size: 22px;
}

.home-seo-section p {
  margin: 0 0 10px;
  color: var(--text-main);
}

.faq-item {
  border-top: 1px solid rgba(148,163,184,0.25);
  padding-top: 12px;
  margin-top: 12px;
}

.faq-item:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text-dark);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  float: right;
  color: var(--primary-hover);
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--text-main);
}

.city-btn.disabled {
  cursor: default;
  pointer-events: none;
  color: var(--text-muted);
  border-style: dashed;
  background: rgba(255,255,255,0.55);
  justify-content: center;
}

.seo-more-links {
  margin-top: 16px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #fff;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.seo-more-links h3 {
  margin: 0 0 12px;
  color: #0f3d36;
  font-size: 15px;
  font-weight: 800;
}

.seo-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seo-more-grid a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #0f3d36;
  border-radius: 14px;
  padding: 14px 10px;
}

.seo-more-grid a .ic {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}

.seo-more-grid a .t {
  font-size: 13.5px;
  font-weight: 800;
}

.seo-more-grid a.t-att { background: var(--primary-light); }
.seo-more-grid a.t-res { background: var(--secondary-light); }
.seo-more-grid a.t-eve { background: var(--tertiary-light); }
.seo-more-grid a.t-map { background: #E4F1FC; }

.seo-more-foot {
  text-align: center;
  margin-top: 10px;
}

.seo-more-foot a {
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}

@media (min-width: 641px) {
  .seo-more-links {
    max-width: 900px;
    margin: 16px auto 0;
    padding: 14px 20px 14px;
  }
  .seo-more-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .seo-more-grid a {
    padding: 10px 8px;
  }
  .seo-more-grid a .ic {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .seo-more-grid a .t {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .home-entry-links {
    flex-direction: column;
    align-items: stretch;
  }

  .home-entry-link {
    width: 100%;
    min-width: 0;
  }
}
