/* 主圖點點 */

.hotspot-wrap {
  position: relative;
  max-width: 100%;
}

.hotspot-wrap img {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.hotspot {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.hotspot::before {
  content: attr(data-text);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;

  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hotspot:hover::before {
  opacity: 1;
}

/* 小箭頭 */

/* hover 出現 */
.hotspot:hover::before,
.hotspot:hover::after {
  opacity: 1;
}

.hotspot:hover::after {
  border-color: #7f0019;
}

/* 呼吸動畫（可拿掉） */
.hotspot::after {
  content: '';
  position: absolute;
  inset: 0;

  border: 4px solid rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  background: transparent;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 8px 4px rgba(255, 255, 255, 0.6);

  animation: hotspot-scale 1.2s ease infinite;
  transition: border-color 0.2s ease;
}

@keyframes hotspot-scale {
  0% {
    transform: scale(1);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);

  background: #fff;
  color: #000;
  padding: 14px 16px;
  min-width: 160px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 2px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hotspot-tooltip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  width: 100px;
  background: transparent;
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  pointer-events: auto;
}

.hotspot-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hotspot-btn {
  font-size: 13px;
  color: #333;
  padding: 6px 10px;
  border: 1px solid #ddd;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.text-section {
  margin-bottom: 20px;
  position: relative;
}

.text {
  position: relative;
  background-color: white;
  overflow: hidden;
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.5s ease-in-out;
  padding-bottom: 10px;
}

.fade-out {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: linear-gradient(180deg, transparent 0, rgb(255, 255, 255) 100%);
  pointer-events: none;
  transition:
    opacity 0.3s ease-in-out,
    background 0.3s ease-in-out;
  opacity: 1;
}

.text-section.show-more .fade-out {
  opacity: 0;

  background: linear-gradient(180deg, transparent 0, rgb(255, 255, 255) 100%);
}

.text-section p a {
  text-decoration: underline;
}

.more-text {
  /* opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding-top: 10px; */
  display: block;
  /* 初始設置為顯示，因為JavaScript會控制顯示/隱藏 */
  max-height: 0;
  /* 初始高度為0，讓內容收合 */
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.5s ease-in-out;
  padding-top: 10px;
}

.text-section.show-more .more-text {
  max-height: 1000px;
  /* 設置一個足夠高的值來展開所有內容 */
  opacity: 1;
}

.text-section.show-more .text {
  max-height: 100%;
}

.toggle-btn {
  display: flex;
  font-size: 16px;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  color: #222;
  opacity: 0.7;
  border: none;
  cursor: pointer;
  position: relative;
  margin: 15px auto;
}

.toggle-btn:hover {
  opacity: 1;
}

.toggle-btn::after {
  content: '';
  width: 0;
  height: 0;
  border: solid #666;
  border-width: 0px 2px 2px 0;
  display: inline-block;
  padding: 3px;
  margin-left: 8px;
  transition: transform 0.3s ease;
  transform: rotate(45deg);
}

.toggle-btn.show-more::after {
  margin-top: 5px;
  transform: rotate(-135deg);
}

.store p {
  font-size: 16px;
  font-weight: 350;
  line-height: 28.8px;
  color: #222;
}

.store h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 28.8px;
  margin: 0;
  padding: 0;
}

.store h3.store-title {
  font-size: 20px;
  margin-bottom: 1rem;
  text-align: center;
}

.pro img {
  width: 100%;
  border-radius: 5px;
}

.pro p {
  font-size: 16px;
  font-weight: 400;
  line-height: 28.8px;
}

.font-weight700 {
  font-weight: 700 !important;
}

.flexItem img {
  border-radius: 5px;
}

/* ===== Breadcrumb ===== */

.breadcrumb {
  font-size: 12px;
  color: #9d9da0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  font-size: 16px;
  margin: 20px auto 0 auto;
}

/* .breadcrumb li {
  display: flex;
  align-items: center;
} */

/* 移除原本的 before 箭頭 */
.breadcrumb li + li::before {
  content: none;
}

/* 改成在 li 後面加箭頭 */
.breadcrumb li::after {
  content: '>';
  margin: 0 8px;
  color: #9d9da0;
}

/* 最後一個（目前頁）不顯示箭頭 */
.breadcrumb li[aria-current='page']::after {
  content: '';
}

/* 確保 li 不被拆行 */
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #9d9da0;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li[aria-current='page'] {
  color: #111;
  font-weight: 500;
}

/* ===== Interior Advisor Breadcrumb ===== */
.ia-breadcrumb {
  display: flex;
  align-items: center;
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 900;
  justify-content: space-around;
}

.ia-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ia-breadcrumb__link {
  text-decoration: none;
  color: #1d1d1f;
}

.ia-breadcrumb__link:hover {
  text-decoration: underline;
}

.ia-breadcrumb__icon {
  width: 70px;
  height: auto;
  margin-right: 6px;
  display: block;
}

.ia-breadcrumb__text {
  line-height: 1;
}

/* 👉 用你給的 border 箭頭（向右） */
.ia-breadcrumb__arrow {
  content: '';
  width: 0;
  height: 0;
  border: solid #666;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  margin: 0 6px;
  transform: rotate(-45deg); /* 向右 */
}

.ia-breadcrumb__current {
  color: #333;
}

@media (max-width: 768px) {
  .ia-breadcrumb {
    flex-wrap: wrap;
  }

  .ia-breadcrumb__link {
    margin-bottom: 46px;
  }

  .ia-breadcrumb__icon {
    width: 48px;
    height: auto;
    margin-right: 12px;
    display: block;
  }
}
