.banner{
	width:100%;
	height:auto;
	background-image:url(img/banner.png?id=1);
	background-size:cover;
	background-repeat:no-repeat;
	background-position:center;
}
.banner .inner{
	width:100%;
	max-width:1200px;
	margin:auto;
	padding:36px 10px 44px;
}
.banner-slogan{
  text-align: center;
  color: #ffffff;
  font-size: 44px;
  font-weight: bold;
  letter-spacing: 0.06em;
  line-height: 1.35;
  margin: 15px 0 28px;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.35);
}
h1.banner-slogan{
  margin: 15px 0 28px;
  font-size: 44px;
  font-weight: bold;
}
.banner-slogan-sub{
  margin-top: 8px;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
}
.content{
  /* padding-bottom: 40px; */
}
.promo-banners{
  padding:10px 10px 24px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  gap:24px;
  justify-content: center;
  align-items: center;
}
.promo-banners > div{
  text-align:center;
}
.hos-promo-banners{
  padding:0 10px 28px;
  margin-bottom: 1.5rem;
  gap:24px;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.hos-promo-banners > div{
  text-align:center;
}
@media (max-width: 767.98px){
  .hos-promo-banners{
    padding: 3px 6px 7px;
  }
  .content-divider{
    margin-bottom: 6px !important;
  }
}
.banner .row{
  align-items: stretch;
}
@media (min-width: 768px){
  .banner .row{
    display: grid;
    grid-template-columns: minmax(0, 2.35fr) minmax(0, 0.85fr);
    grid-template-rows: auto auto;
    column-gap: 22px;
  }
  .banner .col-md-8,
  .banner .col-md-4{
    display: contents;
  }
  .banner .search-type{
    grid-column: 1;
    grid-row: 1;
  }
  .banner .searchbox{
    grid-column: 1;
    grid-row: 2;
  }
  .banner .bannerswiper{
    grid-column: 2;
    grid-row: 2;
    margin-top: 0 !important;
    margin-left: 0 !important;
    height: 100% !important;
    flex: none;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
}
@media (max-width: 767.98px){
  .banner .inner{
    padding: 28px 10px 32px;
  }
  .banner-slogan{
    font-size: 28px;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
  }
  h1.banner-slogan{
    font-size: 28px;
    margin-bottom: 18px;
  }
  .banner-slogan-sub{
    font-size: 16px;
    margin-top: 6px;
    letter-spacing: 0;
  }
  .banner .bannerswiper{
    display: none !important;
  }
  /* 手機：吉祥物 float 喺買樓/租樓右側，略細 */
  .banner .search-type{
    position: relative;
  }
  .search-type-mascot{
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: auto;
    height: 88px;
    z-index: 2;
    pointer-events: none;
  }
}
.banner .searchbox{
	background-color: #ffffff;
  overflow: visible;
  width: 100%;
  height: auto;
	padding: 18px;
	color:#000000;
	font-size:17px;
  position:relative;
  border-radius: 0 5px 5px 5px;
}
.banner .searchbox a{
	color:#5e5e5e; 
	cursor:hand;
	cursor:pointer;
}

.search-type{
	 padding:0px;
}
.search-type-tabs a{
	display: block;
  color: #ffffff;
  text-align: center;
  font-size: 22px;
  font-weight:bold;
  text-transform: uppercase;
  padding: 12px 22px; 
  background-color: #858585;
  border-right: 1px solid #dddddd;
  min-width: 140px;
}
.search-type-tabs a#ht1,
.search-type-tabs a:first-child{
  border-top-left-radius: 5px;
}
.search-type-tabs a#ht2,
.search-type-tabs a:last-child{
  border-top-right-radius: 5px;
  border-right: none;
} 
.search-type-tabs a:hover{
	color:#ffffff;
  background-color: #f16c00;
}
.search-type-tabs a.active:hover{
  background-color: #ffffff;
  color:#f16c00;
}

.search-type-tabs a.active{
  background-color: #ffffff;
  color:#f16c00;
}
.search-type-links{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 0px;
}
/* 搜尋掣右側：地圖搵樓 */
.home_search .search-type-links{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.75rem;
  padding-right: 0.5rem;
  gap: 0;
}
.search-type-links a{
  display: inline;
  color: #424242;
  background: none;
  border: none;
  min-width: 0;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.2;
}
.search-type-links a:hover{
  color: #e53935;
  background: none;
  text-decoration: none;
}
.banner .searchbox .search-type-links .search-type-map{
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  color: #000000;
  font-size: 1.125rem;
  font-weight: bold;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
  line-height: 1.15;
}
.banner .searchbox .search-type-links .search-type-map__icon{
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0.0625rem 0.1rem rgba(0, 0, 0, 0.2));
}
.banner .searchbox .search-type-links .search-type-map:hover,
.banner .searchbox .search-type-links .search-type-map:hover .search-type-map__label{
  color: #e53935;
  text-decoration: none;
}
/* 桌面單行；手機「地圖／搵樓」兩行 */
.search-type-map__br{
  display: none;
}
.search-type-map__label{
  line-height: 1.15;
}
@media (max-width: 767.98px){
  .home_search .search-type-links{
    margin-left: 0.4rem;
    padding-right: 0.25rem;
  }
  .banner .searchbox .search-type-links .search-type-map{
    font-size: 0.9375rem;
  }
  .banner .searchbox .search-type-links .search-type-map__icon{
    width: 1.25rem;
    height: 1.25rem;
  }
  .search-type-map__br{
    display: block;
  }
}
.banner .searchbox .hotest{
  padding-right: 60px;
}
.banner .searchbox .hotest .stitle{
  color:#333;
  font-weight:bold;
}
.banner .searchbox .hotest .estitem{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.banner .searchbox .hotest div{
  padding: 5px 5px 0px 10px; 
}
.banner .searchbox .hotest div a{  
  margin-right: 14px;
  margin-bottom: 8px;
} 
.banner .searchbox .hotest div a:hover{
 color:#ff7402;
}

.home_search{
  padding:6px 6px;
  position: relative;
}
.home_search .hotest-suggest{
  position: absolute;
  left: 8px;
  right: 8px;
  top: 100%;
  z-index: 100;
  margin-top: 2px;
  padding: 12px 14px 14px;
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  text-align: left;
}
.home_search .hotest-suggest[hidden]{
  display: none !important;
}
.home_search .hotest-suggest .stitle{
  color: #333;
  font-weight: bold;
  font-size: 19px;
  padding: 4px 0 6px;
}
/* 第二段標題（如熱門綠表）同上方屋苑列表拉開間距 */
.home_search .hotest-suggest .estitem + .stitle{
  margin-top: 1rem;
}
.home_search .hotest-suggest .estitem{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-bottom: 10px;
}
.home_search .hotest-suggest .estitem a{
  color: #555 !important;
  font-size: 19px;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 0;
  padding: 2px 4px;
}
/* 蓋過 style.css form a / a:hover，hover 固定橙色 */
.banner .searchbox .home_search .hotest-suggest .estitem a:hover{
  color: #ff7402 !important;
}
.home_search .hotest-suggest-more{
  display: block;
  margin-top: 4px;
  font-size: 16px;
  text-align: right;
  color: #e14d00 !important;
  text-decoration: none;
}
.home_search .hotest-suggest-more:hover{
  color: #ff7402 !important;
}

.banner .searchbox .region-type{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 6px 4px;
  margin-top: 4px;
}
@media (max-width: 767.98px){
  .banner .searchbox .region-type{
    display: none;
  }
}
.banner .searchbox .region-type-main{
  flex: 1 1 auto;
  min-width: 0;
}
.banner .searchbox .region-type-mascot{
  flex: 0 0 auto;
  display: none;
  width: auto;
  height: 128px;
  max-height: 128px;
  margin: 0 2px -8px 0;
  pointer-events: none;
}
@media (min-width: 768px){
  .banner .searchbox .region-type-mascot{
    display: block;
  }
}
.banner .searchbox .region-type .region-box,
.banner .searchbox .region-type .type-box{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}
.banner .searchbox .region-type .type-box{
  margin-bottom: 4px;
}
.banner .searchbox .region-type .region-label,
.banner .searchbox .region-type .type-label{
  flex: 0 0 auto;
  color: #393939;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
  white-space: nowrap;
}
.banner .searchbox .region-type .region-items,
.banner .searchbox .region-type .type-items{
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-weight: 400;
}
.banner .searchbox .region-type .region-item,
.banner .searchbox .region-type .type-item{
  color: #333;
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.6;
  cursor: pointer;
}
.banner .searchbox .region-type a.region-item:hover,
.banner .searchbox .region-type a.type-item:hover{
  color: #f16c00 !important;
}
.banner .searchbox .region-type .curr-picked{
  color: #f16c00 !important;
  font-weight: 400;
}
/* iPad / tablet：收窄側欄、地區用途字級同間距，避免 search row 過高 */
@media (min-width: 768px) and (max-width: 1199.98px){
  .banner .inner{
    padding: 28px 10px 32px;
  }
  .banner .row{
    grid-template-columns: minmax(0, 1fr) minmax(140px, 200px);
    column-gap: 14px;
  }
  .banner .searchbox .region-type{
    align-items: flex-start;
    padding: 4px 2px 0;
    margin-top: 0;
  }
  .banner .searchbox .region-type-mascot{
    height: 72px;
    max-height: 72px;
    margin: 0 0 -2px 0;
  }
  .banner .searchbox .region-type .region-box,
  .banner .searchbox .region-type .type-box{
    gap: 6px;
    margin-bottom: 6px;
  }
  .banner .searchbox .region-type .type-box{
    margin-bottom: 0;
  }
  .banner .searchbox .region-type .region-label,
  .banner .searchbox .region-type .type-label,
  .banner .searchbox .region-type .region-item,
  .banner .searchbox .region-type .type-item{
    font-size: 16px;
    line-height: 1.45;
  }
  .banner .searchbox .region-type .region-items,
  .banner .searchbox .region-type .type-items{
    gap: 2px 12px;
  }
}

.banner .searchbox .home-menuitem{
  padding: 8px 4px 4px;
}
.banner .searchbox .home-menuitem .menuitem-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 0;
}
.banner .searchbox .home-menuitem a{
  display: block;
  text-align: center;
  color: #181818;
  text-decoration: none;
  padding: 2px 4px 6px;
}
.banner .searchbox .home-menuitem .title{
  padding: 3px 0 0;
  line-height: 17px;
  font-size: 14px;
}
.banner .searchbox .home-menuitem .icon,
.banner .searchbox .home-menuitem .icon2{
  width: 50px;
  height: 50px;
  margin: auto;
  border-radius: 50px;
}
.banner .searchbox .home-menuitem .icon{
  background-color: #ff8400;
}
.banner .searchbox .home-menuitem .icon2{
  background-color: #2c2c2c;
}
.banner .searchbox .home-menuitem .icon img,
.banner .searchbox .home-menuitem .icon2 img{
  width: 30px;
  height: 30px;
  margin: 10px;
}
/* 橙色底上嘅圖示改黑色 */
.banner .searchbox .home-menuitem .icon img.icon-fill-black{
  filter: brightness(0);
}
/* 黑色底上嘅圖示改橙色 */
.banner .searchbox .home-menuitem .icon2 img.icon-fill-orange{
  filter: invert(48%) sepia(98%) saturate(2500%) hue-rotate(360deg) brightness(1.05) contrast(1.05);
}

/* 手機捷徑一列 4 格；其餘功能經「更多」overlay */
.banner .searchbox .home-menuitem .menuitem-grid > a:nth-child(n+5){
  display: none;
}
.banner .searchbox .home-menuitem .home-menuitem-more{
  display: block;
  width: 120px;
  margin: 10px auto 0;
  padding: 0.5rem;
  border: 1px solid var(--color-menuitem-more-border, #ffc8a2);
  border-radius: 0.35rem;
  background: var(--color-menuitem-more-bg, #ffffff);
  color: var(--color-menutag, #ff6600);
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.banner .searchbox .home-menuitem .home-menuitem-more:active{
  background: var(--color-menuitem-more-active, #fff7ef);
}

/* menutag 全螢幕 overlay（仿 /m/） */
:root{
  --color-menutag: #ff6600;
  --color-menutag-text: #ffffff;
  --color-menutag-active-bg: #ffffff;
  --color-menutag-active-text: #000000;
  --color-menutag-border: #ffffff;
  --color-menutag-overlay: rgba(0, 0, 0, 0.72);
  --color-menutag-panel-bg: #ffffff;
  --color-menuitem-icon: #ff8400;
  --color-menuitem-icon2: #2c2c2c;
  --color-menuitem-title: #181818;
  --color-menuitem-more-bg: #ffffff;
  --color-menuitem-more-border: #ffc8a2;
  --color-menuitem-more-active: #fff7ef;
  --color-menutag-close-text: #555555;
}
body.lockscroll{
  overflow: hidden;
}
.home-menutag-overlay{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.home-menutag-overlay.is-open{
  display: block;
}
.home-menutag-overlay .home-menutag-backdrop{
  position: absolute;
  inset: 0;
  background: var(--color-menutag-overlay);
}
.home-menutag-overlay .home-menutag-panel{
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  height: 26rem; /* 固定高度，切 tab 唔跳 */
  max-height: calc(100% - 1rem);
  display: flex;
  flex-direction: column;
  background: var(--color-menutag-panel-bg);
  overflow: hidden;
  border-radius: 0.5rem;
}
.home-menutag-overlay .home-menutag-close{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.5rem;
  border: 0;
  border-radius: 0;
  background: var(--color-menutag-panel-bg);
  color: var(--color-menutag-close-text, #555555);
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.home-menutag-overlay .home-menutag-close img{
  width: 1.125rem;
  height: 1.125rem;
  display: block;
  flex-shrink: 0;
}
.home-menutag-overlay .menutag{
  display: flex;
  width: 100%;
  flex-shrink: 0;
  background: var(--color-menutag);
  box-shadow: 0 -0.2rem 0.2rem rgba(103, 103, 103, 0.45);
}
.home-menutag-overlay .menutag a{
  flex: 1 1 0;
  display: block;
  color: var(--color-menutag-text);
  text-align: center;
  line-height: 2.8rem;
  border-right: 1px solid var(--color-menutag-border);
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}
.home-menutag-overlay .menutag a:last-child{
  border-right: 0;
}
.home-menutag-overlay .menutag a.active{
  background: var(--color-menutag-active-bg);
  color: var(--color-menutag-active-text);
}
.home-menutag-overlay .home-menutag-panels{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0.4rem 0.75rem;
  background: var(--color-menutag-panel-bg);
}
.home-menutag-overlay .home-menutag-panel-item{
  display: none;
}
.home-menutag-overlay .home-menutag-panel-item.is-active{
  display: block;
}
.home-menutag-overlay .menuitem-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem 0;
}
.home-menutag-overlay .menuitem-grid a{
  display: block;
  text-align: center;
  color: var(--color-menuitem-title);
  text-decoration: none;
  padding: 0.15rem 0.25rem 0.4rem;
}
.home-menutag-overlay .menuitem-grid .title{
  padding: 0.2rem 0 0;
  line-height: 1.15rem;
  font-size: 0.875rem;
}
.home-menutag-overlay .menuitem-grid .icon,
.home-menutag-overlay .menuitem-grid .icon2{
  width: 3.125rem;
  height: 3.125rem;
  margin: auto;
  border-radius: 50%;
}
.home-menutag-overlay .menuitem-grid .icon{
  background-color: var(--color-menuitem-icon);
}
.home-menutag-overlay .menuitem-grid .icon2{
  background-color: var(--color-menuitem-icon2);
}
.home-menutag-overlay .menuitem-grid .icon img,
.home-menutag-overlay .menuitem-grid .icon2 img{
  width: 1.875rem;
  height: 1.875rem;
  margin: 0.625rem;
}
.home-menutag-overlay .menuitem-grid .icon img.icon-fill-black{
  filter: brightness(0);
}

.home_search .tab1{ 
  display:block;
  border:1px solid #CCC; 
  border-right:0;
  border-radius: 4px 0 0 4px;
  padding:8px;
  width:70px;
  height:40px;
  background-image:url(svg/home_search_list.svg);
  background-position:right 5px center;
  background-size:18px;
  background-repeat:no-repeat;
}
.home_search .tab1 span,.home_search .tab1 svg{
		float:left; 
		font-size: 14px;
		line-height: 22px;
		color: #ad8c08;
}
.home_search .tab1 img{
		float:left; 
		width:18px;
		height:18px;  
		color: #555555;
		margin-left:3px;
}
	
.home_search .tab2{ 
		display:table-cell;
		vertical-align:top; 
    border: 1px solid #d3d3d3 !important;
		padding-top:0 !important;
    border-radius: 6px 0 0 6px;
    overflow: visible;
    position: relative;
}
.home_search .tab-budget{
  flex: 0 0 auto;
  width: 110px;
  border: 1px solid #d3d3d3;
  border-left: 0;
  background: #fff;
  display: flex;
  align-items: stretch;
}
.home_search .tab-budget select{
  width: 100%;
  height: 50px;
  border: none;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  background: #fff;
  appearance: auto;
  cursor: pointer;
}
.home_search .tab2 input{ 
		height: 50px;
		border: none;
		border-radius: 6px 0 0 6px;
		width: 100%;
		font-size: 21px;
    font-weight: 400;
		padding-left: 12px;
		color: #555;
}
#searchkeyword {
    width: 100%;
    height: 50px;
    font-size: 17px;
    font-weight: 400;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
.home_search .tab2 .autocomplete-items{
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 99;
  border: 1px solid #d3d3d3;
  border-top: none;
  background: #fff;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.home_search .tab2 .autocomplete-items div{
  padding: 10px 12px;
  cursor: pointer;
  font-size: 15px;
  color: #444444;
  border-top: 1px solid #eee;
  background: #fff;
}
.home_search .tab2 .autocomplete-items div:hover,
.home_search .tab2 .autocomplete-active{
  background-color: #fff5eb !important;
  color: #ff7402 !important;
}
	 
.home_search .tab3{  
		border-radius: 0px 6px 6px 0;
		width: 95px;
		background-color: #f16c00;
		text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: none;
}
.home_search .tab3:active,
.home_search .tab3.is-pressed{
    background-color: #a34500 !important;
    filter: brightness(0.78);
    transform: none;
}
.home_search .tab3 a{  
	color: #ffffff !important;
	font-size: 16px;
  font-weight: 600;
	line-height: normal;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 65px;
	height: 100%;
	margin: auto;
	background-image: url(img/icon_zoom.svg);
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 22px;
	padding-right: 22px;
	-webkit-tap-highlight-color: transparent;
} 

a.moreestate{
    font-size: 17px;
    color: #e14d00 !important;
    padding: 8px 4px 0;
    position: static;
    display: inline-block;
    background-color: transparent;
    z-index: 3;
}
#myModal .modal-title{
  font-size: 24px;
}
.modal-backdrop{
  /* 熱門屋苑 modal：深色半透明遮罩 */
  display: block;
  background-color: #000;
}
.modal-backdrop.show{
  opacity: 0.7;
}
#myModal .more-estate .district{
  display: flex;
  margin-top: 12px;
}
#myModal .more-estate .dtitle{
  font-size: 20px;
  font-weight: bold;
  min-width: 80px;
  padding: 6px 10px 6px 0;
  white-space: nowrap;
}
#myModal .more-estate .dtitle a{
  color: inherit;
  text-decoration: none;
}
#myModal .more-estate .dtitle a:hover{
  color: #ff7402;
}
#myModal .more-estate .bname{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#myModal .more-estate .bname a{
  padding: 6px 10px;
  font-size: 20px;
  color: #444;
}
@media (max-width: 767px){
  /* 手機：地區直排，屋苑名全部顯示唔截斷 */
  #myModal .more-estate .district{
    flex-direction: column;
  }
  #myModal .more-estate .dtitle{
    min-width: 0;
    padding-bottom: 0;
  }
  #myModal .more-estate .bname{
    overflow: visible;
  }
  #myModal .more-estate .bname a{
    font-size: 16px;
    padding: 4px 8px;
  }
}
.banner .searchbox .search-cartoon{
  position: absolute;
  right: 8px;
  bottom: 36px;
  height: 115px;
  width: auto;
  z-index: 2;
  pointer-events: none;
}
.navbar{
  z-index:999
}
.navbar-collapse {
  position: fixed;
  top: 83px;
  bottom:48px;
  left: 0; 
  padding-bottom: 15px;
  width: 75%; 
}

