/* =========================================================
   Project Details — immersive split-screen presentation
   Structure inspired by reference; KSR brand styling
   ========================================================= */

:root {
    --pd-panel: #34363b;
    --pd-panel-deep: #2a2c30;
    --pd-panel-line: rgba(255, 255, 255, 0.12);
    --pd-cyan: var(--blue-primary);
    --pd-cyan-soft: rgba(27, 228, 235, 0.85);
    --pd-text: #ffffff;
    --pd-muted: rgba(255, 255, 255, 0.68);
    --header-height: var(--nav-height);
    --breadcrumb-height: 44px;
    --pd-split-min: calc(100svh - var(--header-height) - var(--breadcrumb-height));
}

.project-details-page {
    --pd-content-inset-x: calc(40px + var(--logo-width) + 20px);
    --header-height: var(--nav-height);
    background: #f3f1ee;
    color: var(--text-dark);
}

@media (max-width: 767px) {
    .project-details-page {
        --pd-content-inset-x: calc(18px + var(--logo-width) + 16px);
    }
}

.project-details-page main {
    padding-top: var(--nav-height);
}

.pd-not-found[hidden],
[data-pd-root][hidden],
.pd-note[hidden],
.pd-media__rera[hidden],
.pd-form__status[hidden],
.pd-field__error[hidden],
.pi-lightbox[hidden] {
    display: none !important;
}

/* ---------- Not found ---------- */
.pd-not-found {
    min-height: calc(100svh - var(--header-height));
    display: grid;
    place-items: center;
    padding: 48px 24px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(27, 228, 235, 0.14), transparent 50%),
        linear-gradient(180deg, #f8f3e8, #eeeae3);
}

.pd-not-found__inner {
    max-width: 460px;
    text-align: center;
}

.pd-not-found__eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue-deep);
    font-weight: 600;
}

.pd-not-found__title {
    margin: 0 0 12px;
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
}

.pd-not-found__text {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
}

.pd-not-found__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    background: var(--blue-gradient);
    color: #111;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.pd-not-found__btn:hover,
.pd-not-found__btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

/* ---------- Breadcrumb ---------- */
.pd-breadcrumb {
    position: sticky;
    top: var(--nav-height);
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-height: var(--breadcrumb-height);
    padding: 10px clamp(16px, 3vw, 32px) 10px var(--pd-content-inset-x);
    background: #f0eeeb;
    border-bottom: 1px solid rgba(35, 31, 24, 0.08);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #6b6560;
}

.pd-breadcrumb a {
    color: #4a4540;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pd-breadcrumb a:hover,
.pd-breadcrumb a:focus-visible {
    color: var(--blue-deep);
}

.pd-breadcrumb [aria-current="page"] {
    color: #1f1c18;
    font-weight: 600;
}

/* ---------- Split layout ---------- */
.pd-story {
    position: relative;
    background: #111;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 62fr) minmax(420px, 38fr);
    align-items: stretch;
    min-height: var(--pd-split-min);
    max-width: 1920px;
    margin: 0 auto;
}

/* ---------- Left media ---------- */
.pd-media {
    position: relative;
    min-height: var(--pd-split-min);
    height: 100%;
    background: #0d0d0d;
    overflow: hidden;
    isolation: isolate;
}

.pd-media__stage {
    position: absolute;
    inset: 0;
}

.project-media-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform, clip-path;
    transform: scale(1.04);
    clip-path: inset(3% 3% 3% 3%);
}

.project-media-item.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    clip-path: inset(0% 0% 0% 0%);
    z-index: 2;
}

.project-media-item.is-leaving {
    z-index: 1;
}

.project-media-item img,
.project-media-item video,
.project-media-item .pd-video-frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-video-shell {
    position: absolute;
    inset: 0;
    background: #000;
}

.pd-video-shell__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-video-frame {
    position: absolute;
    inset: 0;
    border: 0;
    width: 100%;
    height: 100%;
}

