/*
==============================================================================
Project: 臺南左鎮行 LIFF 官方網站｜視覺設計系統
Author: Ray (施睿皇) - Jingrui Design Studio
Email: jingrui.ray@gmail.com
Contact: services@jingruidesign.com
Created: 2026-08-10
Updated: 2026-09-23 16:30
Version: 1.14.0

Copyright (c) 2026 Jingrui Design Studio. All rights reserved.

【操作流程】
1. 由 index.html 以 <link rel="stylesheet"> 載入，Mobile First 撰寫
2. 顏色統一透過 :root 內之 CSS 變數（--primary/--gold/--accent 等）管理

【更新日誌 Update Log】
1.14.0（數位人才 Dex）
- feat(search)：AI 搜尋結果樣式（理由標籤 .ai-reason、說明列、搜尋中、看地圖位置按鈕），
  移除已停用之 .semantic-suggest 建議卡樣式；搭配 app.js 2.16.0。
1.7.0（本次）
- 附近地圖三項強化樣式，對應 app.js v2.5.0：
  .nearby-radius-control／.nearby-radius-slider／.nearby-radius-ticks
  （可拖曳距離範圍篩選）、.nearby-detail-panel 系列（地圖標記／清單
  點選後之景點資訊卡，含快速導航／查看資訊雙按鈕）、.nearby-list__item
  結構調整為上下兩列（原資訊列＋新增操作按鈕列）。
1.6.2
- 新增「我的預約報名紀錄」骨架載入動畫樣式（.skeleton-ticket／
  .skeleton-line／@keyframes skeletonShimmer），對應 app.js v2.4.0
  之查詢等待體驗優化。
1.6.1
- 全站無圖預設圖統一：據點無照片時之佔位卡片，移除逐筆動態產生之次標題
  文字（原 ::after 之 attr(data-label)），改為僅顯示統一品牌標題「臺南
  左鎮行」，避免各卡片標題不一致、亦簡化前端資料綁定負擔。對應
  LINE Flex Message 與後台管理介面同步套用相同視覺（見 assets/
  default-placeholder.jpg 與 gas-line-mvp/10_AdminApp.html）。
1.6.0
- 【UI 美化】「我的預約報名紀錄」卡片排版強化：預約編號加大字級並套用
  強調色與其餘欄位拉出視覺層次，卡片新增柔和陰影提升「憑證感」；處理狀態
  改為依 pending／confirmed／cancelled 呈現不同顏色圓點徽章（詳見 app.js
  REGISTRATION_STATUS_STYLE），不再是單一寫死顏色與文字。
1.5.1
- 附近地圖區塊註解更新：底圖引擎由 Leaflet 改為 MapLibre GL JS + PMTiles
  （容器樣式本身無需異動，詳見 ADR-002）
1.5.0
- 補齊標頭欄位（Email/Contact/Created/操作流程/更新日誌）
1.4.0
- 新增「附近地圖」相關樣式（Modal、狀態列、地圖容器、據點清單、距離徽章）
完整歷史請見 liff-site/README.md 第五節
==============================================================================
*/

:root {
  --bg: #FBF9F4;
  --paper: #FFFFFF;
  --ink: #1C2421;
  --muted: #53635C;
  --line: #E5DFC4;
  --primary: #21352E;
  --primary-deep: #162520;
  --primary-light: #2A453C;
  --accent: #C85A32;
  --gold: #D4A838;
  --gold-light: #F4E8C1;
  --shadow: 0 16px 40px rgba(28, 36, 33, 0.08);
  --shadow-hover: 0 20px 48px rgba(28, 36, 33, 0.14);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Noto Serif TC', "PingFang TC", serif;
  font-weight: 700;
}

button, a, input {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  position: relative;
}

