/* Property Transfer - rule-based help widget (assets/help.js). Public pages only.
   v23: the WhatsApp button (.ptc-wa, common.css) shows on every width; the bubble sits above it. help.js sets --pth-bottom;
   the fallbacks (96px desktop = 24+60+12, 84px mobile = 16+56+12) keep them apart before it runs. */
.pth-bubble{position:fixed;inset-inline-end:24px;bottom:calc(var(--pth-bottom,96px) + env(safe-area-inset-bottom,0px));z-index:860;
  display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 18px 0 14px;border:0;border-radius:999px;
  background:#0B2D5B;color:#fff;font:600 15px/1 "Noto Kufi Arabic","Open Sans",Arial,sans-serif;cursor:pointer;
  box-shadow:0 0 0 2px #fff,0 8px 22px rgba(8,34,83,.32);transition:transform .15s ease,background .15s ease,bottom .2s ease;-webkit-tap-highlight-color:transparent}
html[lang="en"] .pth-bubble{font-family:"Open Sans","Noto Kufi Arabic",Arial,sans-serif;padding:0 18px 0 14px}
html[dir="rtl"] .pth-bubble{padding:0 14px 0 18px}
.pth-bubble svg{width:22px;height:22px;flex:none}
.pth-bubble:hover{background:#12407E}
.pth-bubble:active{transform:scale(.96)}
.pth-bubble:focus-visible{outline:3px solid #16A34A;outline-offset:3px}
.pth-bubble.on{background:#12407E}
html.ptm-open .pth-bubble,html.ptm-open .pth-panel{display:none!important}

.pth-panel{position:fixed;inset-inline-end:24px;bottom:calc(var(--pth-bottom,82px) + env(safe-area-inset-bottom,0px));z-index:870;
  width:360px;max-width:calc(100vw - 24px);max-height:min(560px,calc(100vh - var(--pth-bottom,82px) - 24px));
  display:flex;flex-direction:column;background:#fff;border:1px solid #dce3ec;border-radius:16px;overflow:hidden;
  box-shadow:0 18px 50px rgba(8,34,83,.25);color:#3d4759;font:400 14.5px/1.7 "Noto Kufi Arabic","Open Sans",Arial,sans-serif;text-align:start}
html[lang="en"] .pth-panel{font-family:"Open Sans","Noto Kufi Arabic",Arial,sans-serif}
.pth-panel[hidden]{display:none}
.pth-panel *{box-sizing:border-box}
.pth-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px 18px;background:linear-gradient(135deg,#0B2D5B,#12407E);color:#fff}
.pth-top b{display:block;font-size:16px;font-weight:700}
.pth-top span{display:block;font-size:13.5px;color:#dbe5f5}
.pth-x{flex:none;width:36px;height:36px;margin:-6px;border:0;border-radius:50%;background:transparent;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.pth-x:hover,.pth-x:focus-visible{background:rgba(255,255,255,.15);outline:none}
.pth-x svg{width:20px;height:20px}
.pth-body{padding:14px 16px 16px;overflow-y:auto;overscroll-behavior:contain}
.pth-quick{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.pth-quick a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:9px 14px;border:1px solid #dce3ec;border-radius:12px;background:#f6f8fb;color:#10275a;font-weight:600;font-size:14.5px;text-decoration:none;transition:border-color .15s,background .15s}
.pth-quick a:hover,.pth-quick a:focus-visible{border-color:#0e8f14;background:#eaf7ec;outline:none}
.pth-quick a svg{width:18px;height:18px;flex:none;color:#6b7686}
.pth-quick a.pth-wa{background:#16A34A;border-color:#16A34A;color:#fff}
.pth-quick a.pth-wa svg{color:#fff}
.pth-quick a.pth-wa:hover,.pth-quick a.pth-wa:focus-visible{background:#128a3e;border-color:#128a3e}
.pth-search label{display:block;font-size:13.5px;font-weight:600;color:#10275a;margin-bottom:6px}
.pth-field{position:relative}
.pth-field svg{position:absolute;inset-inline-start:12px;top:50%;width:18px;height:18px;margin-top:-9px;color:#6b7686;pointer-events:none}
.pth-field input{width:100%;height:44px;padding:0 14px;padding-inline-start:38px;border:1.5px solid #dce3ec;border-radius:12px;background:#fff;color:#10275a;font:inherit;font-size:16px}
.pth-field input:focus{border-color:#12407E;outline:none;box-shadow:0 0 0 3px rgba(18,64,126,.12)}
.pth-results{margin-top:12px;display:grid;gap:10px}
.pth-results[hidden]{display:none}
.pth-ans{padding:12px 14px;border-radius:12px;background:#eaf1fc}
.pth-ans b{display:block;color:#10275a;font-size:14.5px;margin-bottom:4px}
.pth-ans p{margin:0;font-size:14px;line-height:1.8}
.pth-none{margin:0;padding:12px 14px;border-radius:12px;background:#fff4dc;color:#7a5200;font-size:14px}
.pth-more{color:#0e8f14;font-weight:600;font-size:14px;text-decoration:none}
.pth-more:hover{text-decoration:underline}

@media (max-width:768px){
  .pth-bubble{inset-inline-end:16px;height:44px;font-size:14px;bottom:calc(var(--pth-bottom,84px) + env(safe-area-inset-bottom,0px))}
  .pth-bubble svg{width:20px;height:20px}
  .pth-panel{inset-inline:12px;width:auto;max-width:none}
}
@media print{.pth-bubble,.pth-panel{display:none!important}}
@media (prefers-reduced-motion:reduce){.pth-bubble{transition:none}}
