/* =========================================================================
   UB Heritage — Project page styles  (updated to match Figma)
   - No radius on images / media / panels (only pills, chips, buttons)
   - Dark headings on light sections, white headings on dark sections
   - Experiences chips = auto infinite marquee
   - Hero media = full-bleed, scroll-zoom (scale driven by project.js)
   ========================================================================= */

.project-page {
    --pp-gold: #d2ab67;
    --pp-black: #000000;
    --pp-white: #ffffff;
    --pp-dark: #1a1a1a;
    /* experiences background */
    --pp-cream: #f5f0e7;
    --pp-border: #cacaca;
    --pp-muted: #7e7e7e;
    --pp-text: #1a1a1a;
    /* headings/body on light */
    --pp-text-soft: #3a3a3a;
    --pp-on-dark: #ffffff;
    --pp-on-dark-soft: rgba(255, 255, 255, .72);

    --pp-font-head: "IvyBodoni", "IvyMode", Georgia, "Times New Roman", serif;
    --pp-font-body: "Avenir", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

    --pp-content: 100%;
    --pp-gutter: 50px;
    --pp-header: 100px;

    font-family: var(--pp-font-body);
    color: var(--pp-text);
    overflow-x: hidden;
}

.project-page *,
.project-page *::before,
.project-page *::after {
    box-sizing: border-box;
}

.project-page img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content wrapper */
.pp-wrap {
    width: 100%;
    max-width: var(--pp-content);
    margin-inline: auto;
    padding-inline: var(--pp-gutter);
}

/* Italic-serif headings — DARK by default (light sections) */
.pp-section-title,
.pp-intro__title,
.pp-exp__heading,
.pp-cta__title {
    font-family: var(--pp-font-head);
    font-style: italic;
    font-weight: 400;
    margin: 0;
    color: var(--pp-black);
}

.pp-section-title {
    font-family: var(--pp-font-head);
    font-weight: 400;
    font-style: italic;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 48px;
}

/* Outline pill button */
.pp-btn {
    /* display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 40px;
    border: 1px solid var(--pp-white);
    border-radius: 999px;
    background: transparent;
    color: var(--pp-white);
    font-family: var(--pp-font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease; */
}

.pp-btn:hover {
    background: var(--pp-gold);
    color: var(--pp-white);
}

.pp-btn--light {
    border-color: var(--pp-white);
    color: var(--pp-white);
}

.pp-btn--light:hover {
    background: var(--pp-white);
    color: var(--pp-text);
}

/* =========================================================================
   1) HERO / BANNER
   ========================================================================= */
.pp-hero {
    padding-top: calc(var(--pp-header) + 46px);
    padding-bottom: 48px;
}

.pp-hero__head {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pp-hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: Italic;
    font-size: 62px;
    line-height: 62px;
    letter-spacing: 0px;
    text-align: center;
}

.pp-hero__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
    text-align: center;
    color: var(--pp-black);
}

/* Spec pills */
.pp-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

.pp-spec {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 24px 7px 7px;
    border: 1px solid var(--pp-border);
    border-radius: 999px;
    background: var(--pp-white);
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
}

/* icon only shows if an image exists (no empty circle) */
.pp-spec__icon {
    flex: 0 0 auto;
    width: 53px;
    height: 53px;
    border-radius: 50%;
    overflow: hidden;
}

.pp-spec__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pp-spec:not(:has(.pp-spec__icon)) {
    padding-left: 24px;
}

.pp-spec__text {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
}

.pp-spec__label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: var(--pp-muted);
}

.pp-spec__value {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
    color: var(--pp-black);
}

/* Full-bleed hero media — NO radius. Scroll-zoom via project.js. */
.pp-hero__media {
    width: 100%;
    aspect-ratio: 1920 / 1182;
    overflow: hidden;
    transform: scale(.78);
    /* start zoomed-out; JS scrubs to scale(1) */
    transform-origin: center center;
    will-change: transform;
}

.pp-hero__video,
.pp-hero__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================================================
   1.5) GET IN TOUCH — CSS background image + dark form panel (LEFT)
   ========================================================================= */
.pp-touch {
    position: relative;
    width: 100%;
    height: 790px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: var(--pp-touch-bg);
    background-size: cover;
    /* the photo now lives here */
    background-position: center;
    background-repeat: no-repeat;
}

.pp-touch__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--pp-content);
    margin-inline: auto;
    padding-inline: var(--pp-gutter);
    display: flex;
    justify-content: flex-start;
}

