/*----------------------------------*\
  
# foreclosure-address

\*----------------------------------*/
.house-address {
  padding: 1rem 0;
}

.resale-address,
.fc-address {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.house-address h2 {
  font-size: var(--big);
  font-family: var(--base);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0rem;
}

.house-address h2 i {
  padding-right: .36rem;
  color: var(--main);
}

.house-address h3 {
  font-size: var(--big);
  font-family: var(--mix);
  color: var(--main);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0rem;
  white-space: nowrap;
}

.house-address h3 span {
  font-size: 180%;
  font-weight: 700;
  padding-right: .36rem;
  font-style: italic;
}

.house-address .fc-address h1 {
  font-size: 1.5rem;
  margin-bottom: .3rem;
}

.house-address .fc-address h2 {
  padding: 0rem;
}

@media (max-width:1199px) {
  .house-address .fc-address h1 {
    font-size: 1.2rem;
  }
}

@media (max-width:767px) {

  .resale-address,
  .fc-address {
    display: block;
  }

  .house-address h3 {
    text-align: right;
    margin-top: .5rem;
  }
}

@media (max-width:415px) {
  .house-address h3 {
    font-size: var(--p);
  }
}

/*----------------------------------*\

  # main-layout

\*----------------------------------*/
.main-layout {
  display: flex;
  align-items: start;
  width: 82.8%;
  max-width: 1300px;
  margin: 0 auto;
}

.main-layout .main {
  width: calc(100% - 15.3rem - 1.8rem);
  flex: 1 0 auto;
  margin-right: 1.8rem;
}

.main-layout .side-box {
  position: sticky;
  top: calc(var(--header-h) + .54rem);
  right: 4.5%;
  right: 7.55%;
  width: 15.3rem;
  /*height:22.5rem;*/
  /* height:calc(1.8rem * 14 + .9rem);*/
  /* background:#FFF;*/
  border-radius: .36rem;
  /*margin-bottom:1.8rem;*/
  margin-bottom: 5.4rem;
}

.main-layout .side {
  background: #FFF;
  border-radius: .36rem;
  box-shadow: var(--box-sd);
}

.side2 {
  background: white;
  /* background: linear-gradient(to bottom,
      #ffdab5 0%,
      #ffdab5 25%,
      #ffe8d2 50%,
      white 60%,
      white 100%); */

  /* background: linear-gradient(to bottom,
      #ececec 0%,
      #ececec 58%,
      white 58%,
      white 100%); */

  /* background: linear-gradient(to bottom,
      #fff2e3 0%,
      #fff2e3 57.5%,
      white 57.5%,
      white 100%); */

  border-radius: .36rem;
  box-shadow: var(--box-sd);
}

@media (max-width:1199px) {
  .main-layout {
    width: 90%;
    max-width: 90%;
  }

  .main-layout {
    flex-direction: column;
  }

  .main-layout .main {
    order: 2;
    width: 100%;
    margin-right: 0px;
  }

  .main-layout .side-box {
    order: 1;
    position: static;
    height: auto;
    width: 100%;
    right: 0px;
    margin-bottom: 0.5rem;
  }
}

/*----------------------------------*\

  # side info

\*----------------------------------*/
.main-layout .side-box .info-box {
  width: 81%;
  padding: .45rem 0;
  margin: 0 auto;
  font-size: var(--tiny);
  font-weight: 400;
}

.News_Highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 5px 10px; */
  gap: 5px 46px;

  margin-bottom: 14px;
  /* border-bottom: 1px #dddddd solid ; */

}

/* div置中文字齊左 */
.News_Highlights div:nth-of-type(1) {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 18px;
  margin: 0 auto 5px auto;
  grid-column: 1 / -1;

}

.News_Highlights div:nth-of-type(1)>span {
  display: block;
  text-align: left;

}



.News_Highlights div:nth-of-type(2)>span>span:nth-of-type(2),
.News_Highlights div:nth-of-type(3)>span>span:nth-of-type(2) {
  font-size: 16px;
  line-height: 30px;

}