.navbar-collapse.collapsing {
  left: -75%;
  transition: height 0s ease;
}

.navbar-collapse.show {
  left: 0;
  transition: left 300ms ease-in-out;
}

.navbar-toggler.collapsed ~ .navbar-collapse {
  transition: left 500ms ease-in-out;
} 
.bg-dark{
  background-color:#2e2e2e!important
}
.nav-item{
  padding:10px;
  border-bottom:1px solid #444
}
.nav-item a{
  color:#FFF
} 
  
.swiper {
  width: 100%; 
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff; 
}

.swiper-slide .photo{
  width:100%;
  height:500px;
  overflow:hidden;
  background-repeat:no-repeat;
  background-size:100%;
  background-position:center
}
 
.swiper-slide .detail{
  padding:5px; 
}
.swiper-slide .detailtop_outer{
  position:absolute;
  bottom:5px;
  width:100%;
  max-width:1200px;
  left: 0; 
  right: 0; 
  margin-left: auto; 
  margin-right: auto;  
}
 
.swiper-slide .detailtop{ 
  padding:10px;
  background-color: #ffffffe6;
  margin-left: 11px;
  margin-bottom:10px;
  width: 350px; 
}
 
.swiper-slide .speciallbl{
  background-color: #b9ac77;
  border: 1px solid white;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  padding: 0px 6px;
  margin:auto;
  margin-top:10px;
  margin-bottom:10px;
  display: table;
}
.swiper-slide .bname{
  margin: 0;
  margin-top:5px;
  margin-bottom:5px;  
  font-size: 22px; 
  color: #333;
}
.swiper-slide .dist{
  margin: 0;  
  font-size:14px;  
  color: #707070;
}
.swiper-slide .price{
  margin: 0; 
  font-size: 18px;
  color: #d10000;
  font-weight:bold;
}
.swiper-slide .align-items-end{
  height:100%
}
.swiper-slide .price span{
  font-size:14px; color:#707070
}
.swiper-slide .price .green,
.price .green,
span.green{
  color: #00b31e !important;
  font-weight: 600;
}
.swiper-slide .property_special{
	display:flex;
  justify-content: flex-start;
  color: #111111;
  margin-bottom:5px;
  font-size:16px;
  min-height:21px;
  line-height:21px;
} 
.swiper-slide .property_special div{
  padding-right:15px
}
.swiper-slide .selectimg{
  padding: 3px 5px;
  background-color: #fd7011;
  position: absolute;
  margin: 5px;
  color: #ffffff;
  font-size: 15px;
  border-radius: 5px;
  /* 與樓盤卡片 prop_border 相同陰影 */
  box-shadow: 0px 3px 3px -2px rgb(0 0 0 / 20%), 0px 3px 4px 0px rgb(0 0 0 / 14%), 0px 1px 8px 0px rgb(0 0 0 / 12%);
}
.swiper-slide .picitem{
  height:500px;
  width:50%;
  float:left;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}
