/* ==========================================================================
   SINGLE PROJECT - LUXURY LEAD-GEN TEMPLATE
   --------------------------------------------------------------------------
   Brand tokens are inherited from css/style.css :root (--gold-color,
   --dark-bg, --darker-bg, --light-text, --gray-text, --transition) and are
   re-expressed below as scoped --pd-* tokens so this template never fights
   the global sheet.

   DESIGN CONTRACT
   - Theme lock ........ one dark theme for the whole page. The site header is
                         translucent dark glass and the footer is #000, so the
                         page now reads as a single continuous surface.
   - Accent lock ....... gold (--pd-gold) is the only accent. No second hue.
   - Radius rule ....... controls (buttons/inputs) 8px, surfaces (cards/media)
                         10px, badges/pills fully rounded - matches the small
                         radius used across the rest of the site.
   - Weight rule ....... the theme ships ONE font file (Helvetica Neue LT
                         Arabic Roman = 400). 300 renders as 400 anyway and
                         700 triggers faux-bold, so this sheet uses 400
                         everywhere and builds hierarchy from size, tracking
                         and colour instead.
   - Direction ......... layout uses CSS logical properties, so RTL is handled
                         without mirrored overrides.
========================================================================== */

/* ==========================================================================
   1. TOKENS
========================================================================== */
:root {
    /* Surfaces - off-black, never pure #000 */
    --pd-ink:        #0b0b0c;
    --pd-ink-raised: #111214;
    --pd-ink-card:   #17181b;

    /* Brand accent (inherited value, re-scoped) */
    --pd-gold:       #c8a870;
    --pd-gold-hover: #d8bb87;
    --pd-gold-wash:  rgba(200, 168, 112, 0.14);
    --pd-gold-line:  rgba(200, 168, 112, 0.42);

    /* Text */
    --pd-text:       #f4f2ef;
    --pd-text-mid:   rgba(244, 242, 239, 0.72);
    --pd-text-soft:  rgba(244, 242, 239, 0.56);

    /* Lines */
    --pd-line:       rgba(255, 255, 255, 0.10);
    --pd-line-soft:  rgba(255, 255, 255, 0.06);

    /* Radius - the whole system, nothing else */
    --pd-r-control:  8px;
    --pd-r-surface:  10px;
    --pd-r-pill:     999px;

    /* Rhythm */
    --pd-section-y:  clamp(72px, 8vw, 132px);
    --pd-gutter:     clamp(20px, 5vw, 64px);
    --pd-max:        1360px;

    /* Motion */
    --pd-ease:       cubic-bezier(0.16, 1, 0.3, 1);
    --pd-fast:       0.28s var(--pd-ease);
    --pd-slow:       0.75s var(--pd-ease);

    /* Layers */
    --pd-z-sticky:   900;
    --pd-z-lightbox: 1000000; /* must clear .main-header (z-index 999999) */
}

/* ==========================================================================
   2. PAGE SHELL
========================================================================== */
body.single-project {
    background: var(--pd-ink);
    color: var(--pd-text);
}

.single-project .pd-section {
    position: relative;
    padding-block: var(--pd-section-y);
    background: var(--pd-ink);
}

.single-project .pd-shell {
    width: 100%;
    max-width: var(--pd-max);
    margin-inline: auto;
    padding-inline: var(--pd-gutter);
}

.single-project .pd-shell-wide {
    width: 100%;
    max-width: 1680px;
    margin-inline: auto;
    padding-inline: var(--pd-gutter);
}

/* Hairline that separates stacked dark bands without a hard colour change */
.single-project .pd-section + .pd-section::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: var(--pd-gutter);
    height: 1px;
    background: var(--pd-line-soft);
}

/* ==========================================================================
   3. TYPOGRAPHY PRIMITIVES
========================================================================== */
.single-project .pd-eyebrow {
    display: inline-block;
    margin: 0 0 20px;
    color: var(--pd-gold);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    line-height: 1;
}

.single-project .pd-section-title {
    margin: 0;
    color: var(--pd-text);
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.14;
}

.single-project .pd-section-head {
    margin-bottom: clamp(36px, 4.5vw, 64px);
    max-width: 46ch;
}

.single-project .pd-body {
    color: var(--pd-text-mid);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    max-width: 68ch;
}

.single-project .pd-body p { margin-bottom: 1.1em; }
.single-project .pd-body p:last-child { margin-bottom: 0; }

/* The global sheet declares `p, ul li, ol li { color: #000 }`, which would
   swallow any editor-authored rich text on this dark page. Anything inside a
   rich-text container inherits the container's colour instead. */
.single-project .pd-richtext p,
.single-project .pd-richtext li,
.single-project .pd-richtext span,
.single-project .pd-richtext div { color: inherit; }

.single-project .pd-richtext h1,
.single-project .pd-richtext h2,
.single-project .pd-richtext h3,
.single-project .pd-richtext h4,
.single-project .pd-richtext strong,
.single-project .pd-richtext b { color: var(--pd-text); font-weight: 400; }

.single-project .pd-richtext a { color: var(--pd-gold); text-decoration: underline; text-underline-offset: 3px; }
.single-project .pd-richtext a:hover { color: var(--pd-gold-hover); }

/* Thin gold rule used as a quiet section marker */
.single-project .pd-rule {
    width: 46px;
    height: 1px;
    margin-bottom: 26px;
    background: var(--pd-gold);
}

/* ==========================================================================
   4. BUTTONS
   .enquiry-btn and .brochure-btn are the class names the template and its
   JS already bind to, so they are restyled in place rather than renamed.
========================================================================== */
.single-project .enquiry-btn,
.single-project .brochure-btn,
.single-project .pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    /* the global sheet ships `a.brochure-btn { width: fit-content; margin: 0 auto }`,
       which turns the button into a space-eating flex item. Reset both here. */
    width: auto;
    margin: 0;
    padding: 0 34px;
    border: 1px solid transparent;
    border-radius: var(--pd-r-control);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap; /* CTA labels never wrap */
    cursor: pointer;
    transition: background-color var(--pd-fast), color var(--pd-fast),
                border-color var(--pd-fast), transform var(--pd-fast);
}

