/* ════════════════════════════════
   麵包屑導覽
════════════════════════════════ */
.breadcrumb-container {
    padding: 20px 0;
    font-size: 0.95rem;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-muted, #666);
}

/* 分隔箭頭 */
.breadcrumb-item:not(:last-child)::after {
    content: "/"; /* 也可以換成 ">" */
    margin-left: 10px;
    color: #ccc;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-color, #C8974A);
    transition: 0.3s;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-dark, #333);
    font-weight: 500;
}



/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative; 
  /* 修正：使用 min-svh (如果瀏覽器支援) 或確保為置中 */
  min-height: 100vh; 
  min-height: 100svh; /* 針對手機瀏覽器工具列優化 */
  background-size: cover;
  display: flex; 
  flex-direction: column;
  align-items: center;      /* 水平置中 */
  justify-content: center;  /* 關鍵：改為垂直置中，不再推到底部 */
  overflow: hidden; 
  background-color: var(--dark);
  text-align: center;
}

.hero__bg {
  position: absolute; inset: 0;
  object-fit: cover;       /* ← 取代 background-size: cover */
  object-position: center;
  width: 100%;
  height: 100%; 
  opacity: .72;
}

.hero__bg-img--parallax {
  height: 130%;
  top: -15%;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px; /* 限制寬度避免文字太散 */
  margin: 0 auto;   /* 確保容器本身置中 */
  margin-top: 20vh;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.18;
  color: var(--text-light); margin-bottom: 10px;
}
.hero__subtitle {
  font-size: 15px; line-height: 1.75;
  color: rgba(255,255,255,.78);
  margin-bottom: 10px;
}

/* ── Hero scroll CTA ── */
.hero__scroll-cta {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.scroll-cta__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  color: var(--text-light);          /* 文字 & 圖示同色 */
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s;
}

.scroll-cta__link:hover {
  opacity: 0.75;
}

.scroll-cta__text {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: inherit;                   /* 繼承同一個 --cta-color */
}

.scroll-cta__arrow {
  display: flex;
  color: inherit;                   /* SVG stroke 也繼承 */
  animation: bounce-down 1.6s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0);    opacity: 1;    }
  50%       { transform: translateY(8px); opacity: 0.55; }
}

/* ════════════════════════════════
   AGENT
════════════════════════════════ */
.agent { padding: 50px 0 30px; background: #fff; }
.agent__inner {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 30px; align-items: center; padding: 0 60px;
}
.agent__name {
  font-family: var(--font-head); font-size: 2.6rem;
  font-weight: 600; margin-bottom: 6px;
  color: var(--text-dark);
}
.agent__article-title{
  margin-bottom: 10px;
}
.agent__role {
  font-size: 14px; color: var(--primary); letter-spacing: 1px;
  margin-bottom: 5px; display: flex; align-items: center; gap: 8px;
}

.agent__photo { height: 480px; border-radius: 2px; order: 2; }
.agent__photo img { 
  height: 100%; 
  border-radius: 20px; 
  /* position: relative;
  right: 110px; */
}

/* [新增] 讓整個文字容器內部水平置中 */
.agent__text {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
  transform: translateY(-30px); 
  order: 1;
}

.agent__text {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
  transform: translateY(0px); /* 負值往上調 */
}

.agent__bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  width: 100%;
  display: block;
  height: 21.6rem; /* 1.8 × 14 行，依空間調整 */
  overflow: hidden;
  text-align: left;
  align-self: stretch;
}

/* .agent__bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 36px;
  width: 100%;
  max-width: 650px; */

  /* 核心邏輯：多行省略改為 10 行 */
  /* display: -webkit-box;
  -webkit-line-clamp: 10; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
} */
/* 
.agent__bio * {
  display: block;
  text-align: center !important;
  font-size: 1rem !important;
  line-height: 1.8 !important;
  margin: 0 !important; 
  padding: 0;
  color: inherit !important;
} */