.swiper-slide a.opendetail{
  display:block;
  margin:10px;  
  padding:10px;
  font-size:15px;
  border-radius:5px;
  background-color:#afa57f;
  color:#ffffff;
}

.top-swiper-button-next, .top-swiper-button-prev {
  top:50% !important; 
  color:#ffffff;
}
.top-swiper-button-prev{
  left:0 !important;
}
	
.swiper-button-next, .swiper-button-prev {
  top:32%;
  color:#ffffff;
}
.swiper-button-next{
  right:0px
}
	
	.mySwiper .photo span {
		position:absolute;
		display: block;
		margin: 5px;
		float: left;
		border-radius: 3px;
		font-size: 11px;
		border: 1px solid #ddd7c2;
		padding: 3px 6px;
		color: #ffffff;
		background-color: #bba967;
	}
 
	.myswiper2 {
    width: 100%;
		padding-bottom:20px;
	}
	
	.myswiper2 .prop_border{
    position:relative;
		margin:6px;
		overflow:hidden;
		transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
		border-radius: 4px;
		box-shadow: 0px 3px 3px -2px rgb(0 0 0 / 20%), 0px 3px 4px 0px rgb(0 0 0 / 14%), 0px 1px 8px 0px rgb(0 0 0 / 12%);
  }
  .myswiper2 .swiper-slide{ 
		width:290px;
		text-align:left;
  } 
  .myswiper2 .swiper-slide .photo{
    cursor:hand;
    cursor:pointer;
    width:100%;
    height:200px;
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center
  }
	   
  .myswiper2 .swiper-slide .detail{
    padding:10px; 
    height:auto;
    overflow:hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
  }	   
	  
  .myswiper2 .swiper-slide .bname{
    text-align:left;
		margin: 0;
		margin-top:5px;
		margin-bottom:10px;  
		font-size: 21px;  
		color: #0c0c0c;
    font-weight:bold;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
	} 
	.myswiper2 .swiper-slide .dist{
		margin-bottom:5px;  
		font-size:16px;  
		color: #666666
	}
	/* 只改建／實呎（.dist 內層 div），地區名維持原色 */
	.myswiper2 .swiper-slide .dist > div{
		color: #505050;
	}
 .myswiper2 .swiper-slide .price{
		margin: 0; 
		font-size: 22px;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
	}
	.myswiper2 .swiper-slide .price .pricenow{
		display: inline-flex;
		align-items: baseline;
		gap: 4px;
		white-space: nowrap;
	}
	.myswiper2 .price span{
		font-size:14px; color:#707070;
    font-weight:normal
	}
  .myswiper2 .swiper-slide .price .oldprice{
    font-size: 17px;
    font-weight: normal;
    text-decoration: line-through;
    color: #999999;
    padding-left:0;
    white-space: nowrap;
  } 
	.myswiper2 .agent{
		display:block;
		width:60px;
		height:60px;
		border-radius:60px;
		background-repeat:no-repeat;
		background-size:cover;
		background-position:center 0;
		position: absolute;
		right: 20px;
		bottom: 20px;
	}
	.myswiper2 .photo span{
		display:block;
		margin:5px;
		float:left;
		border-radius:3px;
		font-size:11px;
		border:1px solid #ddd7c2;
		padding:3px 6px;
		color:#ffffff;
		background-color:#bba967;
	}
  .myswiper3{
    height:200px;
  }
  .myswiper3 .swiper-pagination{
    display: none;
  }
  .myswiper3 .agent-card{
    display: block;
    color: inherit;
    text-decoration: none;
    text-align: center;
  }
	.myswiper3 .swiper-slide{
    display: block;
    width: 130px;
    padding: 3px;
    font-size: 13px;
  }
	   
  .myswiper3 .swiper-slide .aname{
    font-size: 17px;
    line-height: 26px;
    color: #000000;
  }
  .myswiper3 .swiper-slide .ename{
    font-size:13px;
    line-height:15px;
    color:#b0b0b0;
  }
  .myswiper3 .swiper-slide .alicno{
    font-size:11px;
    line-height:15px;
    color:#b0b0b0;
  }
  .myswiper3 .swiper-slide .agentimg{ 
    width:110px;
    height:110px;
    object-fit:cover;
    object-position:center top;
    border-radius:50%;
    border:3px solid #f8f8f8;
    display:block;
    margin:0 auto;
    box-sizing:border-box;
  }
  .myswiper3 .swiper-button-next, .myswiper3 .swiper-button-prev{
    top:50%
  }
  .myswiper3 .swiper-button-next{
    right:0
  }
  
  .myswiper4 .swiper-slide{ 
    display:block;
    width:200px;
    padding:3px; 
    background-color:#dfdfdf;
    margin:5px;
  }
  .myswiper4 .swiper-slide .photo{ 
    display: table-cell;
    width: 200px;
    height: 100px;
    margin:auto;
    text-align:center;
    vertical-align:middle;
  }
  .myswiper4 .swiper-slide .photo img{
    max-width: 190px;
    max-height: 70px;
    margin: auto;
 
  }
  .myswiper4 .swiper-button-next, .myswiper4 .swiper-button-prev{
    top:50%
  }
  
  .myswiper5 {
    width: 100%;
		padding-bottom:20px;
    min-height:650px;
  }
  .myswiper5 .selectprop{
    padding: 8px !important
  }
	.myswiper5 .prop_border{ 
    position:relative;
    overflow:hidden;
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
		border-radius: 5px;
		box-shadow: 0px 3px 3px -2px rgb(0 0 0 / 20%), 0px 3px 4px 0px rgb(0 0 0 / 14%), 0px 1px 8px 0px rgb(0 0 0 / 12%);
  }
	  
  .myswiper5 .bname{
    text-align:left;
    margin: 0; 
    margin-bottom:5px;  
    font-size: 21px;  
    color: #000000;  
    font-weight:bold;
    height: 26px;
    overflow: hidden;
  }
  .myswiper5 .photo{
    cursor:pointer;
    cursor:hand;
    width:100%;
    height:175px;
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center;
    position:relative
  }
	   
  .myswiper5 .detail{
    padding:10px 10px 16px; 
    height:140px;
    overflow:hidden;
    position: relative;
  }
  .myswiper5 .detail .bottom-0{
    bottom:12px !important;
    left:10px;
    right:10px;
  } 
	   
  .myswiper5 .cbname{
		margin: 0; 
		margin-bottom:10px;  
		font-size: 16px;  
		color: #938345;
		height:20px;
	}	
  .myswiper5 .dist{
		margin-bottom:5px;  
		font-size:16px;  
		color: #707070;
  }
  /* 只改建／實呎（.dist 內層 div），地區名維持原色 */
  .myswiper5 .dist > div{
    color: #1d1d1d;
  }
  .myswiper5 .price{
		margin: 0; 
		font-size: 22px;
		color:#d70000;
		font-weight:bold;
    margin-right:10px
	}
	.myswiper5 .price span{
		font-size:14px; 
		color: #686868;
    font-weight:normal
	}
	 
	.myswiper5 .photo span{
		display:block;
		margin:5px;
		float:left;
		margin: 5px 0px 0 5px;
		border-radius:5px;
		font-size:13px; 
		padding:3px 10px;
		color:#ffffff; 
	} 
	.myswiper5 .photo .vricon{
		background-color:#3b79b4; 
	}		
	.myswiper5 .photo .otherlbl1{
		background-color:#4e9c4b; 
		padding:3px 5px;
	}		
	.myswiper5 .photo .otherlbl2{
		background-color:#d13a3a; 
		padding:3px 5px;
	}	
	  
	.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
		bottom:0px
	}
  
  .bannerswiper .swiper-horizontal>.swiper-pagination-bullets, .bannerswiper .swiper-pagination-bullets.swiper-pagination-horizontal, .bannerswiper .swiper-pagination-custom, .bannerswiper .swiper-pagination-fraction{
		bottom:15px
	}
	.swiper-pagination-bullet-active{
		background:#f3b706
	}
  
  .bannerswiper{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto !important;
    flex: 1;
    min-height: 0;
    margin-top: 45px;
    margin-left: 0;
    overflow: hidden;
    box-sizing: border-box;
	}
	.bannerswiper .swiper-wrapper{
    height: 100%;
  }
	.bannerswiper .swiper-slide{
		padding:10px;
		background-color:#ffffff;
    border-radius: 5px;
    overflow: hidden;
    height: 100% !important;
    box-sizing: border-box;
    display: flex;
	}
	.bannerswiper .photo{
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:flex-start;
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius:5px !important;
    background-color:#ffffff;
    overflow:hidden;
	}
	.bannerswiper .photo img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:cover;
    border-radius:5px;
    flex: 1;
    min-height: 0;
	}
