@charset "utf-8";
/* ============================================================
   如一家官網・新視覺主題 nrja-theme.css（2026-11-15）
   風格：墨青 × 暖金 精品旅宿（深色玻璃導覽、米白紙感底、襯線標題）
   本檔一律「覆蓋」舊樣式，載入順序在最後；不動任何 PHP/JS 邏輯。
   ============================================================ */

:root{
  --nj-ink:#1d2b27;        /* 主文字（墨青） */
  --nj-sub:#6b7a74;        /* 次要文字 */
  --nj-bg:#f6f1e6;         /* 米白紙感底 */
  --nj-card:#ffffff;
  --nj-deep:#0f2d28;       /* 墨青深 */
  --nj-deep2:#143a33;
  --nj-gold:#c9a227;       /* 暖金 */
  --nj-gold-d:#a8841c;
  --nj-gold-l:#e8d9a8;
  --nj-line:#e4dcc8;
  --nj-red:#b23a2e;
  --nj-radius:14px;
  --nj-shadow:0 6px 24px rgba(20,45,40,.10);
  --nj-serif:"Noto Serif TC","Source Han Serif TC","Songti TC","Microsoft JhengHei",serif;
}

/* ---------- 全域 ---------- */
html{background:var(--nj-bg);}
body{
  background:var(--nj-bg) !important;
  background-image:radial-gradient(1200px 500px at 50% -80px, rgba(201,162,39,.07), transparent 70%),
                   repeating-linear-gradient(0deg, transparent 0 34px, rgba(15,45,40,.022) 34px 35px) !important;
  color:var(--nj-ink) !important;
  font-family:-apple-system,"PingFang TC","Noto Sans TC","Microsoft JhengHei","微軟正黑體",Arial,sans-serif !important;
}
h1,h2,h3{font-family:var(--nj-serif);letter-spacing:.06em;}

/* ---------- 頂部導覽：墨青玻璃列 ---------- */
#cnav-top{
  background:linear-gradient(180deg,rgba(15,45,40,.96),rgba(11,36,31,.94)) !important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(201,162,39,.35) !important;
  box-shadow:0 4px 18px rgba(10,30,26,.35) !important;
}
#cnav-logtext #adminname{color:#f3ecd8 !important;font-family:var(--nj-serif);letter-spacing:.12em;}
#cnav-sldate,#sormdate,#sormdate a{color:#cfe0d8 !important;}
#cnav-cwbtext{color:#cfe0d8 !important;}
.cwb-line .cwb-tmp,.cwb-city{color:#cfe0d8 !important;}
#cwbpop{
  background:#fffdf6 !important;border:1px solid var(--nj-line) !important;
  border-radius:12px !important;box-shadow:var(--nj-shadow) !important;color:var(--nj-ink) !important;
}
#cwbpop .cwbpop-hd{color:var(--nj-deep) !important;border-bottom:1px solid var(--nj-line);}
#cwbpop .cwbpop-ft{color:var(--nj-sub) !important;}

/* 圖示列 × 標題列對齊：兩排改成同寬等距欄位（原本各自 inline+padding → 逐格累積偏移，標題離圖示越遠越歪） */
#cnav-imgmenu ul,#cnav-menu ul{
  display:flex !important;
  align-items:flex-start;
  justify-content:flex-start;
  list-style:none !important;
  margin:0 !important;padding:0 !important;
  gap:0 !important;
}
#cnav-imgmenu ul li,#cnav-menu ul li{
  display:block !important;
  flex:0 0 76px;width:76px !important;min-width:76px !important;
  margin:0 !important;padding:0 !important;
  text-align:center;box-sizing:border-box;
}
#cnav-imgmenu ul li a,#cnav-menu ul li a{
  display:block !important;text-align:center !important;
  padding:0 !important;margin:0 !important;
}
#cnav-imgmenu{width:auto !important;}

/* 導覽選單：金字、現行區塊金底 */
#cnav-menu ul li a{
  color:#e9e2cd !important;
  font-family:var(--nj-serif);
  letter-spacing:.08em;
  padding:6px 0 5px !important;
  white-space:nowrap;
  border-bottom:2px solid transparent !important;
  transition:color .2s,border-color .2s;
}
#cnav-menu ul li a:hover{color:var(--nj-gold-l) !important;border-bottom-color:rgba(201,162,39,.5) !important;}
#cnav-menu ul li a.on,#cnav-menu ul li a.act,
#cnav-menu ul li a[class*="select"]{
  color:var(--nj-gold) !important;border-bottom-color:var(--nj-gold) !important;
}
#cnav-imgmenu ul li img{border:1px solid rgba(201,162,39,.5) !important;transition:transform .2s,box-shadow .2s;}
#cnav-imgmenu ul li a:hover img{transform:translateY(-2px);box-shadow:0 4px 10px rgba(0,0,0,.4);}

/* ---------- 主視覺輪播 ---------- */
/* 頁首高度補償：舊站用 30px 空表格，但 #cnav-top 是 fixed 120px（手機 52px），
   輪播頂端被頁首蓋掉 90px。改用 #rj-navgap（JS 依實際頁首高度設定）＋這裡的後備值。 */