.pd-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #fff;
}

.pd-play__ring {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(8, 127, 175, 0.92);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.pd-play:hover .pd-play__ring,
.pd-play:focus-visible .pd-play__ring {
    transform: scale(1.06);
    background: #1BE4EB;
}

.pd-play svg {
    margin-left: 3px;
}

.pd-play[hidden],
.project-media-item.is-playing .pd-play {
    opacity: 0;
    pointer-events: none;
}

.pd-media__meta {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    max-width: min(70%, 420px);
    padding: 10px 14px;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    pointer-events: none;
}

.pd-media__label {
    margin: 0 0 2px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pd-cyan-soft);
    font-weight: 600;
}

.pd-media__title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.pd-media__nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(20, 20, 20, 0.55);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pd-media__nav:hover,
.pd-media__nav:focus-visible {
    background: rgba(8, 127, 175, 0.9);
    transform: translateY(-50%) scale(1.04);
}

.pd-media__nav:focus-visible {
    outline: 2px solid var(--pd-cyan);
    outline-offset: 3px;
}

.pd-media__nav--prev { left: 16px; }
.pd-media__nav--next { right: 16px; }

.pd-media__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pd-media__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 14px 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.pd-media__counter {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
}

.pd-media__progress {
    flex: 1;
    min-width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.pd-media__progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--pd-cyan);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-media__rera {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Right panel ---------- */
.pd-panel {
    background: var(--pd-panel);
    color: var(--pd-text);
    min-height: var(--pd-split-min);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    min-width: 0;
}

.pd-panel__scroll {
    padding: clamp(22px, 2.4vw, 36px) clamp(18px, 2vw, 32px) 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pd-summary__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.pd-summary__category {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pd-cyan);
    font-weight: 600;
}

.pd-summary__name {
    margin: 0;
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
}

.pd-summary__badge {
    display: none !important;
}

.pd-summary__price {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light, #F4D06F);
}

.pd-summary__price .project-price-val {
    color: var(--gold-light, #F4D06F) !important;
    background: var(--gold-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800;
    font-size: 1.25rem;
}

.pd-summary__price .project-price-unit {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    font-weight: 500;
}

.pd-facts {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.pd-facts li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pd-panel-line);
}

.pd-facts li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pd-facts__label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.pd-facts__value {
    color: #fff;
    font-weight: 500;
}

.pd-summary__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--pd-muted);
}

/* ---------- Form ---------- */
.pd-form {
    padding-top: 6px;
    border-top: 1px solid var(--pd-panel-line);
}

.pd-form__head {
    margin-bottom: 16px;
}

.pd-form__title {
    margin: 0 0 4px;
    font-size: 15px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.pd-form__sub {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pd-muted);
}

.pd-field {
    margin-bottom: 12px;
}

.pd-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.pd-optional {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.pd-field input,
.pd-field textarea {
    width: 100%;
    border: 1px solid transparent;
    background: #fff;
    color: #1a1a1a;
    font: inherit;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 2px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-field input:focus,
.pd-field textarea:focus {
    outline: none;
    border-color: var(--pd-cyan);
    box-shadow: 0 0 0 2px rgba(27, 228, 235, 0.25);
}

.pd-field input.is-invalid,
.pd-field textarea.is-invalid {
    border-color: #d45b5b;
}

.pd-field__phone {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
}

.pd-field__cc {
    display: grid;
    place-items: center;
    background: #f2f0ec;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    border-right: 1px solid #e4e0d8;
}

.pd-field__phone input {
    border: 0;
    border-radius: 0;
}

.pd-field__error {
    margin: 6px 0 0;
    font-size: 12px;
    color: #ffb4b4;
}

.pd-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 14px;
    font-size: 12.5px;
    color: var(--pd-muted);
    cursor: pointer;
}

.pd-consent input {
    margin-top: 2px;
    accent-color: var(--pd-cyan);
}

.pd-consent a {
    color: var(--pd-cyan);
}

.pd-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 8px 0 4px;
    border: 0;
    background: transparent;
    color: var(--pd-cyan);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.pd-submit__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--pd-cyan);
    display: grid;
    place-items: center;
    transition: background 0.25s ease, color 0.25s ease;
}