.photo .ntitle {
    color: #212121;
    display: block;
    padding: 4px 5px;
    background-color: #ffffff;
    width: 100%;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.3;
    flex-shrink: 0;
}
	
	.searchbtn{
		padding:15px;
		margin-bottom: 1.5rem;
	}
	.searchbtn a{
		display: block;
    width: 100%;
    max-width: 200px;
    margin: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px;
    font-size: 17px;
    border-radius: 5px;
    background-color: #ffffff;
    color: #236bc7 !important;
    text-align: center;
    border: 1px solid #236bc7;
	}
  .searchbtn a:hover{
    background-color: #236bc7;
    border: 1px solid #236bc7;
    color: #ffffff !important; 
  }
  .stitleitem{
    display: flex; 
    justify-content: space-between;
    align-items: center;
    /* margin-top: 24px; */
    gap: 12px;
  }
  .form-select.home-dist-select,
  .form-select.home-trend-select{
    width: auto;
    display: inline-block;
    font-size: 15px;
    /* 地區／走勢選單：去掉四邊框，只留底線 */
    border: none;
    border-bottom: 1px solid #e2e2e2;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
  }
  .form-select.home-dist-select:focus,
  .form-select.home-trend-select:focus{
    border-bottom-color: #236bc7;
    box-shadow: none;
  }
  .form-select.home-dist-select.d-md-none{
    padding: 4px 28px 4px 8px;
    min-height: 32px;
    height: 32px;
    line-height: 1.2;
  }
  .stitleitem > div:not(.subtitle){
    text-align: right;
  }
  @media (min-width: 768px){
    .stitleitem > div:not(.subtitle){
      flex: 1;
      min-width: 0;
    }
  }
  .home-dist-tags{
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
  }
  .home-dist-tag{
    display: inline-block;
    /* border: 1px solid #e2e2e2; */
    /* background: #f7f7f7; */
    color: #444 !important;
    border-radius: 0;
    padding: 4px 6px;
    font-size: 17px;
    line-height: 1.3;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
  }
  .home-dist-tag:hover{
    border-color: #ff7402;
    color: #ff7402 !important;
  }
  .home-dist-tag.active{
    background: transparent;
    border: none;
    border-bottom: 3px solid #ff7402;
    color: #ff7402 !important;
    font-weight: bold;
    text-decoration: none !important;
  }
	.subtitle{
    font-size: 24px;
    line-height: 25px;
    color: #282828; 
    padding: 10px;
    font-weight: bold;
	}
  h2.subtitle{
    margin: 0;
    font-size: 24px;
    line-height: 25px;
    font-weight: bold;
  }
  @media (min-width: 768px){
    .subtitle{
      font-size: 28px;
      line-height: 30px;
    }
    h2.subtitle{
      font-size: 28px;
      line-height: 30px;
    }
  }
  
	.bannerifra{
		height:450px;
		width:100%
	}  