#rj-navgap{height:120px;width:100%;}
.flexslider{
  border:0 !important;
  padding-top:0 !important;            /* 舊 templatemo 留了 85px 白帶 */
  margin-bottom:0 !important;          /* 舊 flexslider.css 留 60px，和下方 section 的 40px 疊成一大塊空白 */
  background:#0f2d28 !important;
  box-shadow:0 10px 30px rgba(20,45,40,.18) !important;
  border-radius:0 0 18px 18px;
  overflow:hidden;
}
/* 首屏輪播正下方的區塊：只留一點呼吸空間（原本 section 的 padding-top:40px 太大） */
#home + #msub0{padding-top:22px !important;}
.flexslider .slides li{position:relative;background:#0f2d28;}
/* 各張圖片比例不一 → 統一高度裁切，避免底部留黑帶 */
.flexslider .flex-viewport{max-height:none !important;}
.flexslider .slides > li{height:clamp(240px,42vw,540px) !important;}
.flexslider .slides > li img{
  display:block;width:100%;height:100% !important;
  object-fit:cover;-o-object-fit:cover;
}
/* 圖片說明改成墨青玻璃條＋左金線 */
.flex-caption{
  position:absolute !important;left:0 !important;right:0 !important;bottom:0 !important;
  margin:0 !important;padding:16px 24px 16px 26px !important;
  background:linear-gradient(90deg,rgba(10,33,29,.92) 0%,rgba(10,33,29,.72) 62%,rgba(10,33,29,.30) 100%) !important;
  border-left:4px solid var(--nj-gold) !important;
  color:#f3ecd8 !important;
  font-family:var(--nj-serif) !important;
  font-size:14.5px !important;line-height:1.85 !important;letter-spacing:.06em !important;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}
.flex-control-nav{bottom:14px !important;}
.flex-control-paging li a{
  background:rgba(255,255,255,.55) !important;
  box-shadow:none !important;width:9px !important;height:9px !important;border-radius:50% !important;
}
.flex-control-paging li a.flex-active{background:var(--nj-gold) !important;width:22px !important;border-radius:6px !important;transition:width .25s;}

/* ---------- 區塊標題：襯線＋金飾線 ---------- */
section[id^="msub"] > div[align="center"] > h1,
.rj-bookhead h1{
  font-family:var(--nj-serif) !important;
  color:var(--nj-deep) !important;
  font-weight:700 !important;
  letter-spacing:.14em !important;
}
section h1{color:var(--nj-deep) !important;}
section .home3col h1,section .home2col h1{letter-spacing:.2em;}
/* hr-2 分隔圖保留，但加金暈 */
section > div[align="center"] > img[src*="hr-"]{filter:sepia(.35) saturate(1.4) hue-rotate(-14deg);opacity:.9;}

/* ---------- 三欄／兩欄卡片 ---------- */
.home3col,.home2col,.home311col,.home211col{
  background:var(--nj-card) !important;
  border:1px solid var(--nj-line) !important;
  border-top:3px solid var(--nj-gold) !important;
  border-radius:var(--nj-radius) !important;
  box-shadow:var(--nj-shadow) !important;
  overflow:hidden;
}
.home3col-ribbon img{opacity:.9;}
.card-000,.card-022{
  background:#fffdf6 !important;
  border:1px dashed #d8cba4 !important;
  border-radius:10px !important;
}
/* 社群列：2026-11-15 重做（原本 #c223/#c224 用 float + 固定 38px 高 → 底部被裁、文字被切） */
.card-000 ul{color:#3d4a45 !important;}
.rj-soc{
  position:relative;
  display:flex !important;align-items:center;gap:10px;
  width:100% !important;height:auto !important;min-height:46px;
  margin:0 0 12px !important;padding:5px 10px 5px 7px !important;
  float:none !important;box-sizing:border-box;
  background:linear-gradient(135deg,#17453c 0%,#0f2d28 100%) !important;
  border:1px solid rgba(201,162,39,.42) !important;
  border-radius:999px !important;
  box-shadow:0 2px 8px rgba(15,45,40,.18) !important;
  transition:transform .2s,box-shadow .2s,border-color .2s;
}
.rj-soc:last-of-type{margin-bottom:18px !important;}
.rj-soc:hover{
  transform:translateY(-1px);
  border-color:rgba(201,162,39,.85) !important;
  box-shadow:0 7px 18px rgba(15,45,40,.3) !important;
}
.rj-soc .rj-soc-i{
  flex:0 0 34px;width:34px;height:34px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);overflow:hidden;
}
.rj-soc .rj-soc-i img{display:block;width:100%;height:100%;object-fit:contain;}
.rj-soc .rj-soc-i-fb img{width:30px;height:30px;border-radius:4px;}
.rj-soc .rj-soc-t{flex:1 1 auto;min-width:0;text-align:center;}
.rj-soc .rj-soc-t a{
  display:flex;align-items:baseline;justify-content:center;gap:8px;flex-wrap:wrap;
  padding:2px 4px;text-decoration:none !important;letter-spacing:.03em;
  color:#f3ecd8 !important;font-size:13px !important;line-height:1.4;
}
.rj-soc .rj-soc-t a b{font-weight:600;color:#f5eedc !important;white-space:nowrap;}
.rj-soc .rj-soc-t a i{
  font-style:normal;font-size:11.5px;color:#cfae4e !important;white-space:nowrap;
  letter-spacing:.02em;
}
/* 整張卡都可點（socqr.css 原本靠 #c223 a:after，這裡改掛在 .rj-soc 上） */
.rj-soc .rj-soc-t a:after{content:"";position:absolute;inset:0;border-radius:999px;}
@media (max-width:760px){
  .rj-soc{min-height:42px;padding:4px 8px 4px 6px !important;gap:8px;}
  .rj-soc .rj-soc-i{flex-basis:30px;width:30px;height:30px;border-radius:9px;}
  .rj-soc .rj-soc-t a{font-size:12.5px !important;gap:6px;}
  .rj-soc .rj-soc-t a i{font-size:11px;}
}
.mui-card-footer{
  border-top:1px dashed var(--nj-line) !important;
  padding-top:10px !important;
  display:flex !important;align-items:center;gap:6px;
}
.mui-card-footer .mui-card-link{color:var(--nj-gold-d) !important;}
.headbox img{border-radius:10px;box-shadow:0 2px 8px rgba(20,45,40,.15);}
/* 首頁三張認證標章（Taiwan／好客民宿）：原站固定 100px 高＋內聯 32% 寬 → 圖比框高、壓到社群卡 */
#msub0 .headbox{
  display:flex !important;align-items:center;gap:10px;
  width:100% !important;height:auto !important;
  margin:10px 0 18px !important;
}
/* 標章列與社群膠囊之間的呼吸空間（原本 margin-bottom:0 → 兩排貼在一起） */
#msub0 .home3col > h1:empty + table + .rj-soc{margin-top:4px !important;}
#msub0 .headbox > div{
  flex:1 1 0;width:auto !important;height:auto !important;
  float:none !important;margin:0 !important;min-width:0;
  display:flex;align-items:center;justify-content:center;
}
#msub0 .headbox img{
  max-width:100% !important;max-height:112px !important;
  width:auto !important;height:auto !important;display:block;
}
/* 標章列下面的空 h1／30px 空白表格 → 讓社群卡貼著標章列 */
#msub0 .home3col > h1:empty{display:none !important;}
#msub0 .home3col > table{display:none !important;}

