/* ================================================
   TOPSPACE — Property Detail Page · Shared Styles
   ================================================ */

/* ── Hero (compact banner) ── */
.pdh { position:relative; min-height:46vh; display:flex; flex-direction:column; overflow:hidden; }

/* ── Running announcement ticker (top bar, below fixed header) ── */
.pd-ticker { position:relative; z-index:4; margin-top:0; height:44px; display:flex; align-items:center; overflow:hidden; background:linear-gradient(90deg,var(--pur) 0%,var(--pur-2) 100%); border-bottom:1px solid rgba(255,255,255,.12); }
.pd-ticker-track { display:inline-flex; align-items:center; white-space:nowrap; will-change:transform; animation:pdTk 34s linear infinite; }
.pd-ticker:hover .pd-ticker-track { animation-play-state:paused; }
.pd-tk-item { font-size:.8rem; font-weight:500; color:rgba(255,255,255,.95); padding:0 1.15rem; letter-spacing:.01em; }
.pd-tk-dot { color:rgba(255,255,255,.55); opacity:1; }
@keyframes pdTk { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── Detail head (title block below the slider — light theme) ── */
.pd-crumb { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; font-size:.78rem; color:var(--tx-3); margin-bottom:1.5rem; }
.pd-crumb a { color:var(--tx-3); text-decoration:none; transition:color .2s; }
.pd-crumb a:hover { color:var(--pur); }
.pd-crumb .breadcrumb-sep { color:var(--tx-3); opacity:.6; }
.pd-crumb [aria-current="page"] { color:var(--tx-2); }
.pd-head { margin:1.5rem 0 2rem; }
.pd-head .tag-row { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:.9rem; }
.pd-head-title { font-family:var(--font-serif); font-size:clamp(1.5rem,3vw,2.15rem); font-weight:600; color:var(--tx-1); line-height:1.25; }
.pd-head-loc { display:flex; align-items:center; gap:.45rem; font-size:.9rem; color:var(--tx-3); margin-top:.7rem; }
.pd-head-loc svg { color:var(--pur-3); flex-shrink:0; }

/* ── YouTube link (video tour → opens on YouTube) ── */
.pd-yt-link { display:flex; align-items:center; gap:1rem; padding:1.05rem 1.25rem; border:1px solid rgba(80,0,128,.14); border-radius:var(--r-md,14px); background:#f7f3fc; text-decoration:none; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pd-yt-link:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(80,0,128,.13); border-color:var(--pur-3); }
.pd-yt-link:focus-visible { outline:2px solid var(--pur); outline-offset:3px; }
.pd-yt-ico { flex-shrink:0; width:52px; height:52px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:#FF0000; color:#fff; box-shadow:0 6px 16px rgba(255,0,0,.28); }
.pd-yt-txt { display:flex; flex-direction:column; gap:.15rem; }
.pd-yt-txt strong { font-size:1rem; color:var(--tx-1); font-weight:600; }
.pd-yt-txt span { font-size:.82rem; color:var(--tx-3); }

/* ── Section rhythm: สลับ part ขาว / ม่วง (ตามบรีฟ) ── */
.pd-panel-pur { background:linear-gradient(180deg,#f7f2fd 0%,#f0e8fb 100%); border:1px solid rgba(80,0,128,.1); border-radius:18px; padding:1.75rem 1.9rem; }
.pd-panel-pur .pd-lbl { margin-top:0; }
.pd-related-band { background:none; border-radius:0; padding:0; box-shadow:none; border-top:1px solid var(--bd-0); padding-top:2.75rem; }
.pd-related-band .sec-title { color:var(--tx-1); }
.pd-related-band .grad-gold { background:none; -webkit-background-clip:border-box; background-clip:border-box; -webkit-text-fill-color:var(--pur); color:var(--pur); }
@media (max-width:640px){
  .pd-ticker { margin-top:0; }
  .pd-panel-pur { padding:1.4rem 1.25rem; }
  .pd-related-band { padding-top:2rem; }
}
.pdh-bg { position:absolute; inset:0; background-size:cover; background-position:center; transition:transform 8s ease; }
.pdh:hover .pdh-bg { transform:scale(1.04); }
.pdh-overlay { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(8,5,20,.55) 0%, rgba(20,13,45,.78) 55%, rgba(8,5,20,.97) 100%); }
.pdh-inner { position:relative; z-index:2; flex:1; display:flex; flex-direction:column; justify-content:center; padding-bottom:2.25rem; padding-top:6.5rem; }
.pdh-stat-bar { position:relative; z-index:2; background:rgba(0,0,0,.42); backdrop-filter:blur(14px); border-top:1px solid rgba(255,255,255,.07); }
.pdh-stat-inner { display:flex; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.pdh-stat-inner::-webkit-scrollbar { display:none; }
.pdh-stat-item { padding:.875rem 2rem .875rem 0; margin-right:2rem; min-width:max-content; border-right:1px solid rgba(255,255,255,.07); flex-shrink:0; }
.pdh-stat-item:last-child { border-right:none; margin-right:0; }
.pdh-stat-lbl { font-size:.58rem; color:rgba(255,255,255,.42); letter-spacing:.14em; text-transform:uppercase; margin-bottom:.2rem; }
.pdh-stat-val { font-size:1rem; font-weight:600; color:#fff; }

/* ── Slider ── */
.pds-wrap { position:relative; border-radius:16px; overflow:hidden; background:#EFEDF4; box-shadow:0 14px 44px rgba(80,0,128,.15); aspect-ratio:16/9; }
.pds-slide { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .45s ease; }
.pds-slide.active { opacity:1; }
.pds-btn { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.5); backdrop-filter:blur(6px); color:#fff; border:1px solid rgba(255,255,255,.15); width:48px; height:48px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:3; transition:background .2s,transform .2s; touch-action:manipulation; }
.pds-btn:hover { background:rgba(61,42,107,.85); border-color:var(--pur-3); transform:translateY(-50%) scale(1.07); }
.pds-prev { left:1rem; } .pds-next { right:1rem; }
.pds-counter { position:absolute; bottom:1rem; left:50%; transform:translateX(-50%); background:rgba(0,0,0,.55); color:#fff; font-size:.75rem; padding:.28rem .75rem; border-radius:20px; z-index:3; font-variant-numeric:tabular-nums; white-space:nowrap; }

/* Thumbstrip */
.pds-thumbs { display:flex; gap:.5rem; overflow-x:auto; scrollbar-width:none; padding:.875rem 0 0; -webkit-overflow-scrolling:touch; }
.pds-thumbs::-webkit-scrollbar { display:none; }
.pds-thumb { width:72px; height:50px; border-radius:8px; overflow:hidden; flex-shrink:0; cursor:pointer; border:2px solid transparent; transition:border-color .2s,opacity .2s; opacity:.55; touch-action:manipulation; }
.pds-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.pds-thumb.active { border-color:var(--gold-2); opacity:1; }
.pds-thumb:hover { opacity:.85; }

/* Gallery grid */
.pgal { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; margin-top:1.25rem; }
.pgal-img { border-radius:var(--r-sm); overflow:hidden; cursor:pointer; aspect-ratio:4/3; }
.pgal-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s ease,opacity .2s; }
.pgal-img:hover img { transform:scale(1.05); }
.pgal-hidden { display:none; }
.pgal-hidden.show { display:block; }

/* Section label */
.pd-lbl { font-size:.6rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--tx-3); margin-bottom:1.25rem; display:flex; align-items:center; gap:.75rem; }
.pd-lbl::after { content:''; flex:1; height:1px; background:var(--bd-0); }

/* Spec cards */
.pd-specs { display:grid; grid-template-columns:repeat(2,1fr); gap:.875rem; margin-bottom:2.5rem; }
@media (min-width:640px) { .pd-specs { grid-template-columns:repeat(4,1fr); } }
.pd-spec { background:var(--bg-1); border:1px solid var(--bd-0); border-radius:var(--r-lg); padding:1.25rem 1rem; text-align:center; transition:border-color .2s,box-shadow .2s,transform .2s; }
.pd-spec:hover { border-color:var(--bd-gold); box-shadow:var(--sh-gold); transform:translateY(-2px); }
.pd-spec-ico { width:36px; height:36px; border-radius:var(--r-sm); background:rgba(80,0,128,.08); border:1px solid var(--bd-gold); display:flex; align-items:center; justify-content:center; margin:0 auto .75rem; color:var(--gold-2); }
.pd-spec-val { font-family:var(--font-serif); font-size:1.35rem; font-weight:700; color:var(--gold); line-height:1; margin-bottom:.25rem; display:block; }
.pd-spec-lbl { font-size:.68rem; color:var(--tx-3); letter-spacing:.06em; }

/* Callout */
.pd-callout { background:linear-gradient(135deg,rgba(61,42,107,.08),rgba(80,0,128,.05)); border:1px solid var(--bd-gold); border-radius:var(--r-lg); padding:1.25rem 1.5rem; margin:2rem 0; display:flex; gap:1rem; align-items:flex-start; }
.pd-callout svg { color:var(--gold-2); flex-shrink:0; margin-top:.15rem; }
.pd-callout p { font-size:.9375rem; color:var(--tx-2); line-height:1.8; }
.pd-callout strong { color:var(--tx-1); }

/* Features */
.pd-feat-grp { margin-bottom:1.5rem; }
.pd-feat-title { font-size:.7rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--pur-3); margin-bottom:.75rem; padding-bottom:.5rem; border-bottom:1px solid var(--bd-0); }
.pd-feats { display:grid; grid-template-columns:repeat(2,1fr); gap:.5rem; }
.pd-feat { display:flex; align-items:center; gap:.625rem; font-size:.875rem; color:var(--tx-2); padding:.35rem 0; }
.pd-feat svg { color:var(--gold-2); flex-shrink:0; }

/* Location */
.pd-loc { background:var(--bg-1); border:1px solid var(--bd-0); border-radius:var(--r-lg); overflow:hidden; transition:border-color .2s; text-decoration:none; display:block; }
.pd-loc:hover { border-color:var(--bd-gold); }
.pd-loc-top { padding:1.125rem 1.25rem; display:flex; align-items:flex-start; gap:.75rem; }
.pd-loc-ico { width:40px; height:40px; border-radius:var(--r-sm); background:rgba(80,0,128,.08); border:1px solid var(--bd-gold); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--gold-2); }
.pd-chips { display:flex; gap:.5rem; flex-wrap:wrap; padding:0 1.25rem 1.25rem; }
.pd-chip { background:rgba(61,42,107,.06); border:1px solid var(--bd-0); border-radius:100px; padding:.28rem .8rem; font-size:.72rem; color:var(--pur-3); display:flex; align-items:center; gap:.35rem; }

/* Video */
.pd-vid-wrap { border-radius:var(--r-lg); overflow:hidden; position:relative; cursor:pointer; box-shadow:var(--sh-lg); }
.pd-vid-wrap img { width:100%; display:block; }
.pd-vid-ov { position:absolute; inset:0; background:rgba(0,0,0,.28); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1rem; transition:background .2s; }
.pd-vid-wrap:hover .pd-vid-ov { background:rgba(61,42,107,.48); }
.pd-play { width:72px; height:72px; background:rgba(220,38,38,.92); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:transform .2s,box-shadow .2s; }
.pd-vid-wrap:hover .pd-play { transform:scale(1.1); box-shadow:0 0 20px rgba(220,38,38,.28); }
.pd-vid-lbl { font-size:.82rem; color:rgba(255,255,255,.85); background:rgba(0,0,0,.45); backdrop-filter:blur(4px); padding:.32rem .9rem; border-radius:20px; }

/* Sidebar */
.pd-sb { position:sticky; top:5.5rem; }
.pd-sb-card { background:var(--bg-0); border:1px solid var(--bd-0); border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--sh-lg); }
.pd-sb-top { padding:1.5rem 1.75rem 1.25rem; background:linear-gradient(135deg,var(--bg-pur2),var(--bg-pur)); border-bottom:1px solid rgba(255,255,255,.07); }
.pd-sb-plbl { font-size:.58rem; letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.4); margin-bottom:.25rem; }
.pd-sb-price { font-family:var(--font-serif); font-size:2.25rem; font-weight:700; color:var(--gold-3); line-height:1; }
.pd-sb-price small { font-size:.875rem; font-weight:300; color:rgba(255,255,255,.45); margin-left:.25rem; }
.pd-sb-name { font-size:.8rem; color:rgba(255,255,255,.5); margin-top:.45rem; }
.pd-sb-body { padding:1.5rem 1.75rem; }
.pd-agent { display:flex; align-items:center; gap:.875rem; margin-bottom:1.5rem; }
.pd-av { width:46px; height:46px; border-radius:50%; background:linear-gradient(135deg,var(--pur),var(--pur-3)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.1rem; font-weight:700; flex-shrink:0; box-shadow:0 4px 16px rgba(61,42,107,.35); }
.pd-btn-line { display:flex; align-items:center; justify-content:center; gap:.625rem; width:100%; padding:.9rem 1.5rem; background:linear-gradient(135deg,#06C755,#05A847); color:#fff; font-family:var(--font); font-size:.9375rem; font-weight:600; border:none; border-radius:var(--r-md); cursor:pointer; transition:opacity .2s,transform .2s; touch-action:manipulation; }
.pd-btn-line:hover { opacity:.9; transform:translateY(-1px); }
.pd-btn-row { display:flex; gap:.75rem; margin-top:.75rem; }
.pd-btn-out { flex:1; display:flex; align-items:center; justify-content:center; gap:.5rem; padding:.75rem .5rem; background:transparent; border:1.5px solid var(--bd-1); border-radius:var(--r-md); font-family:var(--font); font-size:.8rem; font-weight:500; color:var(--tx-2); cursor:pointer; text-decoration:none; transition:border-color .2s,color .2s,background .2s; touch-action:manipulation; }
.pd-btn-out:hover { border-color:var(--pur-3); color:var(--pur-3); background:var(--pur-faint); }
.pd-divider { height:1px; background:var(--bd-0); margin:1.25rem 0; }
.pd-pbox { background:rgba(80,0,128,.05); border:1px solid var(--bd-gold); border-radius:var(--r-md); padding:1rem 1.125rem; margin-top:1.25rem; }
.pd-pbox-t { font-size:.6rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); margin-bottom:.75rem; }
.pd-pbox-r { display:flex; justify-content:space-between; align-items:center; font-size:.845rem; color:var(--tx-2); margin-bottom:.4rem; }
.pd-pbox-r:last-child { margin-bottom:0; }
.pd-pbox-r strong { color:var(--tx-1); font-weight:600; }
.pd-trust { display:flex; gap:1rem; flex-wrap:wrap; margin-top:1rem; }
.pd-trust-i { display:flex; align-items:center; gap:.375rem; font-size:.7rem; color:var(--tx-3); }
.pd-trust-i svg { color:var(--pur-l); }

/* Sticky mobile CTA */
.pd-mob-cta { display:none; }
@media (max-width:1023px) {
  .pd-mob-cta { display:flex; position:fixed; bottom:0; left:0; right:0; z-index:var(--z-overlay); background:var(--bg-0); border-top:1px solid var(--bd-0); padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); gap:.625rem; align-items:center; box-shadow:0 -4px 24px rgba(0,0,0,.12); }
  .pd-mob-price { flex:1; min-width:0; }
  .pd-mob-price-val { font-family:var(--font-serif); font-size:1.2rem; font-weight:700; color:var(--gold); line-height:1; }
  .pd-mob-price-lbl { font-size:.65rem; color:var(--tx-3); margin-top:.1rem; }
  .pd-mob-line { display:flex; align-items:center; justify-content:center; gap:.5rem; background:linear-gradient(135deg,#06C755,#05A847); color:#fff; font-family:var(--font); font-size:.875rem; font-weight:600; border:none; border-radius:var(--r-md); padding:.75rem 1.25rem; cursor:pointer; white-space:nowrap; touch-action:manipulation; flex-shrink:0; }
  .pd-mob-call { display:flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:50%; border:1.5px solid var(--bd-1); color:var(--tx-2); flex-shrink:0; text-decoration:none; touch-action:manipulation; }
  .pd-mob-call:hover { border-color:var(--pur-3); color:var(--pur-3); }
  body.pd-page { padding-bottom:80px; }
}

/* Related grid */
.pd-rel { display:flex; gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:.5rem; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.pd-rel::-webkit-scrollbar { display:none; }
.pd-rel > * { flex:0 0 80%; scroll-snap-align:start; }
@media (min-width:640px) { .pd-rel { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; overflow:visible; } .pd-rel > * { flex:none; } }

/* Form validation */
.pd-field-msg { font-size:.7rem; margin-top:-.6rem; margin-bottom:.85rem; }
.pd-field-msg.ok  { color:#10B981; }
.pd-field-msg.err { color:#DC2626; }

@media (max-width:640px) {
  .pds-btn { width:38px; height:38px; }
  .pdh { min-height:auto; }
  .pd-ticker { top:4.25rem; height:34px; }
  .pd-tk-item { font-size:.74rem; }
}
@media (prefers-reduced-motion:reduce) {
  .pdh-bg, .pds-slide, .pds-btn, .pd-spec, .pd-btn-line, .pd-btn-out { transition:none !important; }
  /* ticker is a marquee — keep it scrolling (slower) even with reduced-motion, per design */
  .pd-ticker-track { animation-duration: 48s !important; }
}

/* ================================================
   PREMIUM REFRESH (2026-07) — editorial luxury polish
   (appended overrides — win by source order)
   ================================================ */
/* Gallery — larger radius + soft purple shadow (cinematic, not heavy-black) */
.pds-wrap   { border-radius:22px; box-shadow:0 24px 60px rgba(80,0,128,.16); }
.pds-thumbs { padding-top:.7rem; }
.pds-thumb  { width:88px; height:60px; border-radius:11px; }

/* Title — a touch larger + tighter tracking */
.pd-head       { margin:1.75rem 0 2rem; }
.pd-head-title { font-size:clamp(1.7rem,3.4vw,2.4rem); letter-spacing:-.01em; }

/* Section label — lavender, airy */
.pd-lbl { color:var(--pur-3); font-size:.62rem; letter-spacing:.2em; margin-bottom:1.1rem; }

/* Video — real thumbnail w/ play (switches markup to .pd-vid-wrap) */
.pd-vid-wrap    { border-radius:18px; aspect-ratio:16/7; box-shadow:0 16px 40px rgba(80,0,128,.14); }
.pd-vid-wrap img{ width:100%; height:100%; object-fit:cover; }
.pd-vid-ov      { background:linear-gradient(0deg,rgba(16,3,30,.5),rgba(16,3,30,.15)); }
.pd-play        { width:66px; height:66px; background:#FF0000; box-shadow:0 8px 30px rgba(255,0,0,.4); }
.pd-vid-lbl     { font-weight:600; color:#fff; }

/* Facilities — flat panel + clean icon-chip grid */
.pd-panel-pur   { background:#FAF7FD; border:1px solid var(--bd-0); border-radius:20px; padding:1.9rem 2rem; }
.pd-feats       { grid-template-columns:repeat(2,1fr); gap:.15rem 1.6rem; }
@media (min-width:600px){ .pd-feats { grid-template-columns:repeat(3,1fr); } }
.pd-feat        { align-items:center; gap:.75rem; font-size:.92rem; font-weight:500; color:var(--tx-1); padding:.7rem 0; border-bottom:1px solid var(--bd-0); }
.pd-feat svg    { width:15px; height:15px; padding:9px; background:rgba(126,44,184,.09); border-radius:9px; box-sizing:content-box; color:var(--pur); }
.pd-feat-title  { color:var(--pur-3); border-bottom:none; margin-bottom:.35rem; }
.pd-feat-grp    { margin-bottom:1.25rem; }
.pd-feat-grp:last-child { margin-bottom:0; }

@media (max-width:600px){
  .pds-wrap    { border-radius:16px; }
  .pd-panel-pur{ padding:1.4rem 1.25rem; }
  .pd-vid-wrap { aspect-ratio:16/9; }
}
@media (prefers-reduced-motion:reduce){
  .pd-vid-ov, .pd-play, .pd-vid-wrap { transition:none !important; }
}


/* === Video: red YouTube link button (opens YouTube in new tab) === */
.pd-ytbtn{display:inline-flex;align-items:center;gap:.6rem;padding:.9rem 1.5rem;border-radius:12px;background:#FF0000;color:#fff;font-family:inherit;font-weight:600;font-size:1rem;text-decoration:none;box-shadow:0 8px 22px rgba(255,0,0,.3);transition:transform .18s,box-shadow .18s;}
.pd-ytbtn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,0,0,.24);}
.pd-ytbtn:focus-visible{outline:3px solid var(--pur-1,#500080);outline-offset:3px;}
.pd-ytbtn svg{width:22px;height:22px;}
@media (prefers-reduced-motion:reduce){.pd-ytbtn{transition:none;}}

/* Quick spec summary row (under title) */
.pd-quickspec { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1.15rem; }
.pd-quickspec .pd-feat { margin:0; background:var(--pur-faint); border:1px solid var(--bd-1); border-radius:10px; padding:.5rem .9rem; font-size:.85rem; font-weight:500; color:var(--tx-1); display:inline-flex; align-items:center; gap:.5rem; }
.pd-quickspec .pd-feat svg { width:15px; height:15px; color:var(--pur); flex-shrink:0; }



/* สเปกตาราง 2 คอลัมน์ (iHaveCPU style) + ปุ่มขอใบเสนอราคา */
.pd-spectable { width:100%; border-collapse:collapse; margin-top:.4rem; }
.pd-spectable tr { border-bottom:1px solid var(--bd-0,#ECE6F2); }
.pd-spectable tr:last-child { border-bottom:none; }
.pd-spectable th, .pd-spectable td { text-align:left; padding:.78rem .15rem; font-size:.9rem; vertical-align:top; line-height:1.5; }
.pd-spectable th { width:46%; font-weight:500; color:var(--tx-3,#8A7F98); white-space:nowrap; }
.pd-spectable td { color:var(--tx-1,#2A2233); font-weight:600; }
@media (max-width:520px){ .pd-spectable th { white-space:normal; } }
.pd-btn-quote { display:flex; align-items:center; justify-content:center; gap:.5rem; width:100%; padding:.9rem; border:none; border-radius:var(--r-md,12px); background:linear-gradient(135deg,var(--pur,#500080),var(--pur-2,#62109A)); color:#fff; font-family:inherit; font-weight:600; font-size:.98rem; cursor:pointer; box-shadow:0 10px 26px rgba(80,0,128,.32); transition:transform .16s, box-shadow .16s; margin-bottom:.7rem; }
.pd-btn-quote:hover { transform:translateY(-2px); box-shadow:0 9px 22px rgba(80,0,128,.26); }

/* ปุ่มแชร์ประกาศ (item 22) */
.pd-share { display:inline-flex; align-items:center; gap:.4rem; margin:.1rem 0 1.1rem; padding:.44rem .95rem; border-radius:100px; border:1px solid var(--bd-1); background:#fff; color:var(--pur,#500080); font-family:inherit; font-size:.82rem; font-weight:600; cursor:pointer; transition:.15s; }
.pd-share:hover { border-color:var(--pur,#500080); background:var(--pur-faint,#F3EDFA); }
.pd-share svg { width:15px; height:15px; }

/* ── Share popup — คัดลอกลิงก์ + LINE/FB/X (บรีฟ v4 ข้อ 12) ── */
.pd-sharepop { position:fixed; inset:0; z-index:320; display:none; align-items:center; justify-content:center; padding:1.5rem; background:rgba(18,8,32,.55); backdrop-filter:blur(4px); }
.pd-sharepop.open { display:flex; animation:pdShFade .18s ease; }
@keyframes pdShFade { from{opacity:0} to{opacity:1} }
.pd-sharepop-card { position:relative; width:100%; max-width:380px; background:#fff; border-radius:20px; padding:1.6rem 1.5rem 1.5rem; box-shadow:0 30px 70px rgba(20,4,40,.4); animation:pdShPop .2s cubic-bezier(.2,.8,.3,1); }
@keyframes pdShPop { from{transform:translateY(14px) scale(.97);opacity:0} to{transform:none;opacity:1} }
.pd-sharepop-x { position:absolute; top:.7rem; right:.85rem; width:32px; height:32px; border:none; background:none; font-size:1.5rem; line-height:1; color:var(--tx-3); cursor:pointer; border-radius:50%; transition:.15s; }
.pd-sharepop-x:hover { background:var(--pur-faint); color:var(--pur); }
.pd-sharepop-h { font-family:var(--font-serif); font-size:1.15rem; font-weight:700; color:var(--tx-1); margin-bottom:1.15rem; }
.pd-sharepop-row { display:flex; gap:.6rem; margin-bottom:1.2rem; }
.pd-shp { flex:1; display:flex; flex-direction:column; align-items:center; gap:.45rem; padding:.85rem .4rem; border-radius:13px; border:1px solid var(--bd-1); text-decoration:none; font-size:.78rem; font-weight:600; color:var(--tx-2); transition:transform .15s, box-shadow .15s, border-color .15s; }
.pd-shp:hover { transform:translateY(-2px); box-shadow:0 10px 22px -10px rgba(80,0,128,.35); }
.pd-shp-ic { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; }
.pd-shp-ic svg { width:20px; height:20px; }
.pd-shp-line .pd-shp-ic { background:#06C755; }
.pd-shp-fb .pd-shp-ic { background:#1877F2; }
.pd-shp-x .pd-shp-ic { background:#000; }
.pd-shp-line:hover { border-color:#06C755; }
.pd-shp-fb:hover { border-color:#1877F2; }
.pd-shp-x:hover { border-color:#000; }
.pd-sharepop-copy { display:flex; gap:.5rem; }
.pd-sharepop-copy input { flex:1; min-width:0; padding:.7rem .85rem; border:1px solid var(--bd-1); border-radius:11px; background:var(--pur-faint,#F7F4FB); font-family:inherit; font-size:.82rem; color:var(--tx-2); outline:none; }
.pd-sharepop-copybtn { flex-shrink:0; padding:.7rem 1.1rem; border:none; border-radius:11px; background:linear-gradient(135deg,var(--pur,#500080),var(--pur-2,#62109A)); color:#fff; font-family:inherit; font-weight:600; font-size:.82rem; cursor:pointer; transition:filter .15s, background .15s; }
.pd-sharepop-copybtn:hover { filter:brightness(1.09); }
.pd-sharepop-copybtn.ok { background:#06C755; }


/* ข้อ 17 — สถานะ = ประโยคเดียว ทักแชทเช็คสถานะล่าสุด */
.pd-sb-status { display:flex; gap:.5rem; align-items:flex-start; margin:0 0 1rem; padding:.72rem .85rem; background:var(--pur-faint,#F3EDFA); border:1px solid var(--bd-1,#E4DCEC); border-radius:12px; font-size:.82rem; line-height:1.5; color:var(--pur-2,#62109A); font-weight:600; }
.pd-sb-status svg { flex-shrink:0; margin-top:1px; color:var(--pur,#500080); }


/* ================================================
   iHaveCPU-style revamp (2026-07) — สรุปทรัพย์ในกล่องขวา + สเปก 2 กลุ่ม (ref.png)
   ================================================ */
/* หัวกล่อง sidebar: badge + ชื่อทรัพย์ + ทำเล + แชร์ + quickspec (ย้ายมาจากคอลัมน์ซ้าย) */
.pd-sb-head { padding:1.5rem 1.6rem 1.4rem; background:#fff; border-bottom:1px solid var(--bd-0); }
.pd-sb-headrow { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:.9rem; }
.pd-sb-headrow .pd-share { margin:0; }
.pd-sb-title { font-family:var(--font-serif); font-size:clamp(1.28rem,2.4vw,1.6rem) !important; font-weight:600; color:var(--tx-1); margin:0 !important; line-height:1.3; letter-spacing:-.01em; }
.pd-sb-loc { display:flex; align-items:flex-start; gap:.45rem; margin-top:.65rem !important; font-size:.855rem; color:var(--tx-3); line-height:1.5; }
.pd-sb-loc svg { color:var(--pur-3); flex-shrink:0; margin-top:2px; }
.pd-sb-quick { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:1.05rem; }
.pd-sb-quick .pd-feat { margin:0; background:var(--pur-faint); border:1px solid var(--bd-1); border-radius:9px; padding:.42rem .7rem; font-size:.775rem; font-weight:500; color:var(--tx-1); display:inline-flex; align-items:center; gap:.4rem; }
.pd-sb-quick .pd-feat svg { width:14px; height:14px; color:var(--pur); flex-shrink:0; padding:0; background:none; border-radius:0; }

/* ปุ่มวิดีโอพาชม (ย้ายเข้ากล่อง) — เต็มความกว้าง */
.pd-sb-body .pd-ytbtn { display:flex; width:100%; justify-content:center; margin-top:.7rem; font-size:.92rem; padding:.82rem 1rem; }
.pd-sb-body .pd-btn-row { margin-top:.7rem; }
.pd-sb-body .pd-btn-out { padding:.78rem .5rem; }

/* grid areas: จอใหญ่ = รูปซ้าย(ยืดสูงเท่ากล่อง) + กล่องสรุปขวา / สเปกเต็มกว้างล่าง */
.pd-ga-gallery { grid-area:gallery; }
.pd-ga-side    { grid-area:side; }
.pd-ga-specs   { grid-area:specs; }
@media (min-width:1200px){
  .pd-ga-specs { margin-top:2.5rem; }
  /* รูปยืดสูงเท่ากล่องขวา = ไม่เหลือช่องว่างใต้รูป */
  .pd-ga-gallery { align-self:stretch; }
  .pd-ga-gallery > div { height:100%; display:flex; flex-direction:column; }
  /* บรีฟ v4 ข้อ 12 — ขยายรูปให้ใหญ่ขึ้น เน้นรูป (min-height 340→492) */
  .pd-ga-gallery .pds-wrap { aspect-ratio:auto; flex:1 1 auto; min-height:492px; }
  .pd-ga-gallery .pds-thumbs { flex-shrink:0; }
  /* บรีฟ v4 ข้อ 12 — กล่องสรุปขวาใหญ่ขึ้น (400→424) + เว้นช่องกว้างขึ้น */
  .prop-info-grid { grid-template-columns:1fr 424px; gap:0 3.6rem; }
  .pd-ga-gallery .pds-thumb { width:96px; height:66px; }
}

/* สเปก 2 กลุ่ม (ref.png) — ตารางสไตล์ iHaveCPU เต็มความกว้างด้านล่าง */
.pd-specwrap { margin-top:2.25rem; }
.pd-specgrp { margin-bottom:1.9rem; }
.pd-specgrp:last-child { margin-bottom:0; }
/* จอกว้าง: 2 กลุ่มเรียงข้างกัน */
@media (min-width:900px){
  .pd-specwrap { display:grid; grid-template-columns:1fr 1fr; gap:0 3rem; align-items:start; }
  .pd-specgrp { margin-bottom:0; }
}
.pd-specgrp-h { font-family:var(--font-serif); font-size:1.18rem; font-weight:700; color:var(--tx-1); margin-bottom:1rem; padding-bottom:.7rem; border-bottom:2px solid var(--pur); display:flex; align-items:center; gap:.6rem; }
.pd-specgrp-h svg { width:19px; height:19px; color:var(--pur); flex-shrink:0; }
.pd-specwrap .pd-spectable { margin-top:0; background:#fff; border:1px solid var(--bd-0); border-radius:12px; overflow:hidden; }
.pd-specwrap .pd-spectable tr:nth-child(even) { background:#F7F8FA; }
.pd-specwrap .pd-spectable th, .pd-specwrap .pd-spectable td { padding:.74rem 1rem; }
.pd-specwrap .pd-spectable th { width:44%; }
.pd-sv-ask { color:var(--tx-3) !important; font-weight:500 !important; }

/* พื้นหลังหน้า detail เทาอ่อน (บรีฟ detail ข้อ 1 — ให้ content การ์ดขาวเด่น แบบ iHaveCPU) */
body.pd-page { background:#F4F5F7; }

/* Lightbox — คลิกรูปแกลเลอรีเพื่อซูม (บรีฟ detail ข้อ 2) */
.pds-wrap { cursor:zoom-in; }
.pd-lb { position:fixed; inset:0; z-index:300; background:rgba(10,6,20,.93); display:none; align-items:center; justify-content:center; padding:3rem 1rem; }
.pd-lb.open { display:flex; }
.pd-lb-img { max-width:94vw; max-height:88vh; object-fit:contain; border-radius:8px; box-shadow:0 24px 70px rgba(0,0,0,.55); }
.pd-lb-x { position:absolute; top:1.1rem; right:1.3rem; width:44px; height:44px; border:none; background:rgba(255,255,255,.13); color:#fff; font-size:1.7rem; line-height:1; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.pd-lb-x:hover { background:rgba(255,255,255,.26); }
.pd-lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border:none; background:rgba(255,255,255,.13); color:#fff; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.pd-lb-nav:hover { background:rgba(255,255,255,.26); }
.pd-lb-prev { left:1.3rem; } .pd-lb-next { right:1.3rem; }
.pd-lb-count { position:absolute; bottom:1.4rem; left:50%; transform:translateX(-50%); color:#fff; font-size:.85rem; background:rgba(0,0,0,.5); padding:.3rem .9rem; border-radius:20px; font-variant-numeric:tabular-nums; }
@media (max-width:600px){ .pd-lb-nav{ width:42px; height:42px; } .pd-lb-prev{ left:.5rem; } .pd-lb-next{ right:.5rem; } }

/* section เกี่ยวกับทรัพย์ + ทำเล (ย้ายลงล่าง ใต้สเปก — เก็บ SEO/จุดขายทำเล) */
.pd-about { margin-top:3rem; padding-top:2.5rem; border-top:1px solid var(--bd-0); }
.pd-about-main p.pd-lbl, .pd-about-side p.pd-lbl { margin-bottom:1.1rem; }
.pd-about-main .pd-desc { color:var(--tx-2); line-height:1.9; font-size:.9375rem; margin-bottom:1rem; }
.pd-about-main .pd-desc:last-of-type { margin-bottom:0; }
@media (min-width:960px){
  /* มี Location ขวา = 2 คอลัมน์ · ตัด Location ออก (บรีฟ v4 ข้อ 13) = main เต็มกว้างเอง */
  .pd-about:has(.pd-about-side) { display:grid; grid-template-columns:1fr 380px; gap:3rem; align-items:start; }
  .pd-about-side { position:sticky; top:5.5rem; }
}

@media (max-width:1199px){
  /* จอเล็ก/มือถือ: เรียง รูป → กล่องสรุป(ชื่อ+ราคา+ปุ่ม) → สเปก */
  .prop-info-grid { display:flex; flex-direction:column; gap:2.25rem; }
  .pd-ga-gallery { order:0; }
  .pd-ga-side    { order:1; }
  .pd-ga-specs   { order:2; margin-top:0; }
  .pd-ga-side .pd-sb { position:static; }
}
@media (max-width:600px){
  .pd-sb-head { padding:1.25rem 1.2rem 1.15rem; }
  .pd-specwrap .pd-spectable th, .pd-specwrap .pd-spectable td { padding:.66rem .8rem; font-size:.85rem; }
  .pd-specgrp-h { font-size:1.08rem; }
}