.homefavicon{
    position: absolute;
    right: 5px;
    cursor: hand;
    cursor: pointer;
    /* background-color: #ffffff; */
    /* padding: 3px; */
    /* border-radius: 30px; */
    top: 5px;
    /* 低過 .toptools (99)，手機工具列打開時唔好蓋住選單 */
    z-index:98;
}
.homefavicon img,
.homefavicon svg{
	width:30px;
  height:30px;
  display:block;
  color:#333333;
  cursor:pointer;
}
.homefavicon svg.is-on{
  color:#e2540a;
}
.mtitem{
	display:flex;
  justify-content:center;
  align-items:stretch;
  width:100%;
  height:40px;
  min-height:40px;
  margin:0;
  padding:0;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
/* 精選樓盤：標題左、分類按鈕右（桌面）；按鈕可換行 */
.stitleitem > .mtitem{
  justify-content: flex-end;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 40px;
  overflow: visible;
}
@media (max-width: 767px){
  /* 手機：標題靠左，按鈕列置中 */
  .select-property-head{
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  .select-property-head > .subtitle{
    text-align: left;
    width: 100%;
  }
  .select-property-head > .mtitem{
    justify-content: center;
    width: 100%;
  }
}
.mtitem::-webkit-scrollbar{
  display:none;
}
.mtitem a{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  margin:0 16px;
  padding:0;
  font-size:19px;
  font-weight:400;
  line-height:1.3;
  letter-spacing:0.16px;
  color:#646c79;
  background:transparent;
  border-bottom:3px solid transparent;
  white-space:nowrap;
  text-decoration:none;
}
.mtitem a:hover{
	color:#ff7402;
  background:transparent;
}
.mtitem a.active{
  color:#ff7402;
  font-weight:bold;
  background:transparent;
  border-bottom:3px solid #e2540a;
}
.promo-switch .promo-type-tabs{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  width:100%;
  height:auto;
  min-height:0;
  margin:0 0 12px;
  padding:0;
  overflow:visible;
}
.promo-switch .promo-type-tabs a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:auto;
  min-width:110px;
  margin:0;
  padding:8px 20px;
  font-size:21px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:0.02em;
  color:#505050 !important;
  background:#fff;
  border:1px solid #dfdfdf;
  border-radius:6px;
  text-decoration:none !important;
  white-space:nowrap;
  box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.12);
  transition:background-color .15s ease, color .15s ease, border-color .15s ease;
}
.promo-switch .promo-type-tabs a:hover{
  color:#fff !important;
  background:#e2540a;
  border-color:#e2540a;
}
.promo-switch .promo-type-tabs a.active{
  color:#fff !important;
  background:#e2540a;
  border-color:#e2540a;
  font-weight:700;
  border-bottom:1px solid #e2540a;
}
.promo-switch .promo-dist-wrap{
  flex:1;
  min-width:0;
  text-align:right;
}
@media (max-width: 767px){
  .promo-switch .promo-type-tabs{
    gap:8px;
  }
  .promo-switch .promo-type-tabs a{
    min-width:0;
    flex:1 1 auto;
    padding:8px 12px;
    font-size:17px;
  }
  .promo-switch .stitleitem{
    flex-wrap:wrap;
  }
  .promo-switch .promo-dist-wrap{
    width:100%;
    text-align:left;
  }
}
.index-trans{
  display:flex;
  justify-content: space-between;
  gap:20px;
  align-items:stretch;
}
.index-trans .items{
  flex:1;
  width:auto;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.index-trans .item1{ 
}
#promoT,
#trend_div{
  background-color: #fafafa;
  padding: 13px 5px;
  margin-top: 10px;
  border-radius: 8px;
  flex:1;
}
.index-news-container{
  margin-top:10px;
}
.index-media{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:stretch;
  margin-top:20px;
  margin-bottom:10px;
}
.index-media .items{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.index-media-box{
  margin-top:10px;
  background-color:#fafafa;
  border-radius:8px;
  padding:10px;
  flex:1;
}
.index-media-title{
  font-size:19px;
  color:#222;
  margin-bottom:10px;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.index-media-title a{
  color:inherit;
  text-decoration:none;
}
.index-media-title a:hover{
  color:#e2540a;
}
.index-media-box iframe{
  display:block;
  width:100%;
  max-width:100%;
}
.index-facebook{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  overflow:hidden;
  height:360px;
  padding-top:0;
  padding-bottom:0;
}
.index-facebook iframe{
  border:none;
  overflow:hidden;
  width:100%;
  max-width:500px;
  height:430px;
  margin:-70px auto 0;
}
.index-youtube .ratio{
  background:#000;
  border-radius:6px;
  overflow:hidden;
}
.index-media-empty{
  min-height:200px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#888;
}
.index-news-container .news-top-more,
.index-media .news-top-more{
  color:#236bc7;
  font-size:16px;
  padding:10px;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:2px;
}
.index-news-container .news-top-more .news-more-arrow,
.index-media .news-top-more .news-more-arrow{
  width:18px;
  height:18px;
  display:inline-block;
  flex-shrink:0;
}
.index-news-container .news-top-more:hover,
.index-media .news-top-more:hover{
  color:#e2540a;
}
.index-news-list{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}
.index-news-container .index-news-list{
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}
@media (max-width: 991px){
  .index-news-container .index-news-list{
    grid-template-columns:repeat(2, 1fr);
    gap:16px;
  }
}
.index-news-list .pc-news-list{
  width:auto;
  background-color:#f5f5f5;
  display:block;
  color:#333333;
  overflow:hidden;
  border-radius:5px;
}
.index-news-list .pc-news-list:hover{
  color:#333333;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.index-news-list .news-image-container{
  width:100%;
  padding-bottom:56.25%;
  position:relative;
  background-color:#e7e7e7;
  background-image:url(img/nophoto.svg);
  background-repeat:no-repeat;
  background-position:center;
  background-size:48px;
  overflow:hidden;
}
.index-news-list .news-image{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.index-news-list .news-text{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:17px;
  /* font-weight:600; */
  line-height:1.45;
  min-height:4.35em;
  height:auto;
  color:#000000;
  padding:5px 5px 0;
  /* margin-top:5px; */
}
.index-news-list .news-text .news-bname{
  color:#eb5800;
}
.index-news-list .pc-news-list:hover .news-text .news-bname{
  color:#eb5800;
}
.index-news-list .pc-news-list:hover .news-text{
  color:#e2540a;
}
.index-news-list .news-bot{
  display:flex;
  align-items:center;
  padding:10px;
  min-height:44px;
}
.index-news-list .news-hot{
  display:inline-block;
  background-color:#e2540a;
  color:#ffffff;
  font-size:12px;
  line-height:18px;
  padding:0 6px;
  border-radius:2px;
  margin-right:8px;
}
.index-news-list .news-bot-time{
  color:#999999;
  font-size:14px;
  margin-left:auto;
}
a.translist{
  border-bottom:1px solid #ebebeb;
  display:block;
  font-size:16px;
  padding-bottom:8px;
  margin-bottom:8px;
  margin-left:10px;
  margin-right:10px;
  color:#303030;
  -webkit-tap-highlight-color: transparent;
  transition: none;
}
a.translist:active,
a.translist.is-pressed{
  background-color: transparent !important;
  color:#303030;
}
#promoT a.translist:last-child{
  border-bottom:none;
  margin-bottom:0;
}
a.translist .listitem{
  display:flex;
  width:100%;
  justify-content: space-between;
  align-items: center;
}
a.translist .price{
  text-align:center;
  width:80px;
}
a.translist .date{
  color:#757575;
}
a.translist .addr{
  color:#303030
}
a.translist .price > span{
  color:#ff0000
}
a.translist .price .uprice{
  font-size:12px;
  color:#303030;
}

#trend_div{
	text-align:center
}
#trend_div4, #trend_div1,#trend_div2,#trend_div3{
	display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#trend_div4,#trend_div2,#trend_div3{
	display:none;
}
 