/* Primary - gold on near-black. Contrast ratio ~9.5:1. */
.single-project .enquiry-btn,
.single-project .pd-btn--gold {
    background: var(--pd-gold);
    color: #0b0b0c;
    backdrop-filter: none;
}

.single-project .enquiry-btn:hover,
.single-project .enquiry-btn:focus-visible,
.single-project .pd-btn--gold:hover,
.single-project .pd-btn--gold:focus-visible {
    background: var(--pd-gold-hover);
    color: #0b0b0c;
}

/* Secondary - outlined, always over a scrim so contrast holds on photography */
.single-project .brochure-btn,
.single-project .pd-btn--ghost {
    background: rgba(11, 11, 12, 0.42);
    border-color: rgba(255, 255, 255, 0.34);
    color: var(--pd-text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.single-project .brochure-btn:hover,
.single-project .brochure-btn:focus-visible,
.single-project .pd-btn--ghost:hover,
.single-project .pd-btn--ghost:focus-visible {
    background: rgba(11, 11, 12, 0.72);
    border-color: var(--pd-gold);
    color: var(--pd-gold);
}

.single-project .enquiry-btn:active,
.single-project .brochure-btn:active,
.single-project .pd-btn:active { transform: translateY(1px); }

.single-project .enquiry-btn:focus-visible,
.single-project .brochure-btn:focus-visible,
.single-project .pd-btn:focus-visible {
    outline: 2px solid var(--pd-gold);
    outline-offset: 3px;
}

/* WhatsApp - kept as a distinct affordance but held inside the gold/neutral
   system so the page keeps a single accent. */
.single-project .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--pd-r-control);
    background: rgba(11, 11, 12, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color var(--pd-fast), border-color var(--pd-fast);
}

.single-project .whatsapp-btn svg { width: 21px; height: 21px; display: block; }
.single-project .whatsapp-btn svg path { fill: var(--pd-text); transition: fill var(--pd-fast); }

.single-project .whatsapp-btn:hover {
    background: rgba(11, 11, 12, 0.72);
    border-color: var(--pd-gold);
    transform: none;
}
.single-project .whatsapp-btn:hover svg path { fill: var(--pd-gold); }

/* Availability / status badge - semantic state, not decoration */
.single-project .pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 8px 18px;
    border: 1px solid var(--pd-gold-line);
    border-radius: var(--pd-r-pill);
    background: rgba(11, 11, 12, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--pd-gold);
    font-size: 11px;
    letter-spacing: 0.2em;
    line-height: 1;
    text-transform: uppercase;
}

/* ==========================================================================
   5. SCROLL REVEAL
========================================================================== */
.pd-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity var(--pd-slow), transform var(--pd-slow);
}
.pd-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   6. HERO
   Full-bleed cinematic media, content anchored to the bottom inline-start
   edge (not centred), separated from the photograph by a gold hairline.
========================================================================== */
.single-project .pd-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 620px;
    max-height: 1080px;
    overflow: hidden;
    background: var(--pd-ink);
}

.single-project .pd-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.single-project .pd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    animation: pdHeroZoom 18s var(--pd-ease) forwards;
}

@keyframes pdHeroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

.single-project .pd-hero-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(11, 11, 12, 0.55) 0%,
            rgba(11, 11, 12, 0.12) 26%,
            rgba(11, 11, 12, 0.55) 68%,
            rgba(11, 11, 12, 0.94) 100%);
}

.single-project .pd-hero-card {
    position: absolute;
    inset-block-end: clamp(48px, 7vh, 96px);
    inset-inline-start: 0;
    z-index: 3;
    width: 100%;
    max-width: var(--pd-max);
    margin-inline: auto;
    padding-inline: var(--pd-gutter);
    inset-inline: 0;
    text-align: start;
}

.single-project .pd-hero-logo {
    max-width: 148px;
    max-height: 84px;
    width: auto;
    height: auto;
    margin: 0 0 26px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.single-project .pd-hero-title {
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(38px, 5.4vw, 72px);
    font-weight: 400;
    letter-spacing: -0.022em;
    line-height: 1.06;
    max-width: 16ch;
    /* the global .hero-title rule centres this; the hero is start-aligned */
    text-align: start;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.single-project .pd-hero-divider {
    width: 100%;
    max-width: 460px;
    height: 1px;
    margin: 0 0 28px;
    background: linear-gradient(90deg, var(--pd-gold), rgba(200, 168, 112, 0));
}

.single-project .pd-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0;
    justify-content: flex-start;
}

/* neutralise the legacy centring helper */
.single-project .hero-actions a.enquiry-btn { width: auto; margin: 0; }

/* Staggered hero entrance */
.single-project .pd-hero-card > * {
    opacity: 0;
    animation: pdHeroIn 0.9s var(--pd-ease) forwards;
}
.single-project .pd-hero-card > *:nth-child(1) { animation-delay: 0.20s; }
.single-project .pd-hero-card > *:nth-child(2) { animation-delay: 0.30s; }
.single-project .pd-hero-card > *:nth-child(3) { animation-delay: 0.40s; }
.single-project .pd-hero-card > *:nth-child(4) { animation-delay: 0.50s; }
.single-project .pd-hero-card > *:nth-child(5) { animation-delay: 0.60s; }

@keyframes pdHeroIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   7. REGISTER / LEAD FORM  - the conversion section, second on the page
   Asymmetric split: promise copy on the inline-start, form panel opposite.
========================================================================== */
.single-project .pd-register {
    position: relative;
    padding-block: var(--pd-section-y);
    overflow: hidden;
    background: var(--pd-ink-raised);
}

.single-project .pd-register-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.single-project .pd-register-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-project .pd-register-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* dark enough for AA text contrast, open enough that the project
       photography still reads behind the copy */
    background:
        linear-gradient(115deg, rgba(11, 11, 12, 0.74) 0%, rgba(11, 11, 12, 0.9) 55%, rgba(11, 11, 12, 0.94) 100%);
}