/* ---------- 卡片高度交還內容（原站寫死 550px + overflow:hidden → 社群卡被裁） ---------- */
#msub0 .home3col,#msub0 .home2col{
  height:auto !important;min-height:550px;
  overflow:visible !important;
}
/* 平板（761~1240）：原站 30% 寬 + 100px/60px 固定邊距會擠成一團 → 兩欄等比、邊距縮小 */
@media (min-width:761px) and (max-width:1240px){
  /* 浮動子元素要能被 section 包住，否則下一段會壓上來 */
  section[id^="msub"]::after{content:"";display:block;clear:both;}
  .home3col,.home2col,.home311col,.home211col{
    width:calc(50% - 50px) !important;
    height:auto !important;min-height:0 !important;
    margin:0 0 16px 0 !important;
    padding:18px 18px !important;box-sizing:border-box;float:left !important;
  }
  .home3col,.home311col{margin-right:36px !important;}
  #msub0 #zerogrid{display:block !important;}
  #msub0 .home3col,#msub0 .home2col{
    width:100% !important;float:none !important;min-height:0 !important;margin:0 0 16px 0 !important;
  }
  section#msub5 .home31col.rjrev-wide{width:100% !important;float:none !important;margin:0 0 16px 0 !important;}
}

/* ---------- 訂房區：頁籤與房型卡 ---------- */
.rj-bookbtn{
  background:linear-gradient(135deg,var(--nj-gold),var(--nj-gold-d)) !important;
  color:#fff !important;
  box-shadow:0 4px 12px rgba(168,132,28,.4) !important;
  border-radius:999px !important;
  font-family:var(--nj-serif);letter-spacing:.3em;text-indent:.3em;
}
.rj-bookbtn:hover{background:linear-gradient(135deg,#d9b23a,var(--nj-gold-d)) !important;}

.bus-sty1 ul{padding:6px 0 10px !important;margin-left:0 !important;text-align:center;}
.bus-sty1 li.li-bus,
#bus-sty1 ul li.li-bus{
  display:inline-block !important;
  width:auto !important;height:auto !important;
  left:auto !important;padding:0 !important;
  margin:0 8px 8px 0 !important;
  font-size:14px !important;text-align:center;
}
.bus-sty1 li.li-bus a.class1{
  display:inline-block !important;
  white-space:nowrap !important;
  margin:0 !important;
  padding:7px 20px !important;
  border-radius:999px !important;
  background:#fff !important;
  border:1.5px solid var(--nj-line) !important;
  color:var(--nj-sub) !important;
  font-size:14px !important;letter-spacing:.1em;
  transition:all .2s;
}
.bus-sty1 li.li-bus a.class1:hover{border-color:var(--nj-gold) !important;color:var(--nj-gold-d) !important;}
.bus-sty1 li.li-bus a.class1.on,.bus-sty1 li.li-bus a.act,
.bus-sty1 li.li-bus a[class*="select"],
.bus-sty1 li.li-bus a.cur{
  background:var(--nj-deep) !important;border-color:var(--nj-deep) !important;
  color:var(--nj-gold-l) !important;box-shadow:0 3px 10px rgba(15,45,40,.3);
}

#showpotos{width:100% !important;background:transparent !important;}
/* 相簿卡：高度自動，避免房型名稱被裁掉 */
#showpotos .rjroom{height:auto !important;overflow:visible !important;}
#showpotos .mui-table-view-cell,#showpotos li.mui-media{
  background:var(--nj-card) !important;
  border-radius:var(--nj-radius) !important;
  border:1px solid var(--nj-line) !important;
  box-shadow:0 3px 12px rgba(20,45,40,.08) !important;
  margin:0 0 14px 0 !important;
  overflow:hidden;
  transition:transform .2s,box-shadow .2s;
}
#showpotos .mui-table-view-cell:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,45,40,.14) !important;}
#showpotos img[data-preview-src]{border-radius:10px 10px 0 0;}
.bordbr0{border-bottom:1px dashed var(--nj-line) !important;padding-bottom:6px;}
.bordbr{border-top:1px dashed var(--nj-line) !important;padding-top:8px;}
#showpotos span[style*="color:red"]{color:var(--nj-red) !important;}
#showpotos span[style*="color:blue"]{color:var(--nj-sub) !important;}
#showpotos .mui-btn.mui-btn-blue,
.mui-btn.mui-btn-blue{
  background:linear-gradient(135deg,var(--nj-gold),var(--nj-gold-d)) !important;
  border:0 !important;color:#fff !important;border-radius:999px !important;
  box-shadow:0 3px 8px rgba(168,132,28,.35) !important;
  font-weight:700;letter-spacing:.12em;
}
.mui-badge.mui-badge-danger{background:var(--nj-red) !important;border-radius:999px;}

/* 舊 icon-thumbs-up 等計數列 */
.mui-card-footer{background:transparent !important;}
.mui-card-link{color:var(--nj-gold-d) !important;}