/* 4. 恢復段落換行與間距 */
.agent__bio p {
  display: block; 
  width: 100%;
  margin-bottom: 12px !important; /* 確保有換行間距 */
  min-height: 1em; /* 防止空行縮進去 */
}

/* 5. 確保編輯器的 Inline Style (對齊、顏色、大小) 能生效 */
.agent__bio [style*="text-align: center"] { text-align: center !important; }
.agent__bio [style*="text-align: right"] { text-align: right !important; }
.agent__bio [style*="text-align: left"] { text-align: left !important; }

/* 讓編輯器選的顏色與大小不要被 CSS 強制蓋掉 */
.agent__bio span[style] {
  display: inline-block; 
}



/* ════════════════════════════════
   最新物件
════════════════════════════════ */
.properties { padding: 40px; background: var(--light-bg); }
.properties__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.prop-card {
  background: #fff; border-radius: 9px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.prop-card__body { padding: 5px 8px 10px; }
.prop-card__addr { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.prop-card__area {
  font-size: 16px; color: var(--primary); letter-spacing: 1px;
  text-transform: uppercase; 
}
.prop-card__desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.65;
  margin-bottom: 14px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.prop-card__price { font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.properties__cta  { text-align: center; }

.prop-card__price--original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-right: 8px;
}

.prop-card__price--sale {
    color: #e74c3c;
    font-weight: 700;
}

/* ── 物件卡片圖片區 ── */
.prop-card__img {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  
}

.prop-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;   
  display: block;
}

/* ── 左上角標籤 ── */
.prop-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  z-index: 10;
  display: inline-block; /* 確保它是可視區塊 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* ── 水平資訊列 ── */
.prop-card__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  /* margin: 8px 0 12px; */
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 5px 0;
}
.prop-card__info-item  {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #555;
  white-space: nowrap;
}
.prop-card__info-item i {
  font-size: 0.85rem;
  color: #999;
  width: 14px;
  text-align: center;
}

.prop-item:nth-child(n+2) {
    display: none;
}

/* 1200px 以上顯示 5 張 */
@media (min-width: 1200px) {
  .prop-card:nth-child(n+6) { display: none; }
}

/* 1024px ~ 1199px 顯示 8 張 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .prop-card:nth-child(n+6) { display: flex; }
  .prop-card:nth-child(n+9) { display: none; }
  .prop-card__price--original{
    margin-right:0;
  }
  .prop-item:nth-child(n+2) {
    display: none;
  }
  
}

/* 1023px 以下顯示 6 張 */
@media (max-width: 1023px) {
  .prop-card:nth-child(n+7) { display: none; }
}


/* ════════════════════════════════
   LOOKING FOR 物件區塊設定
════════════════════════════════ */
.looking__inner   { position: relative; z-index: 2; }
.looking__heading {
  /* font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--text-light);
  margin-bottom: 60px; max-width: 480px; */
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem); 
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 30px;
  width: 100%;
  max-width: none !important;
}
.looking__tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.15);
}
.looking__tab {
  padding: 28px 0; text-align: center;
  font-size: 13px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  border-bottom: 2px solid transparent; cursor: pointer; transition: all .2s;
}
.looking__tab.active,
.looking__tab:hover { color: var(--primary); border-bottom-color: var(--primary); }
.looking__desc {
  /* margin-top: 40px; font-size: 15px; line-height: 1.8;
  color: rgba(255,255,255,.6); max-width: 640px; */
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ════════════════════════════════
   通用卡片組件 (Cat Card)
   適用於：物件分類 & 最新文章
════════════════════════════════ */
.cat-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  display: block;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}

.cat-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 取代 background-size: cover */
  object-position: center; /* 取代 background-position: center */
  transition: transform .4s ease;
  z-index: 1;
}

.cat-card__bg--default {
  background-color: var(--primary);
}

.cat-card:hover .cat-card__bg {
  transform: scale(1.05);
}

.cat-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  z-index: 2;
}