.single-project .pd-register-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.single-project .pd-register-copy { min-width: 0; }

.single-project .pd-register-title {
    margin: 0 0 22px;
    color: var(--pd-text);
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 400;
    letter-spacing: -0.018em;
    line-height: 1.1;
}

.single-project .pd-register-points {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    max-width: 44ch;
}

.single-project .pd-register-points li {
    position: relative;
    padding-block: 16px;
    padding-inline-start: 34px;
    border-block-start: 1px solid var(--pd-line);
    color: var(--pd-text-mid);
    font-size: 15px;
    line-height: 1.6;
}

.single-project .pd-register-points li:last-child {
    border-block-end: 1px solid var(--pd-line);
}

.single-project .pd-register-points li::before {
    content: "";
    position: absolute;
    inset-block-start: 28px; /* 16px padding + half of the 24px line box */
    inset-inline-start: 0;
    width: 18px;
    height: 1px;
    background: var(--pd-gold);
}

/* ---- The form panel ---------------------------------------------------- */
.single-project .pd-register-card {
    position: relative;
    padding: clamp(28px, 3.4vw, 52px);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-surface);
    background: var(--pd-ink-card);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.single-project .register-title {
    margin: 0 0 6px;
    color: var(--pd-text);
    font-family: inherit;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.single-project .pd-form-note {
    margin: 0 0 30px;
    color: var(--pd-text-soft);
    font-size: 13.5px;
    line-height: 1.6;
}

.single-project .pd-form.cf7-form-container {
    background: none;
    border: 0;
    padding: 0;
}

/* CF7's own stylesheet is disabled site-wide (wpcf7_load_css), so its
   .screen-reader-response error summary renders as plain visible text above
   the fields instead of being visually hidden. Restore that here: still
   readable by assistive tech, invisible on screen. */
.single-project .pd-form .screen-reader-response {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal;
}

/* --------------------------------------------------------------------------
   Field layout.
   The Contact Form 7 records already ship a real <label> per control plus a
   .field / .field.row wrapper (Arabic form 10166, English form 9779), so this
   styles the markup as-authored. No CF7 record is modified.

       <div class="field row">           two controls side by side
         <div><p><label>..</label><span class="wpcf7-form-control-wrap">..
       <div class="field">               one control full width
-------------------------------------------------------------------------- */
.single-project .pd-form .field { margin-bottom: 16px; }

/* .field.row also matches Bootstrap's .row, so its flex + negative margins
   are replaced outright rather than patched. */
.single-project .pd-form .field.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 16px;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.single-project .pd-form .field.row > * {
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0;
    flex: none;
}

/* Email + Phone row only: full width, stacked, not side by side. */
.single-project .pd-form .field.row:has(.intl-tel-input) {
    grid-template-columns: 1fr;
    gap: 0;
}
.single-project .pd-form .field.row:has(.intl-tel-input) > * { margin-bottom: 16px; }
.single-project .pd-form .field.row:has(.intl-tel-input) > *:last-child { margin-bottom: 0; }

.single-project .pd-form .field p { margin: 0; }
.single-project .pd-form .field br { display: none; }

.single-project .pd-form .field label {
    display: block;
    margin-bottom: 9px;
    color: var(--pd-text-mid);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.single-project .pd-form .field label .req {
    color: var(--pd-gold);
    margin-inline-start: 1px;
}

.single-project .pd-form .wpcf7-form-control-wrap { display: block; }

.single-project .pd-form .field .wpcf7-form-control {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-control);
    background: rgba(255, 255, 255, 0.035);
    color: var(--pd-text) !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    transition: border-color var(--pd-fast), background-color var(--pd-fast),
                box-shadow var(--pd-fast);
    -webkit-appearance: none;
    appearance: none;
}

.single-project .pd-form .field textarea.wpcf7-form-control {
    height: 112px;
    min-height: 112px;
    max-height: 260px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.6;
}

/* Placeholders are genuine hints here (for example 05XXXXXXXX), and the
   visible label carries the field's meaning. */
.single-project .pd-form .field .wpcf7-form-control::placeholder {
    color: rgba(244, 242, 239, 0.42);
    opacity: 1;
}

.single-project .pd-form .field .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--pd-gold);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(200, 168, 112, 0.16);
}

.single-project .pd-form .field .wpcf7-form-control:focus::placeholder {
    color: rgba(244, 242, 239, 0.5);
}

/* Autofill keeps the dark surface instead of the browser's default blue */
.single-project .pd-form .field .wpcf7-form-control:-webkit-autofill,
.single-project .pd-form .field .wpcf7-form-control:-webkit-autofill:hover,
.single-project .pd-form .field .wpcf7-form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--pd-text);
    -webkit-box-shadow: 0 0 0 1000px #1c1d21 inset;
    caret-color: var(--pd-text);
}

/* Country & Phone Field plugin (intlTelInput) - restyle its flag/dial-code
   prefix to match the dark form fields. Logical properties keep the prefix
   on the reading-start edge (left in en, right in ar) without a separate
   RTL block. */
.single-project .pd-form .field .intl-tel-input {
    display: block;
    width: 100%;
}

.single-project .pd-form .field .intl-tel-input input.wpcf7-form-control {
    /* padding-inline-start: 78px; */
    padding-inline-end: 16px;
}

.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input, .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input[type=tel], .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input[type=text] {
    padding-left: 120px !important;
}

.single-project .pd-form .field .intl-tel-input .flag-container {
    inset-inline-start: 1px;
    inset-inline-end: auto;
    top: 1px;
    bottom: 1px;
    display: flex;
    align-items: center;
    padding: 0;
    border-inline-end: 1px solid var(--pd-line);
}

.single-project .pd-form .field .intl-tel-input .selected-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    padding-inline: 12px 22px;
    background: transparent !important;
    border-start-start-radius: var(--pd-r-control);
    border-end-start-radius: var(--pd-r-control);
}