/* ---------- 交通資訊 / 戀戀金門 區塊 ---------- */
section .content,section .rjroom-wrap{background:transparent !important;}
section a{color:var(--nj-deep2);}
section a:hover{color:var(--nj-gold-d);}

/* 交通資訊左側清單：卡片原本 height:550px + overflow:hidden，9 項在窄視窗換行後
   內容高 707px 卻被裁掉、也無法捲動 → 改成可捲＋列高自適應（icon/文字/箭頭用 flex 對齊） */
#msub2 .home3col{
  height:550px;
  overflow-y:auto !important;overflow-x:hidden !important;
  padding-bottom:14px !important;
  scrollbar-width:thin;
  scrollbar-color:rgba(201,162,39,.55) transparent;
  overscroll-behavior:contain;
}
#msub2 .home3col::-webkit-scrollbar{width:8px;}
#msub2 .home3col::-webkit-scrollbar-thumb{background:rgba(201,162,39,.5);border-radius:8px;}
#msub2 .home3col::-webkit-scrollbar-thumb:hover{background:rgba(201,162,39,.75);}
#msub2 .home3col::-webkit-scrollbar-track{background:rgba(15,45,40,.06);border-radius:8px;}
#msub2 .home3col .card-0{
  height:auto !important;min-height:54px;
  width:100% !important;margin:0 !important;padding:2px 0 !important;
  border-bottom:1px dashed rgba(15,45,40,.13) !important;
  box-sizing:border-box;
}
#msub2 .home3col .card-0:last-of-type{border-bottom:0 !important;}
#msub2 .home3col .card-0 > a{
  display:flex !important;align-items:center;gap:10px;
  text-decoration:none !important;color:inherit !important;
}
#msub2 .home3col .card-1{
  flex:0 0 50px !important;width:50px !important;min-width:50px;
  float:none !important;margin:0 !important;padding:0 !important;
  background:transparent !important;
  display:flex !important;align-items:center;justify-content:center;
}
#msub2 .home3col .card-1 img{
  width:44px !important;height:44px !important;
  object-fit:cover;-o-object-fit:cover;
  border-radius:10px !important;border:1px solid var(--nj-line);
  padding:0 !important;
}
#msub2 .home3col .card-2{
  flex:1 1 auto !important;width:auto !important;
  float:none !important;margin:0 !important;padding:0 !important;
  background:transparent !important;
  font-size:14.5px !important;line-height:1.5 !important;
  color:var(--nj-sub) !important;text-align:left;
}
#msub2 .home3col .card-0:hover .card-2{color:var(--nj-gold-d) !important;}
#msub2 .home3col .card-3{
  flex:0 0 18px !important;width:18px !important;
  float:none !important;margin:0 !important;padding:0 !important;
  background:transparent !important;
  display:flex !important;align-items:center;justify-content:center;
  color:var(--nj-gold-d) !important;
}

/* 交通資訊右側面板：原本 height:550px + overflow:hidden，iframe 一長就被切；
   改成高度跟內容走（最短 550），船班表才不會被裁、也才不會被卡片切掉 */
#msub2 .home2col{
  height:auto !important;
  min-height:550px;
  overflow:visible !important;
  padding:12px !important;
  box-sizing:border-box;
}
#msub2 #busiframe{display:block;width:100%;}
#msub2 #busiframe iframe{
  display:block !important;width:100% !important;border:0 !important;
  border-radius:10px;background:#fff;
  box-shadow:inset 0 0 0 1px var(--nj-line);
}

/* 大螢幕：船班表面板比清單更吃寬度 → 左清單收窄，右面板加寬 */
@media (min-width:1241px){
  #msub2 .home3col{width:27% !important;margin-left:60px !important;}
  #msub2 .home2col{width:55% !important;margin-right:40px !important;}
}

/* 中型螢幕（761~1240）：左清單／右面板各 50% 時表格會擠成一團 → 改成上下堆疊全寬 */
@media (min-width:761px) and (max-width:1240px){
  #msub2 .home3col,#msub2 .home2col{
    width:100% !important;float:none !important;
    margin:0 0 14px 0 !important;
  }
  #msub2 .home3col{height:auto !important;max-height:520px;}
}

/* ---------- 社群QR／浮層 ---------- */
#cover.cover{background:rgba(10,30,26,.55) !important;backdrop-filter:blur(2px);}

/* ---------- 捲軸 ---------- */
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:#efe8d6;}
::-webkit-scrollbar-thumb{background:#c5b98f;border-radius:6px;}
::-webkit-scrollbar-thumb:hover{background:var(--nj-gold);}

/* ---------- 選取色 ---------- */
::selection{background:rgba(201,162,39,.30);}

/* ---------- 住客評語（雙卡寬）＋ 我有話說浮窗（2026-11-15） ---------- */
/* 評語卡擴成兩個卡片寬；評語雙欄排列
   寬度＝左卡 30% ＋ 卡距 60px ＋ 右卡 50%，右緣才會和上方 msub4 的兩張卡齊平 */
#msub5 .home31col.rjrev-wide{
  width:calc(80% + 60px) !important;
  height:auto !important;
  min-height:560px;
  padding-bottom:16px !important;
}
#msub5 .content{height:500px !important;}
#msub5 .rjrev-top{position:relative;text-align:center;}
#msub5 .rjrev-top h1{margin:0 !important;font-size:22px !important;color:var(--nj-deep) !important;}
#msub5 .rjfb-talk{
  position:absolute;left:0;top:50%;transform:translateY(-40%);
  border:1.5px solid var(--nj-gold) !important;border-radius:999px !important;
  background:linear-gradient(135deg,var(--nj-gold),var(--nj-gold-d)) !important;
  color:#fff !important;font-size:14px !important;letter-spacing:.12em;
  padding:8px 18px !important;cursor:pointer;
  box-shadow:0 3px 10px rgba(168,132,28,.35);
  transition:transform .15s,box-shadow .15s;
}
#msub5 .rjfb-talk:hover{transform:translateY(-40%) scale(1.04);box-shadow:0 6px 14px rgba(168,132,28,.45);}
#msub5 #gshowfeed,#msub5 #showfeed{
  display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;
  padding:4px 2px 10px;
}
#msub5 #gshowfeed .mui-card,#msub5 #showfeed .mui-card{margin:0 !important;}

