/* RentHub360 — PG detail page (pg-detail.php). Scoped to .pd so nothing leaks. */
.pd-body { background: #F7F6F3; }
.pd {
  --ink: #14213D; --ink2: #3B4863; --mut: #6B778F; --line: #E8EAEF; --card: #fff;
  --or: #F07F12; --or-d: #D96C05; --or-t: #FFF3E4; --or-l: #FFE3C2;
  --gr: #0E7A4F; --gr-t: #EAF7F0; --bl: #1D5FA8; --bl-t: #EEF5FD;
  --r: 22px; --sh: 0 1px 2px rgba(20,33,61,.04), 0 8px 24px rgba(20,33,61,.06);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
.pd h1, .pd h2, .pd h3 { font-family: 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.pd p { margin: 0; }
.pd button { font: inherit; }
.pd .pdi, .pd .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pd-wrap { max-width: 1200px; margin: 0 auto; padding: 18px 24px 64px; }

/* back link */
.pd-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink2); text-decoration: none; padding: 6px 0; margin-bottom: 10px; }
.pd-back:hover { color: var(--or-d); }
.pd-back .pdi { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.pd-hero { position: relative; border-radius: 28px; overflow: hidden; background: #E9E6E0; aspect-ratio: 1200 / 500; min-height: 300px; box-shadow: var(--sh); }
.pd-hero-img { all: unset; position: absolute; inset: 0; cursor: zoom-in; display: block; }
.pd-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.pd-hero:hover .pd-hero-img img { transform: scale(1.02); }
.pd-hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,16,32,0) 35%, rgba(10,16,32,.28) 60%, rgba(10,16,32,.78) 100%); }
.pd-allph { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.96); color: var(--ink); font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.pd-allph:hover { background: #fff; }
.pd-hero-txt { position: absolute; left: 32px; bottom: 28px; right: 260px; color: #fff; pointer-events: none; }
.pd-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-zb, .pd-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.pd-zb { background: var(--or); color: #fff; }
.pd-zb .pdi { width: 15px; height: 15px; }
.pd-cat { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); }
.pd-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.pd-loc { display: flex; align-items: center; gap: 7px; margin-top: 10px !important; font-size: 16px; font-weight: 500; color: rgba(255,255,255,.92); }
.pd-loc .i { width: 17px; height: 17px; }
.pd-hero-thumbs { position: absolute; right: 22px; bottom: 24px; display: flex; gap: 10px; }
.pd-hero-thumbs button { position: relative; width: 104px; height: 72px; border-radius: 14px; overflow: hidden; border: 2px solid rgba(255,255,255,.85); padding: 0; cursor: pointer; background: #ddd; }
.pd-hero-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-hero-thumbs span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,16,32,.55); color: #fff; font-weight: 800; font-size: 17px; }

/* ---------- actions ---------- */
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.pd-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s; }
.pd-pill:hover { border-color: #CBD2DD; }
.pd-pill .pdi { width: 16px; height: 16px; }
.pd-pill.on { background: #FFF0F0; border-color: #F5C2C2; color: #C2323A; }
.pd-pill.on .pdi { fill: currentColor; }
.pd-pill[hidden] { display: none; }
.pd-actions .rhpg-refer { width: auto; min-height: 0; border: 1px solid var(--or-l); border-radius: 999px; background: var(--or-t); color: var(--or-d); font-size: 14px; font-weight: 600; padding: 9px 16px; }
.pd-actions .rhpg-refer:hover { background: var(--or-l); border-color: var(--or); }

/* ---------- stats ---------- */
.pd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.pd-stats > div { padding: 18px 24px; position: relative; }
.pd-stats > div + div::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.pd-stats small { display: block; font-size: 13px; font-weight: 500; color: var(--mut); margin-bottom: 4px; }
.pd-stats b { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 19px; font-weight: 700; color: var(--ink); }
.pd-stats em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--mut); margin-left: 3px; font-family: Inter, sans-serif; }

/* ---------- tabs ---------- */
.pd-tabs { position: sticky; top: var(--pd-top, 72px); z-index: 40; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 22px 0 22px; padding: 0 4px; background: rgba(247,246,243,.92); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs a { position: relative; flex: none; padding: 15px 16px 14px; font-size: 15px; font-weight: 600; color: var(--ink2); text-decoration: none; transition: color .15s; }
.pd-tabs a:hover { color: var(--ink); }
.pd-tabs a.on { color: var(--or-d); }
.pd-tabs a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--or); }
#rooms, #amenities, #about, #policies, #location { scroll-margin-top: calc(var(--pd-top, 72px) + 70px); }