/* ==========================================================================
   Hero 首頁區塊
   ========================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  padding: max(18px, env(safe-area-inset-top)) 20px 40px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

/* 恐龍化石館背景圖 + 毛玻璃霧化效果 */
.hero::before {
  content: '';
  position: absolute;
  inset: -24px;
  background:
    linear-gradient(180deg, rgba(16, 26, 23, 0.72) 0%, rgba(16, 26, 23, 0.50) 45%, rgba(16, 26, 23, 0.95) 100%),
    url("./fossil-park.jpg") center / cover no-repeat;
  filter: blur(22px) saturate(120%);
  transform: scale(1.15);
  z-index: -1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
  box-shadow: 0 0 0 1.5px var(--gold), 0 2px 12px rgba(201, 162, 39, 0.3);
  flex-shrink: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand:hover .brand-logo {
  box-shadow: 0 0 0 2px var(--gold), 0 4px 20px rgba(201, 162, 39, 0.5);
  transform: scale(1.06);
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: 0.5px;
}

.brand-text small {
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.icon-button {
  width: 44px;
  height: 44px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.icon-button:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.28);
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 0 20px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-copy {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
}

/* 頂部快捷 Pill 導覽 */
.hero-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 168, 56, 0.35);
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.pill-link:hover {
  background: rgba(212, 168, 56, 0.25);
  color: #FFFFFF;
  border-color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   按鈕樣式 (Buttons)
   ========================================================================== */
.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}

.primary-button {
  color: #FFFFFF;
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(200, 90, 50, 0.35);
}

.primary-button:hover,
.primary-button:active {
  background: #B34B25;
  transform: translateY(-1px);
}

.ghost-button {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.ghost-button:hover,
.ghost-button:active {
  background: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   LIFF 狀態條
   ========================================================================== */
.status-band {
  width: min(1080px, calc(100% - 32px));
  margin: -24px auto 0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  min-height: 60px;
}

/* -- 已登入態 -- */
.status-logged-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.status-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.status-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-btn-gold {
  background: var(--gold);
  color: var(--primary-deep) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.status-btn-gold:hover {
  background: #B88E28;
  color: #fff !important;
}

.status-btn-outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--primary) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none !important;
}

.status-btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  background: rgba(201, 162, 39, 0.06);
}

.status-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(16, 185, 129, 0.4);
}

.status-avatar-initial {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  font-family: 'Noto Serif TC', serif;
}

.status-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.status-user-info strong {
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-loggedin-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #059942;
  font-weight: 600;
}

/* -- 未登入態 -- */
.status-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.status-guest-hint {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .status-logged-in:not([hidden]),
  .status-guest:not([hidden]) {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .status-user-box {
    width: 100%;
  }
  .status-quick-actions {
    width: 100%;
    gap: 8px;
  }
  .status-btn-gold,
  .status-btn-outline,
  .line-login-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

.line-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #06C755;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3);
}

.line-login-btn:hover {
  background: #059942;
}

.line-login-btn:active {
  transform: scale(0.97);
}

/* Legacy — keep for backward compatibility */
.status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-band strong {
  font-size: 15px;
  color: var(--ink);
}

.status-band p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 56, 0.2);
}

.status-dot.ready {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-dot.error {
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.ghost-btn-plain {
  background: none;
  border: 1.5px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ghost-btn-plain:hover {
  border-color: var(--muted);
}

/* ==========================================================================
   區塊通用與搜尋列
   ========================================================================== */
.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) 0 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section h2 {
  margin: 0;
  font-size: clamp(24px, 5vw, 36px);
  color: var(--primary);
  line-height: 1.2;
}

.result-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: #EFECE4;
  padding: 4px 12px;
  border-radius: 999px;
}

/* 搜尋框 */
.search-bar {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 46px;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(28, 36, 33, 0.04);
  transition: all 0.2s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 53, 46, 0.12);
}

