/* صفحة تفاصيل العقار: تنسيق مستقل لا يغيّر الهيدر والفوتر المشتركين. */
.pd-page {color:#212b36;font-family:var(--font-secondary,"IBM Plex Sans Arabic"),system-ui,sans-serif;min-height:72vh;}
.pd-page *, .pd-lightbox * {box-sizing:border-box;}
.pd-page a {text-decoration:none;}
.pd-wrap {width:100%;max-width:1210px;margin:0 auto;padding:25px 24px 76px;}
.pd-breadcrumb {display:flex;align-items:center;gap:11px;flex-wrap:wrap;font-size:13px;color:#919eab;margin:0 0 23px;}
.pd-breadcrumb a {color:#637381;transition:color .2s;}
.pd-breadcrumb a:hover {color:#986500;}
.pd-topline {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;}
.pd-topline-ref {display:flex;align-items:center;gap:10px;}
.pd-code-label {color:#637381;font-size:14px;}
.pd-topline-ref strong {font-size:17px;font-weight:750;direction:ltr;unicode-bidi:isolate;}
.pd-status {border-radius:24px;background:#e5f6ed;color:#11815a;font-weight:700;font-size:13px;padding:7px 16px;}
.pd-gallery {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;height:420px;position:relative;margin-bottom:25px;}
.pd-gallery:not(:has(.pd-thumbnails)) {grid-template-columns:1fr;}
.pd-hero-image {position:relative;border:0;padding:0;background:#e6e9ed;border-radius:15px;overflow:hidden;width:100%;height:100%;cursor:zoom-in;}
.pd-hero-image img,.pd-thumb img {height:100%;width:100%;display:block;object-fit:cover;transition:transform .3s ease;}
.pd-hero-image:hover img,.pd-thumb:hover img {transform:scale(1.035);}
.pd-hero-overlay {position:absolute;bottom:16px;right:17px;background:#fff;box-shadow:0 4px 12px #0002;border-radius:8px;padding:9px 14px;color:#212b36;font-size:13px;font-weight:700;display:flex;gap:10px;align-items:center;}
.pd-thumbnails {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;min-width:0;overflow:hidden;border-radius:15px;}
.pd-thumb {position:relative;min-width:0;min-height:0;display:block;border:0;border-radius:12px;overflow:hidden;background:#e6e9ed;padding:0;cursor:zoom-in;}
.pd-thumbnails:has(.pd-thumb:only-child) .pd-thumb {grid-column:span 2;grid-row:span 2;}
.pd-thumbnails:has(.pd-thumb:nth-child(2):last-child) .pd-thumb {grid-column:span 2;}
.pd-more-images {position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:white;font-weight:700;font-size:27px;background:#17212999;}
.pd-all-photos {position:absolute;bottom:17px;left:17px;border:0;background:white;box-shadow:0 4px 12px #0002;padding:11px 15px;border-radius:9px;font-family:inherit;font-weight:700;color:#212b36;cursor:pointer;}
.pd-no-image {min-height:250px;grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;border-radius:16px;color:#919eab;background:#e8edf0;}
.pd-layout {display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start;margin-bottom:24px;}
.pd-content {min-width:0;display:flex;flex-direction:column;gap:20px;}
.pd-panel {border:1px solid #e4e8ec;background:#fff;padding:27px 29px;border-radius:16px;box-shadow:0 2px 8px #18232c05;}
.pd-panel h1 {font-size:clamp(23px,2.3vw,30px);line-height:1.55;font-weight:800;margin:0 0 10px;}
.pd-panel h2 {font-size:21px;line-height:1.5;margin:0 0 22px;font-weight:750;}
.pd-address {display:flex;align-items:center;gap:6px;color:#637381;font-size:14px;margin:0 0 26px;}
.pd-address svg {flex:0 0 auto;}
.pd-price-row {display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:21px;border-top:1px solid #eff1f3;}
.pd-price-label {color:#637381;font-size:13px;}
.pd-price {font-size:29px;line-height:1.55;font-weight:850;letter-spacing:-.6px;direction:ltr;text-align:right;unicode-bidi:isolate;}
.pd-price span {font-size:15px;font-weight:550;letter-spacing:0;}
.pd-share {display:flex;align-items:center;gap:8px;color:#354657;border:1px solid #dbe1e8;border-radius:10px;padding:10px 14px;background:white;font-family:inherit;font-weight:600;cursor:pointer;}
.pd-share:hover {background:#f8f9fa;border-color:#bfc6cf;}
.pd-spec-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.pd-spec {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;border:1px solid #e7ebef;border-radius:12px;background:#fbfcfd;padding:17px 9px;}
.pd-spec-icon {color:#596e7e;margin-bottom:4px;}
.pd-spec-label {font-size:13px;color:#7a8794;}
.pd-spec strong {font-size:18px;color:#212b36;font-weight:750;white-space:nowrap;}
.pd-description {font-size:15px;color:#52616d;line-height:2.05;overflow-wrap:anywhere;white-space:normal;}
.pd-features {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;}
.pd-features>div {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:13px 15px;border:1px solid #eef0f2;border-radius:9px;}
.pd-features span {color:#758391;font-size:14px;}
.pd-features strong {font-weight:700;font-size:14px;}
.pd-sidebar {position:sticky;top:140px;}
.pd-contact-card {background:#fff;border:1px solid #e4e8ec;border-radius:16px;padding:27px 23px;box-shadow:0 3px 16px #18232c08;}
.pd-contact-caption {font-size:13px;color:#966a05;}
.pd-contact-card h2 {font-size:21px;line-height:1.6;margin:10px 0;}
.pd-contact-card p {font-size:14px;line-height:1.9;color:#7a8794;margin:0 0 24px;}
.pd-button {display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:10px;min-height:49px;padding:11px 20px;font-size:14px;font-family:inherit;font-weight:750;transition:background-color .2s,transform .2s;}
.pd-button:hover {transform:translateY(-1px);}
.pd-button-block {display:flex;width:100%;margin-top:10px;}
.pd-button-primary {background:#ffc72c;color:#171c21 !important;}
.pd-button-primary:hover {background:#efb817;}
.pd-button-outline {border-color:#dce1e7;color:#354657;background:#fff;}
.pd-button-outline:hover {background:#f8f9fb;}
.pd-contact-note {font-size:12px;color:#7a8794;display:block;text-align:center;margin-top:18px;}
.pd-map-section {margin-bottom:35px;}
.pd-section-heading {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px;}
.pd-section-heading h2 {font-size:23px;font-weight:780;margin:0 0 5px;}
.pd-section-heading p {color:#7b8791;font-size:14px;margin:0;}
.pd-map-link {font-weight:700;font-size:13px;color:#916700 !important;}
.pd-map-link:hover {text-decoration:underline;}
.pd-map-section iframe {display:block;width:100%;height:380px;border:0;border-radius:12px;background:#edf1f3;}
.pd-map-unavailable {display:flex;min-height:265px;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:#f3f6f8;color:#87929b;border-radius:12px;text-align:center;padding:24px;}
.pd-similar {padding-top:4px;}
.pd-similar .pd-section-heading {margin-bottom:22px;}
.pd-similar-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.pd-similar-card {overflow:hidden;border-radius:14px;display:block;background:white;border:1px solid #e5e9ed;color:inherit !important;box-shadow:0 2px 7px #18232c08;transition:box-shadow .2s,transform .2s;}
.pd-similar-card:hover {transform:translateY(-3px);box-shadow:0 10px 24px #18232c17;}
.pd-similar-media {position:relative;background:#edf1f4;height:165px;}
.pd-similar-media img {width:100%;height:100%;object-fit:cover;}
.pd-similar-placeholder {display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#9aa5af;font-size:13px;}
.pd-similar-badge {position:absolute;top:10px;right:10px;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#ffffffed;color:#27333c;padding:5px 9px;border-radius:7px;font-size:11px;}
.pd-similar-body {padding:16px;}
.pd-similar-body h3 {font-weight:750;font-size:16px;margin:0 0 7px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.pd-similar-address {font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7b8791;margin:0 0 15px;}
.pd-similar-bottom {display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:12px;color:#7b8791;}
.pd-similar-bottom strong {font-size:15px;color:#212b36;font-weight:800;white-space:nowrap;}
.pd-similar-bottom small {font-size:11px;font-weight:500;}
.pd-see-details {display:inline-block;color:#856400;font-weight:700;font-size:12px;margin-top:14px;}
.pd-empty {max-width:560px;background:white;text-align:center;border:1px solid #e6e9ed;border-radius:18px;margin:60px auto;padding:45px 24px;}
.pd-empty-icon {font-size:55px;color:#c1c8ce;}
.pd-empty h1 {font-size:23px;margin:10px 0;}
.pd-empty p {color:#7b8791;line-height:1.8;margin-bottom:24px;}
/* المعرض الكامل. لا يغيّر شيئاً في الهيدر أو الفوتر */
.pd-lightbox {position:fixed;inset:0;border:0;padding:20px;background:#10161af5;color:white;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;overflow:hidden;direction:rtl;}
.pd-lightbox::backdrop {background:#10161afa;}
.pd-lightbox[open] {display:flex;flex-direction:column;}
.pd-lightbox-head {display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:650;min-height:42px;}
.pd-lightbox-close {border:0;background:#ffffff1f;color:white;border-radius:50%;font-size:19px;width:39px;height:39px;cursor:pointer;}
.pd-lightbox-view {flex:1;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.pd-lightbox-view img {max-width:calc(100% - 112px);max-height:100%;object-fit:contain;border-radius:5px;}
.pd-lightbox-prev,.pd-lightbox-next {border:0;background:#ffffff18;border-radius:50%;color:white;font-size:22px;cursor:pointer;flex:0 0 42px;height:42px;}
.pd-lightbox-prev:hover,.pd-lightbox-next:hover {background:#ffffff44;}
.pd-lightbox-thumbs {display:flex;align-items:center;justify-content:center;gap:9px;overflow-x:auto;padding:11px 0 2px;min-height:85px;max-width:100%;}
.pd-lightbox-thumbs button {background:transparent;padding:0;border:2px solid transparent;border-radius:7px;overflow:hidden;opacity:.6;width:68px;height:57px;flex:0 0 auto;cursor:pointer;}
.pd-lightbox-thumbs button[aria-current="true"] {border-color:#ffc72c;opacity:1;}
.pd-lightbox-thumbs img {width:100%;height:100%;object-fit:cover;}
@media (max-width:1000px) { .pd-layout {grid-template-columns:minmax(0,1fr);}.pd-sidebar {position:static;}.pd-similar-grid {grid-template-columns:repeat(2,minmax(0,1fr));}.pd-contact-card {max-width:none;}}
@media (max-width:670px) {
 .pd-wrap {padding:18px 13px 55px;}.pd-breadcrumb {font-size:12px;gap:8px;margin-bottom:17px;}.pd-topline {margin-bottom:12px;}
 .pd-gallery {height:auto;display:flex;flex-direction:column;gap:9px;margin-bottom:17px;}
 .pd-hero-image {height:250px;flex:0 0 auto;}.pd-thumbnails {display:flex;overflow-x:auto;border-radius:0;gap:8px;}
 .pd-thumb,.pd-thumbnails:has(.pd-thumb:only-child) .pd-thumb,.pd-thumbnails:has(.pd-thumb:nth-child(2):last-child) .pd-thumb {flex:0 0 116px;height:86px;border-radius:8px;}
 .pd-all-photos {bottom:auto;top:200px;left:9px;padding:8px 10px;font-size:12px;}.pd-hero-overlay {display:none;}
 .pd-panel {padding:20px 16px;border-radius:12px;}.pd-content {gap:14px;}.pd-panel h1 {font-size:22px;}
 .pd-panel h2 {font-size:19px;margin-bottom:17px;}.pd-address {margin-bottom:21px;}.pd-price {font-size:25px;}
 .pd-spec-grid {gap:6px;}.pd-spec {padding:13px 4px;}.pd-spec strong {font-size:15px;}.pd-spec-label {font-size:11px;}
 .pd-features {grid-template-columns:1fr;gap:8px;}.pd-contact-card {padding:23px 18px;}
 .pd-map-section iframe {height:290px;}.pd-section-heading h2 {font-size:20px;}.pd-similar-grid {gap:10px;}
 .pd-similar-media {height:126px;}.pd-similar-body {padding:12px;}.pd-similar-body h3 {font-size:14px;}.pd-similar-bottom {flex-wrap:wrap;}.pd-similar-bottom strong {font-size:14px;}
 .pd-lightbox {padding:12px;}.pd-lightbox-view {gap:5px;}.pd-lightbox-prev,.pd-lightbox-next {flex-basis:29px;height:35px;font-size:16px;}.pd-lightbox-view img {max-width:calc(100% - 70px);}.pd-lightbox-thumbs button {width:48px;height:44px;}.pd-lightbox-thumbs {min-height:61px;}
}
@media (prefers-reduced-motion:reduce) { .pd-page *, .pd-lightbox * {transition:none !important;scroll-behavior:auto !important;} }