.News_Highlights div:nth-of-type(1)>span:nth-of-type(2) {
  font-size: 45px;
  color: #ff8000;
  font-weight: 700;
  line-height: 48px;
  /* border-bottom: 3px solid #ffc494; */
}

.News_Highlights div>span:nth-of-type(2)>span:nth-of-type(1) {
  font-weight: 600;
  color: #ff8000;
}



.News_Highlights div:nth-of-type(1)>span>span:nth-of-type(2) {
  font-size: 30px;
  color: #ff8000;
  font-weight: 700;
  line-height: 55px;

  /* border-bottom: 3px solid #ffc494; */
}



/* 上卡片舊 */
/* .News_Highlights div:nth-of-type(2),
.News_Highlights div:nth-of-type(3) {


  padding: 6px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s;
 
  background-color: #fff7f0;
  background-color: #f1f1f1;
  display: flex;
  flex-direction: column;

} */

.News_Highlights div:nth-of-type(2),
.News_Highlights div:nth-of-type(3) {
  /* background: #ddd; */
  /* border-radius: px; */
  /* text-align: center; */
  /* border: 2px solid #ffc494; */
  /* background-color: #fff7f0; */

  /* padding: 6px; */
  /* background-color: #f1f1f1; */
  display: flex;
  flex-direction: column;
  border-bottom: 1px #dddddd solid;

}

.News_Highlights div>span:nth-of-type(1) {
  font-size: 16px;
}

.News_Highlights div>span:nth-of-type(2) {
  font-size: 20px;
  /* font-weight: 500; */
  display: flex;
  justify-content: space-between;

}




.item_Information {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 46px;
  margin-top: 8px;
  margin-bottom: 15px;
  /* background-color: #f3f3f3; */
  /* padding: 5px; */
  /* background-color: #ffc494;
  padding: 5px; */
  border-radius: 5px;
}

.item_Information_item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* padding: 5px; */
  /* border: 1px solid #ff7b00; */
  /* border-left: 2px solid  #e67000; */
  /* box-shadow:0 0 2px #a3a3a3; */
  border-radius: 3px;
  background-color: white;
  /* height: 1.8rem;
  line-height: 1.8rem; */
  /* background-color: #f1f1f1; */
  /* border-bottom: 2px solid #f1f1f1; */

}

.item_Information_item div {
  display: flex;
  border-bottom: 1px solid #ddd;
  font-size: 20px;
}

.item_Information_item>span:nth-of-type(1) {
  color: #ff8000;
}

.item_Information_item div>span:nth-of-type(1) {
  text-align: left;
}

.item_Information_item div>span:nth-of-type(2) {
  margin-left: auto;
  font-size: 16px;
  line-height: 30px;

}

/* .item_Information_item span:nth-of-type(1){
  border-bottom: 2px solid #ff9752;
} */
/* .item_Information_item span:nth-of-type(2) {
  font-size: 22px;
  font-weight: 500;

} */

.main-layout .side-box .info-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  height: 1.8rem;
  line-height: 1.8rem;
}

.main-layout .side-box .info-item:last-child {
  border-bottom: none;
}

.main-layout .side-box .info-item span:first-child {
  width: 30%;
  text-align-last: justify;
}

.main-layout .side-box .info-item span:last-child {
  /*font-family: var(--mix); font-family: var(--base); */
}

.main-layout .side-box .info-item span.eye-catch {
  color: var(--mate);
}

.info-item>div {
  width: 39%;
  text-align-last: justify;
}



.topic_gary {
  border-radius: .36rem .36rem 0 0;
  margin-top: .63rem;
  width: 100%;
  /* background: var(--main); */
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  color: white;
  font-weight: 500;
  background-color: rgb(84 84 84);

}

/*----------------------------------*\

  # slider

\*----------------------------------*/
.slider-mobile {
  width: 90%;
  margin: 0 auto 1rem;
  display: none;
}

.slider-pc {
  display: block;
}

.slider__wrap {
  max-width: 100%;
  /* 防止滾動閃爍 - 限制滑鼠滾輪事件只在輪播區域內有效 */
  contain: layout;
  scroll-behavior: auto;
}