.pp-touch__panel {
    width: 100%;
    max-width: 620px;
    background: var(--pp-black);
    padding: clamp(32px, 3vw, 56px) clamp(28px, 3vw, 56px);
}

.pp-touch__heading {
    font-family: var(--pp-font-head);
    font-style: italic;
    font-weight: 400;
    color: var(--pp-gold);
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.2;
    margin: 0 0 clamp(22px, 2vw, 34px);
}

/* ---- CF7 form inside the dark panel ---- */
.pp-touch__form .wpcf7-form {
    width: 100%;
}

/* Row helpers — the CF7 template wraps fields in these (see notes). */
.pp-touch__form .ubh-cf7-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 32px;
}

.pp-touch__form .ubh-cf7-field {
    flex: 1 1 200px;
    margin-bottom: 24px;
    position: relative;
}

.pp-touch__form .ubh-cf7-field--full {
    flex: 1 1 100%;
}

.pp-touch__form label {
    display: block;
    font-family: var(--pp-font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--pp-white);
    margin-bottom: 10px;
}

.pp-touch__form input[type="text"],
.pp-touch__form input[type="tel"],
.pp-touch__form input[type="email"],
.pp-touch__form input[type="number"],
.pp-touch__form select,
.pp-touch__form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--pp-white);
    font-family: var(--pp-font-body);
    font-size: 15px;
    padding: 0 0 12px;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.pp-touch__form textarea {
    resize: none;
    min-height: 30px;
}

.pp-touch__form input::placeholder,
.pp-touch__form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pp-touch__form input:focus,
.pp-touch__form select:focus,
.pp-touch__form textarea:focus {
    border-bottom-color: var(--pp-gold);
}

.pp-touch__form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%23ffffff' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px;
    padding-right: 26px;
    cursor: pointer;
}

.pp-touch__form select option {
    color: #1c1b20;
}

/* Submit — centered gold outline pill (covers both the wrapper class
   and CF7's default <p> output). */
.pp-touch__form .ubh-cf7-submit-row {
    display: flex;
    justify-content: center;
    margin-top: clamp(20px, 2vw, 32px);
}

.pp-touch__form input[type="submit"] {
    width: auto;
    background: transparent;
    border: 1px solid var(--pp-gold);
    color: var(--pp-gold);
    font-family: var(--pp-font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 14px 48px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.pp-touch__form input[type="submit"]:hover {
    background: var(--pp-gold);
    color: var(--pp-black);
}

/* Fallback: if the form has no wrapper row and CF7 outputs bare <p>,
   still center the submit button. */
.pp-touch__form p:has(> input[type="submit"]) {
    text-align: center;
    margin-top: clamp(20px, 2vw, 32px);
}

.pp-touch__form .wpcf7-spinner {
    display: none;
}

.pp-touch__form .wpcf7-not-valid-tip {
    color: #e2a34c;
    font-size: 12px;
    margin-top: 6px;
}

.pp-touch__form .wpcf7-response-output {
    color: var(--pp-white);
    border-color: rgba(255, 255, 255, 0.35) !important;
    font-family: var(--pp-font-body);
    font-size: 13px;
    margin-top: 20px;
    text-align: center;
}

/* =========================================================================
   2) INTRO  (image ~1108 : text ~523)
   ========================================================================= */
.pp-intro {
    padding: 80px 0 120px;
}

.pp-intro__grid {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    gap: 5%;
}

.pp-intro__media {
    max-width: 60%;
    width: 100%;
    height: 817px;
}

.pp-intro__content {
    max-width: 28%;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 48px;
}

.pp-intro__title {
    font-size: 48px;
    line-height: 60px;
    letter-spacing: 0px;
}

.pp-intro__body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
}

.pp-intro__body p {
    font-family: var(--pp-font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0px;
}

.pp-intro__points {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.pp-intro__points li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--pp-text-soft);
}

.pp-intro__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pp-gold);
}

/* =========================================================================
   3) EXPERIENCES (dark, full-bleed)
   ========================================================================= */
.pp-exp {
    background: var(--pp-dark);
    padding: 100px 0 120px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.pp-exp__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: Italic;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 0px;
    text-align: center;
    color: var(--color-gold);
}

/* Chip strip — auto infinite marquee */
.pp-exp__tabs {
    overflow: hidden;
    /* margin-bottom: 80px; */
    /* -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); */
}