.cat-card__name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
  width: 90%;
  margin: 0;
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);  
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.cat-card__count{
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 4px;
  display: block;
}

/* ════════════════════════════════
   通用 Section 基底（兩區段共用）
════════════════════════════════ */
.articles-preview
.looking
 {
  padding: 50px 0 50px;
}

.articles-preview__heading 
.looking__heading
{
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-dark);
}


/* .articles-preview__desc */
.looking__desc {
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 560px;
}


/* ════════════════════════════════
   物件分類 區段
════════════════════════════════ */
.looking {
  background-color: var(--light-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 0px 0 60PX;
  overflow: hidden;
} 

.looking__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;           /* ← 基準間距 */
}


/* 物件分類按鈕 */
.more-btn-container {
    text-align: center;
    margin-top: 40px;
    /* margin-bottom: 20px; */
    width: 100%;
}

/* 物件分類區塊 - 動態按鈕 */
.btn-looking-dynamic {
    /* 定義變數並設定預設值 (後備色) */
    --bg-color: #C8974A;
    --text-color: #ffffff;
    --hover-bg: #1A1A2E;

    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary);
    color: var(--text-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-looking-dynamic:hover {
    background-color: var(--hover-bg);
    color: var(--text-color); /* 通常文字色不變 */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- 1. 預設/手機 (640px 以下) --- 
   顯示 6 張 */
.cat-card:nth-child(n+7) {
  display: none;
}

/* --- 2. 平板/中螢幕 (640px 以上) --- 
   顯示 8 張 */
@media (min-width: 640px) {
  .cat-card:nth-child(n+7) {
    display: flex; /* 恢復 7, 8 張 */
  }
  .cat-card:nth-child(n+9) {
    display: none; /* 隱藏 9 張以後 */
  }
}

/* --- 3. 桌機 (1200px 以上) --- 
   顯示 20 張 */
@media (min-width: 1200px) {
  .cat-card:nth-child(n+9) {
    display: flex; /* 恢復到 20 張全部顯示 */
  }
  /* 如果有第 21 張以後才隱藏 (雖然 slice 限制了 20) */
  .cat-card:nth-child(n+21) {
    display: none;
  }
}


/* ════════════════════════════════
   文章區塊專用設定 
════════════════════════════════ */
.article-section-wrap {
    padding: 0 !important; 
    position: relative;
}

.article-section__heading {
    font-family: var(--font-head);
    font-weight: 600;
}

.article-grid-two-col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 0;
}

/* 文章卡片 */
.article-horz-card {
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .3s, transform .3s; 
    text-decoration: none;
    color: inherit;
}

.article-horz-card:hover {
    transform: translateY(-8px); /* 向上位移 8 像素 */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* 增強陰影感 */
}

.article-horz-card__main {
    display: flex;
    flex-direction: column;  /* 改為垂直排列 */
    gap: 10px;
    text-decoration: none;
}

.article-horz-card__img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.article-horz-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}


.badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .06em;
    padding: 2px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    }