.single-project .pd-form .field .intl-tel-input .selected-flag .iti-flag {
    position: relative;
    top: auto;
    bottom: auto;
    margin: 0;
}

.single-project .pd-form .field .intl-tel-input .selected-dial-code {
    padding-inline-start: 8px !important;
    color: var(--pd-text);
    font-size: 14px;
    direction: ltr;
}

.single-project .pd-form .field .intl-tel-input .selected-flag .iti-arrow {
    top: 50%;
    inset-inline-end: 6px;
    inset-inline-start: auto;
    border-top-color: var(--pd-text-soft);
}
.single-project .pd-form .field .intl-tel-input .selected-flag .iti-arrow.up {
    border-bottom-color: var(--pd-text-soft);
}

/* The plugin's own CSS never sets an explicit top/inset-inline-start for the
   list, so its "static position" fallback lands wherever the flex layout of
   .flag-container happens to put it. Pin it explicitly below the field. */
.single-project .pd-form .field .intl-tel-input .country-list {
    position: absolute;
    top: 100%;
    inset-inline-start: -1px;
    inset-inline-end: auto;
    bottom: auto;
    z-index: 30;
    width: max-content;
    min-width: 240px;
    margin: 6px 0 0;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-control);
    background: var(--pd-ink-card);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    max-height: 220px;
}

.single-project .pd-form .field .intl-tel-input .country-list .country {
    color: var(--pd-text);
    font-size: 14px;
}
.single-project .pd-form .field .intl-tel-input .country-list .country .dial-code { color: var(--pd-text-soft); }
.single-project .pd-form .field .intl-tel-input .country-list .country.highlight,
.single-project .pd-form .field .intl-tel-input .country-list .country:hover {
    background: rgba(200, 168, 112, 0.16);
}
.single-project .pd-form .field .intl-tel-input .country-list .divider { border-bottom-color: var(--pd-line); }

/* Country names in the bundled list are English only; keep them LTR even
   when the page itself is RTL. */
.single-project .pd-form .field .intl-tel-input .country-list {
    direction: ltr;
    text-align: left;
}

/* Cloudflare Turnstile widget shipped inside the form */
.single-project .pd-form .wpcf7-turnstile {
    margin-bottom: 16px;
    min-height: 0;
}
.single-project .pd-form .wpcf7-turnstile:empty { margin-bottom: 0; }

/* Submit */
.single-project .pd-form input.wpcf7-submit,
.single-project .pd-form input.wpcf7-form-control.wpcf7-submit {
    display: block;
    width: 100%;
    height: 58px;
    margin-top: 30px;
    padding: 0 30px;
    border: 0;
    border-radius: var(--pd-r-control);
    background: var(--pd-gold);
    color: #0b0b0c !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--pd-fast), transform var(--pd-fast);
}

.single-project .pd-form input.wpcf7-submit:hover { background: var(--pd-gold-hover); }
.single-project .pd-form input.wpcf7-submit:active { transform: translateY(1px); }
.single-project .pd-form input.wpcf7-submit:focus-visible {
    outline: 2px solid var(--pd-gold);
    outline-offset: 3px;
}
.single-project .pd-form input.wpcf7-submit:disabled {
    cursor: progress;
    opacity: 0.72;
}

/* Validation + response states */
.single-project .pd-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 7px;
    color: #e79c8c;
    font-size: 12.5px;
    line-height: 1.4;
}

.single-project .pd-form .field .wpcf7-not-valid { border-color: rgba(231, 156, 140, 0.7); }

/* CF7 always ships the response container, empty, on first paint. Only show
   it once the form has actually reported a status. */
.single-project .pd-form .wpcf7-response-output { display: none; }

.single-project .pd-form .wpcf7-form.sent .wpcf7-response-output,
.single-project .pd-form .wpcf7-form.invalid .wpcf7-response-output,
.single-project .pd-form .wpcf7-form.failed .wpcf7-response-output,
.single-project .pd-form .wpcf7-form.unaccepted .wpcf7-response-output,
.single-project .pd-form .wpcf7-form.payment-required .wpcf7-response-output,
.single-project .pd-form .wpcf7-form.spam .wpcf7-response-output,
.single-project .pd-form .wpcf7-form.aborted .wpcf7-response-output {
    display: block;
    margin: 20px 0 0 !important;
    padding: 13px 16px !important;
    border: 1px solid var(--pd-line) !important;
    border-radius: var(--pd-r-control);
    color: var(--pd-text);
    font-size: 13.5px;
    line-height: 1.55;
}

.single-project .pd-form .wpcf7-form.sent .wpcf7-response-output {
    border-color: var(--pd-gold-line) !important;
    background: var(--pd-gold-wash);
}

.single-project .pd-form .wpcf7-form.invalid .wpcf7-response-output,
.single-project .pd-form .wpcf7-form.failed .wpcf7-response-output {
    border-color: rgba(231, 156, 140, 0.55) !important;
    background: rgba(231, 156, 140, 0.10);
}

/* Submitting state - CF7's own CSS is disabled, so the spinner ships with no
   size/animation of its own; render it centred inside the button itself. */
.single-project .pd-form p:has(> input.wpcf7-submit) {
    position: relative;
}

.single-project .pd-form .wpcf7-spinner {
    visibility: hidden;
    position: absolute;
    inset-inline-end: 26px;
    top: 50%;
    margin: 0;
    width: 18px;
    height: 18px;
    background: none;
    opacity: 1;
    transform: translateY(-50%);
}

.single-project .pd-form .wpcf7-spinner::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(11, 11, 12, 0.28);
    border-top-color: #0b0b0c;
    border-radius: 50%;
    animation: pd-spinner-spin 700ms linear infinite;
}

@keyframes pd-spinner-spin {
    to { transform: rotate(360deg); }
}

.single-project .pd-form .wpcf7-form.submitting .wpcf7-spinner {
    visibility: visible;
}

.single-project .pd-form .wpcf7-form.submitting input.wpcf7-submit { opacity: 0.72; }