/* ---------- layout ---------- */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.pd-main { display: grid; gap: 20px; min-width: 0; }
.pd-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--sh); }
.pd-card h2 { font-size: 22px; font-weight: 800; }
.pd-sub { margin-top: 4px !important; font-size: 14.5px; color: var(--mut); }
.pd-h3 { font-size: 16px !important; font-weight: 700; margin: 22px 0 12px !important; }
.pd-empty { margin-top: 16px; padding: 18px; border-radius: 16px; background: #F6F7F9; color: var(--ink2); font-size: 14.5px; }

/* ---------- rooms ---------- */
.pd-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.pd-room { border: 1.5px solid var(--line); border-radius: 20px; padding: 20px; background: #fff; transition: border-color .18s, box-shadow .18s, background .18s; }
.pd-room:hover { border-color: var(--or-l); }
.pd-room.is-on { border-color: var(--or); border-width: 2px; padding: 19.5px; background: #FFF6EC; box-shadow: 0 10px 28px rgba(240,127,18,.14); }
.pd-room.is-sold { background: #FAFAFB; }
.pd-room.is-sold .pd-price, .pd-room.is-sold h3 { color: #9AA3B5; }
.pd-room header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pd-room h3 { font-size: 19px; font-weight: 800; }
.pd-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--or-t); color: var(--or-d); font-size: 12.5px; font-weight: 700; }
.pd-chip .pdi { width: 14px; height: 14px; }
.pd-st { flex: none; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.pd-st.ok { background: var(--gr-t); color: var(--gr); }
.pd-st.sold { background: #EEF0F4; color: #7A8499; }
.pd-st.ask { background: #F3F4F7; color: var(--ink2); }
.pd-price { margin-top: 16px; font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.pd-price span { font-family: Inter, sans-serif; font-size: 14px; font-weight: 500; color: var(--mut); margin-left: 6px; letter-spacing: 0; }
.pd-fees { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; border-radius: 14px; overflow: hidden; }
.pd-fees.one { grid-template-columns: 1fr; }
.pd-fees > div { padding: 11px 14px; }
.pd-fees .dep { background: var(--gr-t); }
.pd-fees .ded { background: var(--bl-t); }
.pd-fees small { display: block; font-size: 12px; color: var(--ink2); margin-bottom: 2px; }
.pd-fees b { font-size: 15px; font-weight: 700; color: var(--ink); }
.pd-left { margin-top: 10px !important; font-size: 13px; font-weight: 600; color: var(--gr); }
.pd-add { width: 100%; margin-top: 16px; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--or); background: #fff; color: var(--or-d); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, color .15s; }
.pd-add:hover { background: var(--or); color: #fff; }
.pd-add:disabled { border-color: var(--line); color: #9AA3B5; background: #F4F5F8; cursor: not-allowed; }
.pd-add[hidden] { display: none; }
.pd-step { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; min-height: 52px; padding: 6px; border: 1.5px solid var(--or-l); border-radius: 14px; background: #fff; }
.pd-step[hidden] { display: none; }
.pd-step button { width: 40px; height: 40px; border: 0; border-radius: 11px; background: var(--or-t); color: var(--or-d); font-size: 22px; font-weight: 600; cursor: pointer; line-height: 1; }
.pd-step button:hover { background: var(--or-l); }
.pd-step button:disabled { opacity: .35; cursor: not-allowed; }
.pd-step b { font-size: 15px; font-weight: 700; }
.pd-same { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink); cursor: pointer; }
.pd-same[hidden] { display: none; }
.pd-same input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--or); flex: none; }
.pd-same small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; }
.pd-next { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 12px !important; font-size: 13.5px; font-weight: 600; color: var(--or-d); cursor: pointer; }
.pd-next[hidden] { display: none !important; }
.pd-next .pdi { width: 15px; height: 15px; }
.pd-notes { display: grid; gap: 12px; margin-top: 18px; }
.pd-notes:empty { display: none; }
.pd-notes > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; }
.pd-notes .g { background: var(--gr-t); } .pd-notes .b { background: var(--bl-t); }
.pd-notes i { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: rgba(255,255,255,.7); }
.pd-notes .g i, .pd-notes .g b { color: var(--gr); } .pd-notes .b i, .pd-notes .b b { color: var(--bl); }
.pd-notes b { display: block; font-size: 15px; font-weight: 700; }
.pd-notes p { font-size: 13.5px; color: var(--ink2); margin-top: 2px !important; line-height: 1.5; }

/* ---------- amenities ---------- */
.pd-amen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pd-amen > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #F8F8FA; border: 1px solid #F0F1F4; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.pd-amen i { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--or); display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 1px 2px rgba(20,33,61,.06); }
.pd-amen .pdi { width: 17px; height: 17px; }

/* ---------- about ---------- */
.pd-about { margin-top: 14px; max-height: 7.5em; overflow: hidden; position: relative; }
.pd-about p { font-size: 15.5px; line-height: 1.7; color: var(--ink2); }
.pd-about:not(.open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.pd-about.open { max-height: none; }
.pd-more { border: 0; background: none; padding: 8px 0 0; color: var(--or-d); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.pd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 18px; }
.pd-facts > div { padding: 12px 14px; border-radius: 14px; background: #F8F8FA; }
.pd-facts small { display: block; font-size: 12px; color: var(--mut); margin-bottom: 2px; }
.pd-facts b { font-size: 14.5px; font-weight: 700; }

/* ---------- policies ---------- */
.pd-polkv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.pd-polkv > div { padding: 14px 16px; border-radius: 16px; background: #F8F8FA; }
.pd-polkv small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); margin-bottom: 4px; }
.pd-polkv b { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 18px; font-weight: 700; }
.pd-poltxt { margin-top: 8px; }
.pd-poltxt > div { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pd-poltxt > div:last-child { border-bottom: 0; }
.pd-poltxt i, .pd-rules .pdi { color: var(--gr); }
.pd-poltxt i { width: 32px; height: 32px; border-radius: 50%; background: var(--gr-t); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pd-poltxt i .pdi { width: 16px; height: 16px; }
.pd-poltxt b { display: block; font-size: 15px; font-weight: 700; }
.pd-poltxt p { font-size: 14px; color: var(--ink2); margin-top: 3px !important; line-height: 1.55; }
.pd-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pd-rules li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #F8F8FA; font-size: 14.5px; }

/* ---------- location ---------- */
.pd-lochead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pd-map { height: 300px; border-radius: 18px; margin-top: 18px; overflow: hidden; z-index: 0; }

/* ---------- owner strip ---------- */
.pd-owner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; border-radius: var(--r); background: linear-gradient(120deg, #14213D 0%, #1F2F55 100%); color: #fff; }
.pd-owner b { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 18px; }
.pd-owner p { font-size: 14px; color: rgba(255,255,255,.78); margin-top: 3px !important; }
.pd-owner-b { display: flex; gap: 10px; flex: none; }
.pd-owner .rhpg-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

/* ---------- sidebar ---------- */
.pd-side { position: sticky; top: calc(var(--pd-top, 72px) + 72px); display: grid; gap: 16px; }
.pd-book, .pd-contact { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 2px 4px rgba(20,33,61,.04), 0 18px 44px rgba(20,33,61,.10); }
.pd-book-top small, .pd-ctl { display: block; font-size: 13.5px; color: var(--mut); font-weight: 500; }
.pd-book-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.pd-book-price b { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.pd-book-price span { font-size: 14px; color: var(--mut); }
.pd-book-sub { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--or-d); }
.pd-nb { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--gr-t); color: var(--gr); font-size: 13px; font-weight: 700; }
.pd-nb .pdi { width: 15px; height: 15px; stroke-width: 2.6; }
.pd-lbl { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-bottom: 8px; }
.pd-date { position: relative; }
.pd-date .pdi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mut); pointer-events: none; }
.pd-date input { width: 100%; min-height: 52px; padding: 0 14px 0 44px; border: 1.5px solid #D9DEE7; border-radius: 14px; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink); background: #fff; outline: 0; transition: border-color .15s, box-shadow .15s; }
.pd-date input:focus { border-color: var(--or); box-shadow: 0 0 0 4px rgba(240,127,18,.15); }
.pd-hint { font-size: 13px; color: var(--mut); margin: 8px 0 16px !important; line-height: 1.5; }
.pd-go { width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: var(--or); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(240,127,18,.28); transition: background .15s, transform .1s; }
.pd-go:hover:not(:disabled) { background: var(--or-d); }
.pd-go:active:not(:disabled) { transform: translateY(1px); }
.pd-go:disabled { background: #F3B77A; box-shadow: none; cursor: not-allowed; }
.pd-go--ghost { background: #fff; color: var(--ink); border: 1.5px solid #D9DEE7; box-shadow: none; }
.pd-go--ghost:hover:not(:disabled) { background: #F7F8FA; border-color: var(--ink); color: var(--ink); }
.pd-go--ghost:disabled { background: #F7F8FA; color: var(--mut); }
.pd-msg { font-size: 14px; line-height: 1.5; margin-top: 10px !important; }
.pd-msg:empty { display: none; }
.pd-msg.good { color: var(--gr); background: var(--gr-t); padding: 12px 14px; border-radius: 14px; font-weight: 600; }
.pd-msg.bad { color: #B42318; font-weight: 600; }
.pd-grp { margin-top: 18px; border-top: 1px solid var(--line); }
.pd-grp summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 4px; cursor: pointer; list-style: none; }
.pd-grp summary::-webkit-details-marker { display: none; }
.pd-grp summary b { display: block; font-size: 15px; }
.pd-grp summary small { display: block; font-size: 13px; color: var(--mut); margin-top: 2px; }
.pd-grp summary .pdi { color: var(--mut); transition: transform .2s; }
.pd-grp[open] summary .pdi { transform: rotate(90deg); }
.pd-grp-body { padding-top: 10px; }
.pd-grp-body label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin: 12px 0 6px; }
.pd-grp-body label span { color: var(--mut); font-weight: 400; }
.pd-grp-body input { width: 100%; min-height: 46px; padding: 0 12px; border: 1.5px solid #D9DEE7; border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; outline: 0; }
.pd-grp-body input:focus { border-color: var(--or); }
.pd-grp-body .pd-go { margin-top: 14px; min-height: 48px; font-size: 15px; }
.pd-fine { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--mut); line-height: 1.5; margin-top: 16px !important; }
.pd-fine .pdi { width: 15px; height: 15px; margin-top: 1px; }
.pd-contact.is-sub { padding: 18px 20px; box-shadow: var(--sh); }
.pd-contact.is-sub .pd-go { min-height: 48px; font-size: 15px; margin-top: 10px; }
.pd-ctt { font-size: 15px; font-weight: 700; display: block; }
.pd-contact .pd-fine { margin-top: 10px !important; }

/* ---------- related ---------- */
.pd-related { margin-top: 48px; }
.pd-related h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; }

/* ---------- photo viewer ---------- */
.pd-lb { position: fixed; inset: 0; z-index: 11000; background: rgba(8,12,24,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.pd-lb[hidden] { display: none; }
.pd-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.pd-lb button { position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pd-lb button:hover { background: rgba(255,255,255,.22); }
.pd-lb button[hidden] { display: none; }
.pd-lb .pdi { width: 22px; height: 22px; }
.pd-lb .x { top: 16px; right: 16px; }
.pd-lb .l { left: 14px; top: 50%; transform: translateY(-50%); }
.pd-lb .r { right: 14px; top: 50%; transform: translateY(-50%); }
.pd-lb .c { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; }

/* ---------- mobile bar (hidden on desktop) ---------- */
.pd-bar { display: none; }

@media (max-width: 1080px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
  .pd-amen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pd-wrap { padding: 12px 16px 110px; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-side { position: static; }
  .pd-hero { aspect-ratio: 4 / 3; min-height: 0; border-radius: 22px; }
  .pd-hero-txt { left: 20px; right: 20px; bottom: 20px; }
  .pd-hero-thumbs { display: none; }
  .pd-allph { top: 14px; right: 14px; padding: 8px 13px; font-size: 13px; }
  .pd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-stats > div:nth-child(3)::before { display: none; }
  .pd-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pd-card { padding: 20px; border-radius: 20px; }
  .pd-tabs { margin: 16px -16px; padding: 0 12px; }
  .pd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,33,61,.08); }
  .pd-bar small { display: block; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
  .pd-bar b { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: 21px; font-weight: 800; }
  .pd-bar span { font-size: 13px; color: var(--mut); margin-left: 3px; }
  .pd-bar button { flex: none; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--or); color: #fff; font-size: 15.5px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(240,127,18,.3); }
  .pd-bar button:disabled { background: #7BC8A4; box-shadow: none; }
  .pd-body .back-to-top { bottom: 90px !important; }
  .pd-body .ai-chat-bubble { bottom: 90px !important; }
  .pd-body .rh-wa-float { bottom: 90px !important; }
  .pd-lb { padding: 56px 10px; }
  .pd-lb .l, .pd-lb .r { top: auto; bottom: 12px; transform: none; }
}
@media (max-width: 600px) {
  .pd-rooms, .pd-amen, .pd-rules { grid-template-columns: 1fr; }
  .pd-amen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pd-amen > div { padding: 10px; gap: 10px; font-size: 13.5px; }
  .pd-amen i { width: 30px; height: 30px; }
  .pd-stats > div { padding: 14px 16px; }
  .pd-stats b { font-size: 16.5px; }
  .pd-card h2 { font-size: 20px; }
  .pd-price { font-size: 27px; }
  .pd-hero h1 { font-size: 26px; }
  .pd-loc { font-size: 14.5px; }
  .pd-owner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .pd-actions { gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -16px; padding: 0 16px; }
  .pd-actions::-webkit-scrollbar { display: none; }
  .pd-pill, .pd-actions .rhpg-refer { flex: none; padding: 8px 13px; font-size: 13.5px; }
  .pd-lochead { flex-direction: column; }
}

/* ===== Flat detail (property-detail.php) in the same design ===== */
.pd-flat .pd-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--mut); margin-bottom: 12px; }
.pd-flat .pd-crumbs a { color: var(--ink2); text-decoration: none; font-weight: 600; }
.pd-flat .pd-crumbs a:hover { color: var(--or-d); }
.pd-flat .pd-crumbs b { color: var(--ink); font-weight: 700; }
.pd-flat .pd-crumbs .back-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-right: 4px; padding: 0; }
.pd-flat .pd-crumbs .back-btn:hover { border-color: var(--ink); }
.pd-loading { display: grid; gap: 16px; }
.pd-skel { border-radius: 24px; background: linear-gradient(90deg, #ECEEF2 25%, #F5F6F8 50%, #ECEEF2 75%); background-size: 200% 100%; animation: pdShim 1.2s infinite; }
.pd-skel-hero { aspect-ratio: 1200 / 500; min-height: 260px; }
.pd-skel-row { height: 86px; }
@keyframes pdShim { to { background-position: -200% 0; } }
.pd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pd-flat .pd-hero-media { position: absolute; inset: 0; background: #E9E6E0; }
.pd-flat .pd-hero-media img, .pd-flat .pd-hero-media video { width: 100%; height: 100%; object-fit: cover !important; display: block; cursor: default; }
.pd-flat .pd-hero-txt { right: 32px; }
.pd-flat .pd-loc .pdi, .pd-flat .pd-loc svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.pd-thumbrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding: 2px; }
.pd-thumbrow::-webkit-scrollbar { display: none; }
.pd-thumbrow:empty { display: none; }
.pd-thumbrow .thumb-img { flex: none; width: 112px; height: 76px; border-radius: 14px; object-fit: cover; opacity: .8; border: 2px solid transparent; cursor: pointer; transition: opacity .15s, border-color .15s; transform: none !important; }
.pd-thumbrow .thumb-img:hover, .pd-thumbrow .thumb-img.active { opacity: 1; border-color: var(--or); }
.pd-thumbrow:has(.thumb-img:only-child) { display: none; }
.pd-flat .action-pill { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; gap: 8px; }
.pd-flat .action-pill svg { width: 16px; height: 16px; margin: 0 !important; }
.pd-flat .action-pill.is-saved { background: #FFF0F0; border-color: #F5C2C2; color: #C2323A; }
.pd-stats .pd-good { color: var(--gr); }
.pd-facts--big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-facts--big > div { padding: 16px; border-radius: 16px; }
.pd-facts--big i { width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--or); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(20,33,61,.06); }
.pd-facts--big b { font-size: 16px; }
.pd-amen-chips .chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #F8F8FA; border: 1px solid #F0F1F4; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.pd-amen-chips .chip::before { content: ''; width: 22px; height: 22px; flex: none; border-radius: 7px; background: #FFF3E4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F07F12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat; }
.pd-amen-chips .chip.pd-none { grid-column: 1 / -1; color: var(--mut); background: #F6F7F9; }
.pd-amen-chips .chip.pd-none::before { display: none; }
.pd-desc { margin-top: 14px !important; font-size: 15.5px; line-height: 1.7; color: var(--ink2); white-space: pre-line; }
.pd-flat #detailMap { height: 320px; border-radius: 18px; border: 0; margin-top: 16px; z-index: 0; }
.pd-flat #pgPricingTable > div { border-radius: 14px !important; }
.pd-ownerbox { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #F8F8FA; margin: 0 0 16px; }
.pd-av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #FFB054; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.pd-on { font-size: 15px; font-weight: 700; color: var(--ink); }
.pd-os { font-size: 12.5px; color: var(--mut); margin-top: 1px; }
.pd-ol { font-size: 12px; color: #9AA3B5; margin-top: 3px; }
.pd-ph { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.pd-ph .pdi { width: 14px; height: 14px; color: var(--mut); }
.pd-ph small { color: var(--mut); font-weight: 600; }
.pd-flat .pd-go svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2; }
.pd-go--navy { background: var(--ink); color: #FFB054; box-shadow: none; margin-top: 10px; display: none; align-items: center; justify-content: center; }
.pd-refer { margin-top: 10px; }
.pd-mng { display: block; margin-top: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink2); text-decoration: none; }
.pd-mng:hover { color: var(--or-d); }
.pd-flat-contact .pd-nb { margin-bottom: 16px; }
@media (max-width: 900px) {
  .pd-flat .pd-hero-txt { left: 20px; right: 20px; }
  .pd-skel-hero { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .pd-facts--big { grid-template-columns: 1fr; }
  .pd-facts--big > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .pd-facts--big i { grid-row: span 2; margin: 0; }
  .pd-thumbrow .thumb-img { width: 88px; height: 62px; }
}

/* Similar flats on the flat page */
.pd-similar { margin-top: 44px; }
.pd-simh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pd-simh h2 { margin: 0 !important; font-size: 24px; font-weight: 800; }
.pd-simh a { font-size: 15px; font-weight: 700; color: var(--or-d); text-decoration: none; white-space: nowrap; }
.pd-simgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .pd-simgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .pd-simgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .pd-simgrid::-webkit-scrollbar { display: none; }
  .pd-simgrid > * { flex: 0 0 78%; scroll-snap-align: start; }
  .pd-simh h2 { font-size: 20px; }
}.pd-similar .rhpg-card h3 a { color: inherit; text-decoration: none; }
.pd-similar .rhpg-card .act { display: flex !important; flex-direction: row !important; gap: 10px; align-items: stretch; }
.pd-similar .rhpg-card .act > a { flex: 1; }

/* back button lines up with the 1200px detail container */