.article-horz-card__content {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.article-horz-card__title {
    font-weight: 500;
    line-height: 1.4;
    font-size: 1.2rem;
    width: 100%;             
    display: block;
    white-space: nowrap;     /* 強制單行，這是顯示省略號的關鍵 */
    overflow: hidden;        /* 隱藏超出範圍的文字 */
    text-overflow: ellipsis;
}
.article-horz-card__meta{
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .9rem;
    font-size: .8rem;
    color: var(--text-dark);
}

.article-horz-card__meta span::before {
  content: attr(data-label) '：';
  color: var(--text-muted);
}


/* 標籤 */
.article-tag-wrapper {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}
.tag-section-title {
  margin-bottom: 0 !important;
}

.article-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag-item {
    padding: 3px 12px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: opacity 0.2s;
}
/* ── 篩選列 ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 24px 60px;
  justify-content: center;
}

.filter-group {
  display: flex;
  flex-direction: row;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
  align-items: baseline;
}

.filter-group__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 6px;
  min-width: 36px;
  letter-spacing: .04em;
}

.filter-select{
  -moz-appearance: none;
  appearance: none;
  padding: 6px 32px 6px 12px;
  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='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  background-color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  border: 1.5px solid #767676;
}

/* ── 搜尋區域 ── */
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-search__input {
  padding: 5px 12px;
  border: 1.5px solid #767676;
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
  min-width: 200px;
}
.filter-search__input:focus { border-color: var(--primary); }
.filter-search__btn {
  padding: 5px 16px;
  background: var(--dark);
  color: var(--text-on-dark);
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-search__btn:hover {
  background: var(--primary);
  color: var(--text-on-primary);
}
.btn-reset,
.filter-search__clear {
  color: #999;
  font-size: 1rem;
  text-decoration: none;
  padding: 5px;
}
.btn-reset:hover { color: var(--primary); }

/* 文章卡片基礎隱藏邏輯 */
/* 預設 (手機 640 以下)：看 6 張 */
.article-horz-card:nth-child(n+7) { display: none; }

/* 640px - 767px：看 8 張 */
@media (min-width: 640px) {
  .article-horz-card:nth-child(n+7) { display: flex; }
  .article-horz-card:nth-child(n+9) { display: none; }
}

/* 768px - 1023px：看 6 張 (縮減) */
@media (min-width: 768px) {
  .article-horz-card:nth-child(n+7) { display: none; }
}

/* 1024px - 1199px：看 8 張 (增加) */
@media (min-width: 1024px) {
  .article-horz-card:nth-child(n+7) { display: flex; }
  .article-horz-card:nth-child(n+9) { display: none; }
}

/* 1200px 以上：看 10 張 */
@media (min-width: 1200px) {
  .article-horz-card:nth-child(n+9) { display: flex; }
  .article-horz-card:nth-child(n+11) { display: none; }
}


/* ════════════════════════════════
   SERVICES
════════════════════════════════ */
.services { padding: 30px 0 !important; background: #fff; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-item{
  border: solid 1px rgba(0,0,0,.1); 
  padding: 30px 20px 10px;
  border-radius: 15px; 
  background: rgba(255, 255, 255, 0.1); /* 背景必須是半透明 */
  backdrop-filter: blur(10px);          /* 讓背景後方的內容模糊 */
  -webkit-backdrop-filter: blur(10px);  /* 確保 Safari 瀏覽器相容 */
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); 
}
.service-item__title {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 600;
  margin-bottom: 14px; position: relative;
  color: var(--primary);
}
.service-item__title::after {
  position: absolute; bottom: 0; left: 0;
  width: 36px; height: 2px; background: var(--primary);
}
.service-item__desc {
  font-size: 14px; line-height: 1.8;
  color: var(--text-muted); margin-bottom: 20px;
}
.service-item__link {
  font-size: 13px; font-weight: 500; color: var(--primary);
  letter-spacing: .5px; border-bottom: 1px solid var(--primary);
  padding-bottom: 2px; display: inline-block; transition: opacity .2s;
}
.service-item__link:hover { opacity: .7; }

/* .service-item__icon{
  margin-bottom: 0px !important;
  color: var(--primary);
} */

.service-item__icon svg *:not([fill="none"]) {
  fill: inherit;
}

/* ════════════════════════════════
   TESTIMONIALS
════════════════════════════════ */
/* .testimonials { padding: 100px 0; background: var(--light-bg); }
.testimonials__top {
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; margin-bottom: 56px;
}
.testimonials__desc {
  font-size: 15px; line-height: 1.8;
  color: var(--text-muted); max-width: 480px; margin-top: 16px;
}
.stat { text-align: right; }
.stat__num {
  font-family: var(--font-head); font-size: 4rem;
  font-weight: 700; color: var(--primary); line-height: 1;
}
.stat__label { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.testi-card { background: #fff; border-radius: 2px; overflow: hidden; }
.testi-card__photo { height: 260px; }
.testi-card__bubble {
  background: #fff; margin: -30px 16px 16px; padding: 20px 18px 22px;
  position: relative; z-index: 2;
  box-shadow: 0 4px 24px rgba(0,0,0,.07); border-radius: 2px;
}
.testi-card__text { font-size: 13px; line-height: 1.75; color: var(--text-muted); } */

 

/* ════════════════════════════════
   RWD — 由大到小統一管理
════════════════════════════════ */
/* ── 1024px（平板）── */
@media (max-width: 1024px) {
  .properties__grid     { grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; }
  .looking__grid        { grid-template-columns: repeat(4, 1fr); }
  .articles-grid        { grid-template-columns: repeat(2, 1fr); }
  .article-grid-two-col { grid-template-columns: repeat(4, 1fr); }
  .agent__inner         { grid-template-columns: repeat(2, 1fr); gap: 25px; }
  .agent__photo         { height: 360px; order: 2; }
  .agent__photo img     { right: 0; }
  .agent__bio           { margin-bottom: 30px; overflow: visible; height: auto;}
  .services__grid,
  .testimonials__grid   { grid-template-columns: 1fr 1fr; }
  .looking__tabs        { grid-template-columns: 1fr; }
  .container{padding: 20px 20px;}
  .agent{
    padding: 30px 10px 0;
  }
  .agent__photo {
    height: auto;
    aspect-ratio: 4 / 4;  /* 直立比例 */
  }
  .agent__photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
  }

  .looking{
    padding: 0px;
  }

  .services{
    padding: 0 0 10px !important;
  }

  .properties{
    padding: 10px 0 0;
  }

  .article-section-wrap{
    padding:  10px 0 0 !important;
  }

  .article-horz-card__main{
    gap: 5px;
    align-items: flex-start;
    flex-direction: row;
  }
  .article-horz-card__img {
    /* align-self: flex-start;  讓圖片對齊頂端並維持原比例 */
    height: auto;
    overflow: hidden;
    background-color: #eee;
  }
  .article-horz-card__content {
    flex: 1; 
    min-width: 0;
  }
  .article-section__heading{
    margin-bottom: 25px !important;
  }

  .section-heading {
    font-size: clamp(1.5rem, 8vw, 2rem);
    margin-bottom: 25px !important;
  }

  .looking__heading{
    margin-bottom: 25PX;
  }
  
  .prop-card {
    display: flex ;
    flex-direction: row ; /* 圖片在左，文字在右 */
    border-radius: 9px;
    background: #fff; /* 或你的背景色 */
    overflow: hidden;
    align-items: stretch; /* 讓圖片與文字等高 */
    min-height: 50px ;    /* 設定一個最小高度，視覺較統一 */
  }
  .prop-card__img{
    width: 110px ;    /* 固定寬度，避免被擠壓 */
    min-width: 110px ;
    height: auto ;
    border-radius: 0;  
  }

}