#trend_div .trendstag{
	display:inline-table;
	width:100%;
	background-color:#ffffff;
}
#trend_div .trendstag a{
	display:table-cell; 
	color:#909090;
	text-align:center;
	line-height:40px;
}
#trend_div .trendstag a.active{
	background-color: #ffffff;
	color: #ea5700;
} 
#trend_div .item{
  margin-bottom:10px;
}

.noproperty{
  padding:20px;
  text-align:center;
}
.loading{
  padding:20px;
  text-align:center;
}
#promoA, #promoP, #promoZ, #promo1{
  display: block;
}
#promoA .loading, #promoP .loading, #promoZ .loading, #promo1 .loading{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  height: 100%;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: var(--bs-modal-header-padding);
    border-bottom: var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);
    border-top-left-radius: var(--bs-modal-inner-border-radius);
    border-top-right-radius: var(--bs-modal-inner-border-radius);
    background-color: #fe9632;
}
.modal-header .modal-title{
  color: #000000;
}

  .district {
    clear: both;
    display: inline-block;
    width: 100%;
  }

  .district h4 {
		font-size: 21px; 
		padding: 8px; 
		margin-bottom: 0;
		color:#000000;
    text-decoration: underline;
  }

  .district ul {
    padding: 0px;
    margin-top: 5px;
    list-style: none;
	  display:flex;
	  flex-wrap: wrap!important;
  }

  .district ul li {
    display: block;
    padding: 5px 10px;
    float: left;
	  font-size:18px;
  }
	.district ul li a{
		color:#333333
	}
	.district ul li a:hover{
		color:#ff0000
	}
  