/* Privacy reassurance under the button */
.single-project .pd-form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    color: var(--pd-text-soft);
    font-size: 12.5px;
    line-height: 1.55;
}
.single-project .pd-form-privacy svg { flex: 0 0 15px; margin-top: 2px; }

/* ==========================================================================
   8. STATS + OVERVIEW
   Hairline-separated numerals on a dark photographic band. No cards.
========================================================================== */
.single-project .pd-stats {
    position: relative;
    padding-block: var(--pd-section-y);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.single-project .pd-stats-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 12, 0.3), rgba(11, 11, 12, 0.82));
}

.single-project .pd-stats-inner { position: relative; z-index: 2; }

.single-project .pd-stats-grid {
    display: grid;
    grid-template-columns: repeat(var(--pd-cols, 4), minmax(0, 1fr));
    gap: 0;
    /* two or three counters should not stretch to the full 1360px shell */
    max-width: min(100%, calc(var(--pd-cols, 4) * 330px));
    margin-inline: auto;
}

.single-project .pd-stat {
    padding: 8px clamp(16px, 2.4vw, 38px);
    text-align: center;
    border-inline-start: 1px solid var(--pd-line);
}
.single-project .pd-stat:first-child { border-inline-start: 0; }

.single-project .pd-stat img {
    max-height: 34px;
    width: auto;
    margin: 0 auto 18px;
    display: block;
    opacity: 0.85;
}

.single-project .pd-stat .count-sec {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    margin-bottom: 12px;
}

.single-project .pd-stat .counter-number {
    margin: 0;
    color: var(--pd-gold);
    font-size: clamp(36px, 4.2vw, 60px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.single-project .pd-stat .count-sec span {
    padding: 0;
    color: var(--pd-gold);
    font-size: clamp(14px, 1.3vw, 19px) !important;
    line-height: 1;
}

.single-project .pd-stat .counter-label {
    margin: 0;
    color: var(--pd-text-soft);
    font-size: 12px;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.single-project .pd-stats-copy {
    max-width: 74ch;
    margin: clamp(48px, 6vw, 76px) auto 0;
    padding-top: clamp(38px, 4vw, 54px);
    border-top: 1px solid var(--pd-line);
    color: var(--pd-text-mid);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.85;
    text-align: center;
}
.single-project .pd-stats-copy p { margin-bottom: 1em; }
.single-project .pd-stats-copy p:last-child { margin-bottom: 0; }

/* ==========================================================================
   9. FEATURED PROPERTY
   Full-bleed photograph with an offset panel that overlaps its lower edge.
========================================================================== */
.single-project .pd-featured {
    position: relative;
    padding-block: var(--pd-section-y);
    background: var(--pd-ink);
}

.single-project .pd-featured-media {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 340px;
    max-height: 74vh;
    overflow: hidden;
    border-radius: var(--pd-r-surface);
}

.single-project .pd-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--pd-ease);
}

.single-project .pd-featured-media:hover .pd-featured-img { transform: scale(1.045); }

.single-project .pd-featured-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 11, 12, 0) 45%, rgba(11, 11, 12, 0.72) 100%);
}

.single-project .pd-featured-panel {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 44px);
    width: calc(100% - clamp(24px, 6vw, 96px));
    max-width: 1180px;
    margin: clamp(-92px, -7vw, -56px) auto 0;
    padding: clamp(26px, 3vw, 42px) clamp(26px, 3.4vw, 52px);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-surface);
    background: var(--pd-ink-card);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.single-project .pd-featured-panel .pro-details { min-width: 0; }

.single-project .property-title {
    margin: 0;
    color: var(--pd-text);
    font-family: inherit;
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.16;
}

.single-project .pd-price-pill {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 18px;
    border: 1px solid var(--pd-gold-line);
    border-radius: var(--pd-r-pill);
    background: var(--pd-gold-wash);
    color: var(--pd-gold) !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.2 !important;
}

.single-project .pd-featured-panel .property-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Bare variant: when the project has no featured title, price or WhatsApp
   number, the offset panel would render as an empty slab. The actions sit
   on the image itself instead. */
.single-project .pd-featured--bare .pd-featured-panel {
    justify-content: flex-end;
    width: calc(100% - clamp(24px, 6vw, 96px));
    margin-top: clamp(-84px, -6vw, -52px);
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.single-project .pd-featured--bare .pd-featured-media::after {
    background: linear-gradient(180deg, rgba(11, 11, 12, 0) 55%, rgba(11, 11, 12, 0.8) 100%);
}

/* ==========================================================================
   10. UNIT SLIDER
========================================================================== */
.single-project .pd-slider {
    padding-block: var(--pd-section-y);
    background: var(--pd-ink-raised);
    overflow: hidden;
}

.single-project .pd-slider-head {
    max-width: var(--pd-max);
    margin: 0 auto clamp(34px, 4vw, 54px);
    padding-inline: var(--pd-gutter);
    text-align: start;
}

.single-project .propertySwiper { padding-block: 0 62px; overflow: visible; }
.single-project .propertySwiper .swiper-slide { height: auto; }

.single-project .property-listing-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-surface);
    background: var(--pd-ink-card);
    box-shadow: none;
    transition: border-color var(--pd-fast), transform var(--pd-fast);
}

.single-project .property-listing-card:hover {
    transform: translateY(-5px);
    border-color: var(--pd-gold-line);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}

.single-project .property-listing-card > a { display: block; overflow: hidden; }

.single-project .property-listing-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--pd-ease);
}

.single-project .property-listing-card:hover img { transform: scale(1.05); }

.single-project .property-listing-card img.currency {
    width: 15px;
    height: auto;
    aspect-ratio: auto;
    display: inline-block;
    vertical-align: -1px;
    transform: none !important;
}

.single-project .pro-status {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-end: 16px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--pd-r-pill);
    background: rgba(11, 11, 12, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--pd-text);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.single-project .property-listing-info {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    width: 100%;
    padding: 22px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(11, 11, 12, 0) 0%, rgba(11, 11, 12, 0.88) 55%);
    backdrop-filter: none;
}