/* ── 768px（手機）── */
@media (max-width: 768px) {

  /* Hero */
  .hero__content        { padding: 60px 20px 60px; }
  /* Services & Testimonials */
  .services__grid,
  .testimonials__grid   { grid-template-columns: 1fr; gap: 20px; padding: 0 10px; }
  .services{padding: 10px 0 10px !important; }
  .testimonials__top    { grid-template-columns: 1fr; }
  .stat                 { text-align: left; margin-top: 24px; }

  /* 物件列表 */
  .properties__grid     { grid-template-columns:repeat(2, 1fr); gap: 12px; }
  .prop-card {
    display: flex ;
    flex-direction: row ; /* 圖片在左，文字在右 */
    border-radius: 9px;
    background: #fff; /* 或你的背景色 */
    overflow: hidden;
    align-items: stretch; /* 讓圖片與文字等高 */
    min-height: 50px;    /* 設定一個最小高度，視覺較統一 */
  }
  .prop-card__img{
    width: 150px ;    /* 固定寬度，避免被擠壓 */
    min-width: 130px ;
    height: auto ;
    border-radius: 0;  
  }
  .prop-card__img img   { height: 100%; object-fit: cover; }
  .prop-card__body      { flex: 1; padding: 5px 10px; }
  .prop-card__badge     { font-size: 0.65rem; padding: 3px 8px; top: 8px; left: 8px; }
  .prop-card__info      { gap: 6px 10px; }
  .prop-card__info-item { font-size: 0.75rem; }
  .prop-card__addr      { font-size: 0.9rem !important; }
  .prop-card__price     { font-size: 1rem !important; }

  /* 物件分類 & 文章 */
  .looking__grid,
  .articles-grid        { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cat-card__name       { 
    font-size: 0.9rem !important;  
  }
  .cat-card__overlay{
    background:none;
  }

  .looking,
  .articles-preview     { padding: 0px 5px 0px; }
  .article-section-wrap{
    padding: 20px 5px 0 !important;
  }

  /* 文章卡片 */
  .article-grid-two-col { 
      grid-template-columns: repeat(3, 1fr); 
      gap: 12px;  
    }
  .article-horz-card{
    flex-direction: column;
  }

  .agent{
    padding: 20px 10px 0;
  }
  .agent__inner{grid-template-columns: 1fr; padding: 0 10px; }
  .agent__text{
    margin: 0 10px; order: 2;
  }
  .agent__photo{
    order: 1;
    margin: 20px 0 10px;
  }
  .properties{
    padding: 10px 5px;
  }
  
  .agent__bio{
    margin-bottom: 0;
  }

  .hero__bg {
    background-attachment: scroll !important; /* 手機強制改回 scroll */
  }
 

}

@media (max-width: 640px) {

  /* 所有 grid 全部單欄 */
  .looking__grid,
  .articles-grid {
    grid-template-columns:repeat(3, 1fr);
  }

  /* agent */
  .agent__text {
    margin: 0 5px;
  }
  .agent{
    padding: 0 10px 0;
  }
  .agent__bio           { margin-bottom: 20px;}

  /* 物件卡 */
  .properties__grid     { grid-template-columns:repeat(1, 1fr); gap: 5px; }
  /* .prop-card {
    flex-direction: column;
  }

  .prop-card__img {
    width: 100%;
    height: 180px;
  }

  .prop-card__body {
    padding: 12px;
  } */

  /* 字體微縮 */
  .prop-card__price {
    font-size: 0.95rem;
  }

  .prop-card__addr {
    font-size: 0.85rem !important;
  }

  /* container 再縮 */
  .container {
    padding: 15px 5px;
  }

  .services{
    padding: 0 5px 10px !important;
  }

  .article-section-wrap{
    padding: 5px 5px !important;
  }
  .article-grid-two-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .article-horz-card__main {
      display: flex;
      flex-direction: column;  /* 改為上下排列 */
  }

  .article-horz-card__img {
      flex: none;              /* 移除 flex-basis 限制 */
      width: 100%;             /* 圖片滿版 */
      max-width: 100%;         /* 覆蓋原本的 30% */
      height: 120px;           /* 固定高度讓 object-fit 生效 */
      aspect-ratio: unset;     /* 取消原本的比例限制 */
  }

  .article-horz-card__content{
    padding: 8px 6px;
  }

  
  .btn-primary{
    padding: 7px;
  }

  .filter-bar{
    /* display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1px 1px;
    margin: 0 40px; */
    justify-content: center; /* 讓內部的 filter-group 水平置中 */
    margin: 0 0 0 45px;          /* 縮小原本 40px 的左右邊距，避免太擠 */
    padding: 10px 0 10px;
    gap: 2px;
  }

  .subscribe-input {
    padding: 12px;
    font-size: 18px;
    opacity: 0.6;
  }

  .btn-primary{
    padding: 8px;
  }

  .subscribe-inner{
    padding: 0 0 20px;
  }

  .cat-card__count{
    display: none;
  }
}