.pd-submit:hover,
.pd-submit:focus-visible {
    color: #1BE4EB;
}

.pd-submit:hover .pd-submit__icon,
.pd-submit:focus-visible .pd-submit__icon {
    background: var(--pd-cyan);
    color: #111;
}

.pd-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

.pd-form__status {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.pd-form__status.is-success { color: #9ad4ad; }
.pd-form__status.is-error { color: #ffb4b4; }

.pd-note {
    margin: 0;
    font-size: 13.5px;
    color: var(--pd-cyan-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-note::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pd-cyan);
    flex: 0 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   Project information — compact left nav + right content
   ========================================================= */

.project-information-section {
    background:
        radial-gradient(ellipse at 12% 0%, rgba(27, 228, 235, 0.08), transparent 42%),
        linear-gradient(180deg, #f7f3ea 0%, #f3f1ee 100%);
    padding: 0 0 clamp(56px, 8vw, 96px);
}

.project-information-container {
    display: grid;
    grid-template-columns: minmax(280px, 36%) minmax(0, 64%);
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 90px 40px 0;
    align-items: start;
}

.project-information-mobile-select {
    display: none;
}

.project-information-nav {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
}

.project-info-nav-list {
    background: #34363b;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.14);
}

.project-info-nav-item {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: left;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.project-info-nav-item:last-child {
    border-bottom: 0;
}

.project-info-nav-item:hover,
.project-info-nav-item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.project-info-nav-item:focus-visible {
    outline: 2px solid var(--blue-primary);
    outline-offset: -2px;
}

.project-info-nav-item.is-active {
    color: #fff;
    background: rgba(27, 228, 235, 0.12);
    border-left-color: var(--gold, #D4AF37);
}

.project-info-nav-item__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.7;
}

.project-info-nav-item.is-active .project-info-nav-item__icon {
    transform: rotate(90deg);
    opacity: 1;
    color: var(--gold-light, #F4D06F);
}

.project-information-content {
    min-width: 0;
}

.project-information-panel-shell {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(35, 31, 24, 0.08);
    border: 1px solid rgba(233, 223, 200, 0.9);
    min-height: 420px;
    overflow: hidden;
}

.project-information-panel {
    padding: clamp(28px, 3.5vw, 44px);
}

.project-information-panel.is-leaving {
    pointer-events: none;
}

.pi-panel__title {
    margin: 0 0 8px;
    font-family: var(--font-primary, "Manrope", sans-serif);
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    font-weight: 600;
    color: var(--text-dark);
}

.pi-panel__lead {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 62ch;
}

.pi-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.pi-facts li {
    padding: 14px 16px;
    background: #faf7f1;
    border: 1px solid var(--cream-border);
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pi-facts li:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.08);
}

.pi-facts span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.pi-facts strong {
    color: var(--text-dark);
    font-size: 14.5px;
    font-weight: 700;
}

.pi-facts strong .pi-num,
.pi-facts strong .ksr-gold-num {
    color: var(--gold-deep, #B8860B);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.pi-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.pi-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
}

.pi-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue-primary);
}

.pi-subhead {
    margin: 28px 0 12px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-deep);
    font-weight: 700;
}

/* Videos */
.pi-video-feature {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
}

.pi-video-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pi-video-feature iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pi-video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    color: #fff;
}

.pi-video-play__ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(8, 127, 175, 0.95);
    transition: transform 0.25s ease;
}

.pi-video-play:hover .pi-video-play__ring,
.pi-video-play:focus-visible .pi-video-play__ring {
    transform: scale(1.06);
}

.pi-video-meta h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.pi-video-meta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.pi-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    background: #faf7f1;
    border-radius: 16px;
    border: 1px dashed var(--cream-border);
}

/* Floor plans */
.pi-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.pi-plan-card {
    border: 1px solid var(--cream-border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.pi-plan-card__media {
    aspect-ratio: 4 / 3;
    background: #f3f1ee;
}

.pi-plan-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pi-plan-card__body {
    padding: 16px;
}

.pi-plan-card__body h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.pi-plan-card__body p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.pi-plan-card__btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(27, 228, 235, 0.45);
    color: var(--blue-deep);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
}

/* Gallery */
.pi-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pi-gallery__item {
    position: relative;
    border: 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
    aspect-ratio: 4 / 3;
}

.pi-gallery__item:nth-child(1) {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
}

.pi-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.pi-gallery__item:hover img,
.pi-gallery__item:focus-visible img {
    transform: scale(1.04);
}

.pi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(10, 10, 10, 0.88);
    display: grid;
    place-items: center;
    padding: 24px;
}

.pi-lightbox[hidden] {
    display: none !important;
}

.pi-lightbox img {
    max-width: min(1100px, 100%);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
}

.pi-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Pricing */
.pi-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pi-price-table th,
.pi-price-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--cream-border);
}