/* 浮窗（手機驗證 / 留言） */
.rjfb-mask{
  position:fixed;inset:0;z-index:99990;
  background:rgba(10,30,26,.58);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  display:none;align-items:center;justify-content:center;padding:14px;
}
.rjfb-modal{
  width:min(420px,94vw);max-height:88vh;overflow-y:auto;
  background:#fffdf6;border:1px solid var(--nj-line);border-top:3px solid var(--nj-gold);
  border-radius:16px;box-shadow:0 24px 70px rgba(10,30,26,.4);
  display:flex;flex-direction:column;
}
.rjfb-modal.rjfb-lg{width:min(600px,94vw);}
.rjfb-hd{
  flex:0 0 auto;
  background:linear-gradient(135deg,var(--nj-deep),var(--nj-deep2));
  color:#f3ecd8;padding:13px 18px;
  display:flex;align-items:center;justify-content:space-between;
}
.rjfb-title{font-family:var(--nj-serif);letter-spacing:.24em;font-size:17px;}
.rjfb-x{color:#e8d9a8;font-size:24px;line-height:1;text-decoration:none;}
.rjfb-x:hover{color:#fff;}
.rjfb-bd{padding:20px 22px 24px;}
.rjfb-lead{color:var(--nj-sub);font-size:13.5px;line-height:1.8;margin:0 0 16px;}
.rjfb-lead b{color:var(--nj-gold-d);}
/* 需壓過 site.css 的 input[type="text"]{font-size:14px;height:20px;padding:4px 6px}（2026-11-15） */
.rjfb-bd .rjfb-tel{
  width:100%;box-sizing:border-box;height:auto;
  font-size:17px;letter-spacing:.02em;text-align:center;  /* 支援 Email：縮小字級避免長信箱溢出 */
  padding:12px 14px;border:1.5px solid var(--nj-line);border-radius:10px;
  background:#fff;color:var(--nj-ink);
}
.rjfb-bd .rjfb-tel:focus{outline:none;border-color:var(--nj-gold);box-shadow:0 0 0 3px rgba(201,162,39,.18);}
.rjfb-msg{min-height:24px;font-size:13.5px;margin:12px 0 6px;text-align:center;line-height:1.6;}
.rjfb-err{color:var(--nj-red);font-weight:700;}
.rjfb-go{
  width:100%;padding:12px 0;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(135deg,var(--nj-gold),var(--nj-gold-d));
  color:#fff;font-size:16px;font-family:var(--nj-serif);
  letter-spacing:.3em;text-indent:.3em;
  box-shadow:0 4px 12px rgba(168,132,28,.4);
}
.rjfb-go:disabled{opacity:.55;cursor:not-allowed;}
.rjfb-modal.rjfb-lg iframe{flex:0 0 auto;width:100%;border:0;display:block;}

/* ---------- 中型桌機（761~1400）：舊站絕對座標會互壓，這裡收窄一級 ---------- */
@media (min-width:761px) and (max-width:1400px){
  /* 品牌字 36px 會壓到右側日期（#cnav-sldate left:40%） */
  #cnav-logtext{font-size:27px !important;}
  /* 圖示/標題欄位收窄，整排往左挪，避開右上「繁中」膠囊 */
  #cnav-imgmenu,#cnav-menu{left:51% !important;}
  #cnav-imgmenu ul li,#cnav-menu ul li{flex:0 0 68px;width:68px !important;min-width:68px !important;}
  #cnav-menu ul li a{font-size:13px !important;letter-spacing:.04em;}
  #fixed-ad5{right:96px !important;}
}
/* 天氣區塊右緣原本就壓在圖示列上（舊站 right:calc(45%-16px)）→ 往左收一級、隱藏鄉鎮名 */
@media (min-width:1151px) and (max-width:1400px){
  #cnav-cwbtext{right:calc(45% + 16px) !important;}
  #cnav-cwbtext .cwb-city{display:none !important;}
}
/* 日期＋天氣右側留白足夠的寬帶（1241~1400）：圖示列再往右讓開天氣 */
@media (min-width:1241px) and (max-width:1400px){
  #cnav-imgmenu,#cnav-menu{left:56% !important;}
}
/* 1151~1240：天氣右緣已逼近，語系膠囊退場，圖示列貼右 */
@media (min-width:1151px) and (max-width:1240px){
  #fixed-ad5{display:none !important;}
  #cnav-imgmenu,#cnav-menu{left:57.5% !important;}
}
/* 窄桌機（761~1150）：比照手機版精簡，只留 logo＋圖示列 */
@media (min-width:761px) and (max-width:1150px){
  #cnav-logtext{font-size:23px !important;}
  #fixed-ad5{display:none !important;}                      /* 語系膠囊會壓到圖示 */
  #cnav-sldate,#cnav-cwbtext{display:none !important;}
  #cnav-imgmenu,#cnav-menu{left:46% !important;}
}
@media (min-width:761px) and (max-width:980px){
  #cnav-logtext{display:none !important;}                   /* 品牌字已在 logo 圖內 */
  #cnav-imgmenu,#cnav-menu{left:34% !important;}
}

/* ---------- 響應式微調 ---------- */
@media (max-width:760px){
  /* 舊站是 960px 固定寬、原本沒有手機版；此段補上直式排列 */
  html,body{overflow-x:hidden !important;}
  .container,#home,.zerogrid,#zerogrid,.row,section > .zerogrid{
    width:auto !important;max-width:100% !important;
    padding-left:10px !important;padding-right:10px !important;
    box-sizing:border-box;
  }
  #cnav-top{
    height:52px !important;padding:0 8px !important;
    display:flex !important;align-items:center;gap:6px;
  }
  #cnav-menu{display:none !important;}          /* 小螢幕改用圖示列 */
  /* 舊站所有導覽元件都是 position:fixed + 絕對座標，手機上會互疊 → 全部改回流排版 */
  #cnav-logimg,#cnav-logtext,#cnav-sldate,#cnav-imgmenu,#cnav-cwbtext{
    position:static !important;
    left:auto !important;right:auto !important;top:auto !important;bottom:auto !important;
    margin:0 !important;padding:0 !important;float:none !important;
    width:auto !important;height:auto !important;
  }
  #cnav-logimg img{width:auto !important;height:40px !important;max-width:none !important;border-radius:8px;}
  #fixed-ad5{display:none !important;}          /* 手機隱藏語系切換，避免壓到主視覺 */
  #cnav-logtext,#cnav-sldate,#cnav-cwbtext{display:none !important;}   /* 品牌已在 logo 內，省空間 */
  #cnav-imgmenu{flex:1 1 auto;min-width:0;overflow-x:auto;text-align:right;}
  #cnav-imgmenu ul{display:flex !important;justify-content:flex-end;gap:5px;margin:0 !important;padding:0 !important;}
  /* 桌上版的等寬欄位在這裡要放掉，否則 5×76px 會撐破手機寬度 */
  #cnav-imgmenu ul li{flex:0 0 auto !important;width:auto !important;min-width:0 !important;}
  #cnav-imgmenu ul li img{width:30px !important;height:30px !important;border-radius:7px !important;}

  .home3col,.home2col,.home311col,.home211col{
    width:100% !important;float:none !important;
    height:auto !important;min-height:0 !important;
    margin:0 0 14px 0 !important;border-radius:12px !important;
  }
  .headbox > div{width:100% !important;float:none !important;margin:0 !important;height:auto !important;}

  #rj-navgap{height:52px;}
  #home + #msub0{padding-top:14px !important;}
  /* 首屏改成滿版：舊 bootstrap2 格線（container/row/col 三層各 10~15px padding）
     在 390 寬只剩 320px，圖片右側留一大條米白，左右也不對稱。
     #home 只裝輪播，拆掉三層 padding 安全。 */
  #home.container{width:100% !important;max-width:100% !important;padding:0 !important;}
  #home .row{width:100% !important;margin:0 !important;padding:0 !important;}
  #home .col{width:100% !important;padding:0 !important;}
  .flexslider{border-radius:0 !important;}
  .flexslider .slides > li{height:200px !important;}
  .flex-caption{font-size:12px !important;padding:10px 12px !important;line-height:1.65 !important;}
  /* 圓點導覽原本 bottom:14px，會壓在說明條文字中間（像一坨金色污點）；
     手機已經有左右箭頭＋自動輪播，圓點直接不放，畫面最乾淨。 */
  .flex-control-nav{display:none !important;}

  #showpotos .rjroom{width:100% !important;}
  #showpotos .mui-media-body{font-size:13px !important;}

  #bus-sty1 ul{margin:0 !important;padding:6px 0 !important;}
  .bus-sty1 li.li-bus,#bus-sty1 ul li.li-bus{margin:0 6px 6px 0 !important;}
  .bus-sty1 li.li-bus a.class1{padding:6px 14px !important;font-size:13px !important;}
  /* 手機不需要卡片內捲（會變成雙層捲動），高度交還內容 */
  #msub2 .home3col{height:auto !important;max-height:none !important;overflow:visible !important;padding-bottom:16px !important;}

  section > div[align="center"] > h1,.rj-bookhead h1{font-size:22px !important;}
  /* 住客評語：雙卡寬改全寬、評語改單欄 */
  #msub5 .home31col.rjrev-wide{width:100% !important;float:none !important;margin:0 0 14px 0 !important;}
  #msub5 #gshowfeed,#msub5 #showfeed{grid-template-columns:1fr !important;}
  /* 標題列改成上下排（按鈕在上、標題在下），高度改 auto，否則 50px 固定高會壓到評語 */
  #msub5 .rjrev-top{
    height:auto !important;display:flex !important;flex-direction:column;
    align-items:center;gap:8px;padding:4px 0 10px !important;
  }
  #msub5 .rjrev-top h1{font-size:20px !important;line-height:1.5 !important;}
  #msub5 .rjfb-talk{position:static !important;transform:none !important;width:100%;margin:0 !important;order:-1;}
  #msub5 .rjfb-talk:hover{transform:none;}
  #msub5 .content{height:70vh !important;}
  /* 留言浮窗：iframe 高度交由 postMessage 動態調整，容器自己捲動 */
  #fbfrm{height:auto !important;min-height:480px;}
  .rjfb-modal{max-height:92vh;}
  #cwbpop{left:8px !important;right:8px !important;width:auto !important;}
}