.pp-exp__tabs-track {
    display: flex;
    /* gap: 16px; */
    width: max-content;
    animation: pp-marquee var(--pp-marquee-duration, 34s) linear infinite;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.pp-exp__tabs:hover .pp-exp__tabs-track {
    animation-play-state: paused;
}

@keyframes pp-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-exp__tabs-track {
        animation: none;
    }

    .pp-exp__tabs {
        overflow-x: auto;
    }
}

.pp-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    border-left: 1px solid #D2AB67;
    flex-direction: row;
}

.pp-chip__icon {
    width: 75px;
    height: 75px;
    flex: 0 0 auto;
}

.pp-chip__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pp-chip__label {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: Italic;
    font-size: 36px;
    line-height: 120%;
    letter-spacing: 0%;
    color: var(--pp-white);
}

/* Alternating rows — image ~1205 : text ~523, NO radius */
.pp-exp__row {
    display: grid;
    gap: 80px;
    align-items: center;
    /*     margin-bottom: clamp(64px, 7vw, 110px); */
}

/* .pp-exp__row:last-child {
    margin-bottom: 0;
} */

/* .pp-exp__row {
    margin-bottom: 100px;
} */

.pp-exp__row--media-right {
    grid-template-columns: 1fr 2.3fr;
}

.pp-exp__row--media-right .pp-exp__content {
    order: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.pp-exp__row--media-right .pp-exp__media {
    order: 2;
}

.pp-exp__row--media-left {
    grid-template-columns: 2.3fr 1fr;
}

.pp-exp__row--media-left .pp-exp__media {
    order: 1;
}

.pp-exp__row--media-left .pp-exp__content {
    order: 2;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.pp-exp__media {
    overflow: hidden;
}

.pp-exp__img {
    width: 100%;
    aspect-ratio: 1205 / 826;
    object-fit: cover;
}

.pp-exp__heading {
    font-weight: 400;
    font-style: Italic;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 0px;
    color: var(--pp-gold);
}

.pp-exp__text {
    max-width: 460px;
    margin: 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
    color: var(--pp-white);
}

/* =========================================================================
   4) LOCATION / MAP  (no radius, no placeholder bg)
   ========================================================================= */
.pp-map {
    padding-block: clamp(16px, 4vw, 60px);
}

.pp-map__title {
    margin-bottom: 44px;
}

.pp-map__frame {
    overflow: hidden;
    aspect-ratio: 1820 / 817;
}

.pp-map__frame iframe,
.pp-map__img {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.pp-map__cta {
    text-align: center;
    margin-top: 44px;
}

.pp-map__cta .pp-btn {
    font-family: var(--font-list);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    border: 1px solid var(--pp-black);
    border-radius: 50px;
    padding: 14px 28px;
    background: transparent;
    color: var(--pp-black);
    transition: background-color .32s ease, color .32s ease, border-color .32s ease;
}

.pp-map__cta .pp-btn:hover {
    background: var(--pp-black);
    color: var(--pp-white);
}

/* =========================================================================
   3.5) FLOOR PLANS  (image left, Villa/Size selects + download right)
   ========================================================================= */
.pp-plans {
    padding-block: clamp(40px, 6vw, 100px);
}

.pp-plans__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(32px, 6%, 96px);
    align-items: center;
}

.pp-plans__media {
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--pp-cream);
}

/* Beat the global `.project-page img { object-fit: cover }` — plans need
   the whole drawing visible, not cropped. */
.pp-plans .pp-plans__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .2s ease;
}

.pp-plans__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pp-plans__title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 4px;
}

.pp-plans__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-plans__label {
    font-family: var(--pp-font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.7px;
    color: var(--pp-muted);
}

.pp-plans__select-wrap {
    position: relative;
    border-bottom: 1px solid var(--pp-border);
}

.pp-plans__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0;
    background: transparent;
    padding: 6px 34px 12px 0;
    font-family: var(--pp-font-head);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.3;
    color: var(--pp-black);
    cursor: pointer;
    outline: none;
}

/* CSS chevron (points down) */
.pp-plans__select-wrap::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 42%;
    width: 11px;
    height: 11px;
    transform: translateY(-50%) rotate(45deg);
    border-right: 1.5px solid var(--pp-muted);
    border-bottom: 1.5px solid var(--pp-muted);
    pointer-events: none;
}

.pp-plans__cta {
    margin-top: 4px;
}