.single-project .property-listing-name {
    margin: 0 0 12px;
    color: var(--pd-gold);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.single-project .property-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.single-project .property-attributes .attribute {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pd-text-mid);
}

.single-project .property-attributes .attribute-icon { display: inline-flex; opacity: 0.7; }
.single-project .property-attributes .attribute-icon svg { width: 15px; height: 15px; }

.single-project .attribute-label {
    color: var(--pd-text-mid);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.4;
}

.single-project .propertySwiper .swiper-pagination { bottom: 12px; }

.single-project .propertySwiper .swiper-pagination-bullet {
    width: 22px;
    height: 2px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.28);
    opacity: 1;
    transition: background-color var(--pd-fast);
}

.single-project .propertySwiper .swiper-pagination-bullet-active { background: var(--pd-gold); }

/* ==========================================================================
   11. KEY FEATURES
   Photograph as the section field, checklist held in a dark panel.
========================================================================== */
.single-project .pd-features {
    position: relative;
    height: auto;
    min-height: clamp(520px, 78vh, 860px);
    display: flex;
    align-items: center;
    padding-block: var(--pd-section-y);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.single-project .pd-features::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0.86) 80%);
}

.single-project .pd-features-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.single-project .features-overlay {
    width: min(660px, 100%);
    max-width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: clamp(30px, 3.4vw, 52px);
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-surface);
    background: rgba(17, 18, 20, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.single-project .features-title {
    margin: 0 0 28px;
    color: var(--pd-text);
    font-size: clamp(24px, 2.6vw, 38px);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.16;
}

.single-project .pd-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 32px;
}

.single-project .pd-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding-block: 13px;
    border-block-end: 1px solid var(--pd-line);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--pd-ease), transform 0.6s var(--pd-ease);
}

.single-project .features-overlay.is-visible .pd-feature-item {
    opacity: 1;
    transform: none;
}

.single-project .pd-feature-check {
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}
.single-project .pd-feature-check svg { width: 15px; height: 15px; }

.single-project .pd-feature-text {
    color: var(--pd-text-mid);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.55;
}

@media (min-width: 900px) {
    .single-project .pd-feature-list { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   12. GALLERY (bento) + LIGHTBOX
   Cell count always matches item count, so no empty tiles.
========================================================================== */
.single-project .pd-gallery {
    padding-block: var(--pd-section-y);
    background: var(--pd-ink);
}

.single-project .pd-gallery .pd-section-head { text-align: start; }

.single-project .pd-gallery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 19vw, 240px);
}

.single-project .pd-gallery-grid[data-count="1"] {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(320px, 56vh, 620px);
}
.single-project .pd-gallery-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(260px, 40vh, 460px);
}
.single-project .pd-gallery-grid[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(230px, 34vh, 420px);
}
.single-project .pd-gallery-grid[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(200px, 30vh, 380px);
}
/* 5 tiles: one 2x2 hero cell plus four singles fills a 4x2 grid exactly */
.single-project .pd-gallery-grid[data-count="5"] .pd-gallery-tile-0 {
    grid-column: span 2;
    grid-row: span 2;
}

.single-project .pd-gallery-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--pd-r-surface);
    background: var(--pd-ink-card);
    cursor: pointer;
    border: 0;
    padding: 0;
    width: 100%;
    display: block;
}

.single-project .pd-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--pd-ease);
}

.single-project .pd-gallery-tile:hover img,
.single-project .pd-gallery-tile:focus-visible img { transform: scale(1.06); }

.single-project .pd-gallery-tile:focus-visible {
    outline: 2px solid var(--pd-gold);
    outline-offset: 3px;
}

.single-project .pd-gallery-expand {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--pd-r-pill);
    background: rgba(11, 11, 12, 0.54);
    color: var(--pd-text);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color var(--pd-fast), border-color var(--pd-fast), color var(--pd-fast);
}

.single-project .pd-gallery-tile:hover .pd-gallery-expand,
.single-project .pd-gallery-tile:focus-visible .pd-gallery-expand {
    border-color: var(--pd-gold);
    background: var(--pd-gold);
    color: #0b0b0c;
}

.single-project .pd-gallery-caption {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    padding: 26px 18px 15px;
    color: var(--pd-text);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-align: start;
    background: linear-gradient(180deg, rgba(11, 11, 12, 0), rgba(11, 11, 12, 0.82));
}

.single-project .pd-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 11, 12, 0.66);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: var(--pd-text);
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background-color var(--pd-fast);
}
.single-project .pd-gallery-tile:hover .pd-gallery-more { background: rgba(11, 11, 12, 0.5); }

/* ---- Lightbox ---------------------------------------------------------- */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--pd-z-lightbox);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(72px, 8vh, 112px) clamp(72px, 8vw, 144px);
    background: rgba(8, 8, 9, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pd-lightbox.open { display: flex; }

.pd-lb-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: var(--pd-r-surface);
}

.pd-lb-close,
.pd-lb-arrow {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--pd-r-pill);
    background: rgba(255, 255, 255, 0.05);
    color: #f4f2ef;
    font-family: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--pd-fast), border-color var(--pd-fast), color var(--pd-fast);
}

.pd-lb-close:hover,
.pd-lb-arrow:hover,
.pd-lb-close:focus-visible,
.pd-lb-arrow:focus-visible {
    background: var(--pd-gold);
    border-color: var(--pd-gold);
    color: #0b0b0c;
}

.pd-lb-close { inset-block-start: 26px; inset-inline-end: 26px; }
.pd-lb-prev  { inset-inline-start: 26px; top: 50%; transform: translateY(-50%); }
.pd-lb-next  { inset-inline-end: 26px; top: 50%; transform: translateY(-50%); }

.pd-lb-caption {
    position: absolute;
    inset-block-end: 30px;
    inset-inline: 0;
    text-align: center;
    color: var(--pd-text-mid);
    font-size: 13.5px;
    line-height: 1.5;
    padding-inline: 90px;
}

