

#centered-footer-img .tatsu-single-image-inner img {
  display: block;
  margin: 0 auto !important;
}


.custom-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #db4433;  /* 純紅底，無漸變 */
  color: #e1d5c9;
  font-family: 'cera-pro-light', sans-serif;
  font-size: 12px;
  padding: 6px 20px;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  position: relative;
  z-index: 999;
  transition: background 0.3s ease-in-out;
}

/* 🪩 字 hover 高光 */
.custom-footer-bar .left-text:hover {
  color: #ffffff;
  text-shadow: 0 0 4px #fefefe;
  transition: all 0.3s ease-in-out;
  cursor: default;
}

/* 💫 logo hover 微轉＋亮 */
.custom-footer-bar .right-logo img {
  height: 20px;
  transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

.custom-footer-bar .right-logo img:hover {
  transform: rotate(8deg) scale(1.05);
  filter: brightness(1.2);
}



/* Grid */
.image-grid-section{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  width:100%;
}

@media (max-width:1024px){
  .image-grid-section{ grid-template-columns:repeat(2,1fr); }
}

.image-grid-item{
  position:relative;
  display:block;            /* anchor is the tile */
  overflow:hidden;
  aspect-ratio:3/2;
  text-decoration:none;
  color:inherit;
  transition:transform .4s ease, box-shadow .4s ease;
}

.image-grid-item:hover{
  transform:scale(1.05) translateY(-4px);
  box-shadow:0 10px 20px rgba(0,0,0,.25);
  z-index:3;
}

.image-grid-item img{
  width:100%; height:100%;
  object-fit:cover; display:block;
  transition:transform .4s ease;
}

.image-grid-overlay{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding:1rem; line-height:1.4;
  background:rgba(27,79,77,.75);
  color:#e1d5c9;
  font-family:'cera-pro', sans-serif;
  font-weight:600; font-size:1.2rem;
  opacity:0; transition:opacity .3s ease;
}

.image-grid-item:hover .image-grid-overlay{ opacity:1; }

@media (max-width:1024px){ .image-grid-overlay{ font-size:1.05rem; padding:.7rem; } }
@media (max-width:640px){ .image-grid-overlay{ font-size:.95rem;  padding:.6rem; } }

/* 讓 overlay 變成可點擊的連結、字體更小更乾淨 */
.image-grid-item .image-grid-overlay{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  font-size:1.15rem;   /* 桌機更小 */
  line-height:1.35;
  padding:.7rem;
  font-weight:600;
}
.image-grid-item .image-grid-overlay .sub{ display:block; font-weight:500; opacity:.95; }

/* 平板、手機再小一點 */
@media (max-width:1024px){
  .image-grid-item .image-grid-overlay{ font-size:1rem; padding:.65rem; }
}
@media (max-width:640px){
  .image-grid-item .image-grid-overlay{ font-size:.92rem; padding:.6rem; }
}

/* 保險：避免主題注入的 p 標籤影響排版 */
.image-grid-section p{ margin:0; }



/* 修復模板自動蓋住文字的 hover 效果 */
.custom-feature-box,
.custom-feature-box:hover {
  background-color: inherit !important;
  position: relative;
  overflow: visible;
}

/* 防止模板加的黑色遮罩層 */
.custom-feature-box::before,
.custom-feature-box::after {
  content: none !important;
  display: none !important;
}

/* 強制文字顯示 */
.custom-feature-box h5,
.custom-feature-box p,
.custom-feature-box span {
  color: #1b4f4d !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  z-index: 3 !important;
  position: relative;
  opacity: 1 !important;
}

/* 強制讓 ICON 也不被遮住 */
.custom-feature-box i {
  position: relative;
  z-index: 3;
}


/* 全部套用通用 max width 調整，撐滿寬 */
.image-text-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
  padding: 60px 40px;
  max-width: 100%;
  box-sizing: border-box;
}

/* 左右欄強制擴展 */
.image-slider, .image-text {
  flex: 1;
  min-width: 50%;
}