.pp-plans__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pp-font-body);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--pp-black);
    border-radius: 50px;
    padding: 14px 32px;
    background: transparent;
    color: var(--pp-black);
    text-decoration: none;
    transition: background-color .32s ease, color .32s ease, border-color .32s ease;
}

.pp-plans__btn:hover {
    background: var(--pp-black);
    color: var(--pp-white);
    border-color: var(--pp-black);
}

/* =========================================================================
   5) GALLERY (horizontal scroll, no radius)
   ========================================================================= */
.pp-gallery {
    padding-block: clamp(32px, 4vw, 100px);
}

.pp-gallery__title {
    margin-bottom: 44px;
}

/* Gallery tabs — italic serif, active underlined (Figma) */
.pp-gallery__tabs {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 36px;
    margin-bottom: 40px;
}

.pp-gallery__tab {
    background: none;
    border: 0;
    padding: 0 0 4px;
    cursor: pointer;
    font-family: var(--pp-font-head);
    font-style: italic;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    color: var(--pp-muted);
    border-bottom: 1px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}

.pp-gallery__tab:hover {
    color: var(--pp-black);
}

.pp-gallery__tab.is-active {
    color: var(--pp-black);
    border-bottom-color: var(--pp-black);
}

.pp-gallery__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    /* touch = native horizontal scroll */
    cursor: grab;
    scrollbar-width: none;
    /* no scrollbar / no dots / no arrows */
}

.pp-gallery__viewport.is-dragging {
    cursor: grabbing;
}

.pp-gallery__viewport::-webkit-scrollbar {
    display: none
}

.pp-gallery__viewport::-webkit-scrollbar-thumb {
    background: var(--pp-border);
    border-radius: 999px;
}

.pp-gallery__track {
    display: flex;
    gap: 6px;
    width: max-content;
}

.pp-gallery__item {
    margin: 0;
    flex: 0 0 auto;
}

/* Height fixed (Figma 480). Width auto from each image's own ratio.
   Stronger selector so it beats `.project-page img { height:817px }`. */
.pp-gallery__viewport .pp-gallery__img {
    height: 480px;
    width: auto;
    max-width: none;
    /* beat the global max-width:100% */
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* =========================================================================
   6) CONSTRUCTION PROGRESS  (light, no card bg, no radius on panel)
   ========================================================================= */
.pp-progress {
    padding-block: clamp(16px, 2.5vw, 32px);
}

.pp-progress__inner {
    background: var(--pp-black);
    padding: 100px 60px;
}

.pp-progress__title {
    margin-bottom: 48px;
    color: var(--pp-white);
}

.pp-progress__bar {
    max-width: 1580px;
    margin-inline: auto;
}

.pp-progress__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pp-progress__label {
    color: var(--pp-white);
    font-size: 1.0625rem;
}

.pp-progress__track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #FFFFFF;
    overflow: hidden;
}

.pp-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    height: 100%;
    border-radius: 999px;
    background: var(--pp-gold);
    width: 0;
    transition: width 1.1s cubic-bezier(.22, .61, .36, 1);
}

.pp-progress__cta {
    text-align: center;
    margin-top: 48px;
}

.pp-progress__cta .pp-btn {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    border: 1px solid var(--pp-white);
    border-radius: 50px;
    padding: 14px 28px;
    text-transform: uppercase;
    background: transparent;
    color: var(--pp-white);
    transition: background-color .32s ease, color .32s ease, border-color .32s ease;
}

.pp-progress__cta .pp-btn:hover {
    background: var(--pp-gold);
    color: var(--pp-white);
    border-color: var(--pp-gold);
}

/* =========================================================================
   7) CTA BANNER (dark image, content width, no radius)
   ========================================================================= */
.pp-cta {
    padding-block: clamp(32px, 4vw, 100px);
}

.pp-cta__banner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1820 / 684;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pp-dark);
    background-size: cover;
    background-position: center;
}

.pp-cta__banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .55));
}

.pp-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: 120px;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
}

.pp-cta__title {
    color: var(--pp-on-dark);
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    margin-bottom: 30px;
}

.pp-cta__inner .pp-btn {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    border: 1px solid var(--pp-white);
    border-radius: 50px;
    padding: 14px 28px;
    text-transform: uppercase;
    background: transparent;
    color: var(--pp-white);
    transition: background-color .32s ease, color .32s ease, border-color .32s ease;
}