.bottom2-outer {
    width: 100%;
    border-top: none !important; 
    margin-top: 0px;
}  

	@media (max-width: 1350px){
		.topmenu .right{
			right:0
		}
	}
	@media (max-width: 767px){
    .promo-banners{
      display:flex;
      flex-direction:column;
      gap:16px;
    }
    
    .bottom2 .bottomitem div { 
        margin-bottom: 10px; 
    }
    .searchbtn{
      padding-top:5px;
    }
    .myswiper5{
      padding-bottom:0px
    }
    .myswiper5 .photo{
       height:130px;
    }
    .mtitem{
      width:100%;
      justify-content:flex-start;
      overflow-x:auto;
    }
    .mtitem a{
      height:40px;
      margin:0 12px;
      padding:0;
      font-size:17px;
      line-height:1.3;
    }
    .index-news-list{
      grid-template-columns:repeat(2, 1fr);
      gap:20px;
    }
    .index-news-container .index-news-list{
      grid-template-columns:repeat(2, 1fr);
      gap:16px;
    }
    .search-type a{  
      font-size: 19px; 
      padding: 10px 18px;  
      min-width: 140px;
    }
    .banner .searchbox{
      padding: 12px;
    }
    .home_search{
      padding: 2px;
      margin-bottom: 12px;
    }
    .home_search .tab2 input,
    #searchkeyword{
      height: 40px;
      font-size: 15px;
      padding-left: 8px;
    }
    .home_search .tab-budget{
      width: 88px;
    }
    .home_search .tab-budget select{
      height: 40px;
      font-size: 13px;
      padding: 0 4px;
    }
    .home_search .tab3{
      width: 72px;
      padding: 0 3px;
    }
    .home_search .tab3 a{
      width: 52px;
      font-size: 14px;
      background-size: 18px;
      padding-right: 18px;
    }
    .index-trans{
      flex-wrap: wrap;
      gap:0;
    }
    .index-trans .items{
      flex:1 1 100%;
      width:100%;
    }
    .index-trans .item1{
       
    }
    /* 手機最新成交只顯示 5 筆；更多掣連去完整列表 */
    #promoT > a.translist:nth-child(n+6){
      display: none;
    }
    /* 手機屋苑走勢只顯示一張圖 */
    #trend_div1 .item:nth-child(n+2),
    #trend_div2 .item:nth-child(n+2),
    #trend_div3 .item:nth-child(n+2),
    #trend_div4 .item:nth-child(n+2){
      display: none;
    }
    .index-media{
      flex-wrap:wrap;
      gap:16px;
    }
    .index-media .items{
      flex:1 1 100%;
      width:100%;
    }
    .index-facebook{
      height:320px;
    }
    .index-facebook iframe{
      height:390px;
      margin-top:-70px;
    }
    .banner{
      width: 100%;
        height: auto;
        background-image: url(img/banner.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top;
    }
    .banner .inner{
      padding:8px; 
    }
		.myswiper2 .swiper-slide{ 
		  width:300px;
		  text-align:left;
		}
		.myswiper3{
		  height:170px;
		}
		.searchbtn a{
			font-size:15px
		}
		.myswiper2 .swiper-slide .price{
			font-size:18px;
			flex-direction: row;
			flex-wrap: nowrap;
			align-items: baseline;
			justify-content: flex-start;
			text-align: left;
			width: 100%;
			gap: 4px;
		}
		.myswiper2 .swiper-slide .price .pricenow{
			justify-content: flex-start;
		}
		/* 有舊價時先上下排；無舊價維持橫向 */
		.myswiper2 .swiper-slide .price:has(.oldprice){
			flex-direction: column;
			align-items: flex-start;
			gap: 2px;
		}
		.myswiper2 .swiper-slide .price .oldprice{
			width: 100%;
			margin-top: 0;
			padding-left: 0;
			line-height: 1.2;
			text-align: left;
		}
		.myswiper2 .swiper-slide .d-flex.justify-content-between.align-items-end{
			justify-content: flex-start !important;
		}
		
		.myswiper2 .agent{
			width:50px;
			height:50px;
			right:13px;
			bottom: 13px;
		}
    
    .bannerswiper{
      height:250px !important;
      flex: none;
      margin-top: 15px;
      margin-left:0px;
    }
    .bannerswiper .swiper-slide{
      padding:5px;
      background-color:#ffffff;
    }
    .bannerswiper .photo{ 
      height:100%;
      min-height: 210px;
    } 
    .myswiper5 .selectprop{
      padding: 8px 5px !important
    }
    .swiper-slide .property_special div{
      padding-right: 8px;
      line-height: 16px;
    }
	}
  
	@media (max-width: 500px){
      .home_search .tab-budget{
        width: 80px;
      }
      .home_search .tab-budget select{
        font-size: 14px;
        font-weight: 400;
        padding: 0 2px;
      }
      .banner .searchbox .hotest div a{  
        margin-right: 8px;
        margin-bottom: 3px;
        font-size:15px;
      }
      .index-news-list{
        grid-template-columns:repeat(2, 1fr);
        gap:12px;
      }
      .index-news-container .index-news-list{
        grid-template-columns:repeat(2, 1fr);
        gap:12px;
      } 
			.swiper-slide .detailtop_outer{  
        margin-top:0px; 
        position:inherit 
		  }
		  .swiper-slide .picitem{
			  display:none;
		  }
		  .top-swiper-button-next, .top-swiper-button-prev {
			  display:none;
		  }
			.bannerifra{
				height:350px;
				width:100%
			}
      
      .myswiper2 .swiper-slide{
        width:180px
      }
			.myswiper2 .swiper-slide .photo{
        height: 150px;
      }
      .myswiper2 .swiper-slide .detail{
        height: auto;
      }
      .myswiper2 .swiper-slide .bname{
        font-size:17px;
        margin-top:0px;
        margin-bottom:0px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
      }
      .myswiper2 .swiper-slide .dist{
        font-size:14px
      }
      .myswiper2 .swiper-slide .price{
        font-size:18px
      }
      .myswiper2 .price span{
        font-size:14px
      }
      .myswiper2 .swiper-slide .price .oldprice{
        font-size:13px;
        margin-left:30px;
      }
      .myswiper5 .bname{
        font-size:17px;
        height:20px;
      }
      .myswiper5 .price{
        margin:0;
        font-size:18px;
        color:#d70000;
        font-weight:bold;
        margin-right:10px;
      }
      
      .swiper-slide .property_special{
        font-size:14px;
      }
      .swiper-slide .align-items-end{
        height:35px;
      }
			.myswiper3 .swiper-slide{  
				  width:130px; 
			  }
			  .myswiper3 .swiper-slide .bname{
				  text-align:left;
			  }
			 .myswiper3 .swiper-slide .agentimg{ 
				   width:90px;
				   height:90px;
			 }
			 
			  .myswiper4 .swiper-slide{  
				  width:100px;
				  padding:2px;  
				  margin:1px;
			  }
			  .myswiper4 .swiper-slide .photo{  
					width: 120px;
					height: 60px; 
			   }
			   .myswiper4 .swiper-slide .photo img{
				   max-width: 92px;
					 max-height: 45px;  
			   }
	 
		.swiper-slide .detailtop{ 
				padding:10px;
				position:inherit; 
				margin-top: 0px;
				background-color: #ffffffe6;
				margin-left: 0;
				width: 100%; 
		} 
	}
	