/* 背景分段配色 */
.suite-1 { background-color: #f9f7f4; }
.suite-2 { background-color: #e1d5c9; }
.suite-3 { background-color: #f9f7f4; }
.suite-4 { background-color: #e1d5c9; }
.suite-5 { background-color: #f9f7f4; }
.suite-6 { background-color: #e1d5c9; }
.suite-7 { background-color: #f9f7f4; }
.suite-8 { background-color: #f9f7f4; }

/* 響應式手機友善設計 */
@media (max-width: 768px) {
  .image-text-row {
    flex-direction: column;
    gap: 40px;
  }
  .image-slider, .image-text {
    width: 100%;
  }
}

.image-text-row {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 60px;
  padding: 40px 5vw;  /* 上下距離、左右用響應式單位 */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.image-slider, .image-text {
  flex: 1 1 50%;
  min-width: 0;
}

.image-text h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

.image-text p {
  margin-top: 0;
  margin-bottom: 16px;
}

.image-text-row + .image-text-row {
  margin-top: 0;
}

@media (max-width: 768px) {
  .image-text-row {
    flex-direction: column !important;
    gap: 40px;
  }

  .image-slider,
  .image-text {
    width: 100% !important;
  }
}
.image-text-row {
  margin-top: -30px !important;
  margin-bottom: -30px !important;
}



/* 針對房型介紹 Section 調整字體和間距 */
.image-text-row .image-text {
  font-size: 1.15rem; /* 調大正文 */
  line-height: 1.8;   /* 增加行距讓文字更透氣 */
  padding: 40px;      /* 內距讓內容不貼邊 */
  max-width: 90%;     /* 文字區域不會太寬 */
}

.image-text-row .image-text h3 {
  font-size: 2.2rem; /* 調大標題 */
  font-weight: 700;
  margin-bottom: 20px;
  color: #1b4f4d; /* 主題色 */
}

/* 圖片與文字之間的空隙 */
.image-text-row {
  align-items: center;
  gap: 50px;
}

/* 讓手機端也好看 */
@media (max-width: 768px) {
  .image-text-row {
    flex-direction: column !important;
    gap: 30px;
  }
  .image-text-row .image-text {
    padding: 20px;
    font-size: 1.05rem;
  }
  .image-text-row .image-text h3 {
    font-size: 1.8rem;
  }
}


/* 0) 停止 iOS / Safari 自動放大文字 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* 1) 基礎容器：讓左右欄在桌機視窗垂直置中，並限制最大寬度 */
.image-text-row {
  display: flex;
  justify-content: space-between;
  align-items: center;               /* 原本是 flex-start，改為置中 */
  gap: 56px;                         /* 稍微收斂 */
  max-width: 1200px;                 /* 讓行長更舒服，避免字太寬影響 autosize */
  margin: 64px auto;                 /* 收斂段落前後間距 */
  padding: 0 20px;
}
.image-text-row.reverse { flex-direction: row-reverse; }

/* 2) 左：圖片/滑動區，指定穩定比例避免高度忽大忽小 */
.image-slider {
  flex: 1 1 56%;
  position: relative;
  aspect-ratio: 3 / 2;               /* 一致高度，舊瀏覽器會忽略沒關係 */
  min-height: 420px;                 /* 作為 aspect-ratio 的下限 */
}
.image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;                  /* 保持裁切一致 */
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform .3s ease;
}
.image-slider img:hover { transform: scale(1.015); }

/* 3) 右：文字欄，用 flex 把內容「自身」垂直置中 */
.image-text {
  flex: 1 1 44%;
  display: flex;                      /* 新增 */
  flex-direction: column;             /* 新增 */
  justify-content: center;            /* 垂直置中關鍵 */
  min-height: 420px;                  /* 與圖片區對齊 */
  padding-right: 6px;
  font-family: "Cera Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 4) 排版尺寸：用 clamp 做響應式，避免某些瀏覽器把 heading 放過大 */
.image-text h3 {
  /* 22px～34px 之間，跟視窗寬度連動 */
  font-size: clamp(22px, 2.2vw + 10px, 34px) !important;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #1b4f4d;
  font-weight: 700;
}
.image-text p {
  font-size: clamp(15px, 0.6vw + 13px, 18px);
  line-height: 1.6;
  color: #444;
  margin: 0 0 10px;
  max-width: 60ch;                   /* 可讀行寬，防止 autosize 觸發 */
}

/* 5) slick dots：避免用負 bottom 造成段落之間空白不可控 */
.image-slider .slick-dots {
  position: static !important;       /* 讓它佔位到圖片下方 */
  margin-top: 10px;
}
.image-slider .slick-dots li button:before { font-size: 11px; color: #bbb; }
.image-slider .slick-dots li.slick-active button:before { color: #1b4f4d; }

/* 6) 手機排版：把縱向空白、欄距、文字對齊全部收緊 */
@media (max-width: 768px) {
  .image-text-row,
  .image-text-row.reverse {
    flex-direction: column !important;
    align-items: stretch;            /* 讓兩塊滿寬 */
    gap: 18px;                       /* 原本 60px 太大 → 18px */
    margin: 28px auto;               /* 段落間距大幅收斂 */
  }
  .image-slider { 
    width: 100%; 
    min-height: 0;                   /* 讓手機高度跟著寬度走 */
    aspect-ratio: 16/10;
  }
  .image-text {
    min-height: auto;                /* 取消固定高度，避免被撐高 */
    padding-right: 0;
    text-align: left;                /* 讀性更好；要置中可改回 center */
  }
  .image-text h3 { 
    font-size: clamp(20px, 4.4vw + 6px, 26px) !important; 
  }
  .image-slider .slick-dots { margin-top: 6px; }
}

/* 7) 滾動條美化（可留可不留） */
.image-text::-webkit-scrollbar { width: 6px; }
.image-text::-webkit-scrollbar-thumb { background: #bbb; border-radius: 3px; }

/* ── Breathing space：微加上下間距與內距 ── */
:root{
  --section-y-desktop: 56px;  /* 桌機：每段上下距 */
  --section-y-mobile:  34px;  /* 手機：每段上下距 */
  --section-gap-desktop: 56px;/* 桌機：圖文間距 */
  --section-gap-mobile:  22px;/* 手機：圖文間距 */
}

body .image-text-row{
  margin-block: var(--section-y-desktop) !important; /* 上下各留空 */
  gap: var(--section-gap-desktop) !important;
  padding-block: 8px; /* 段內也塞一點空氣 */
}

/* 首段/末段別太頂或太壓 */
body .image-text-row:first-child{ margin-top: calc(var(--section-y-desktop) * .6) !important; }
body .image-text-row:last-child { margin-bottom: calc(var(--section-y-desktop) * .8) !important; }

@media (max-width: 768px){
  body .image-text-row{
    margin-block: var(--section-y-mobile) !important;
    gap: var(--section-gap-mobile) !important;
    padding-block: 12px; /* 手機多一點內距，視覺不貼頭 */
  }
  body .image-text{ padding-block: 6px; }         /* 文字塊自身也留空 */
  body .image-text h3{ margin-bottom: 10px; }     /* 標題與內文拉開 */
  body .image-text p{  margin-bottom: 12px; }     /* 段落之間留白 */
  .image-slider .slick-dots{ margin-top: 8px; }   /* 點點緊一點即可 */
}


/* ——— Brand & base ——— */
#fluentform_4{ --brand:#1b4f4d; --ink:#2b2b2b; --muted:#8a8a8a; --btn:#6e665b; --btnTxt:#fff; }

/* 左對齊 + 間距 */
#fluentform_4 .ff-el-group{ margin-bottom:14px; text-align:left; }

/* 欄位：字色更深、邊框更清楚 */
#fluentform_4 .ff-el-form-control,
#fluentform_4 input[type="text"],
#fluentform_4 input[type="email"],
#fluentform_4 input[type="tel"],
#fluentform_4 textarea, 
#fluentform_4 select{
  background:#fff;
  color:var(--ink);
  border:1px solid rgba(0,0,0,.18);
  border-radius:8px;
  padding:12px 14px;
  font-size:16px; line-height:1.45;
}
#fluentform_4 ::placeholder{ color:var(--muted); }
#fluentform_4 label.ff-el-form-label{ color:#494949; font-weight:500; margin-bottom:6px; }

/* checkbox 放大 + 品牌色 */
#fluentform_4 input[type="checkbox"]{ width:18px; height:18px; accent-color:var(--brand); }
#fluentform_4 .ff_checklist .ff_item_top{ gap:10px; }

/* Submit：柔和一點的灰褐色 */
#fluentform_4 .ff-btn-submit{
  background:var(--btn); border:1px solid var(--btn);
  color:var(--btnTxt);
  padding:12px 18px; border-radius:999px; letter-spacing:.03em;
}
#fluentform_4 .ff-btn-submit:hover{ filter:brightness(.92); }

/* 成功訊息：去外框/底色/陰影（多重選擇器保證命中） */
#fluentform_4 .ff-message-success,
#fluentform_4 .ff-message-success * ,
#fluentform_4 .ff-message-success.ff-centered,
#fluentform_4 .ff-message-success .ff_msg,
#fluentform_4 .ff-success,
#fluentform_4 .ff_success{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  color:#1b4f4d !important;
  text-align:center;
}
/* 若主題還額外加了卡片容器 */
#fluentform_4 .ff_form_success,
#fluentform_4 .ff_global_msg{
  background:transparent !important; border:0 !important; box-shadow:none !important; padding:0 !important;
}

/* 頁首重疊保險：確保表單區可點擊（若未來再放回到 header 下面很近） */
#fluentform_4 input, #fluentform_4 select, #fluentform_4 textarea{ position:relative; z-index:1; pointer-events:auto; }

/* 手機：收斂空白 */
@media (max-width:768px){
  #fluentform_4 .ff-el-group{ margin-bottom:12px; }
}


