/* ==========================================================================
   Project detail page — redesign (scoped to .pd-page)
   Loaded render-blocking from project.blade.php; style.css loads async, so
   every layout-critical rule for this page lives here.
   ========================================================================== */

.pd-page {
    --pd-accent: var(--primary-color, #db1d23);
    --pd-accent-soft: rgba(219, 29, 35, 0.08);
    --pd-ink: #101828;
    --pd-text: #344054;
    --pd-muted: #667085;
    --pd-line: #e4e7ec;
    --pd-bg: #f5f6f8;
    --pd-card: #ffffff;
    --pd-radius: 16px;
    --pd-tabs-h: 52px;
    background: var(--pd-bg);
    color: var(--pd-text);
    padding-bottom: 8px;
}

.pd-page *, .pd-page *::before, .pd-page *::after { box-sizing: border-box; }
.pd-page img { max-width: 100%; }
.pd-page [hidden] { display: none !important; }
.pd-page .collapse:not(.show) { display: none; }
.pd-page .collapsing { height: 0; overflow: hidden; transition: height .3s ease; }

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.pd-crumbs {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 0; font-size: 13px; color: var(--pd-muted);
    white-space: nowrap; overflow: hidden;
}
.pd-crumbs a { color: var(--pd-muted); text-decoration: none; }
.pd-crumbs a:hover { color: var(--pd-accent); }
.pd-crumbs span[aria-hidden] { color: #c0c5cf; }
.pd-crumbs__current { color: var(--pd-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.pd-gallery { position: relative; }
.pd-gallery__track {
    display: grid; gap: 8px;
    grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
    height: clamp(320px, 36vw, 500px);
    border-radius: var(--pd-radius); overflow: hidden;
}
.pd-gallery__item { position: relative; display: block; overflow: hidden; background: #e9ecf1; min-height: 0; }
.pd-gallery__item img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.pd-gallery__item:hover img { transform: scale(1.03); }
.pd-gallery__item--lead { grid-row: 1 / 3; }
.pd-gallery__item:nth-child(n+6) { display: none; }
.pd-gallery__more {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(16, 24, 40, .55); color: #fff; font-size: 18px; font-weight: 700;
}
.pd-gallery--n1 .pd-gallery__track { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pd-gallery--n1 .pd-gallery__item--lead { grid-row: auto; }
.pd-gallery--n2 .pd-gallery__track { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.pd-gallery--n2 .pd-gallery__item--lead { grid-row: auto; }
.pd-gallery--n3 .pd-gallery__track { grid-template-columns: 2fr 1fr; }
.pd-gallery--n4 .pd-gallery__item:nth-child(4) { grid-column: 2 / 4; }

.pd-gallery__overlay {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    pointer-events: none;
}
.pd-gallery__counter, .pd-gallery__btn {
    pointer-events: auto;
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1;
}
.pd-gallery__counter { visibility: hidden; background: rgba(16, 24, 40, .7); color: #fff; }
.pd-gallery__actions { display: inline-flex; gap: 8px; margin-left: auto; }
.pd-gallery__btn {
    background: #fff; color: var(--pd-ink); border: 0; cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .18); text-decoration: none;
}
.pd-gallery__btn:hover { color: var(--pd-accent); }
.pd-gallery__counter svg, .pd-gallery__btn svg { width: 16px; height: 16px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.pd-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 32px; align-items: end;
    padding: 24px 0 20px;
}
.pd-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pd-hero__badges .flag-tag, .pd-badge {
    position: static; display: inline-flex; align-items: center; gap: 4px;
    height: 26px; padding: 0 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .01em; line-height: 1;
    background: #ecfdf3; color: #067647; border: 1px solid #abefc6;
}
.pd-badge--rera { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }
.pd-badge svg { width: 14px; height: 14px; }
.pd-hero__title {
    margin: 0; color: var(--pd-ink);
    font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; font-weight: 700; letter-spacing: -.005em;
}
.pd-hero__builder { margin: 6px 0 0; font-size: 15px; color: var(--pd-muted); }
.pd-hero__builder a, .pd-hero__builder strong { color: var(--pd-ink); font-weight: 600; }
.pd-hero__builder a:hover { color: var(--pd-accent); }
.pd-hero__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
    margin-top: 12px; font-size: 14px; color: var(--pd-muted);
}
.pd-hero__meta a { color: inherit; text-decoration: none; }
.pd-hero__meta a:hover { color: var(--pd-accent); }
.pd-hero__address, .pd-hero__views, .pd-hero__rating { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pd-hero__address svg, .pd-hero__views svg { width: 16px; height: 16px; flex-shrink: 0; }
.pd-hero__address span { overflow: hidden; text-overflow: ellipsis; }

.pd-hero__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.pd-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pd-price__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--pd-muted); }
.pd-price__value { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; color: var(--pd-ink); line-height: 1.2; white-space: nowrap; }
.pd-price__value--muted { font-size: 20px; color: var(--pd-text); }
.pd-price__sub { font-size: 13px; color: var(--pd-muted); margin-top: 2px; }

.pd-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: 10px;
    font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
    border: 1px solid var(--pd-line); background: #fff; color: var(--pd-ink);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pd-btn svg { width: 18px; height: 18px; }
.pd-btn:hover { border-color: #c4c9d2; }
.pd-btn--primary { background: var(--pd-accent); border-color: var(--pd-accent); color: #fff; }
.pd-btn--primary:hover { filter: brightness(.94); color: #fff; border-color: var(--pd-accent); }
.pd-btn--outline { border-color: var(--pd-accent); color: var(--pd-accent); }
.pd-btn--outline:hover { background: var(--pd-accent-soft); border-color: var(--pd-accent); }
.pd-btn--icon { width: 44px; padding: 0; }
.pd-btn--icon:hover { color: var(--pd-accent); }
.pd-btn--icon.active, .pd-btn--icon.is-added { color: var(--pd-accent); border-color: var(--pd-accent); }

/* ── Key facts ───────────────────────────────────────────────────────── */
.pd-facts { background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: var(--pd-radius); overflow: hidden; }
.pd-facts__grid {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap;
    gap: 1px; background: var(--pd-line);
}
.pd-fact { flex: 1 1 180px; display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--pd-card); min-width: 0; }
.pd-fact--rera { flex-basis: 250px; }
.pd-fact__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; background: var(--pd-accent-soft); color: var(--pd-accent);
}
.pd-fact__icon svg, .pd-fact__icon i { width: 20px; height: 20px; font-size: 20px; }
.pd-fact__body { display: flex; flex-direction: column; min-width: 0; }
.pd-fact__label { font-size: 12.5px; color: var(--pd-muted); line-height: 1.3; }
.pd-fact__value { font-size: 15px; font-weight: 700; color: var(--pd-ink); line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.pd-fact__link { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--pd-accent); text-decoration: none; white-space: nowrap; }
.pd-fact__value--wrap { overflow-wrap: normal; word-break: normal; }
.pd-fact__link:hover { text-decoration: underline; }

/* ── Sticky section tabs ─────────────────────────────────────────────── */
.pd-tabs {
    position: -webkit-sticky; position: sticky; top: var(--pd-top, 0px); z-index: 40;
    margin-top: 24px; background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line);
    transition: top .2s ease, box-shadow .2s ease;
}
.pd-tabs.is-stuck { box-shadow: 0 6px 16px rgba(16, 24, 40, .06); }
.pd-tabs__scroller {
    display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pd-tabs__scroller::-webkit-scrollbar { display: none; }
.pd-tabs__link {
    flex-shrink: 0; display: inline-flex; align-items: center;
    height: var(--pd-tabs-h); padding: 0 2px;
    font-size: 14.5px; font-weight: 600; color: var(--pd-muted); text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pd-tabs__link:hover { color: var(--pd-ink); }
.pd-tabs__link.is-active { color: var(--pd-accent); border-bottom-color: var(--pd-accent); }

/* ── Main layout ─────────────────────────────────────────────────────── */
.pd-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 370px;
    gap: 28px; align-items: start; padding: 24px 0 40px;
}
.pd-main { min-width: 0; }
.pd-main > * + * { margin-top: 20px; }

/* ── Cards ───────────────────────────────────────────────────────────── */
.pd-card {
    background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: var(--pd-radius);
    padding: 28px; scroll-margin-top: calc(var(--pd-top, 0px) + var(--pd-tabs-h) + 16px);
}
.pd-card__title {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 20px; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--pd-ink);
}
.pd-card__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; background: var(--pd-accent-soft); color: var(--pd-accent);
}
.pd-card__icon svg, .pd-card__icon i { width: 20px; height: 20px; font-size: 20px; }
.pd-card__count {
    margin-left: auto; font-size: 13px; font-weight: 600; color: var(--pd-muted);
    background: #f2f4f7; border-radius: 999px; padding: 3px 10px;
}
.pd-card__sub { margin: -10px 0 14px; font-size: 14px; color: var(--pd-muted); }
.pd-subhead { margin: 28px 0 14px; font-size: 16px; font-weight: 700; color: var(--pd-ink); }

/* ── Prose (admin rich text) ─────────────────────────────────────────── */
.pd-page .pd-prose { font-size: 15.5px; line-height: 1.75; color: var(--pd-text); }
.pd-page .pd-prose p, .pd-page .pd-prose li { font-size: inherit; line-height: inherit; color: inherit; }
.pd-page .pd-prose p { margin: 0 0 14px; }
.pd-page .pd-prose > :last-child { margin-bottom: 0; }
.pd-page .pd-prose h2, .pd-page .pd-prose h3, .pd-page .pd-prose h4 {
    margin: 28px 0 12px; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--pd-ink);
}
.pd-page .pd-prose ul, .pd-page .pd-prose ol { padding-left: 22px; margin: 0 0 14px; }
.pd-page .pd-prose a { color: var(--pd-accent); }
.pd-page .pd-prose figure { margin: 0; }
.pd-page .pd-prose img { height: auto; border-radius: 10px; }
.pd-prose--collapsed {
    max-height: 340px; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent);
    mask-image: linear-gradient(180deg, #000 65%, transparent);
}
.pd-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 12px 0 20px; border: 1px solid var(--pd-line); border-radius: 12px;
}
.pd-page .pd-table-wrap table {
    width: 100%; min-width: 480px; margin: 0; border-collapse: collapse; border: 0;
    font-size: 14.5px; line-height: 1.5;
}
.pd-page .pd-table-wrap th, .pd-page .pd-table-wrap td {
    padding: 11px 14px !important; height: auto !important; border: 0 !important;
    border-bottom: 1px solid var(--pd-line) !important;
    text-align: left !important; vertical-align: top; color: var(--pd-text);
}
.pd-page .pd-table-wrap tr:last-child td { border-bottom: 0 !important; }
.pd-page .pd-table-wrap thead th, .pd-page .pd-table-wrap thead td,
.pd-page .pd-table-wrap tr:first-child th { background: #f9fafb; color: var(--pd-ink); font-weight: 700; }
.pd-page .pd-table-wrap td p { margin: 0; }
.pd-page .pd-table-wrap tbody tr:nth-child(even) td { background: #fcfcfd; }

.pd-readmore {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0;
    background: none; border: 0; cursor: pointer;
    font-size: 14.5px; font-weight: 700; color: var(--pd-accent);
}
.pd-readmore:hover { text-decoration: underline; }
.pd-shortcodes { margin-top: 20px; }

/* ── Accordion (highlights) ──────────────────────────────────────────── */
.pd-accordion { display: flex; flex-direction: column; gap: 10px; }
.pd-accordion__item { border: 1px solid var(--pd-line); border-radius: 12px; background: #fff; transition: border-color .15s ease; }
.pd-accordion__item[open] { border-color: #d0d5dd; background: #fcfcfd; }
.pd-accordion__summary {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    list-style: none; cursor: pointer; font-size: 15.5px; font-weight: 600; color: var(--pd-ink);
}
.pd-accordion__summary::-webkit-details-marker { display: none; }
.pd-accordion__num { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--pd-accent); font-variant-numeric: tabular-nums; }
.pd-accordion__q { flex: 1; min-width: 0; }
.pd-accordion__chev { flex-shrink: 0; display: inline-flex; color: var(--pd-muted); transition: transform .2s ease; }
.pd-accordion__chev svg { width: 18px; height: 18px; }
.pd-accordion__item[open] .pd-accordion__chev { transform: rotate(180deg); }
.pd-accordion__body { padding: 0 18px 18px 45px; font-size: 15px; line-height: 1.7; color: var(--pd-text); }

/* ── Segmented tabs (BHK / configuration) ────────────────────────────── */
.pd-page .pd-seg {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0;
    background: none; border: 0; border-radius: 0;
}
.pd-page .pd-seg__btn {
    flex: 0 0 auto; height: 38px; padding: 0 16px; margin: 0;
    border: 1px solid var(--pd-line); border-radius: 999px; background: #fff; box-shadow: none;
    font-size: 14px; font-weight: 600; color: var(--pd-text); cursor: pointer; white-space: nowrap;
}
.pd-page .pd-seg__btn::after { display: none; }
.pd-page .pd-seg__btn:hover { border-color: #c4c9d2; color: var(--pd-ink); }
.pd-page .pd-seg__btn.fp-bhk-tab--active, .pd-page .pd-seg__btn.cfg-unit-tab--active {
    background: var(--pd-ink); border-color: var(--pd-ink); color: #fff;
}

/* ── Floor plans ─────────────────────────────────────────────────────── */
.pd-page .fp-bhk-content, .pd-page .fp-size-content, .pd-page .cfg-unit-content { display: none; }
.pd-page .fp-bhk-content--active, .pd-page .fp-size-content--active, .pd-page .cfg-unit-content--active { display: block; }

.pd-page .fp-size-strip { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pd-page .fp-size-tabs {
    flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 2px;
    background: transparent; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.pd-page .fp-size-tabs::-webkit-scrollbar { display: none; }
.pd-page .fp-size-tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px; margin: 0;
    border: 1px solid var(--pd-line); border-radius: 999px; background: #fff; box-shadow: none;
    font-size: 13.5px; font-weight: 600; color: var(--pd-text); cursor: pointer; white-space: nowrap;
}
.pd-page .fp-size-tab:hover { border-color: #c4c9d2; }
.pd-page .fp-size-tab--active, .pd-page .fp-size-tab--active:hover {
    border-color: var(--pd-accent); background: var(--pd-accent-soft); color: var(--pd-accent); box-shadow: none;
}
.pd-page .fp-size-tab-price { font-size: 12.5px; color: var(--pd-muted); font-weight: 600; margin: 0; }
.pd-page .fp-size-tab--active .fp-size-tab-price { color: var(--pd-accent); }
.pd-page .fp-strip-arrow {
    flex-shrink: 0; display: none; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border: 1px solid var(--pd-line); border-radius: 50%;
    background: #fff; color: var(--pd-ink); cursor: pointer;
}
.pd-page .fp-strip-arrow svg { width: 16px; height: 16px; }
.pd-page .fp-size-strip.is-scrollable .fp-strip-arrow { display: inline-flex; }
.pd-page .fp-size-strip:not(.is-overflow-start) .fp-strip-arrow--prev,
.pd-page .fp-size-strip:not(.is-overflow-end) .fp-strip-arrow--next { opacity: .35; pointer-events: none; }

.pd-plan { border: 1px solid var(--pd-line); border-radius: 14px; overflow: hidden; background: #fff; }
.pd-plan__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: #f9fafb; border-bottom: 1px solid var(--pd-line);
}
.pd-plan__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; font-size: 15px; color: var(--pd-ink); }
.pd-plan__title span { color: var(--pd-muted); font-size: 14px; }
.pd-plan__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pd-plan__price { font-size: 15px; font-weight: 700; color: var(--pd-accent); }
.pd-plan__count {
    font-size: 12px; font-weight: 600; color: var(--pd-muted); font-variant-numeric: tabular-nums;
    padding: 3px 9px; border: 1px solid var(--pd-line); border-radius: 999px; background: #fff;
}
.pd-plan__media { position: relative; background: #fff; }
.pd-plan__link { display: flex; align-items: center; justify-content: center; position: relative; padding: 12px; min-height: 320px; }
.pd-page .pd-plan__img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; margin: 0 auto; }
.pd-plan__zoom {
    position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px; border-radius: 999px;
    background: rgba(16, 24, 40, .75); color: #fff; font-size: 12.5px; font-weight: 600;
}
.pd-plan__zoom svg { width: 15px; height: 15px; }
.pd-plan__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; color: var(--pd-muted); font-size: 14px; }
.pd-plan__empty svg { width: 36px; height: 36px; opacity: .4; }
.pd-page .fp-img-nav {
    position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-top: -19px; padding: 0;
    border: 1px solid var(--pd-line); border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--pd-ink);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .12); cursor: pointer;
}
.pd-page .fp-img-nav svg { width: 18px; height: 18px; }
.pd-page .fp-img-nav:hover { color: var(--pd-accent); border-color: var(--pd-accent); }
.pd-page .fp-img-nav:disabled { opacity: 0; pointer-events: none; }
.pd-page .fp-img-nav--prev { left: 10px; }
.pd-page .fp-img-nav--next { right: 10px; }

/* ── Configuration spec list ─────────────────────────────────────────── */
.pd-spec-caption { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--pd-muted); }
.pd-spec { margin: 0; border: 1px solid var(--pd-line); border-radius: 12px; overflow: hidden; }
.pd-spec__row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; border-bottom: 1px solid var(--pd-line); }
.pd-spec__row:last-child { border-bottom: 0; }
.pd-spec__row:nth-child(even) { background: #fcfcfd; }
.pd-spec dt, .pd-spec dd { margin: 0; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; }
.pd-spec dt { font-weight: 600; color: var(--pd-ink); background: #f9fafb; border-right: 1px solid var(--pd-line); }
.pd-spec dd { color: var(--pd-text); }

/* ── Amenities ───────────────────────────────────────────────────────── */
.pd-amenities {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.pd-amenity {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
    padding: 18px 10px 16px; text-align: center;
    border: 1px solid var(--pd-line); border-radius: 12px; background: #fff;
    transition: border-color .15s ease, transform .15s ease;
}
.pd-amenity:hover { border-color: #c4c9d2; transform: translateY(-1px); }
.pd-amenity__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; background: var(--pd-accent-soft); color: var(--pd-accent);
}
.pd-amenity__icon svg, .pd-amenity__icon i { width: 22px; height: 22px; font-size: 22px; }
.pd-amenity__label { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--pd-ink); text-transform: none; letter-spacing: 0; }

/* ── Location ────────────────────────────────────────────────────────── */
.pd-address {
    display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 12px 14px;
    border-radius: 12px; background: #f9fafb; border: 1px solid var(--pd-line);
    font-size: 14px; color: var(--pd-ink); text-decoration: none;
}
.pd-address svg { width: 18px; height: 18px; color: var(--pd-accent); flex-shrink: 0; }
.pd-address span:not(.pd-address__cta) { flex: 1; min-width: 0; }
.pd-address__cta { flex-shrink: 0; font-weight: 700; font-size: 13.5px; color: var(--pd-accent); }
.pd-address:hover .pd-address__cta { text-decoration: underline; }

.pd-page .pd-map { height: clamp(280px, 34vw, 420px); border-radius: 14px; overflow: hidden; background: #e9ecf1; margin: 0; }
.pd-page .pd-chips {
    display: flex; gap: 8px; margin: 16px 0 6px; padding: 0 0 2px; border: 0;
    overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
}
.pd-page .pd-chips::-webkit-scrollbar { display: none; }
.pd-page .pd-chip {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 14px; margin: 0;
    border: 1px solid var(--pd-line); border-radius: 999px; background: #fff; box-shadow: none;
    font-size: 13.5px; font-weight: 600; color: var(--pd-text); cursor: pointer; white-space: nowrap;
}
.pd-page .pd-chip::after { display: none; }
.pd-page .pd-chip:hover { border-color: #c4c9d2; }
.pd-page .pd-chip.active { border-color: var(--pd-ink); background: var(--pd-ink); color: #fff; }
.pd-chip__icon { display: inline-flex; }
.pd-chip__icon svg, .pd-chip__icon i { width: 16px; height: 16px; font-size: 16px; }
.pd-chip__count {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f2f4f7; color: var(--pd-muted); font-size: 11.5px;
}
.pd-page .pd-chip.active .pd-chip__count { background: rgba(255, 255, 255, .2); color: #fff; }

.pd-page .pd-places {
    list-style: none; margin: 8px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px;
}
.pd-page .pd-place {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 2px; border-bottom: 1px solid #f0f1f3; cursor: pointer;
}
.pd-place__info { display: flex; flex-direction: column; min-width: 0; }
.pd-page .pd-place__name { font-size: 14.5px; font-weight: 600; color: var(--pd-ink); line-height: 1.35; }
.pd-place__label { font-size: 12.5px; color: var(--pd-muted); margin-top: 2px; }
.pd-place__dist {
    flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--pd-ink);
    background: #f2f4f7; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.pd-page .pd-place:hover .pd-place__name, .pd-page .pd-place.active .pd-place__name { color: var(--pd-accent); }
.pd-page .pd-place.active .pd-place__dist { background: var(--pd-accent-soft); color: var(--pd-accent); }

.pd-distances {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.pd-distance {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border: 1px solid var(--pd-line); border-radius: 12px; background: #fff;
}
.pd-distance__icon { display: inline-flex; color: var(--pd-accent); flex-shrink: 0; }
.pd-distance__icon svg, .pd-distance__icon i { width: 18px; height: 18px; font-size: 18px; }
.pd-distance__name { flex: 1; min-width: 0; font-size: 14px; color: var(--pd-text); }
.pd-distance__value { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--pd-ink); }

/* ── Builder ─────────────────────────────────────────────────────────── */
.pd-builder--logo { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: start; }
.pd-builder__logo {
    display: flex; align-items: center; justify-content: center;
    padding: 14px; border: 1px solid var(--pd-line); border-radius: 12px; background: #fff; aspect-ratio: 1 / 1;
}
.pd-builder__logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.pd-faq { list-style: none; margin: 0; padding: 0; }
.pd-faq__item { border-bottom: 1px solid var(--pd-line); }
.pd-faq__item:first-child { border-top: 1px solid var(--pd-line); }
.pd-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 2px; font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--pd-ink); text-decoration: none;
}
.pd-faq__q:hover { color: var(--pd-accent); }
.pd-faq__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; background: #f2f4f7; color: var(--pd-ink);
    transition: transform .2s ease, background-color .2s ease;
}
.pd-faq__icon svg { width: 16px; height: 16px; }
.pd-faq__q:not(.collapsed) .pd-faq__icon { transform: rotate(45deg); background: var(--pd-accent-soft); color: var(--pd-accent); }
.pd-faq__a { padding: 0 2px 18px; font-size: 15px; line-height: 1.7; color: var(--pd-text); }

/* ── Reviews / share / more pages ────────────────────────────────────── */
.pd-reviews .wrap-review, .pd-reviews .single-property-element { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.pd-share { padding: 4px 2px; }
.pd-share .property-share-social { display: flex; justify-content: flex-start; margin: 0; }
.pd-main .single-property-pages {
    background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: 20px 24px;
}

/* ── Sidebar enquiry ─────────────────────────────────────────────────── */
.pd-aside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-enquire {
    background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: var(--pd-radius);
    padding: 24px; box-shadow: 0 12px 32px rgba(16, 24, 40, .06);
    scroll-margin-top: calc(var(--pd-top, 0px) + var(--pd-tabs-h) + 16px);
}
.pd-enquire__title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--pd-ink); }
.pd-enquire__sub { margin: 6px 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--pd-muted); }
.pd-enquire__btn { width: 100%; height: 48px; margin-top: 4px; }
.pd-enquire__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--pd-muted); }
.pd-enquire__note svg { width: 14px; height: 14px; }

.pd-agent {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px;
    border: 1px solid var(--pd-line); border-radius: 12px; background: #f9fafb;
}
.pd-agent__avatar { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #e9ecf1; }
.pd-agent__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-agent__info { display: flex; flex-direction: column; min-width: 0; }
.pd-agent__name { font-size: 15px; font-weight: 700; color: var(--pd-ink); }
.pd-agent__line { font-size: 13px; color: var(--pd-muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-agent__line:hover { color: var(--pd-accent); }

.pd-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.pd-form > * { grid-column: 1 / -1; }
.pd-form .ip-group, .pd-form .mb-3 { margin: 0 0 12px; }
.pd-form .ip-group:has(.pd-form__project) { display: none; }
.pd-form .ip-group:has(input[name="phone"]) { grid-column: 1 / 2; }
.pd-form .pd-form__otp-btn { grid-column: 2 / 3; align-self: end; margin: 0 0 12px; }
.pd-form .form-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--pd-ink); }
.pd-form .form-control {
    width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d0d5dd; border-radius: 10px;
    background: #fff; font-size: 15px; color: var(--pd-ink); box-shadow: none;
}
.pd-form textarea.form-control { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.pd-form .form-control:focus { border-color: var(--pd-accent); outline: 0; box-shadow: 0 0 0 3px var(--pd-accent-soft); }
body .pd-modal .pd-form .btn-send-otp.btn-send-otp-custom.tf-btn {
    height: 46px; padding: 0 16px; margin: 0; width: auto; white-space: nowrap;
    border: 1.5px solid var(--pd-accent) !important; border-radius: 10px;
    background: #fff !important; color: var(--pd-accent) !important; font-size: 14px; font-weight: 700;
}
body .pd-modal .pd-form .btn-send-otp.btn-send-otp-custom.tf-btn:hover:not(:disabled) { background: var(--pd-accent-soft) !important; }
.pd-form .btn-send-otp:disabled { opacity: .7; }
.pd-form .pd-form__submit { height: 50px; margin-top: 4px; border-radius: 10px; font-size: 15px; font-weight: 700; }

.pd-brochure {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left;
    background: var(--pd-card); border: 1px dashed #d0d5dd; border-radius: var(--pd-radius); cursor: pointer;
    transition: border-color .15s ease;
}
.pd-brochure:hover { border-color: var(--pd-accent); }
.pd-brochure__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; background: #fef3f2; color: #d92d20;
}
.pd-brochure__icon svg { width: 24px; height: 24px; }
.pd-brochure__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pd-brochure__text strong { font-size: 15px; color: var(--pd-ink); }
.pd-brochure__text span { font-size: 13px; color: var(--pd-muted); }
.pd-brochure__arrow { color: var(--pd-accent); display: inline-flex; }
.pd-brochure__arrow svg { width: 20px; height: 20px; }

/* ── Discovery (similar / units / articles) ──────────────────────────── */
.pd-discover { background: #fff; border-top: 1px solid var(--pd-line); padding: 48px 0 24px; }
.pd-discover__block { margin-bottom: 44px; }
.pd-discover__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pd-discover__title { margin: 0 0 20px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--pd-ink); }
.pd-discover__all { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--pd-accent); text-decoration: none; }
.pd-discover__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pd-discover__grid > * { min-width: 0; margin: 0; }
.pd-post {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
    border: 1px solid var(--pd-line); border-radius: 14px; background: #fff; transition: box-shadow .2s ease;
}
.pd-post:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .08); }
.pd-post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9ecf1; }
.pd-post__media img { width: 100%; height: 100%; object-fit: cover; }
.pd-post__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.pd-post__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pd-accent); }
.pd-post__title {
    font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--pd-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-post__date { font-size: 13px; color: var(--pd-muted); }

/* ── Mobile action bar ───────────────────────────────────────────────── */
.pd-mbar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1100px) {
    .pd-aside {
        position: -webkit-sticky; position: sticky;
        top: calc(var(--pd-top, 0px) + var(--pd-tabs-h) + 20px);
        max-height: calc(100vh - var(--pd-top, 0px) - var(--pd-tabs-h) - 36px);
        overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
        transition: top .2s ease;
    }
}