.pi-price-table th {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pi-price-table td strong {
    color: var(--blue-deep);
}

.pi-price-table a {
    color: var(--blue-deep);
    font-weight: 600;
    text-decoration: none;
}

/* Location */
.pi-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--cream-border);
    background: #f3f1ee;
    aspect-ratio: 16 / 9;
    margin-top: 20px;
}

.pi-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pi-map__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* FAQ */
.pi-faq {
    display: grid;
    gap: 10px;
}

.pi-faq__item {
    border: 1px solid var(--cream-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.pi-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
}

.pi-faq__q:focus-visible {
    outline: 2px solid var(--blue-primary);
    outline-offset: -2px;
}

.pi-faq__icon {
    flex: 0 0 auto;
    transition: transform 0.25s ease;
    color: var(--blue-deep);
}

.pi-faq__item.is-open .pi-faq__icon {
    transform: rotate(45deg);
}

.pi-faq__a {
    display: none;
    padding: 0 18px 16px;
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0;
}

.pi-faq__item.is-open .pi-faq__a {
    display: block;
}

/* Testimonials */
.pi-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.pi-testimonial {
    padding: 20px;
    border-radius: 16px;
    background: #faf7f1;
    border: 1px solid var(--cream-border);
}

.pi-testimonial__stars {
    color: var(--blue-primary);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 13px;
}

.pi-testimonial blockquote {
    margin: 0 0 14px;
    color: var(--text-dark);
    line-height: 1.65;
    font-size: 15.5px;
}

.pi-testimonial__meta {
    font-size: 13px;
    color: var(--text-muted);
}

.pi-testimonial__meta strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 2px;
}