/* ---------- 戀戀金門（#msub4）：窄螢幕一律改成單欄 ---------- */
/* 這一段用的是舊站的兩欄浮動：.home31col 30% + margin(0 60px 0 100px)、
   .home6col 50% + margin-right:60px。兩欄合計 80% 寬 + 220px，
   約 1100px 以上才排得下；以下就折行成兩條窄柱，右欄只剩一百多 px
   → 文字被迫一字一行直排、標題卡片互疊（使用者 2026-11-16 手機截圖）。
   這裡 1100px 以下改成上下堆疊，並把 JS／舊 CSS 寫死的
   高度（#plc1 480px、iframe 480px、.content 460px）放掉。 */
@media (max-width:1100px){
  section#msub4 #zerogrid{display:block !important;}

  section#msub4 .home31col,
  section#msub4 .home6col{
    width:100% !important;max-width:100% !important;
    float:none !important;height:auto !important;min-height:0 !important;
    margin:0 0 14px 0 !important;padding:14px 14px 10px !important;
    box-sizing:border-box;border-radius:12px !important;
  }
  section#msub4 .home31col{padding:14px 14px 4px !important;}

  /* 左欄：手風琴不內捲（手機上雙層捲動很難操作），高度交還內容 */
  section#msub4 ul.rjacc{max-height:none !important;overflow:visible !important;}
  section#msub4 ul.rjacc > li.open .rjacc-body{max-height:none !important;}
  section#msub4 .home9top,
  section#msub4 .home9bottom{
    width:100% !important;height:auto !important;margin:0 0 8px 0 !important;
    padding:0 0 6px !important;background:transparent !important;
  }
  section#msub4 #plctext,
  section#msub4 #pitemna{font-size:18px !important;line-height:1.4 !important;}

  /* 右欄：JS 會把 #plc1 寫死 480px、iframe 也是 480 高 */
  section#msub4 #plc1,
  section#msub4 #plc1 .content,
  section#msub4 .content{height:auto !important;max-height:none !important;}
  section#msub4 #plc1{padding:6px 2px 0 !important;overflow:visible !important;}
  section#msub4 #pedata1{height:auto !important;}
  section#msub4 #pedata1 iframe{height:300px !important;}
  section#msub4 #pedata{font-size:13px !important;line-height:1.8 !important;}
  section#msub4 #pedata span{font-size:1em !important;}
}