.pp-cta__inner .pp-btn:hover {
    background: var(--pp-gold);
    color: var(--pp-white);
    border-color: var(--pp-gold);
}

/* ===== Brochure popup ===== */
.pp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pp-modal[hidden] {
    display: none;
}

.pp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.pp-modal__box {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: clamp(28px, 4vw, 56px);
    border-top: 3px solid var(--pp-gold);
}

.pp-modal__title {
    font-family: var(--pp-font-head);
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    margin: 0 0 28px;
    color: var(--pp-text);
}

.pp-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--pp-border);
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--pp-text);
}

.pp-modal__close:hover {
    background: var(--pp-text);
    color: #fff;
}

/* CF7 fields */
.brochure-form__row {
    margin: 0 0 18px;
}

.brochure-form input,
.brochure-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--pp-border);
    background: #fff;
    font-family: var(--pp-font-body);
    font-size: 1rem;
    color: var(--pp-text);
}

.brochure-form .wpcf7-submit {
    width: 100%;
    margin-top: 8px;
    padding: 15px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--pp-gold);
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
}

.brochure-form .wpcf7-submit:hover {
    opacity: .9;
}

/* Country-code select — narrow fixed column like the Figma */
.pp-touch__form .ubh-cf7-field--code {
    flex: 0 0 190px;
}

/* Submit sits LEFT in the design, not centered */
.pp-touch__form .ubh-cf7-submit-row {
    justify-content: flex-start;
}

.pp-touch__form p:has(> input[type="submit"]) {
    text-align: left;
}

/* ---- Figma-style country select + headless intl-tel-input ---- */
.pp-touch__form .ubh-cf7-field--code {
    flex: 0 0 190px;
}

/* Library runs invisible — kill any leftover chrome, input stays plain */
.pp-touch__form .iti {
    width: 100%;
    display: block;
}

.pp-touch__form .iti__flag-container {
    display: none;
}

.pp-touch__form .iti input[type="tel"] {
    padding-left: 0;
    padding-right: 0;
}

.pp-touch__form {
    display: block;
}


.pp-touch__form .iti__flag-container,
.pp-touch__form .iti__country-container,
.ubh-tel-error {
    display: none;
}

/* ===== Floor Plan Inline Zoom ===== */
.pp-plans__media {
    position: relative;
    overflow: hidden;
    /* the image cannot overflow its div */
    touch-action: none;
    /* for pinch + drag */
}

.pp-plans__media .pp-fp-zoomable {
    display: block;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
    transition: transform 0.18s ease;
}

.pp-plans__media.is-dragging .pp-fp-zoomable {
    transition: none;
}

.pp-plans__media.is-zoomed .pp-fp-zoomable {
    cursor: grab;
}

.pp-plans__media.is-dragging .pp-fp-zoomable {
    cursor: grabbing;
}