@media (max-width: 1023px) {
    .project-information-container {
        grid-template-columns: minmax(240px, 34%) minmax(0, 66%);
        gap: 28px;
        padding: 64px 24px 0;
    }

    .pi-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pi-gallery__item:nth-child(1) {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .project-information-container {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 40px 0 0;
    }

    .project-information-mobile-select {
        display: none !important;
    }

    .project-information-nav {
        position: static;
        display: block;
        width: 100%;
        padding: 0 16px;
        order: -1;
    }

    .project-info-nav-list {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 2px 0 8px;
    }

    .project-info-nav-list::-webkit-scrollbar {
        display: none;
    }

    .project-info-nav-item {
        flex: 0 0 auto;
        width: auto;
        min-height: 40px;
        justify-content: center;
        gap: 0;
        padding: 8px 14px;
        border: 1px solid transparent;
        border-bottom: 1px solid transparent;
        border-left: 1px solid transparent;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        color: var(--text-muted, #2F3437);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        white-space: nowrap;
        box-shadow: none;
    }

    .project-info-nav-item:last-child {
        border-bottom: 1px solid transparent;
    }

    .project-info-nav-item:hover,
    .project-info-nav-item:focus-visible {
        color: var(--text-dark);
        background: #fff;
        border-color: var(--cream-border, #e8e0d4);
    }

    .project-info-nav-item:focus-visible {
        outline: 2px solid var(--blue-primary);
        outline-offset: 2px;
    }

    .project-info-nav-item.is-active {
        position: relative;
        color: var(--blue-deep, #087FAF);
        background: #fff;
        border-color: rgba(27, 228, 235, 0.4);
        border-left-color: rgba(27, 228, 235, 0.4);
        box-shadow: none;
    }

    .project-info-nav-item.is-active::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 7px;
        height: 2px;
        border-radius: 2px;
        background: var(--blue-gradient, linear-gradient(90deg, #1BE4EB 0%, #11CFE0 48%, #087FAF 100%));
    }

    .project-info-nav-item__icon {
        display: none;
    }

    .project-information-content {
        padding: 0 16px;
    }

    .project-information-panel-shell {
        border-radius: 18px;
        min-height: 0;
    }

    .pi-gallery {
        grid-template-columns: 1fr;
    }

    .pi-gallery__item:nth-child(1) {
        grid-column: auto;
        aspect-ratio: 16 / 10;
    }

    .pi-price-table {
        display: block;
        overflow-x: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-info-nav-item,
    .project-info-nav-item__icon,
    .pi-gallery__item img,
    .pi-faq__icon,
    .pi-video-play__ring {
        transition: none !important;
    }
}

/* ---------- Site footer ---------- */
.pd-site-footer {
    background: #111;
    color: rgba(255, 255, 255, 0.75);
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-site-footer__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
}

.pd-site-footer__brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
}

.pd-site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.pd-site-footer__nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
}

.pd-site-footer__nav a:hover,
.pd-site-footer__nav a:focus-visible {
    color: var(--pd-cyan);
}

.pd-site-footer__copy {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    width: 100%;
}

/* ---------- Tablet ---------- */
@media (max-width: 1099px) and (min-width: 768px) {
    .project-detail-layout {
        grid-template-columns: minmax(0, 55fr) minmax(340px, 45fr);
    }

    .pd-facts li {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .pd-summary__name {
        letter-spacing: 0.05em;
    }
}

/* ---------- Stacked / mobile ---------- */
@media (max-width: 767px) {
    :root {
        --breadcrumb-height: auto;
    }

    .project-detail-layout {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .pd-media {
        min-height: min(72vw, 420px);
        height: min(72vw, 420px);
    }

    .pd-media__stage {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        position: relative;
        inset: auto;
        height: 100%;
    }

    .project-media-item {
        position: relative;
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        opacity: 1;
        transform: none;
        clip-path: none;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        pointer-events: auto;
    }

    .pd-media__nav {
        width: 38px;
        height: 38px;
    }

    .pd-media__nav--prev { left: 8px; }
    .pd-media__nav--next { right: 8px; }

    .pd-panel {
        min-height: 0;
        border-left: 0;
    }

    .pd-panel__scroll {
        min-height: 0;
        padding: 22px 16px 28px;
    }

    .pd-facts li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .pd-breadcrumb {
        position: relative;
        top: 0;
        gap: 6px;
        font-size: 11px;
        padding-left: var(--pd-content-inset-x);
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .project-media-item,
    .pd-media__progress > span,
    .pd-play__ring,
    .pd-submit__icon {
        transition: none !important;
    }

    .project-media-item {
        transform: none !important;
        clip-path: none !important;
    }

    .pd-media__stage {
        scroll-behavior: auto;
    }
}