.pd-lb-counter {
    position: absolute;
    inset-block-start: 30px;
    inset-inline-start: 30px;
    color: var(--pd-text-soft);
    font-size: 12px;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   13. LOCATION + 360 TOUR
   Rendered as a single 50/50 grid; the tour column is a play-card that
   opens the embed in a modal instead of loading a second iframe inline.
========================================================================== */
.single-project .pd-location { padding-block: var(--pd-section-y); background: var(--pd-ink); }

.single-project .pd-location-tour-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.single-project .pd-location-tour-grid--single { grid-template-columns: 1fr; }
.single-project .pd-location-tour-grid--single .pd-media-card { height: clamp(360px, 58vh, 640px); }

/* Columns here are half-width, so the shared full-section title scale (which
   grows with viewport width) reads oversized; use a smaller, tighter scale. */
.single-project .pd-location-tour-grid .pd-section-title {
    font-size: clamp(20px, 1.8vw, 28px);
}

.single-project .pd-location-tour-grid .pd-section-head {
    margin-bottom: clamp(20px, 2.5vw, 28px);
}

.single-project .pd-media-card {
    position: relative;
    width: 100%;
    height: clamp(340px, 46vh, 520px);
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-surface);
    background: var(--pd-ink-card);
}

.single-project .pd-media-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Styled JS map container (replaces the iframe when geocoding succeeds) */
.single-project .pd-media-card #pdLocationMap {
    width: 100%;
    height: 100%;
}

/* Map embeds render light; soften the seam without inverting the tile */
.single-project .pd-location .pd-media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.single-project .pd-location-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    color: var(--pd-text-soft);
    font-size: 14px;
    line-height: 1.6;
}
.single-project .pd-location-meta svg { flex: 0 0 16px; }

/* ---- Tour play-card ----------------------------------------------------- */
.single-project .pd-tour-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    border: 1px solid var(--pd-line);
    background: radial-gradient(120% 140% at 50% 50%, var(--pd-ink-raised) 0%, var(--pd-ink-card) 70%);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: border-color var(--pd-fast);
}

/* Scrim so the play button/label stay legible over any project photo */
.single-project .pd-tour-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 12, 0.32) 0%, rgba(11, 11, 12, 0.78) 100%);
}

.single-project .pd-tour-play,
.single-project .pd-tour-play-label { position: relative; z-index: 1; }

.single-project .pd-tour-card:hover,
.single-project .pd-tour-card:focus-visible { border-color: var(--pd-gold-line); }

.single-project .pd-tour-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: var(--pd-r-pill);
    background: var(--pd-gold);
    color: #0b0b0c;
    box-shadow: 0 0 0 9px rgba(200, 168, 112, 0.14), 0 14px 30px rgba(0, 0, 0, 0.24);
    transition: background-color var(--pd-fast), box-shadow var(--pd-fast), transform var(--pd-fast);
}
.single-project .pd-tour-play svg { transform: translateX(1px); }

.single-project .pd-tour-card:hover .pd-tour-play,
.single-project .pd-tour-card:focus-visible .pd-tour-play {
    background: var(--pd-gold-hover);
    box-shadow: 0 0 0 11px rgba(200, 168, 112, 0.20), 0 18px 34px rgba(0, 0, 0, 0.3);
    transform: scale(1.06);
}

