/* 精選物件詳情頁 — 資料驅動排版樣式 (build_listing.js 產出頁面共用) */
.pt-spechead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin: 22px 0 0; }
.pt-spechead-addr { font-size: clamp(3.9rem, 7.2vw, 5.4rem); font-weight: 700; color: var(--ink-soft); line-height: 1.1; }
.pt-spechead-price { font-size: clamp(3.9rem, 7.2vw, 5.4rem); font-weight: 800; color: var(--orange-dark); line-height: 1.1; }
.pt-spechead-layout { font-size: clamp(3.9rem, 7.2vw, 5.4rem); font-weight: 700; color: var(--ink); line-height: 1.1; }

.pt-specsheet { display: grid; gap: 18px; margin-top: 28px; }
.pt-speczone { border: 1px solid var(--line); background: var(--white); }
.pt-speczone-title { margin: 0; padding: 10px 16px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--white); background: var(--teal); }
.pt-speczone-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pt-specitem { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 5px; }
.pt-specitem:nth-child(3n) { border-right: 0; }
.pt-specitem:nth-last-child(-n+3) { border-bottom: 0; }
.pt-specitem-k { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--orange-dark); }
.pt-specitem-v { font-size: .96rem; font-weight: 700; color: var(--ink); line-height: 1.4; }

@media (max-width: 600px) {
  .pt-speczone-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-specitem:nth-child(3n) { border-right: 1px solid var(--line); }
  .pt-specitem:nth-child(2n) { border-right: 0; }
  .pt-specitem:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .pt-specitem:nth-last-child(-n+2) { border-bottom: 0; }
}

.pt-heading { margin-bottom: 32px; }
.pt-heading h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }

.pt-body { max-width: 820px; font-size: 1.06rem; line-height: 1.9; color: var(--ink); }
.pt-body p { margin: 0 0 18px; }
.pt-body p:last-child { margin-bottom: 0; }
.pt-body strong { color: var(--orange-dark); }
.pt-body em { color: var(--teal); font-style: normal; font-weight: 700; }
.pt-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.pt-body code { padding: 2px 6px; background: var(--paper-2); border-radius: 3px; font-size: .92em; }
.pt-body .pt-h3 { margin: 26px 0 12px; font: 800 1.15rem/1.4 var(--serif); color: var(--orange-dark); letter-spacing: .02em; }
.pt-body .pt-h3:first-child { margin-top: 0; }

.pt-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.pt-list li { padding: 14px 18px; background: color-mix(in srgb, var(--white) 70%, transparent); border-left: 4px solid var(--orange); }
.pt-list li:has(> b) { display: grid; gap: 6px; }
.pt-list li b { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.pt-list li span { color: var(--ink-soft); font-size: .98rem; line-height: 1.75; }
.section-lime .pt-list li { background: color-mix(in srgb, var(--white) 55%, transparent); border-left-color: var(--teal); }

.pt-figure { margin: 22px 0; }
.pt-figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.pt-figure figcaption { margin-top: 8px; font-size: .84rem; color: var(--ink-soft); font-weight: 600; }

.pt-compliance { max-width: 820px; margin: 0 auto; }
.pt-compliance b { font-weight: 800; }

/* ── 物件實拍相簿 ── */
.pt-gallery-section { padding-block: 48px; }
.pt-gallery { max-width: 960px; margin: 0 auto; display: grid; gap: 14px; }
.pt-gallery-viewport {
  position: relative; background: #111; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; overflow: hidden;
}
.pt-gallery-track { position: absolute; inset: 0; }
.pt-gallery-slide {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .28s ease;
  pointer-events: none;
}
.pt-gallery-slide.is-active { opacity: 1; pointer-events: auto; }
.pt-gallery-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.pt-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #111; border: 0;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 2;
  transition: background .15s ease, transform .15s ease;
}
.pt-gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.pt-gallery-prev { left: 12px; }
.pt-gallery-next { right: 12px; }
.pt-gallery-counter {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(0,0,0,.55); color: #fff;
  padding: 4px 10px; font-size: .82rem; font-weight: 700; border-radius: 999px;
  z-index: 2;
}
.pt-gallery-thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px;
  scrollbar-width: thin;
}
.pt-gallery-thumb {
  flex: 0 0 auto; width: 92px; height: 68px; padding: 0;
  border: 2px solid transparent; background: #000; cursor: pointer;
  overflow: hidden; transition: border-color .15s ease, transform .15s ease;
}
.pt-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-gallery-thumb.is-active { border-color: var(--orange); }
.pt-gallery-thumb:hover { transform: translateY(-2px); }

@media (max-width: 720px) {
  .pt-facts { grid-template-columns: repeat(2, 1fr); }
  .pt-fact { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .pt-fact:nth-child(3n) { border-right: 1px solid var(--line); }
  .pt-fact:nth-child(2n) { border-right: 0; }
  .pt-fact:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .pt-fact:last-child { border-bottom: 0; }
  .pt-body { font-size: 1rem; }
  .pt-gallery-viewport { aspect-ratio: 3 / 4; }
  .pt-gallery-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .pt-gallery-thumb { width: 72px; height: 54px; }
}