/* 1101-1240（小筆電／橫向平板）：兩欄排得下但很擠，左右留白收窄一點，
   避免 0.8W+220 剛好卡在邊界又折行。 */
@media (min-width:1101px) and (max-width:1240px){
  section#msub4 .home31col{margin:5px 24px 0 24px !important;}
  section#msub4 .home6col{margin:5px 24px 55px 0 !important;}
}

/* 保險：js/css3-mediaqueries.js（已從 index.php 移除）會對 <html> 下
   inline style="margin-left:-32767px"，把整頁撐寬 33000px。
   inline style 沒有 !important，這裡用 !important 壓回去；
   萬一別頁又載入那支 polyfill 也不會再壞。 */
html{margin-left:0 !important;}

/* 761-1100（平板／小筆電）：單欄但卡片橫跨整個螢幕太寬，限制寬度並置中。 */
@media (min-width:761px) and (max-width:1100px){
  section#msub4 .home31col,
  section#msub4 .home6col{
    max-width:760px !important;
    margin-left:auto !important;margin-right:auto !important;
  }
}

/* 首屏保險：flexslider.css 把 .slides > li 設成 display:none 等 JS 來接手，
   但線上主機慢（jQuery 常要 10~20 秒才載完）→ 這段時間整個首屏是空白的。
   先讓第一張顯示（li 高度由上面的 clamp 撐著），flexslider 初始化後會用
   inline style 覆蓋，不影響輪播。 */
#home .flexslider .slides > li:first-child{display:block !important;}

/* 輪播左右箭頭：flexslider.css 用 @font-face(flexslider-icon) 的 ::before 畫箭頭，
   但線上字型常常沒載入（document.fonts.check('40px flexslider-icon') === false），
   ::before 變空白，只剩 <a> 裡的 "Previous"/"Next" 文字露出來（40px 寬被 overflow 裁掉一半），
   疊在圖片與說明條上很醜 → 藏掉文字，改用純 CSS 畫雪弗龍，不依賴任何字型。 */
#home .flexslider .flex-direction-nav a{
  text-indent:-9999px !important;
  font-size:0 !important;line-height:0 !important;
}
#home .flexslider .flex-direction-nav a::before{
  content:"" !important;
  position:absolute;top:50%;left:50%;
  width:12px;height:12px;margin:-6px 0 0 -6px;
  border:0;
  border-top:2px solid rgba(246,241,230,.95);
  border-left:2px solid rgba(246,241,230,.95);
  font-size:0 !important;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.45));
}
#home .flexslider .flex-direction-nav a.flex-prev::before{transform:rotate(-45deg);margin-left:-8px;}
#home .flexslider .flex-direction-nav a.flex-next::before{transform:rotate(135deg);margin-left:-4px;}

/* 卡片左側的裝飾書籤（style.css `.home3col-ribbon{position:absolute;left:-23px}`）
   在桌機是掛在卡片外面、靠 100px 左留白才放得下；窄螢幕留白只有 10px
   → 整個被切掉一半，看起來像破圖（使用者 2026-11-16 手機截圖左緣那團小圖）。
   1100px 以下直接隱藏，資訊無損。 */
@media (max-width:1100px){
  .home3col-ribbon{display:none !important;}
}

/* ================= 頁首：手機／小平板（≤980）改成兩列式 ================= */
/* 2026-11-17 使用者反映「民宿名稱、氣象、鏈結 title 都不見了」：
   舊的 ≤760 精簡規則為了省空間，把 #cnav-logtext / #cnav-cwbtext / #cnav-menu
   全部 display:none，只留 logo＋圖示 → 品牌名、氣象、每個圖示的標題都消失。
   這裡改成「第一列：logo＋民宿名稱＋氣象膠囊；第二列：圖示＋標題」，
   兩列都留在 fixed 頁首內，內容高度由 #rj-navgap 的 JS 自動補償。 */
.cnav-lbl{display:none;}            /* 桌機版標題由 #cnav-menu 負責，圖示內的標籤隱藏 */