@media (max-width: 1099.98px) {
    .pd-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .pd-aside { max-width: 640px; width: 100%; margin: 0 auto; }

    .pd-mbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #fff; border-top: 1px solid var(--pd-line);
        box-shadow: 0 -8px 24px rgba(16, 24, 40, .08);
        transform: translateY(110%); transition: transform .25s ease;
    }
    .pd-mbar.is-visible { transform: translateY(0); }
    .pd-mbar__price { display: flex; flex-direction: column; min-width: 0; }
    .pd-mbar__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--pd-muted); }
    .pd-mbar__price strong { font-size: 16px; color: var(--pd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pd-mbar__actions { display: flex; gap: 8px; flex-shrink: 0; }
    .pd-mbar__btn {
        display: inline-flex; align-items: center; justify-content: center;
        height: 46px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
    }
    .pd-mbar__btn svg { width: 20px; height: 20px; }
    .pd-mbar__btn--ghost { width: 46px; border: 1px solid var(--pd-line); background: #fff; color: var(--pd-ink); }
    .pd-mbar__btn--primary { padding: 0 22px; border: 0; background: var(--pd-accent); color: #fff; }

    body:has(.pd-mbar) { padding-bottom: 76px; }
    body.pd-mbar-on .progress-wrap { bottom: 92px; }
    html:not(.fob-chat-open) body.pd-mbar-on:not(.fob-chat-open) .fob-live-chat { bottom: 86px !important; }
}

@media (max-width: 991.98px) {
    .pd-discover__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .pd-crumbs { padding: 10px 0; font-size: 12.5px; }

    .pd-gallery { width: 100vw; margin-left: calc(50% - 50vw); }
    .pd-gallery__track,
    .pd-gallery[class*="pd-gallery--n"] .pd-gallery__track {
        display: flex; height: auto; gap: 0; border-radius: 0;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .pd-gallery__track::-webkit-scrollbar { display: none; }
    .pd-gallery__item,
    .pd-gallery__item:nth-child(n+6) {
        display: block; flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; max-height: 62vh;
        scroll-snap-align: start; grid-row: auto; grid-column: auto;
    }
    .pd-gallery__item:hover img { transform: none; }
    .pd-gallery__more { display: none; }
    .pd-gallery__overlay { left: 12px; right: 12px; bottom: 12px; }
    .pd-gallery__counter { visibility: visible; }
    .pd-gallery__btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
    .pd-gallery__btn[data-pd-gallery-open] span { display: none; }
    .pd-gallery__btn[data-pd-gallery-open] { width: 34px; padding: 0; justify-content: center; }

    .pd-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 0 16px; }
    .pd-hero__meta { gap: 6px 14px; font-size: 13.5px; }
    .pd-hero__address { flex-basis: 100%; }
    .pd-hero__aside { align-items: stretch; }
    .pd-price { align-items: flex-start; text-align: left; }
    .pd-price__value { white-space: normal; }
    .pd-hero__actions { display: flex; flex-wrap: nowrap; justify-content: stretch; }
    .pd-hero__actions .pd-btn--primary, .pd-hero__actions .pd-btn--outline { flex: 1 1 0; min-width: 0; white-space: nowrap; }
    .pd-hero__actions .pd-btn--icon { flex: 0 0 44px; }
    .pd-btn { padding: 0 10px; gap: 6px; }

    .pd-fact { flex-basis: calc(50% - 1px); padding: 14px 12px; gap: 10px; flex-direction: column; }
    .pd-fact__icon { width: 32px; height: 32px; border-radius: 8px; }
    .pd-fact__icon svg, .pd-fact__icon i { width: 17px; height: 17px; font-size: 17px; }
    .pd-fact__value { font-size: 14.5px; }
    .pd-fact--rera { flex-basis: 100%; flex-direction: row; }

    .pd-tabs { margin-top: 16px; }
    .pd-tabs__scroller { gap: 22px; }
    .pd-tabs__link { font-size: 14px; }

    .pd-layout { padding: 16px 0 28px; }
    .pd-main > * + * { margin-top: 14px; }
    .pd-card { padding: 20px 16px; border-radius: 14px; }
    .pd-card__title { font-size: 18px; margin-bottom: 16px; gap: 10px; }
    .pd-card__icon { width: 34px; height: 34px; }
    .pd-page .pd-prose { font-size: 15px; line-height: 1.7; }

    .pd-accordion__summary { padding: 14px; font-size: 15px; gap: 10px; }
    .pd-accordion__body { padding: 0 14px 16px; font-size: 14.5px; }

    .pd-page .fp-size-strip.is-scrollable .fp-strip-arrow { display: none; }
    .pd-plan__head { padding: 10px 12px; }
    .pd-plan__link { padding: 8px; min-height: 220px; }
    .pd-plan__zoom span { display: none; }
    .pd-plan__zoom { width: 32px; padding: 0; justify-content: center; right: 10px; bottom: 10px; }
    .pd-page .fp-img-nav { width: 34px; height: 34px; margin-top: -17px; }

    .pd-spec__row { grid-template-columns: 1fr; }
    .pd-spec dt { border-right: 0; padding-bottom: 4px; background: none; font-size: 13px; color: var(--pd-muted); }
    .pd-spec dd { padding-top: 0; color: var(--pd-ink); font-weight: 500; }

    .pd-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pd-amenity { flex-direction: row; text-align: left; padding: 12px; gap: 10px; }
    .pd-amenity__icon { flex-shrink: 0; width: 36px; height: 36px; }
    .pd-amenity__icon svg, .pd-amenity__icon i { width: 18px; height: 18px; font-size: 18px; }
    .pd-amenity__label { font-size: 13px; }

    .pd-page .pd-map { height: 280px; }
    .pd-page .pd-places { grid-template-columns: minmax(0, 1fr); }
    .pd-distances { grid-template-columns: minmax(0, 1fr); }
    .pd-address__cta { display: none; }

    .pd-builder--logo { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pd-builder__logo { width: 96px; padding: 10px; }

    .pd-faq__q { font-size: 15px; padding: 16px 0; }
    .pd-faq__a { font-size: 14.5px; }

    .pd-enquire { padding: 20px 16px; }

    .pd-discover { padding: 32px 0 12px; }
    .pd-discover__title { font-size: 19px; margin-bottom: 14px; }
    .pd-discover__block { margin-bottom: 32px; }
    .pd-discover__grid {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) 6px;
        scrollbar-width: none;
    }
    .pd-discover__grid::-webkit-scrollbar { display: none; }
    .pd-discover__grid > * { flex: 0 0 82%; scroll-snap-align: start; }
}

@media (max-width: 420px) {
    .pd-hero__actions .pd-btn--primary svg, .pd-hero__actions .pd-btn--outline svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-page *, .pd-page *::before, .pd-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── Enquiry popup (moved to <body>) ─────────────────────────────────── */
.pd-modal { --pd-accent: var(--primary-color, #db1d23); --pd-accent-soft: rgba(219, 29, 35, 0.08); --pd-ink: #101828; --pd-text: #344054; --pd-muted: #667085; --pd-line: #e4e7ec; }
.pd-modal *, .pd-modal *::before, .pd-modal *::after { box-sizing: border-box; }
.pd-modal .modal-content { border: 0; border-radius: 16px; }
.pd-modal .modal-header { align-items: flex-start; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid #e4e7ec; }
.pd-modal .modal-title { margin: 0; font-size: 19px; font-weight: 700; color: #101828; }
.pd-modal__sub { margin: 4px 0 0; font-size: 13px; color: #667085; }
.pd-modal .modal-body { padding: 20px 24px 24px; }
.pd-modal .pd-enquire__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: #667085; }
.pd-modal .pd-enquire__note svg { width: 14px; height: 14px; }
@media (max-width: 575.98px) {
    .pd-modal .modal-header { padding: 16px; }
    .pd-modal .modal-body { padding: 16px; }
}

.pd-modal .modal-header .btn-close {
    position: static; flex-shrink: 0; margin: 2px 0 0; padding: 0;
    width: 32px; height: 32px; border-radius: 50%;
    background-size: 12px; background-position: center; background-repeat: no-repeat;
    background-color: #f2f4f7; opacity: 1;
}
.pd-modal .modal-header .btn-close:hover { background-color: #e4e7ec; }
.pd-modal .modal-header { justify-content: space-between; }
.pd-modal .modal-header > div { flex: 1 1 auto; min-width: 0; }
.pd-modal .modal-header .btn-close { margin-left: auto; margin-right: 0; }
@media (max-width: 575.98px) {
    .pd-modal .modal-header { gap: 10px; padding: 16px 16px 12px; }
}

/* ── Hero polish (phone) ─────────────────────────────────────────────── */
.pd-hero__address { align-items: flex-start; }
.pd-hero__address svg { margin-top: 2px; }
@media (max-width: 767.98px) {
    .pd-hero { gap: 14px; padding: 16px 0 14px; }
    .pd-hero__badges { margin-bottom: 8px; gap: 6px; }
    .pd-hero__title { font-size: 19px; line-height: 1.3; }
    .pd-hero__builder { margin-top: 4px; font-size: 14px; }
    .pd-hero__meta { margin-top: 10px; gap: 8px 16px; font-size: 13.5px; line-height: 1.45; }
    .pd-hero__address { flex-basis: 100%; gap: 8px; }
    .pd-hero__address span { overflow: visible; text-overflow: clip; }
    .pd-hero__rating, .pd-hero__views { font-size: 13px; }
    .pd-hero__aside {
        gap: 14px; padding: 16px; background: var(--pd-card);
        border: 1px solid var(--pd-line); border-radius: 14px;
    }
    .pd-price { gap: 2px; }
    .pd-price__label { font-size: 11px; }
    .pd-price__value { font-size: 24px; }
    .pd-hero__actions { gap: 8px; }
}
@media (max-width: 767.98px) {
    .pd-fact { flex-direction: row; align-items: center; padding: 12px; gap: 10px; }
    .pd-fact__label { font-size: 12px; }
    .pd-fact__value { font-size: 14px; margin-top: 1px; }
    .pd-fact--rera { align-items: flex-start; }
}

/* Share icons: logos are transparent PNG/WebP, so give them a neutral white disc */
.pd-share .box-icon.social,
.pd-share .box-icon.social:hover { background-color: #fff !important; border: 1px solid var(--pd-line, #e4e7ec); overflow: hidden; }
.pd-share .box-icon.social img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pd-share .box-icon.social:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(16, 24, 40, .12); }

/* Similar projects: home-page "fpc" cards */
.pd-fpc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pd-fpc-grid > .fpc__card { min-width: 0; }
@media (max-width: 1099.98px) { .pd-fpc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pd-fpc-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.pd-fpc-grid .fpc__body > .fpc__foot,
.pd-fpc-grid .fpc__body > .fpc__meta + .fpc__foot,
.pd-fpc-grid .fpc__body > .fpc__name + .fpc__foot { margin-top: auto; padding-top: 18px; }
.pd-fpc-grid .fpc__meta { margin-bottom: 4px; }

/* Key facts: fixed-minimum grid so many facts wrap into rows instead of squeezing into one line */
.pd-facts { background: var(--pd-card); }
.pd-facts__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0; background: transparent; margin: 0 -1px -1px 0;
}
.pd-fact { flex: none; border-right: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); }
.pd-fact--rera { grid-column: span 2; }
@media (max-width: 767.98px) {
    .pd-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-fact--rera { grid-column: 1 / -1; }
}

/* ── Hero alignment (desktop) ────────────────────────────────────────── */
@media (min-width: 768px) {
    .pd-hero { align-items: center; gap: 20px 40px; }
    .pd-hero__meta { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 24px; }
    .pd-hero__address { flex: 0 0 100%; }
    .pd-hero__aside {
        align-self: center; min-width: 340px; gap: 14px;
        padding-left: 40px; border-left: 1px solid var(--pd-line);
    }
    .pd-price { gap: 2px; }
    .pd-price__value { font-size: clamp(22px, 1.9vw, 28px); }
}

/* ==========================================================================
   Summary card (hero + key facts) — v3
   ========================================================================== */
.pd-sum {
    position: relative; z-index: 3;
    margin-top: 20px;
    background: var(--pd-card); border: 1px solid var(--pd-line); border-radius: 22px;
    box-shadow: 0 24px 60px -28px rgba(16, 24, 40, .28), 0 2px 6px rgba(16, 24, 40, .04);
    overflow: hidden;
}
.pd-gallery + .pd-sum { margin: -64px 28px 0; }
.pd-gallery:has(+ .pd-sum) .pd-gallery__overlay { bottom: 80px; }

.pd-sum__top {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px;
    padding: 28px 28px 24px;
}
.pd-sum__id { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pd-sum__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pd-sum__badges .flag-tag, .pd-sum .pd-badge {
    position: static; display: inline-flex; align-items: center; gap: 5px;
    height: 26px; padding: 0 11px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .01em;
    background: #ecfdf3; color: #067647; border: 1px solid #abefc6;
}
.pd-sum .pd-badge--rera { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }
.pd-sum .pd-badge--plain { background: #f2f4f7; color: #344054; border-color: #e4e7ec; }
.pd-sum .pd-badge svg { width: 14px; height: 14px; }

.pd-sum__title {
    margin: 0; color: var(--pd-ink);
    font-size: clamp(21px, 1.9vw, 28px); line-height: 1.28; font-weight: 700; letter-spacing: -.012em;
}
.pd-sum__builder { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pd-sum__builder-logo {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 3px; border: 1px solid var(--pd-line); border-radius: 9px; background: #fff;
}
.pd-sum__builder-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-sum__builder-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 14px; color: var(--pd-muted); }
.pd-sum__builder-text a, .pd-sum__builder-text strong { color: var(--pd-ink); font-weight: 600; text-decoration: none; }
.pd-sum__builder-text a:hover { color: var(--pd-accent); }

.pd-sum__addr {
    display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 12px; max-width: 100%;
    font-size: 14.5px; line-height: 1.5; color: var(--pd-text); text-decoration: none;
}
.pd-sum__addr svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--pd-accent); }
a.pd-sum__addr[href]:hover span { text-decoration: underline; text-underline-offset: 3px; }

.pd-sum__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 13.5px; color: var(--pd-muted); }
.pd-sum__rating, .pd-sum__views { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.pd-sum__rating svg { width: 16px; height: 16px; color: #f5a524; }
.pd-sum__rating strong { color: var(--pd-ink); }
.pd-sum__rating:hover { color: var(--pd-accent); }
.pd-sum__views svg { width: 16px; height: 16px; }
.pd-sum__dot { width: 4px; height: 4px; border-radius: 50%; background: #c0c5cf; }

/* Dark price panel */
.pd-deal {
    display: flex; flex-direction: column; gap: 4px;
    padding: 22px; border-radius: 16px;
    background: radial-gradient(120% 140% at 100% 0%, #26324a 0%, #101828 60%);
    color: #fff;
}
.pd-deal__label { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pd-deal__price { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.pd-deal__price--muted { font-size: 20px; font-weight: 700; }
.pd-deal__avg { font-size: 13px; color: rgba(255, 255, 255, .7); }
.pd-deal__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pd-deal__row { display: flex; gap: 10px; }
.pd-deal__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent;
    font-size: 14.5px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, filter .15s ease;
}
.pd-deal__btn svg { width: 18px; height: 18px; }
.pd-deal__btn--primary { width: 100%; background: var(--pd-accent); color: #fff; }
.pd-deal__btn--primary:hover { filter: brightness(1.08); }
.pd-deal__btn--light { flex: 1 1 auto; background: #fff; color: var(--pd-ink); }
.pd-deal__btn--light:hover { background: #f2f4f7; }
.pd-deal__btn--icon { flex: 0 0 46px; width: 46px; padding: 0; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.pd-deal__btn--icon:hover { background: rgba(255, 255, 255, .16); }
.pd-deal__row .pd-deal__btn--icon:first-child { margin-left: auto; }

/* Stats strip */
.pd-stats {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    border-top: 1px solid var(--pd-line); background: #fcfcfd;
}
.pd-stat {
    display: flex; flex-direction: column; gap: 6px; min-width: 0;
    padding: 18px 22px; border-right: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line);
    margin: 0 -1px -1px 0;
}
.pd-stat__label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pd-muted);
}
.pd-stat__label svg, .pd-stat__label i { flex-shrink: 0; width: 15px; height: 15px; font-size: 15px; color: var(--pd-accent); }
.pd-stat__value { font-size: 15.5px; line-height: 1.35; font-weight: 700; color: var(--pd-ink); overflow-wrap: break-word; }

/* RERA bar */
.pd-rera {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 14px 22px; background: #f6fef9; border-top: 1px solid #d1fadf;
}
.pd-rera__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px; background: #dcfae6; color: #067647;
}
.pd-rera__icon svg { width: 18px; height: 18px; }
.pd-rera__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; flex: 1; }
.pd-rera__label { font-size: 13px; color: #067647; font-weight: 600; }
.pd-rera__id { font-size: 14.5px; font-weight: 700; color: var(--pd-ink); letter-spacing: .02em; }
.pd-rera__link {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #abefc6; background: #fff;
    font-size: 13px; font-weight: 700; color: #067647; text-decoration: none;
}
.pd-rera__link svg { width: 14px; height: 14px; }
.pd-rera__link:hover { background: #ecfdf3; }

@media (max-width: 1199.98px) {
    .pd-sum__top { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
}
@media (max-width: 991.98px) {
    .pd-gallery + .pd-sum { margin: -48px 16px 0; }
    .pd-gallery:has(+ .pd-sum) .pd-gallery__overlay { bottom: 64px; }
    .pd-sum__top { grid-template-columns: minmax(0, 1fr); }
    .pd-deal { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 20px; }
    .pd-deal__label, .pd-deal__price, .pd-deal__avg { grid-column: 1; }
    .pd-deal__actions { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; min-width: 260px; }
}
@media (max-width: 767.98px) {
    .pd-gallery + .pd-sum { margin: -28px 0 0; border-radius: 20px; }
    .pd-gallery:has(+ .pd-sum) .pd-gallery__overlay { bottom: 40px; }
    .pd-sum { margin-top: 14px; border-radius: 18px; }
    .pd-sum__top { padding: 20px 16px 16px; gap: 18px; }
    .pd-sum__badges { margin-bottom: 10px; gap: 6px; }
    .pd-sum__title { font-size: 20px; line-height: 1.3; }
    .pd-sum__builder { margin-top: 12px; }
    .pd-sum__addr { font-size: 13.5px; margin-top: 10px; }
    .pd-sum__meta { font-size: 13px; margin-top: 10px; }
    .pd-deal { display: flex; padding: 18px 16px; border-radius: 14px; }
    .pd-deal__actions { min-width: 0; margin-top: 14px; }
    .pd-deal__price { font-size: 23px; }
    .pd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-stat { padding: 14px 16px; gap: 4px; }
    .pd-stat__label { font-size: 10.5px; }
    .pd-stat__value { font-size: 14.5px; }
    .pd-rera { padding: 14px 16px; gap: 12px; }
    .pd-rera__link { width: 100%; justify-content: center; }
}
@media (max-width: 767.98px) {
    .pd-deal { align-items: stretch; text-align: left; }
    .pd-deal__actions { width: 100%; }
}

/* ── Summary card: no overlap + compact (v3.1) ───────────────────────── */
.pd-gallery + .pd-sum { margin: 16px 0 0; }
.pd-gallery:has(+ .pd-sum) .pd-gallery__overlay { bottom: 16px; }
.pd-sum { border-radius: 18px; box-shadow: 0 1px 3px rgba(16, 24, 40, .05); }
.pd-sum__top { grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; padding: 18px 22px; align-items: center; }
.pd-sum__badges { margin-bottom: 8px; gap: 6px; }
.pd-sum__badges .flag-tag, .pd-sum .pd-badge { height: 24px; padding: 0 9px; font-size: 11.5px; }
.pd-sum__title { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; }
.pd-sum__builder { margin-top: 8px; gap: 8px; }
.pd-sum__builder-logo { width: 28px; height: 28px; padding: 2px; border-radius: 7px; }
.pd-sum__builder-text { font-size: 13.5px; }
.pd-sum__addr { margin-top: 6px; font-size: 13.5px; }
.pd-sum__addr svg { width: 16px; height: 16px; }
.pd-sum__meta { margin-top: 6px; font-size: 13px; }

.pd-deal { padding: 16px 18px; border-radius: 14px; gap: 2px; }
.pd-deal__label { font-size: 10.5px; }
.pd-deal__price { font-size: clamp(19px, 1.6vw, 23px); }
.pd-deal__avg { font-size: 12.5px; }
.pd-deal__actions { flex-direction: row; align-items: center; gap: 8px; margin-top: 12px; }
.pd-deal__btn { height: 40px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; gap: 6px; }
.pd-deal__btn svg { width: 16px; height: 16px; }
.pd-deal__btn--primary { width: auto; flex: 1 1 auto; }
.pd-deal__row { gap: 8px; flex: 0 0 auto; }
.pd-deal__btn--light { flex: 0 0 auto; }
.pd-deal__btn--icon { flex: 0 0 40px; width: 40px; }
.pd-deal__row .pd-deal__btn--icon:first-child { margin-left: 0; }

.pd-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pd-stat { padding: 11px 18px; gap: 3px; }
.pd-stat__label { font-size: 10.5px; letter-spacing: .05em; }
.pd-stat__label svg, .pd-stat__label i { width: 13px; height: 13px; font-size: 13px; }
.pd-stat__value { font-size: 14px; line-height: 1.35; }

.pd-rera { padding: 8px 18px; gap: 10px; }
.pd-rera__icon { width: 26px; height: 26px; border-radius: 7px; }
.pd-rera__icon svg { width: 15px; height: 15px; }
.pd-rera__label { font-size: 12.5px; }
.pd-rera__id { font-size: 13.5px; }
.pd-rera__link { height: 28px; padding: 0 12px; font-size: 12.5px; }

@media (max-width: 1199.98px) { .pd-sum__top { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 991.98px) {
    .pd-gallery + .pd-sum { margin: 14px 0 0; }
    .pd-sum__top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .pd-deal { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .pd-deal__actions { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; min-width: 0; }
}
@media (max-width: 767.98px) {
    .pd-gallery + .pd-sum { margin: 12px 0 0; border-radius: 16px; }
    .pd-sum { border-radius: 16px; }
    .pd-sum__top { padding: 16px 14px 14px; gap: 12px; }
    .pd-sum__title { font-size: 18.5px; }
    .pd-deal { display: flex; padding: 14px; }
    .pd-deal__price { font-size: 20px; }
    .pd-deal__actions { width: 100%; margin-top: 10px; flex-wrap: wrap; }
    .pd-deal__btn--primary { flex: 1 1 100%; }
    .pd-deal__row { flex: 1 1 100%; }
    .pd-deal__btn--light { flex: 1 1 auto; }
    .pd-stat { padding: 10px 14px; }
    .pd-stat__value { font-size: 13.5px; }
    .pd-rera { padding: 10px 14px; }
    .pd-rera__link { width: auto; }
}
@media (max-width: 991.98px) and (min-width: 768px) {
    .pd-stats { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
}
@media (max-width: 767.98px) {
    .pd-deal { align-items: stretch; text-align: left; }
    .pd-rera { flex-wrap: wrap; }
    .pd-rera__text { flex: 1 1 calc(100% - 40px); }
    .pd-rera__id { white-space: nowrap; }
    .pd-rera__link { width: 100%; justify-content: center; }
}

/* Stats: max 4 per row so values have room (v3.2) */
.pd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-stat { padding: 12px 20px; }
@media (max-width: 991.98px) { .pd-stats, .pd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .pd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