/* Zoom controls — div ke corner me */
.ppfp-ctr {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.ppfp-ctr button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.ppfp-ctr button:hover {
    background: #fff;
}

.ppfp-ctr button[data-z="reset"] {
    font-size: 12px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1440px) {
    .pp-intro__media {
        max-width: 50%;
        height: 768px;
    }

    .pp-intro__content {
        max-width: 40%;
        gap: 32px;
    }

    .pp-intro__title {
        font-size: 40px;
        line-height: 48px;
    }

    .pp-exp {
        padding: 80px 0 80px;
        gap: 80px;
    }
}

@media (max-width: 1024px) {
    .project-page {
        --pp-gutter: 24px;
    }

    .pp-hero {
        padding-top: calc(var(--pp-header) + 24px);
    }

    .pp-hero__media {
        transform: none !important;
        aspect-ratio: 4 / 3;
    }

    .pp-hero__title {
        font-size: 48px;
        line-height: 48px;
    }

    /* ===== Spec pills → horizontal slider on small screens ===== */
    .pp-hero .pp-specs {
        align-self: stretch;
        /* span full width inside the centered head */
        width: 100%;
        flex-wrap: nowrap;
        /* one row, no stacking */
        justify-content: flex-start;
        /* start at Configuration */
        overflow-x: auto;
        /* swipe to reveal the rest */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        /* no scrollbar */
        gap: 16px;
        margin: 0;
    }

    .pp-hero .pp-specs::-webkit-scrollbar {
        display: none;
    }

    .pp-hero .pp-spec {
        flex: 0 0 auto;
        /* natural width, never shrink → next pill peeks */
        scroll-snap-align: start;
    }

    .pp-hero .pp-spec__value {
        font-size: 16px;
        line-height: 20px;
        white-space: nowrap;
        /* keep each pill on one line */
    }

    .pp-spec__icon {
        width: 48px;
        height: 48px;
    }

    .pp-spec__label {
        font-size: 12px;
        line-height: 20px;
    }

    .pp-touch {
        height: 768px;
        overflow: hidden;
        background-size: cover;
        background-position: center;
        padding: 16px;
        /* image reveals in this bottom strip */
    }

    .pp-touch__container {
        padding-inline: 0;
        display: block;
    }

    .pp-touch__panel {
        max-width: 60%;
        width: 100%;
    }

    .pp-touch__heading {
        margin: 0 0 12px 0;
    }

    .pp-touch__form .ubh-cf7-row {
        flex-direction: column;
        gap: 0;
    }

    /* India(+91) + Mobile stack */

    .pp-touch__form input[type="text"],
    .pp-touch__form input[type="tel"],
    .pp-touch__form input[type="email"],
    .pp-touch__form input[type="number"],
    .pp-touch__form select,
    .pp-touch__form textarea {
        font-size: 14px;
        padding: 0 0 8px;
    }

    .pp-touch__form .ubh-cf7-field {
        flex: 1 1 80px;
        margin-bottom: 8px;
    }

    .pp-touch__form .ubh-cf7-submit-row {
        margin: 0 !important;
    }

    .pp-touch__form input[type="submit"] {
        font-size: 12px;
        letter-spacing: .8px;
        padding: 10px 32px;
    }

    .pp-intro {
        padding: 60px 0 80px;
    }

    .pp-intro__title {
        font-size: 32px;
        line-height: 40px;
    }

    .pp-exp {
        padding: 60px 0 60px;
        gap: 60px;
    }

    .pp-exp__title {
        font-size: 40px;
        line-height: 40px;
    }

    .pp-exp__row,
    .pp-exp__row--media-left,
    .pp-exp__row--media-right {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pp-exp__row .pp-exp__media {
        order: 1 !important;
    }

    .pp-exp__row .pp-exp__content {
        order: 2 !important;
        gap: 16px;
    }

    .pp-exp__heading {
        font-size: 40px;
        line-height: 40px;
    }

    .pp-exp__text {
        max-width: none;
    }

    .pp-map__frame {
        aspect-ratio: 4 / 3;
    }

    .pp-plans__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pp-plans__content {
        gap: 28px;
    }

    .pp-modal {
        padding: 14px;
    }

    .pp-gallery__tabs {
        gap: 20px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }

    .pp-gallery__tab {
        font-size: 20px;
    }

    .pp-gallery__viewport .pp-gallery__img {
        height: 360px;
        width: 38vw;
        /* fixed width forces the peek */
        object-fit: cover;
    }

    .pp-cta__banner {
        aspect-ratio: auto;
        min-height: 340px;
    }

    .pp-section-title {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 40px;
}
}

@media (max-width: 768px) {
    .pp-specs {
        gap: 12px;
    }

    .pp-touch {
        background-image: var(--pp-touch-bg-mobile);
        align-items: flex-start;
    }

    .pp-intro {
        padding: 48px 0 48px;
    }

    .pp-intro__grid {
        gap: 32px;
    }

    .pp-touch__panel {
        max-width: 100%;
    }

    .pp-intro__media,
    .pp-intro__content {
        max-width: 100%;
        height: 100%;
        gap: 24px;
    }

    .pp-exp {
        padding: 48px 0 48px;
        gap: 48px;
    }

    .pp-exp__title,
    .pp-exp__heading {
        font-size: 32px;
        line-height: 32px;
        margin: 0;
    }

    .pp-exp__text {
        font-size: 16px;
        line-height: 20px;
    }

    .pp-wrap {
        padding-inline: 16px;
    }

    .pp-exp__row,
    .pp-exp__row--media-left,
    .pp-exp__row--media-right {
        gap: 24px;
    }

    .pp-section-title {
        font-size: 32px;
        line-height: 32px;
        margin-bottom: 32px;
    }
}

@media (max-width: 600px) {
    .pp-wrap {
        padding-inline: 16px;
    }

    .pp-hero {
        padding-top: 32px;
    }

    .project-page img {
        height: 100%;
    }

    .pp-hero__title {
        font-size: 40px;
        line-height: 40px;
    }

    .pp-specs {
        gap: 12px;
        margin: 0;
    }

    .pp-spec__icon {
        width: 40px;
        height: 40px;
    }

    .pp-spec__label {
        font-size: 11px;
        line-height: 18px;
    }

    .pp-spec__value {
        font-size: 14px;
        line-height: 18px;
    }

    .pp-hero__head {
        padding: 16px;
    }

    .pp-hero__subtitle {
        font-size: 16px;
        line-height: 24px;
    }

    .pp-touch {
        height: 600px;
    }

    .pp-touch__panel {
        max-width: 100%;
        width: 100%;
        padding: 24px 16px;
    }

    .pp-touch__form .ubh-cf7-field {
        flex: 1 1 40px;
        margin-bottom: 8px;
    }

    .pp-intro {
        padding: 32px 0 32px;
    }

    .pp-intro__grid {
        gap: 24px;
    }

    .pp-intro__content {
        gap: 16px;
    }

    .pp-exp__tabs-track {
        gap: 12px;
    }

    .pp-chip {
        padding: 0 8px;
        gap: 8px;
    }

    .pp-chip__icon {
        width: 50px;
        height: 50px;
    }

    .pp-chip__label {
        font-size: 20px;
        line-height: 120%;
    }

    .pp-ppprogre-inner {
        padding: 48px 24px;
    }

    .pp-btn {
        width: 100%;
    }

    .pp-gallery__viewport .pp-gallery__img {
        height: 240px;
        width: 66vw;
        object-fit: cover;
    }

    /* Floor plans — everything fits in ONE viewport, no inner scroll.
       Image flexes to fill the leftover space between the two selects
       and the button; the fixed mobile header (60px) is subtracted. */
    .pp-plans {
        padding-block: 0;
    }

    .pp-plans__grid {
        display: flex;
        flex-direction: column;
        min-height: calc(100svh - var(--header-h-mobile));
        gap: 16px;
        padding-block: 16px;
        justify-content: center;
    }

    .pp-plans__media {
        flex: 1 1 auto;
        min-height: 0;
        aspect-ratio: auto;
        background: transparent;
    }

    .pp-plans__content {
        flex: 0 0 auto;
        gap: 18px;
    }

    .pp-plans__title {
        font-size: 26px;
        margin-bottom: 0;
    }

    .pp-plans__select {
        font-size: 1.25rem;
        padding-bottom: 8px;
    }

    .pp-plans__btn {
        width: 100%;
    }

    .pp-exp {
        padding: 32px 0 32px;
        gap: 32px;
    }
}

@media (max-width: 425px) {
    .pp-hero__title {
        font-size: 32px;
        line-height: 32px;
    }

    .pp-hero__subtitle {
        font-size: 15px;
        line-height: 20px;
    }

    .pp-spec__label {
        font-size: 10px;
        line-height: 16px;
    }

    .pp-spec__value {
        font-size: 12px;
        line-height: 16px;
    }

    .pp-touch__heading {
        margin: 0 0 8px 0;
        font-size: 20px;
    }

    .pp-touch__form .ubh-cf7-field {
        flex: 1 1 32px;
    }

    .pp-touch__form input[type="text"],
    .pp-touch__form input[type="tel"],
    .pp-touch__form input[type="email"],
    .pp-touch__form input[type="number"],
    .pp-touch__form select,
    .pp-touch__form textarea {
        font-size: 12px;
        line-height: 14px;
        padding: 0 0 8px;
    }

    .pp-touch__form input[type="submit"] {
        font-size: 12px;
        letter-spacing: .5px;
        padding: 8px 24px;
    }

    .pp-intro {
        padding: 24px 0 24px;
    }

    .pp-intro__grid {
        gap: 20px;
    }

    .pp-intro__title {
        font-size: 24px;
        line-height: 32px;
    }

    .pp-intro__body {
        gap: 8px;
    }

    .pp-intro__body p {
        font-size: 16px;
        line-height: 24px;
    }

    .pp-intro__points li {
        padding-left: 16px;
        margin-bottom: 6px;
        font-size: 16px;
        line-height: 24px;
    }

    .pp-exp {
        gap: 24px;
    }

    .pp-exp__title,
    .pp-exp__heading {
        font-size: 24px;
        line-height: 24px;
    }

    .pp-section-title {
        font-size: 24px;
        line-height: 24px;
        margin-bottom: 24px;
    }
}