.single-project .pd-tour-play-label {
    color: var(--pd-text-mid);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

/* ---- Tour modal ----------------------------------------------------------
   Same overlay language as .pd-lightbox, so .pd-lb-close can be reused as-is.
----------------------------------------------------------------------------- */
.pd-tour-modal {
    position: fixed;
    inset: 0;
    z-index: var(--pd-z-lightbox);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(8, 8, 9, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pd-tour-modal.open { display: flex; }

.pd-tour-modal-frame {
    position: relative;
    width: min(92vw, 1400px);
    aspect-ratio: 16 / 9;
    max-height: 86vh;
    overflow: hidden;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-r-surface);
    background: var(--pd-ink-card);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.pd-tour-modal-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.pd-tour-modal .pd-lb-close { z-index: 2; }

/* ==========================================================================
   14. STICKY LEAD CTA
========================================================================== */
.pd-sticky-cta {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: var(--pd-z-sticky);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-block-start: 1px solid var(--pd-line);
    background: rgba(11, 11, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(110%);
    transition: transform 0.42s var(--pd-ease);
}

.pd-sticky-cta.is-visible { transform: none; }

.single-project .pd-sticky-cta .enquiry-btn { width: 100%; max-width: 460px; }

@media (min-width: 992px) {
    /* Physical left on purpose. The theme's WhatsApp, phone and accessibility
       widgets are pinned to the physical right in both directions, so a
       logical inset would collide with them under RTL. */
    .pd-sticky-cta {
        left: 40px;
        right: auto;
        inset-block-end: 34px;
        justify-content: flex-start;
        padding: 0;
        border: 0;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: translateY(180%);
    }
    .single-project .pd-sticky-cta .enquiry-btn {
        width: auto;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    }
}

/* ==========================================================================
   15. RESPONSIVE
========================================================================== */
@media (max-width: 1199px) {
    .single-project .pd-register-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }
    .single-project .pd-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .single-project .pd-stat {
        padding-block: 26px;
        border-inline-start: 0;
        border-block-start: 1px solid var(--pd-line);
    }
    .single-project .pd-stat:nth-child(-n + 2) { border-block-start: 0; }
    .single-project .pd-stat:nth-child(even) { border-inline-start: 1px solid var(--pd-line); }
}

@media (max-width: 991px) {
    .single-project .pd-location-tour-grid { grid-template-columns: 1fr; gap: 40px; }
    .single-project .pd-hero { min-height: 560px; }
    .single-project .pd-featured-media { aspect-ratio: 16 / 10; }
    .single-project .pd-featured-panel {
        margin-top: clamp(-56px, -5vw, -32px);
        flex-direction: column;
        align-items: flex-start;
    }
    .single-project .pd-features-inner { justify-content: center; }
    .single-project .features-overlay { width: 100%; }
    .single-project .pd-gallery-grid,
    .single-project .pd-gallery-grid[data-count="3"],
    .single-project .pd-gallery-grid[data-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(140px, 26vw, 220px);
    }
    .single-project .pd-gallery-grid[data-count="5"] .pd-gallery-tile-0 {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 767px) {
    .single-project .pd-hero { min-height: 520px; }
    .single-project .pd-hero-title { max-width: 100%; }
    .single-project .pd-hero .hero-actions { flex-direction: column; align-items: stretch; }
    .single-project .pd-hero .hero-actions > a { width: 100%; }

    .single-project .pd-stats-grid { grid-template-columns: minmax(0, 1fr); }
    .single-project .pd-stat {
        border-inline-start: 0 !important;
        border-block-start: 1px solid var(--pd-line) !important;
    }
    .single-project .pd-stat:first-child { border-block-start: 0 !important; }

    .single-project .pd-featured-panel { width: calc(100% - 32px); }
    .single-project .pd-featured-panel .property-actions { width: 100%; }
    .single-project .pd-featured-panel .property-actions .enquiry-btn { flex: 1 1 auto; }

    .single-project .pd-register-card { padding: 26px 20px; }
    .single-project .pd-form .field.row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .single-project .pd-form .field.row > * { margin-bottom: 16px; }

    .single-project .pd-gallery-grid,
    .single-project .pd-gallery-grid[data-count="2"],
    .single-project .pd-gallery-grid[data-count="3"],
    .single-project .pd-gallery-grid[data-count="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(120px, 32vw, 190px);
    }

    .pd-lb-close, .pd-lb-arrow { width: 40px; height: 40px; font-size: 20px; }
    .pd-lb-close { inset-block-start: 16px; inset-inline-end: 16px; }
    .pd-lb-prev { inset-inline-start: 12px; }
    .pd-lb-next { inset-inline-end: 12px; }
    .pd-lb-caption { padding-inline: 66px; inset-block-end: 20px; }
    .pd-lb-counter { inset-block-start: 20px; inset-inline-start: 18px; }

    .single-project .pd-media-card { height: clamp(280px, 46vh, 420px); }
    .single-project .pd-tour-play { width: 60px; height: 60px; flex-basis: 60px; }

    .pd-tour-modal { padding: 0; }
    .pd-tour-modal-frame {
        width: 100%;
        height: 100dvh;
        max-height: none;
        aspect-ratio: auto;
        border: 0;
        border-radius: 0;
    }

    .rtl .single-project .pd-form .field .intl-tel-input .country-list,
    [dir="rtl"] .single-project .pd-form .field .intl-tel-input .country-list {
        inset-inline: auto;
        left: auto;
        right: 0;
        max-width: calc(100vw - 24px);
    }

    .rtl .single-project .pd-form .field .intl-tel-input input.wpcf7-form-control,
    [dir="rtl"] .single-project .pd-form .field .intl-tel-input input.wpcf7-form-control {
        padding-left: 16px !important;
        padding-right: 120px !important;
    }
}

/* ==========================================================================
   16. REDUCED MOTION
   MOTION_INTENSITY 6, so every animation collapses to a static end state.
========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .single-project .pd-hero-img { animation: none; transform: none; }
    .single-project .pd-hero-card > * { opacity: 1; animation: none; }
    .pd-reveal,
    .single-project .pd-feature-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .single-project .pd-featured-media:hover .pd-featured-img,
    .single-project .property-listing-card:hover img,
    .single-project .pd-gallery-tile:hover img { transform: none; }
    .single-project .property-listing-card:hover { transform: none; }
    .pd-sticky-cta { transition: none; }
    .single-project *,
    .single-project *::before,
    .single-project *::after { animation-duration: 0.01ms !important; }
}

/* Transparency fallback for the glass surfaces */
@media (prefers-reduced-transparency: reduce) {
    .single-project .features-overlay,
    .single-project .pd-badge,
    .single-project .brochure-btn,
    .single-project .whatsapp-btn,
    .single-project .pro-status,
    .pd-sticky-cta {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--pd-ink-card);
    }
}

/* ==========================================================================
   17. DIRECTION-SPECIFIC CORRECTIONS
   Logical properties cover layout; these handle the few asset-level flips.
========================================================================== */
.rtl .single-project .pd-hero-logo,
[dir="rtl"] .single-project .pd-hero-logo { object-position: right center; }

.rtl .single-project .pd-hero-divider,
[dir="rtl"] .single-project .pd-hero-divider {
    background: linear-gradient(270deg, var(--pd-gold), rgba(200, 168, 112, 0));
}

.rtl .single-project .pd-features::before,
[dir="rtl"] .single-project .pd-features::before {
    background: linear-gradient(270deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0.86) 62%);
}

.rtl .single-project .pd-register-bg::after,
[dir="rtl"] .single-project .pd-register-bg::after {
    background: linear-gradient(245deg, rgba(11, 11, 12, 0.74) 0%, rgba(11, 11, 12, 0.9) 55%, rgba(11, 11, 12, 0.94) 100%);
}

.rtl .single-project .pd-features-inner,
[dir="rtl"] .single-project .pd-features-inner { justify-content: flex-start; }

.rtl .single-project .enquiry-btn,
.rtl .single-project .brochure-btn,
.rtl .single-project .pd-btn,
.rtl .single-project .pd-form input.wpcf7-submit,
.rtl .single-project .pd-badge,
.rtl .single-project .pd-tour-play-label,
[dir="rtl"] .single-project .enquiry-btn,
[dir="rtl"] .single-project .brochure-btn,
[dir="rtl"] .single-project .pd-btn,
[dir="rtl"] .single-project .pd-form input.wpcf7-submit,
[dir="rtl"] .single-project .pd-badge,
[dir="rtl"] .single-project .pd-tour-play-label {
    letter-spacing: normal;
    text-transform: none;
}

.rtl .pd-lb-prev, [dir="rtl"] .pd-lb-prev { transform: translateY(-50%) rotate(180deg); }
.rtl .pd-lb-next, [dir="rtl"] .pd-lb-next { transform: translateY(-50%) rotate(180deg); }