.search-clear {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: #EFECE4;
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* 分類卡籤 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.route-card {
  padding: 14px 16px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.route-card:hover {
  border-color: var(--primary);
}

.route-card.active {
  color: #FFFFFF;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(33, 53, 46, 0.25);
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.route-card.active .card-tag {
  color: var(--gold);
}

.route-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

/* ==========================================================================
   店家卡片列表 (Place Cards)
   ========================================================================== */
.place-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.place-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.place-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #EFECE4;
}

.place-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.place-card:hover .place-image {
  transform: scale(1.05);
}

/* ---- 無圖片佔位底紋 (高優先權極致質感) ---- */
.place-image-wrapper.place-placeholder,
.modal-image-wrap.modal-placeholder {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background-color: #172620 !important;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(201, 162, 39, 0.28) 0%, transparent 70%),
    repeating-linear-gradient(
      45deg,
      rgba(201, 162, 39, 0.08) 0px,
      rgba(201, 162, 39, 0.08) 1px,
      transparent 1px,
      transparent 16px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(201, 162, 39, 0.08) 0px,
      rgba(201, 162, 39, 0.08) 1px,
      transparent 1px,
      transparent 16px
    ) !important;
  color: var(--gold-light) !important;
  font-family: 'Noto Serif TC', serif !important;
  text-align: center !important;
  padding: 24px 16px !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 180px !important;
}

/* 統一品牌預設圖標題：不再逐筆帶入店家名稱作為次標，全站固定顯示「臺南左鎮行」 */
.place-image-wrapper.place-placeholder::before,
.modal-image-wrap.modal-placeholder::before {
  content: '臺南左鎮行';
  font-size: 22px;
  font-weight: 700;
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 4px;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.place-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  background: rgba(22, 37, 32, 0.86);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.place-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.place-meta {
  margin-bottom: 6px;
}

.place-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.place-title {
  margin: 4px 0 8px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--primary);
}

.place-summary {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.place-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.small-button,
.small-ghost-button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}

.small-button {
  color: #FFFFFF;
  background: var(--primary);
}

.small-button:hover {
  background: var(--primary-deep);
}

.small-ghost-button {
  color: var(--primary);
  background: #EFECE4;
  border: 1px solid var(--line);
}

.small-ghost-button:hover {
  background: #E5E0D5;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* ==========================================================================
   計畫說明區塊 (Project Overview)
   ========================================================================== */
.project-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.project-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  background: var(--primary-deep);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 12px;
}

.project-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--primary);
}

.project-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 20px;
}

.project-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.highlight-item strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 4px;
}

.highlight-item p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* MVP 三大模組清單 */
.mvp-module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.mvp-module-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.module-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  background: #F4EFE6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mvp-module-list strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 2px;
}

.mvp-module-list p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   團隊介紹與數位人才曝光區塊 (Team Section)
   ========================================================================== */
.team-section-desc {
  font-size: 15px;
  color: var(--muted);
  margin: -10px 0 24px;
  max-width: 720px;
}

.team-group {
  margin-bottom: 36px;
}

.team-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.group-icon {
  font-size: 24px;
}

.team-group-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--primary);
}

.team-group-header p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.member-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(28, 36, 33, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* 數位人才卡片特殊金邊標記 */
.talent-card {
  border-color: rgba(212, 168, 56, 0.4);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F0 100%);
}

.member-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.talent-avatar {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
}

.member-name {
  margin: 0;
  font-size: 17px;
  color: var(--primary);
}

.member-role {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.member-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex-grow: 1;
}

.member-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: #EFECE4;
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-top: auto;
}

.member-actions {
  margin-top: auto;
  padding-top: 10px;
}

.member-link-btn {
  width: 100%;
  font-size: 12px;
  background: var(--accent);
  color: #FFFFFF;
  text-decoration: none;
}

.member-link-btn:hover {
  background: #B34B25;
}

/* ==========================================================================
   行動轉化服務區塊
   ========================================================================== */
.action-section {
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.action-header h2 {
  margin-top: 6px;
}

.action-header p {
  color: var(--muted);
  font-size: 15px;
}

.action-list {
  display: grid;
  gap: 12px;
}

.action-row {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(28, 36, 33, 0.04);
  transition: all 0.2s ease;
}

.action-row:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.action-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: #F4EFE6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.action-row strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
}

.action-row small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.action-row .arrow {
  margin-left: auto;
  color: var(--gold);
  font-weight: 700;
}

/* ==========================================================================
   店家詳情 Modal 彈窗
   ========================================================================== */
.detail-modal {
  padding: 0;
  border: none;
  border-radius: 16px;
  background: transparent;
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.detail-modal::backdrop {
  background: rgba(16, 26, 23, 0.68);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--paper);
  border-radius: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 40px);
  position: relative;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  backdrop-filter: blur(4px);
}

.modal-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #EFECE4;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-tag {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(22, 37, 32, 0.86);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 24px;
}

.modal-body h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--primary);
}

.modal-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.modal-info-list {
  background: #F8F5EE;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--ink);
}

.info-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-btn {
  width: 100%;
}