@media (max-width:980px){
  #cnav-top{
    height:auto !important;
    padding:7px 10px 9px !important;
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:0 !important;
    box-sizing:border-box;
  }
  /* 舊站這些都是 position:fixed + 絕對座標，先全部拉回流排版 */
  #cnav-logimg,#cnav-logtext,#cnav-sldate,#cnav-imgmenu,#cnav-cwbtext{
    position:static !important;
    left:auto !important;right:auto !important;top:auto !important;bottom:auto !important;
    margin:0 !important;float:none !important;
  }
  #cnav-logimg{flex:0 0 auto;order:1;display:flex;align-items:center;height:40px;}
  #adminlogo{display:flex !important;align-items:center;height:40px;}
  #adminlogo img{width:auto !important;height:38px !important;max-width:none !important;border-radius:8px !important;}

  #cnav-logtext{display:block !important;order:2;flex:1 1 auto;min-width:0;padding:0 8px !important;}
  #cnav-logtext #adminname{
    display:block;font-family:var(--nj-serif);
    font-size:15.5px !important;line-height:1.25 !important;letter-spacing:.08em;
    color:#f3ecd8 !important;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  #cnav-sldate{display:none !important;}      /* 日期在手機讓位給氣象 */

  /* 氣象：做成金色小膠囊，點它開未來一週天氣 */
  #cnav-cwbtext{
    display:flex !important;align-items:center;order:3;flex:0 0 auto;
    padding:4px 9px !important;margin-left:4px !important;
    height:auto !important;min-height:0 !important;line-height:1.1 !important;
    border:1px solid rgba(201,162,39,.45);border-radius:999px;
    background:rgba(201,162,39,.12);
  }
  #cnav-cwbtext .cwb-ico{height:16px;margin-right:5px;}
  #cnav-cwbtext .cwb-ico img{width:16px;height:16px;}
  #cnav-cwbtext .cwb-tmp{font-size:12.5px !important;color:#f2d79b !important;}
  #cnav-cwbtext .cwb-city{display:inline-block !important;font-size:11.5px !important;color:#cfe0d8 !important;}
  #cwbpop{top:106px !important;}          /* 貼在兩列式頁首下緣（實測頁首約 104px） */

  /* 第二列：五個圖示＋標題，平均分掉整個寬度 */
  #cnav-imgmenu{
    order:4;flex:1 0 100%;width:100% !important;
    margin-top:7px !important;padding:0 !important;
    overflow:visible !important;text-align:center !important;
  }
  #cnav-imgmenu ul{display:flex !important;justify-content:space-between !important;gap:2px !important;}
  #cnav-imgmenu ul li{flex:1 1 0 !important;width:auto !important;min-width:0 !important;}
  #cnav-imgmenu ul li a{display:flex !important;flex-direction:column;align-items:center;text-decoration:none !important;}
  #cnav-imgmenu ul li img{width:26px !important;height:26px !important;border-radius:7px !important;}
  #cnav-imgmenu .cnav-lbl{
    display:block !important;margin-top:4px;
    font:400 10.5px/1.25 -apple-system,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;
    color:#cfe0d8 !important;letter-spacing:.02em;white-space:nowrap;
  }
  #cnav-imgmenu a.cnav-on .cnav-lbl{color:#e8c96a !important;}
  #cnav-imgmenu a:hover .cnav-lbl{color:#f3ecd8 !important;}
  #cnav-menu{display:none !important;}        /* 標題已併到圖示下方 */
  #fixed-ad5{display:none !important;}
  #rj-navgap{height:104px;}                   /* 後備值，實際由 JS 量測覆蓋 */
}

@media (min-width:601px) and (max-width:980px){
  #cnav-imgmenu ul{max-width:580px !important;margin:0 auto !important;}
}

/* 超窄機（iPhone SE 320 / 舊小螢幕）：再縮一級，避免第一列折行 */
@media (max-width:340px){
  #adminlogo img{height:34px !important;}
  #cnav-logtext{padding:0 6px !important;}
  #cnav-logtext #adminname{font-size:13.5px !important;letter-spacing:.03em;}
  #cnav-cwbtext{padding:3px 7px !important;}
  #cnav-cwbtext .cwb-city{display:none !important;}
  #cnav-imgmenu ul li img{width:24px !important;height:24px !important;}
  #cnav-imgmenu .cnav-lbl{font-size:10px !important;}
}

/* ===== 地理位置卡片：地圖填滿卡片剩餘高度（2026-11-17）
   症狀：桌機（>1240）卡片被左欄 stretch 到 633px，地圖 iframe 只有 300px
        → 地圖下方留一大片 190px 空白（使用者回報「底部空白太大」）。
   作法：卡片改 flex 直向，地圖區塊 flex:1 吃掉剩餘高度，iframe/img 撐滿。 ===== */
@media (min-width:761px){
  #msub0 #zerogrid > .home2col{display:flex;flex-direction:column;}
  #msub0 #zerogrid > .home2col > #imgtest,
  #msub0 #zerogrid > .home2col > .card-22{flex:0 0 auto;}
  #msub0 #zerogrid > .home2col > h1:empty{display:none !important;}
  #msub0 #zerogrid > .home2col > #showmp{
    flex:1 1 auto;display:block;margin-top:4px;
    min-height:300px;line-height:0;font-size:0;
  }
  #msub0 #zerogrid > .home2col > #showmp iframe,
  #msub0 #zerogrid > .home2col > #showmp img{
    display:block;width:100% !important;height:100% !important;
    min-height:300px;border:0;vertical-align:top;
  }
}

/* 地圖填滿後會直接貼到卡片底框（實測 padding-bottom 在桌機被別條規則壓成 0，
   間距只剩 1px）→ 使用者覺得太擠。這裡補回 16px 底部留白，地圖少 16px、卡片高度不變。
   只在 >1240 生效（761~1240 是上下堆疊、卡片高由內容決定，原本就有 18px padding）。 */
@media (min-width:1241px){
  #msub0 #zerogrid > .home2col{padding-bottom:16px !important;}
}
/* 手機（<=760）同樣是 padding-bottom:0、地圖貼底 → 一併補 16px */
@media (max-width:760px){
  #msub0 #zerogrid > .home2col{padding-bottom:16px !important;}
}