.slider__wrap .swiper-container {
  border-radius: .36rem;
  box-shadow: var(--box-sd);
  width: 100%;
  height: 100%;
  /* 防止滾動事件衝突造成的閃爍 */
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.slider__flex {
  display: flex;
  align-items: center;
}

.slider__col {
  display: flex;
  flex-direction: column;
  width: 99px;
  margin-left: 9px;
}

.slider__prev,
.slider__next {
  cursor: pointer;
  text-align: center;
  height: 24px;
  width: 30px;
  margin-left: 36px;
  background: url(../images/aw.svg) no-repeat center center/100% auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.slider__next {
  margin-top: 6px;
}

.slider__prev {
  margin-bottom: 6px;
  transform: rotate(180deg);
}

.slider__prev:focus,
.slider__next:focus {
  outline: none;
}

.slider__wrap .swiper-button-disabled {
  opacity: .18;
  cursor: not-allowed;
}

.slider__thumbs {
  height: calc(423px - 60px);
}

.slider__thumbs .imgBox {
  transition: 0.25s;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: 0.5;
}

.slider__thumbs .imgBox:hover {
  opacity: 1;
}

.slider__thumbs .swiper-slide-thumb-active .imgBox {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
  opacity: 1;
}

.slider__wrap .sliders {
  border-radius: .36rem;
  width: calc(100% - 100px);
  height: 600px;
  background-color: #fff;
  /* 主輪播容器防止滾動衝突 */
  will-change: transform;
  isolation: isolate;
}

.slider__wrap .sliders .imgBox img {
  filter: brightness(1.0) contrast(1.2);
  transition: 3s;
  object-fit: contain;
}

.slider__wrap .sliders .imgBox img:hover {
  transform: scale(1.2);
}

.slider__wrap .imgBox {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__wrap .imgBox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  /* 防止圖片載入時的閃爍 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 防止滾動時輪播區域閃爍的額外規則 */
.slider__wrap .swiper-slide {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* 強制 GPU 加速，減少滾動時的重繪 */
.slider__flex .sliders .swiper-container {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}
.slider-group .heart-icon{
  position: absolute;
  z-index: 99;
}
.slider-pc .heart-icon {
  width: 50px;
  bottom: 20px;
  right: 20px;
}
.slider-mobile .heart-icon {
  width: 30px;
  bottom: 10px;
  right: 10px;
}

@media (max-width:1199px) {
  .slider-mobile {
    display: block;
  }

  .slider-pc {
    display: none;
  }
}

@media (max-width:767.98px) {
  .slider__wrap .sliders {
    height: 243px;
  }

  .slider__thumbs {
    height: calc(243px - 60px);
  }

  .slider__flex {
    flex-direction: column;
  }

  .slider__col {
    flex-direction: row;
    align-items: center;
    margin-left: 0;
    margin-top: 4.5px;
    width: 100%;
  }

  .slider__wrap .sliders {
    width: 100%;
  }

  .slider__thumbs {
    height: 45px;
    width: 100%;
  }

  .slider__next {
    margin-left: 0px;
    transform: rotate(-90deg);
  }

  .slider__prev {
    margin-left: 0px;
    margin-right: 3px;
    transform: rotate(90deg);
  }
}

/*----------------------------------*\

  # pdf-button

\*----------------------------------*/
.btnBox {
  display: flex;
  justify-content: space-between;
}

.btnBox button {
  margin-top: .63rem;
  padding: .36rem 1.35rem;
  background-color: var(--mate);
  color: white;
  font-size: var(--tiny);
  border: none;
  border-radius: .36rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btnBox button:hover {
  background-color: #db4613;
}

.btnBox button.print-button {
  margin-left: .9rem;
  background-color: var(--gold);
}

.btnBox button.print-button:hover {
  background-color: #a47938;
}

.print-button i {
  padding-right: .36rem;
}

/*----------------------------------*\

  # topic

\*----------------------------------*/
.main-layout .topic {
  border-radius: .36rem .36rem 0 0;
  margin-top: .63rem;
  width: 100%;
  background: var(--main);
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  color: white;
  font-weight: 500;
}

.main-layout .side-box .topic {
  margin-top: 0rem;
}

/*----------------------------------*\

  # google map

\*----------------------------------*/
.map-container {
  border-radius: 0 0 .36rem .36rem;
  padding: .63rem;
  width: 100%;
  height: 18rem;
  background: white;
  box-shadow: var(--box-sd);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width:1199px) {
  .map-container {
    height: 13.5rem;
  }
}

@media (max-width:768px) {
  .map-container {
    height: 12rem;
  }
}

/*----------------------------------*\

  # form

\*----------------------------------*/
.queryForm {
  background: white;
  padding: .9rem 1.8rem;
  width: 100%;
  border-radius: 0 0 .36rem .36rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-shadow: var(--box-sd);
  font-size: var(--tiny);
}

.queryForm .form-row {
  display: flex;
  align-items: center;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.queryForm .form-row label {
  border: 0px solid red;
  font-size: var(--tiny);
  width: 5.4rem;
  width: calc(var(--tiny) * 5.5);
  margin-right: .54rem;
  text-align: right;
  white-space: nowrap;
}

.queryForm .form-row input {
  flex: 1;
  padding: .36rem;
}

.queryForm .form-row input::placeholder {
  color: #999;
  color: var(--main);
  opacity: .36;
}

.queryForm .required::before {
  content: "*";
  color: red;
  margin-right: 0.25em;
}

.queryForm button {
  margin: 1rem auto 0;
  padding: .36rem 2.4rem;
  border-radius: .36rem;
}

.queryForm button:hover {
  background-color: #e67000;
}

/*----------------------------------*\

  # Best Value Property

\*----------------------------------*/
.bestvalue_wrap {
  margin-bottom: 2.7rem;
  margin-bottom: 5.4rem;
}

.bestvalue-grid {
  white-space: nowrap;
  width: 100%;
  padding: .63rem;
  background: var(--bestBg);
  border-radius: 0 0 .36rem .36rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.bestvalue-grid .heart-icon {
  position: absolute;
  bottom: .45rem;
  right: .63rem;
  width: 1.2rem;
  height: 1.2rem;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 2;
  background-image: url('../images/heart_not.svg');
}

.bestvalue-grid .heart-icon.active {
  background-image: url('../images/heart_ok.svg');
}

.bestvalue-grid .imgBox {
  position: relative;
  width: 100%;
  padding-bottom: 72%;
}

.bestvalue-grid .imgBox img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

a.property-card,
a.property-card:visited,
a.property-card:hover {
  text-decoration: none;
  color: inherit;
}

.bestvalue-grid .property-card {
  background: #fff;
  border-radius: .54rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-shadow: var(--box-sd);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bestvalue-grid .property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bestvalue-grid .imgBox {
  overflow: hidden;
}

.bestvalue-grid .property-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.bestvalue-grid .property-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 200, 0, 0.6));
}

.bestvalue-grid .property-info {
  padding: .63rem;
}

.bestvalue-grid .property-info h2 {
  font-size: .86rem;
  font-family: var(--base);
  line-height: 1.11;
  margin-bottom: .36rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: .54rem;
  border-bottom: 1px dotted var(--mate);
}

.bestvalue-grid .info-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  --fontSize: .72rem;
  color: var(--strong);
  font-family: var(--base);
}

.bestvalue-grid .info-row p {
  margin-bottom: 0;
  font-size: var(--fontSize);
  font-weight: 400;
}

.bestvalue-grid .info-row p:nth-child(2) {
  width: calc(var(--fontSize) * 6.5);
}

.bestvalue-grid .info-row span {
  padding-left: .18rem;
}

.bestvalue-grid .info-row span.num,
.bestvalue-grid .info-row span.price {
  font-family: var(--mix);
  font-size: 120%;
  font-weight: 500;
  padding-right: .09rem;
}

.bestvalue-grid .info-row span.price {
  color: var(--mate);
  font-weight: 700;
}

.bestvalue-grid .property-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

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

@media (max-width:767px) {
  .bestvalue-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}