/* 頁尾 */
.site-footer {
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-copyright {
  margin: 0;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.dot-divider {
  color: var(--gold);
  font-size: 12px;
}

.footer-advisor {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-credits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  padding: 14px 20px;
  background: #F4EFE6;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-sizing: border-box;
}

.credit-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.credit-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(33, 53, 46, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.credit-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.credit-link:hover {
  color: #B34B25;
}

.credit-val {
  color: var(--ink);
  font-weight: 500;
}

.credit-divider {
  color: var(--line);
}

@media (max-width: 640px) {
  .footer-credits {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .credit-divider {
    display: none;
  }
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.meta-notice {
  margin: 0;
  opacity: 0.85;
}

.meta-notice a {
  color: var(--gold);
  text-decoration: underline;
}

/* ==========================================================================
   響應式適配 (RWD)
   ========================================================================== */
@media (max-width: 900px) {
  .place-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card-grid {
    grid-template-columns: 1fr;
  }
  .project-highlights {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .action-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 75vh;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .place-list {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .status-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   活動報名與紀錄 Modal 視窗與完美表單樣式 (Form & Modal Layout System)
   ========================================================================== */

/* 背景滾動徹底穿透鎖定 (Prevent background scrolling when modal is open) */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

/* 原生 dialog 重置與全瀏覽器強效置中相容適配 (HTML5 <dialog> 標準置中規範) */
dialog.modal,
dialog.detail-modal,
dialog.signup-dialog {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  width: min(520px, calc(100vw - 24px)) !important;
  max-width: 520px !important;
  max-height: calc(100vh - 40px) !important;
  height: fit-content !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: 0 24px 72px rgba(16, 26, 23, 0.45) !important;
  z-index: 99999 !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
}

dialog::backdrop,
dialog.modal::backdrop,
dialog.detail-modal::backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(16, 26, 23, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.modal-card,
.signup-modal-card {
  background: var(--paper);
  border: 1px solid rgba(212, 168, 56, 0.3);
  border-radius: 20px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100% !important;
  margin: 0;
  overflow: hidden !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
}

.modal-body,
.signup-modal-body {
  padding: 28px 24px 32px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  max-height: calc(100vh - 40px);
}

.modal-body::-webkit-scrollbar,
.signup-modal-body::-webkit-scrollbar,
.disclaimer-content::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track,
.signup-modal-body::-webkit-scrollbar-track,
.disclaimer-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb,
.signup-modal-body::-webkit-scrollbar-thumb,
.disclaimer-content::-webkit-scrollbar-thumb {
  background: rgba(33, 53, 46, 0.2);
  border-radius: 999px;
}

.modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 100 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(16, 26, 23, 0.08) !important;
  color: var(--ink) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.modal-close:hover {
  background: rgba(16, 26, 23, 0.18) !important;
  transform: scale(1.05);
}

.signup-header {
  margin-bottom: 20px;
  text-align: left;
}

.signup-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: var(--primary-deep);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.signup-header h2 {
  margin: 0 0 4px;
  font-size: 24px;
  color: var(--primary);
}

.signup-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* LINE Profile 帳號顯示卡片 */
.line-profile-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(6, 199, 85, 0.08);
  border: 1.5px solid rgba(6, 199, 85, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
}

.line-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #06C755;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.line-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.line-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.line-tag {
  font-size: 10px;
  font-weight: 700;
  color: #059942;
  letter-spacing: 0.5px;
}

.line-name {
  font-size: 15px;
  color: #162520;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-id {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 請留下真實姓名提示列 */
.signup-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #8C7634;
  line-height: 1.5;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
}

.signup-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* 表單佈局與欄位跑版徹底修復 */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .status-guest {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 16px; /* 防止 iOS Safari 輸入時自動放大 */
  font-family: inherit;
  color: var(--ink);
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2321352E' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

textarea.form-input {
  min-height: 72px;
  resize: vertical;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 53, 46, 0.12);
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.signup-actions {
  margin-top: 8px;
}

.full-btn {
  width: 100%;
  min-height: 48px;
}

/* 預約成功憑證憑據樣式 */
.signup-result {
  text-align: center;
  padding: 10px 0;
}

.result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.result-msg {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 16px;
  line-height: 1.5;
}

.result-ticket {
  background: #F8F5EE;
  border: 1.5px dashed var(--gold);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 12px;
}

.t-label {
  color: var(--muted);
}

.t-val {
  color: var(--primary);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

/* 2.0.0 排版美化：預約編號為使用者最需要留存核對的資訊，加大字級並套用
   強調色，與其餘欄位（場次／人數／狀態）拉出明確視覺層次 */
.result-ticket .ticket-row:first-child .t-val {
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--gold, var(--primary));
}

.result-ticket {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* 我的報名紀錄 Modal */
.my-registrations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.empty-reg-msg {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  background: #F8F5EE;
  border-radius: 12px;
  border: 1px dashed var(--line);
}

/* 1.9.3 新增：「我的預約報名紀錄」骨架載入動畫，取代原本純文字
   「查詢中，請稍候...」，讓查詢期間的等待更有回饋感。 */
.skeleton-ticket {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
}
.skeleton-line {
  height: 13px;
  border-radius: 6px;
  background: linear-gradient(90deg, #EFECE4 25%, #F7F4EC 37%, #EFECE4 63%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease infinite;
}
@keyframes skeletonShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.place-section {
  padding-bottom: clamp(32px, 5vw, 56px);
}

/* 熱門活動專區卡片格線 */
.events-section {
  padding-top: clamp(44px, 6vw, 68px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

.event-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.event-date-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: var(--primary-deep);
  padding: 4px 12px;
  border-radius: 999px;
}

.event-quota-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059942;
  background: rgba(6, 199, 85, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.event-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--primary);
  line-height: 1.3;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-card-actions {
  margin-top: auto;
}

/* 免責聲明與授權 Modal 內容樣式 */
.disclaimer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.disclaimer-block h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--primary);
}

.disclaimer-block p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.disclaimer-block p a {
  color: var(--gold);
  text-decoration: underline;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--gold);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  font-family: inherit;
  transition: opacity 0.2s ease;
}

.footer-link-btn:hover {
  opacity: 0.8;
}

button.pill-btn {
  font-family: inherit;
  cursor: pointer;
}


/* ==========================================================================
   附近地圖 Modal（最近據點地圖）
   v1.4.0 新增：全數沿用既有 --primary/--gold/--accent 品牌色票，不新增色彩系統
   v1.5.1：底圖引擎由 Leaflet 改為 MapLibre GL JS + PMTiles，容器樣式維持
   不變（MapLibre canvas 同樣依賴容器明確寬高），詳見 ADR-002
   ========================================================================== */

.place-distance {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.nearby-map-card .modal-body {
  padding-top: 24px;
}

.nearby-status {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.nearby-status--loading {
  background: rgba(33, 53, 46, 0.08);
  color: var(--primary);
}

.nearby-status--error {
  background: rgba(200, 90, 50, 0.1);
  color: var(--accent);
}

.nearby-status--success {
  background: rgba(212, 168, 56, 0.14);
  color: var(--primary-deep);
}

.retry-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  background: var(--paper);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: rgba(33, 53, 46, 0.06);
}

.nearby-map {
  width: 100%;
  height: 46vh;
  min-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nearby-list__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.nearby-list__item:hover {
  border-color: var(--gold);
}

.nearby-list__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.nearby-list__name {
  color: var(--ink);
  font-weight: 500;
}

.nearby-list__distance {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nearby-list__empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0;
}

/* 設計師需求 3：清單項目「快速導航」「查看資訊」雙按鈕 */
.nearby-list__actions {
  display: flex;
  gap: 8px;
}

.nearby-list__nav-btn,
.nearby-list__view-btn {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--primary);
  transition: all 0.2s ease;
}

.nearby-list__nav-btn {
  background: var(--primary);
  color: #FFFFFF;
}

.nearby-list__nav-btn:hover {
  background: var(--primary-deep);
}

.nearby-list__view-btn {
  background: var(--paper);
  color: var(--primary);
}

.nearby-list__view-btn:hover {
  background: rgba(33, 53, 46, 0.06);
}

/* 設計師需求 2：可拖曳距離範圍篩選滑桿（100m～5km） */
.nearby-radius-control {
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(212, 168, 56, 0.1);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.nearby-radius-control label {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 8px;
}

.nearby-radius-control label strong {
  color: var(--accent);
}

.nearby-radius-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  outline: none;
  margin: 0;
}

.nearby-radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.nearby-radius-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.nearby-radius-ticks {
  display: flex;
  justify-content: space-between;
  /* 九段刻度（v1.11.0）：窄螢幕上標籤易相撞，故縮字級並允許等分收縮 */
  font-size: 9.5px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin-top: 4px;
}

/* 設計師需求 1：地圖標記／清單項目點選後顯示的景點資訊卡 */
.nearby-detail-panel {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  background: var(--paper);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nearby-detail-panel__img {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}

.nearby-detail-panel__body {
  flex: 1;
  min-width: 0;
  position: relative;
}

.nearby-detail-panel__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(33, 53, 46, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.nearby-detail-panel__title {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--ink);
  padding-right: 24px;
}

.nearby-detail-panel__distance {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.nearby-detail-panel__summary {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nearby-detail-panel__actions {
  display: flex;
  gap: 8px;
}

.nearby-detail-panel__nav-btn,
.nearby-detail-panel__view-btn {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--primary);
  transition: all 0.2s ease;
}

.nearby-detail-panel__nav-btn {
  background: var(--primary);
  color: #FFFFFF;
}

.nearby-detail-panel__nav-btn:hover {
  background: var(--primary-deep);
}

.nearby-detail-panel__view-btn {
  background: var(--paper);
  color: var(--primary);
}

.nearby-detail-panel__view-btn:hover {
  background: rgba(33, 53, 46, 0.06);
}

.nearby-detail-panel__close-btn {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.nearby-detail-panel__close-btn:hover {
  color: var(--accent);
}





/* ==============================================================================
 * 推薦路線（styles v1.8.0 新增｜數位人才 Dex）— 僅追加，沿用既有 token
 * ============================================================================== */
.trips-section { padding-top: 0; }
.trip-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.trip-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer; color: var(--ink); font: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.trip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.trip-card--off { opacity: .6; }
.trip-emoji { font-size: 28px; line-height: 1; }
.trip-card strong { font-size: 17px; font-weight: 600; }
.trip-audience { color: var(--muted); font-size: 13px; }
.trip-badge { margin-top: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--gold-light); color: var(--primary); }
.trip-days { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
.trip-timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 18px; }
.trip-stop { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); position: relative; }
.trip-stop:first-child { border-top: 0; }
.trip-stop-time { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.trip-stop-body strong { display: block; font-size: 15px; }
.trip-stop-body p { margin: 4px 0 8px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.trip-stop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.trip-stop--closed .trip-stop-body strong { color: var(--muted); text-decoration: line-through; }
.trip-closed { display: inline-block; font-size: 12px; color: var(--accent); margin-left: 6px; }
.trip-dist { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: -4px 0 4px; }


/* ==============================================================================
 * 探索地圖（styles v1.10.0 新增｜數位人才 Dex）— 僅追加，沿用既有 token
 * ============================================================================== */
.explore-map-section { padding-top: 0; }
.map-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.map-chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--muted); font: inherit; font-size: 14px;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.map-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.explore-map {
  width: 100%; height: 420px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.map-popup { display: flex; flex-direction: column; gap: 6px; min-width: 150px; font-family: inherit; }
.map-popup strong { font-size: 14px; color: var(--ink); }
.map-popup-tag { font-size: 12px; color: var(--muted); }
.map-popup-actions { display: flex; gap: 6px; margin-top: 2px; }
@media (max-width: 640px) { .explore-map { height: 320px; } }


/* ==============================================================================
 * AI 搜尋結果（styles v1.14.0｜數位人才 Dex；取代 v1.12.0 語意搜尋建議）
 * 關鍵字比對不到時，AI 結果以一般店家卡片呈現，僅以理由標籤與說明列區分。
 * ============================================================================== */
.ai-search-note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); }
.ai-searching { animation: ai-pulse 1.4s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .ai-searching { animation: none; } }
.ai-reason {
  display: inline-block; margin: 0 8px 4px 0; padding: 1px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(200, 90, 50, .1); border: 1px solid rgba(200, 90, 50, .28);
}
.ai-map-btn { grid-column: 1 / -1; }
