/* Virat Group — project-detail.css | Shared layout for single-project pages (Krishnav, NRI Avenue) */

/* ═══════════════════════════════════════════════
   SECTION SHELLS
═══════════════════════════════════════════════ */
.pd-section { padding: 100px 0; background: #fff; }
.pd-section-alt { background: var(--v4-off-white); }
.pd-section-dark { background: var(--v4-navy-950); color: #fff; }
.pd-section-dark .section-title { color: #fff; }
.pd-section-dark .section-subtitle { color: rgba(255, 255, 255, 0.62); }
.pd-section .section-header { margin-bottom: 52px; }
.pd-title-accent { color: var(--v4-gold-dark); font-style: italic; }
.pd-section-dark .pd-title-accent { color: var(--v4-gold-light); }

/* ═══════════════════════════════════════════════
   HERO — full-bleed project image
═══════════════════════════════════════════════ */
.pd-hero {
    position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end;
    padding: calc(var(--v4-header-h) + 60px) 0 72px; overflow: hidden; background: var(--v4-navy-950);
}
.pd-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Tall-tower renders: crop from nearer the top so the roofline and sky stay in frame */
.pd-hero-bg-top { object-position: center 22%; }
/* Krishnav: the vertical walkthrough reel sits in a portrait frame beside the hero text (full-bleed on phones) */
.pd-hero-reel {
    position: absolute; z-index: 1; right: max(40px, calc((100vw - 1240px) / 2)); bottom: 72px;
    width: 280px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; background: var(--v4-navy-950);
    border: 6px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.pd-hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 13, 27, 0.92) 0%, rgba(7, 13, 27, 0.7) 45%, rgba(7, 13, 27, 0.15) 100%),
        linear-gradient(0deg, rgba(7, 13, 27, 0.85) 0%, transparent 45%);
}
.pd-hero-inner { position: relative; width: 100%; }
.pd-hero-content { max-width: 680px; }
.pd-hero .breadcrumb { margin-bottom: 20px; }
.pd-hero h1 {
    font-family: 'Playfair Display', serif; font-weight: 700; color: #fff;
    font-size: clamp(38px, 5.6vw, 68px); line-height: 1.08; margin-bottom: 16px;
}
.pd-hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, 0.78); line-height: 1.6; margin-bottom: 18px; }
.pd-hero-loc { display: flex; align-items: center; gap: 8px; color: var(--v4-gold-light); font-size: 15px; margin-bottom: 26px; }
.pd-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pd-chip {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #fff;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}
.pd-chip i { color: var(--v4-gold-light); }
.pd-chip-link { text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease; }
.pd-chip-link:hover, .pd-chip-link:focus-visible { border-color: var(--v4-gold-light); background: rgba(201, 161, 92, 0.2); }
.pd-chip-live { border-color: rgba(46, 158, 91, 0.6); background: rgba(46, 158, 91, 0.18); }
.pd-chip-live i { color: #5fd08e; }
.pd-hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 30px; color: #fff; }
.pd-hero-price span { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.pd-hero-price strong { font-family: 'Playfair Display', serif; font-size: clamp(30px, 3.6vw, 44px); color: var(--v4-gold-light); }
.pd-hero-price strong { white-space: nowrap; }
.pd-hero-price small { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.pd-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ═══════════════════════════════════════════════
   KEY FACTS STRIP
═══════════════════════════════════════════════ */
.pd-facts { background: var(--v4-navy-900); border-top: 1px solid var(--v4-line); }
.pd-facts-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.pd-fact { padding: 30px 22px; border-right: 1px solid var(--v4-line-navy); }
.pd-fact:last-child { border-right: 0; }
.pd-fact i { color: var(--v4-gold); font-size: 20px; margin-bottom: 12px; display: block; }
.pd-fact-label { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 6px; }
.pd-fact-value { font-family: 'Playfair Display', serif; font-size: 19px; color: #fff; line-height: 1.3; }

/* ═══════════════════════════════════════════════
   OVERVIEW — text + image split
═══════════════════════════════════════════════ */
.pd-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pd-overview-text .section-tag { margin-bottom: 14px; }
.pd-overview-text .section-title { margin-bottom: 20px; }
.pd-overview-text p { color: var(--v4-ink-soft); line-height: 1.8; margin-bottom: 16px; }
.pd-overview-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pd-overview-point { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--v4-ink); }
.pd-overview-point i { color: var(--v4-gold-dark); margin-top: 3px; }
.pd-overview-media { position: relative; border-radius: var(--v4-radius-lg); overflow: hidden; box-shadow: var(--v4-shadow-lg); }
/* Overview as graphics: one short lead line + big-number icon tiles instead of paragraphs */
.pd-overview-lead { font-size: 18px; line-height: 1.6; color: var(--v4-ink); margin-bottom: 24px; }
.pd-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pd-highlight {
    display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: var(--v4-radius);
    background: var(--v4-ivory); border: 1px solid var(--v4-line);
}
.pd-highlight i {
    width: 38px; height: 38px; margin-bottom: 8px; border-radius: 10px; display: grid; place-items: center;
    font-size: 16px; color: var(--v4-gold-dark); background: var(--v4-gold-soft);
}
.pd-highlight strong { font-family: 'Playfair Display', serif; font-size: 24px; line-height: 1.15; color: var(--v4-navy-900); }
.pd-highlight span { font-size: 13px; line-height: 1.4; color: var(--v4-ink-soft); }
.pd-overview-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ═══════════════════════════════════════════════
   UNIT / CONFIGURATION CARDS
═══════════════════════════════════════════════ */
.pd-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pd-units-3 { grid-template-columns: repeat(3, 1fr); }
.pd-unit {
    position: relative; background: #fff; border: 1.5px solid var(--v4-line); border-radius: var(--v4-radius);
    padding: 30px 26px; display: flex; flex-direction: column; transition: transform 0.3s var(--v4-ease), box-shadow 0.3s;
}
.pd-unit:hover { transform: translateY(-4px); box-shadow: var(--v4-shadow-md); }
.pd-unit-icon {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
    background: var(--v4-gold-soft); color: var(--v4-gold-dark); font-size: 20px;
}
.pd-unit h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--v4-navy-900); margin-bottom: 4px; }
.pd-unit-floor { font-size: 13px; color: var(--v4-ink-soft); margin-bottom: 18px; }
.pd-unit-specs { list-style: none; border-top: 1px dashed var(--v4-line); padding-top: 14px; margin-bottom: 20px; flex: 1; }
.pd-unit-specs li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; color: var(--v4-ink-soft); }
.pd-unit-specs li strong { color: var(--v4-ink); font-weight: 600; text-align: right; }
.pd-unit-price { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--v4-ink-soft); margin-bottom: 16px; }
.pd-unit-price strong {
    display: block; font-family: 'Playfair Display', serif; font-size: 22px; letter-spacing: 0;
    text-transform: none; color: var(--v4-gold-dark); margin-top: 4px;
}
.pd-unit-badge {
    position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--v4-navy-900); background: var(--v4-gold-light);
    padding: 5px 10px; border-radius: 999px;
}
.pd-note { margin-top: 22px; text-align: center; font-size: 13px; color: var(--v4-ink-soft); }

/* Flip unit cards: navy front with the headline figure, light back with full specs + enquiry.
   Only the Details / back buttons flip it (js/project-detail.js), never hover, so reaching for a locked price
   (.lg-lock, js/lead-gate.js) doesn't turn the card away from the pointer.
   The hidden face gets visibility:hidden half-way through the turn so its buttons can't take focus. */
.pd-unit.pd-flip { padding: 0; border: 0; background: none; perspective: 1400px; }
.pd-unit.pd-flip:hover { transform: none; box-shadow: none; }
.pd-flip-inner {
    display: grid; height: 100%; min-height: 330px; transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.3, 1.25, 0.4, 1);
}
.pd-flip-face {
    grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; padding: 30px 26px;
    border-radius: var(--v4-radius); -webkit-backface-visibility: hidden; backface-visibility: hidden;
    transition: visibility 0s linear 0.3s;
}
.pd-flip-front {
    color: #fff; border: 1px solid rgba(232, 205, 148, 0.28); box-shadow: var(--v4-shadow-md);
    background:
        repeating-linear-gradient(90deg, rgba(232, 205, 148, 0.05) 0 1px, transparent 1px 34px),
        radial-gradient(circle at 85% 0%, rgba(201, 161, 92, 0.3), transparent 55%),
        linear-gradient(160deg, var(--v4-navy-800), var(--v4-navy-950));
}
.pd-flip-front .pd-unit-icon { background: rgba(201, 161, 92, 0.16); color: var(--v4-gold-light); }
.pd-flip-front h3 { color: #fff; }
.pd-flip-front .pd-unit-floor { color: rgba(255, 255, 255, 0.62); }
.pd-flip-stat { margin-top: auto; padding-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.pd-flip-stat strong {
    display: block; font-family: 'Playfair Display', serif; font-size: 34px; line-height: 1.1; color: var(--v4-gold-light);
}
.pd-flip-toggle {
    align-self: flex-start; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--v4-gold-light); background: none;
    border: 1px solid rgba(232, 205, 148, 0.4); border-radius: 999px; padding: 8px 16px;
    transition: background 0.25s, color 0.25s;
}
.pd-flip-toggle:hover { background: var(--v4-gold); color: var(--v4-navy-950); }
.pd-flip-back {
    transform: rotateY(180deg); visibility: hidden; background: #fff;
    border: 1.5px solid var(--v4-gold); box-shadow: var(--v4-shadow-lg);
}
.pd-flip-title { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--v4-navy-900); margin: 0 40px 10px 0; }
.pd-flip-back .pd-unit-specs { flex: 1; }
.pd-flip-back-btn {
    position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; color: var(--v4-navy-900); background: var(--v4-gold-soft); border: 0;
}
.pd-flip-back-btn:hover { background: var(--v4-gold); }
.pd-flip.is-flipped .pd-flip-inner { transform: rotateY(180deg); }
.pd-flip.is-flipped .pd-flip-front { visibility: hidden; }
.pd-flip.is-flipped .pd-flip-back { visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
    .pd-flip-inner, .pd-flip-face { transition: none; }
}
/* Touch screens (phones, tablets): no flipping; the card shows its navy header with the specs directly below */
@media (hover: none), (pointer: coarse) {
    .pd-unit.pd-flip { border-radius: var(--v4-radius); box-shadow: var(--v4-shadow-md); }
    .pd-flip-inner { display: flex; flex-direction: column; min-height: 0; transform: none; transition: none; }
    .pd-flip-face { visibility: visible; transform: none; transition: none; box-shadow: none; }
    .pd-flip-front { border-radius: var(--v4-radius) var(--v4-radius) 0 0; border-bottom: 0; padding-bottom: 22px; }
    .pd-flip-back {
        border-radius: 0 0 var(--v4-radius) var(--v4-radius); border: 1px solid var(--v4-line); border-top: 0;
        padding-top: 6px;
    }
    .pd-flip-title, .pd-flip-stat, .pd-flip-toggle, .pd-flip-back-btn { display: none; }
    .pd-flip-front .pd-unit-floor { margin-bottom: 0; }
}
/* Phones: compact cards (icon beside the name in a slim header, tighter specs) so a list of 4–6 units stays short */
@media (max-width: 640px) and (hover: none), (max-width: 640px) and (pointer: coarse) {
    .pd-units, .pd-units-3 { gap: 14px; }
    .pd-flip-front {
        display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px 18px;
    }
    .pd-flip-front .pd-unit-icon { grid-row: span 2; width: 42px; height: 42px; margin: 0; font-size: 17px; }
    .pd-flip-front h3 { font-size: 20px; margin: 0; padding-right: 90px; /* room for the badge */ }
    .pd-flip-front .pd-unit-floor { font-size: 12.5px; }
    .pd-flip-front .pd-unit-badge {
        top: 50%; right: 16px; transform: translateY(-50%); font-size: 10px; padding: 4px 9px;
    }
    .pd-flip-back { padding: 4px 18px 16px; }
    .pd-flip-back .pd-unit-specs { padding-top: 10px; margin-bottom: 12px; }
    .pd-flip-back .pd-unit-specs li { padding: 4px 0; font-size: 13px; }
    .pd-flip-back .pd-unit-price {
        display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px;
    }
    .pd-flip-back .pd-unit-price strong { font-size: 19px; margin-top: 0; }
}

/* Floor-wise stack (NRI Avenue) */
.pd-stack { max-width: 920px; margin: 0 auto; border-radius: var(--v4-radius-lg); overflow: hidden; border: 1.5px solid var(--v4-line); }
.pd-stack-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 20px; align-items: center; padding: 20px 28px; background: #fff; }
.pd-stack-row:nth-child(even) { background: var(--v4-ivory); }
.pd-stack-row + .pd-stack-row { border-top: 1px solid var(--v4-line); }
.pd-stack-floor { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--v4-navy-900); }
.pd-stack-use { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--v4-ink); }
.pd-stack-use i { color: var(--v4-gold-dark); width: 20px; text-align: center; }
.pd-stack-size { font-size: 14px; color: var(--v4-ink-soft); white-space: nowrap; }
.pd-stack .pd-stack-row { transition: background 0.3s, box-shadow 0.3s; }
.pd-stack .pd-stack-row.is-active { background: var(--v4-gold-soft); box-shadow: inset 4px 0 0 var(--v4-gold); }

/* Building story (NRI Avenue): drawn tower beside the floor list; js/project-detail.js
   grows it floor by floor on scroll and links each block to its row */
.pd-building { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; }
.pd-building .pd-stack { max-width: none; margin: 0; }
.pd-tower { --floor-h: 30px; width: 220px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pd-tower-roof { width: 64%; height: 14px; border-radius: 8px 8px 0 0; background: var(--v4-navy-900); }
.pd-tower-block {
    position: relative; width: 100%; margin-top: 3px; display: flex; align-items: center; justify-content: center;
    border-radius: 3px; transform-origin: 50% 100%; transition: background 0.35s, box-shadow 0.35s;
    background-color: var(--v4-navy-700);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px var(--floor-h)),
        repeating-linear-gradient(90deg, rgba(232, 205, 148, 0.14) 0 10px, transparent 10px 20px);
}
.pd-tower-floors-1 { height: var(--floor-h); }
.pd-tower-floors-2 { height: calc(var(--floor-h) * 2); }
.pd-tower-floors-3 { height: calc(var(--floor-h) * 3); }
.pd-tower-floors-6 { height: calc(var(--floor-h) * 6); }
.pd-tower-block span {
    position: relative; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: #fff; background: rgba(7, 13, 27, 0.6); padding: 3px 9px; border-radius: 999px;
}
.pd-tower-block.is-active {
    background-color: var(--v4-gold);
    box-shadow: 0 0 0 2px var(--v4-gold-light), 0 12px 30px -10px rgba(201, 161, 92, 0.8);
}
.pd-tower-block.is-active span { background: var(--v4-navy-950); color: var(--v4-gold-light); }
.pd-tower-ground {
    width: 150%; height: 4px; margin-top: 3px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--v4-gold) 15%, var(--v4-gold) 85%, transparent);
}
.pd-tower-block-below { background-color: var(--v4-navy-950); }
.pd-building-section .pd-tower-block-below { background-color: var(--v4-navy-800); }

/* 3D tower stage (js/tower-3d.js adds .is-3d once WebGL is up; until then the CSS tower above is the fallback) */
.pd-b3d, .pd-stack-intro { display: none; }
/* The stage is CSS-sticky while the floor cards ("chapters") scroll past it; tower-3d.js reads their positions */
.pd-building.is-3d {
    --pd-sticky-top: var(--v4-header-h);
    grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; max-width: 1180px;
}
.pd-building.is-3d .pd-tower { display: none; }
.pd-building.is-3d .pd-b3d {
    display: block; position: sticky; top: calc(var(--pd-sticky-top) + 24px); z-index: 2;
    overflow: hidden; border-radius: var(--v4-radius-lg);
    height: min(640px, calc(100vh - var(--pd-sticky-top) - 48px)); border: 1px solid var(--v4-line-navy);
    background:
        radial-gradient(ellipse at 50% 72%, rgba(201, 161, 92, 0.16), transparent 58%),
        linear-gradient(180deg, var(--v4-navy-900), var(--v4-navy-950));
}
.pd-b3d-canvas { display: block; width: 100%; height: 100%; }
.pd-b3d-tags { position: absolute; inset: 0; pointer-events: none; }
.pd-b3d-tag {
    position: absolute; left: 0; top: 0; margin: -14px 0 0 20px; white-space: nowrap;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88); background: rgba(7, 13, 27, 0.74); border: 1px solid rgba(232, 205, 148, 0.3);
    padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); opacity: 0;
    transition: opacity 0.35s var(--v4-ease), background 0.35s, color 0.35s, border-color 0.35s;
}
.pd-b3d-tag::before {
    content: ''; position: absolute; right: 100%; top: 50%; width: 18px; height: 1px; background: var(--v4-gold);
}
.pd-b3d-tag small { margin-left: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0; color: var(--v4-gold-light); }
.pd-b3d-tag.is-visible { opacity: 0.92; pointer-events: auto; cursor: pointer; }
.pd-b3d-tag.is-visible:hover { border-color: var(--v4-gold); }
.pd-b3d-tag.is-active { opacity: 1; color: var(--v4-navy-950); background: var(--v4-gold); border-color: var(--v4-gold-light); }
.pd-b3d-tag.is-active small { color: var(--v4-navy-900); }
.pd-b3d-progress {
    position: absolute; left: 24px; right: 24px; bottom: 20px; height: 2px; border-radius: 2px; overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}
.pd-b3d-progress span {
    display: block; height: 100%; transform: scaleX(0); transform-origin: left center;
    background: linear-gradient(90deg, var(--v4-gold-light), var(--v4-gold));
}

/* Floor list on the dark building section */
.pd-building-section .pd-stack { border-color: var(--v4-line-navy); }
.pd-building-section .pd-stack-row { background: rgba(255, 255, 255, 0.03); }
.pd-building-section .pd-stack-row:nth-child(even) { background: rgba(255, 255, 255, 0.06); }
.pd-building-section .pd-stack-row + .pd-stack-row { border-top-color: var(--v4-line-navy); }
.pd-building-section .pd-stack-floor { color: var(--v4-gold-light); }
.pd-building-section .pd-stack-use { color: #fff; }
.pd-building-section .pd-stack-size { color: rgba(255, 255, 255, 0.6); }
.pd-building-section .pd-stack .pd-stack-row.is-active {
    background: rgba(201, 161, 92, 0.2); box-shadow: inset 4px 0 0 var(--v4-gold);
}
.pd-building-section .pd-note { color: rgba(255, 255, 255, 0.5); }
/* Fallback (no 3D): list reads top-down like the CSS tower beside it */
.pd-building:not(.is-3d) .pd-stack { display: flex; flex-direction: column-reverse; }
.pd-building:not(.is-3d) .pd-stack-row + .pd-stack-row { border-top: 0; border-bottom: 1px solid var(--v4-line-navy); }

/* 3D mode: each floor is a tall "chapter"; the one on the focus line is bright, the rest dimmed */
.pd-building.is-3d .pd-stack { border: 0; border-radius: 0; overflow: visible; padding-bottom: 28vh; }
.pd-building.is-3d .pd-stack-intro {
    display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 62vh;
}
.pd-stack-kicker {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--v4-gold-light);
}
.pd-stack-intro p { max-width: 400px; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }
.pd-building.is-3d .pd-stack .pd-stack-row {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
    min-height: 52vh; text-align: left;
    padding: 0 0 0 28px; background: none; border: 0; border-left: 2px solid var(--v4-line-navy); box-shadow: none;
    cursor: pointer; opacity: 0.38; transition: opacity 0.45s var(--v4-ease), border-color 0.45s var(--v4-ease);
}
.pd-building.is-3d .pd-stack .pd-stack-row.is-active { opacity: 1; background: none; border-left-color: var(--v4-gold); }
.pd-building.is-3d .pd-stack-row:focus-visible { outline: 2px solid var(--v4-gold-light); outline-offset: 6px; }
.pd-building.is-3d .pd-stack-floor {
    font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.pd-building.is-3d .pd-stack-use {
    font-family: 'Playfair Display', serif; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25;
}
.pd-building.is-3d .pd-stack-use i { font-size: 0.8em; color: var(--v4-gold); }
.pd-building.is-3d .pd-stack-size { font-size: 15px; color: var(--v4-gold-light); }

/* ═══════════════════════════════════════════════
   FLOOR PLANS — tabs + image
═══════════════════════════════════════════════ */
.pd-plan-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.pd-plan-tab {
    font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--v4-ink);
    background: #fff; border: 1.5px solid var(--v4-line); padding: 10px 20px; border-radius: 999px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.pd-plan-tab:hover { border-color: var(--v4-gold); }
.pd-plan-tab.is-active { background: var(--v4-navy-900); border-color: var(--v4-navy-900); color: #fff; }
.pd-plan-panel { display: none; }
.pd-plan-panel.is-active { display: block; }
.pd-plan-frame {
    display: block; max-width: 980px; margin: 0 auto; background: #fff; border-radius: var(--v4-radius-lg);
    border: 1.5px solid var(--v4-line); padding: 18px; box-shadow: var(--v4-shadow-sm); cursor: zoom-in;
}
.pd-plan-frame img { width: 100%; height: auto; display: block; border-radius: var(--v4-radius-sm); }
.pd-plan-frame.is-plan-locked { position: relative; cursor: pointer; }
.pd-plan-lock {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: calc(100% - 32px);
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
    background: var(--v4-navy-950); border: 1.5px solid var(--v4-gold); box-shadow: var(--v4-shadow-sm);
    color: #fff; font-size: 15px; font-weight: 600; line-height: 1.35; text-align: center;
    transition: background 0.25s var(--v4-ease);
}
.pd-plan-lock i { color: var(--v4-gold); }
.pd-plan-frame.is-plan-locked:hover .pd-plan-lock { background: var(--v4-navy-900); }
.pd-plan-caption { text-align: center; margin-top: 16px; font-size: 14px; color: var(--v4-ink-soft); }
.pd-plan-caption i { color: var(--v4-gold-dark); margin-right: 6px; }
/* A tab that holds more than one plan (e.g. NRI Avenue studios, 6th + 7th–11th) */
.pd-plan-intro { margin: 0 0 18px; font-size: 15px; font-weight: 600; color: var(--v4-navy-900); }
.pd-plan-frame-next { margin-top: 36px; }

/* ═══════════════════════════════════════════════
   AMENITIES
═══════════════════════════════════════════════ */
.pd-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.pd-amenity {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
    padding: 26px 16px; border-radius: var(--v4-radius); background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--v4-line-navy); transition: border-color 0.3s, background 0.3s;
}
.pd-amenity:hover { border-color: var(--v4-gold); background: rgba(201, 161, 92, 0.08); }
.pd-amenity i { font-size: 26px; color: var(--v4-gold-light); }
.pd-amenity span { font-size: 14px; color: rgba(255, 255, 255, 0.85); }

/* ═══════════════════════════════════════════════
   SPECIFICATIONS — groups of different lengths flow in columns (from the official brochures)
═══════════════════════════════════════════════ */
.pd-specs { columns: 3 300px; column-gap: 22px; }
.pd-spec {
    break-inside: avoid; margin-bottom: 22px; padding: 24px 24px 18px; border-radius: var(--v4-radius);
    background: var(--v4-ivory); border: 1px solid var(--v4-line);
}
/* Each group is a <details>: always open on larger screens; on phones project-detail.js starts them closed */
.pd-spec summary { list-style: none; pointer-events: none; }
.pd-spec summary::-webkit-details-marker { display: none; }
.pd-spec h3 {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
    font-family: 'Playfair Display', serif; font-size: 19px; color: var(--v4-navy-900);
}
.pd-spec h3 i {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
    font-size: 15px; background: var(--v4-gold-soft); color: var(--v4-gold-dark);
}
.pd-spec ul { list-style: none; }
.pd-spec li {
    position: relative; padding-left: 18px; margin-bottom: 7px; font-size: 14px; line-height: 1.6; color: var(--v4-ink-soft);
}
.pd-spec li::before {
    content: ''; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%;
    background: var(--v4-gold);
}
.pd-spec-banks { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-spec-banks li {
    padding: 6px 12px; margin: 0; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--v4-navy-900);
    background: #fff; border: 1px solid var(--v4-line);
}
.pd-spec-banks li::before { display: none; }

/* ═══════════════════════════════════════════════
   GALLERY + WALKTHROUGH VIDEO
═══════════════════════════════════════════════ */
.pd-gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px;
}
.pd-gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--v4-radius); cursor: zoom-in; }
.pd-gallery-item.is-wide { grid-column: span 2; }
.pd-gallery-item.is-tall { grid-row: span 2; }
.pd-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--v4-ease); }
.pd-gallery-item:hover img { transform: scale(1.06); }
/* Unfurl mode (js/project-detail.js): GSAP owns the tile + photo transforms, so hover uses light and a gold rim.
   Photos are 120% tall and offset -10% so the ±7% parallax drift never shows an edge. */
.pd-gallery.is-unfurling { perspective: 1600px; }
.pd-gallery.is-unfurling .pd-gallery-item { transition: box-shadow 0.4s var(--v4-ease); }
.pd-gallery.is-unfurling .pd-gallery-item img {
    position: absolute; top: -10%; left: 0; height: 120%; transition: filter 0.5s var(--v4-ease);
}
.pd-gallery.is-unfurling .pd-gallery-item:hover img { filter: brightness(1.08) saturate(1.08); }
.pd-gallery.is-unfurling .pd-gallery-item:hover { box-shadow: 0 0 0 2px var(--v4-gold), var(--v4-shadow-lg); }
/* Walkthrough clips: short muted loops cut from the official video, playing only while on screen */
.pd-gallery-clip { cursor: default; background: var(--v4-navy-950); }
.pd-gallery-clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-clip-badge {
    position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: #fff; background: rgba(7, 13, 27, 0.6); backdrop-filter: blur(4px);
}
.pd-clip-badge i { font-size: 9px; color: var(--v4-gold-light); }
.pd-gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; font-size: 13.5px; color: #fff;
    background: linear-gradient(0deg, rgba(7, 13, 27, 0.8), transparent);
}

.pd-video { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.pd-video-text p { color: rgba(255, 255, 255, 0.7); line-height: 1.8; margin: 18px 0 26px; }
.pd-video-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 30px; }
.pd-video-list li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.85); font-size: 14.5px; }
.pd-video-list i { color: var(--v4-gold-light); }
.pd-video-frame {
    width: 320px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.08); box-shadow: var(--v4-shadow-lg); background: #000;
}
.pd-video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ═══════════════════════════════════════════════
   LOCATION
═══════════════════════════════════════════════ */
.pd-location { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
/* One shared grid (subgrid rows) so every route line starts at the same x and lengths are comparable */
.pd-nearby { list-style: none; display: grid; grid-template-columns: max-content 1fr auto; column-gap: 16px; }
.pd-nearby li {
    display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--v4-line);
}
.pd-nearby-name { display: flex; align-items: center; gap: 14px; color: var(--v4-ink); font-weight: 500; }
.pd-nearby-name i {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--v4-gold-soft); color: var(--v4-gold-dark);
}
.pd-nearby-dist { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--v4-navy-900); white-space: nowrap; text-align: right; min-width: 88px; }
.pd-nearby-name { flex-shrink: 0; }

/* Route lines: length follows distance (--reach, set by JS); they draw in when the list scrolls into view */
.pd-route { position: relative; height: 2px; margin: 0 6px; border-top: 2px dashed rgba(201, 161, 92, 0.25); }
.pd-route-line {
    position: absolute; left: 0; top: -2px; height: 2px; width: calc(var(--reach, 1) * 100%);
    background: linear-gradient(90deg, var(--v4-gold-light), var(--v4-gold-dark));
    transform-origin: left center; transition: transform 1.1s var(--v4-ease);
}
.pd-nearby.is-armed .pd-route-line { transform: scaleX(0); }
.pd-route-line::after {
    content: ''; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--v4-gold); box-shadow: 0 0 0 4px rgba(201, 161, 92, 0.2);
}
.pd-nearby.is-armed.is-drawn .pd-route-line { transform: scaleX(1); }
.pd-address {
    margin-top: 26px; padding: 20px 22px; border-radius: var(--v4-radius); background: var(--v4-ivory);
    border: 1px solid var(--v4-line); font-size: 14.5px; line-height: 1.7; color: var(--v4-ink);
}
.pd-address strong { display: block; color: var(--v4-navy-900); margin-bottom: 4px; }
.pd-nearby-more { margin-top: 26px; display: grid; gap: 14px; }
.pd-nearby-more-title { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--v4-navy-900); }
.pd-nearby-group { display: grid; grid-template-columns: 170px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.6; }
.pd-nearby-group-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--v4-ink); }
.pd-nearby-group-name i { color: var(--v4-gold); width: 16px; text-align: center; }
.pd-nearby-group p { color: var(--v4-ink); opacity: 0.8; }
.pd-map { border-radius: var(--v4-radius-lg); overflow: hidden; border: 1.5px solid var(--v4-line); min-height: 420px; }
.pd-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.pd-map-image { display: block; margin-top: 18px; border-radius: var(--v4-radius); overflow: hidden; border: 1px solid var(--v4-line); cursor: zoom-in; }
.pd-map-image img { width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════
   RERA + ENQUIRY
═══════════════════════════════════════════════ */
.pd-enquiry { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.pd-enquiry-info .section-title { margin: 14px 0 16px; }
.pd-enquiry-info > p { color: var(--v4-ink-soft); line-height: 1.8; margin-bottom: 26px; }
.pd-contact-list { list-style: none; display: grid; gap: 14px; margin-bottom: 28px; }
.pd-contact-list li { display: flex; align-items: center; gap: 14px; }
.pd-contact-list i {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--v4-navy-900); color: var(--v4-gold-light);
}
.pd-contact-list small { display: block; font-size: 12px; color: var(--v4-ink-soft); }
.pd-contact-list a, .pd-contact-list span { color: var(--v4-ink); font-weight: 500; }
.pd-rera {
    display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--v4-radius);
    background: var(--v4-navy-900); color: #fff;
}
.pd-rera img { width: 92px; height: 92px; border-radius: 8px; background: #fff; padding: 4px; }
.pd-rera > i { font-size: 34px; color: var(--v4-gold-light); }
.pd-rera strong { display: block; font-family: 'Playfair Display', serif; font-size: 18px; color: var(--v4-gold-light); }
.pd-rera small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }
.pd-rera small a { color: var(--v4-gold-light); text-underline-offset: 3px; }
.pd-enquiry-card { position: relative; }
.pd-enquiry-card h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--v4-navy-900); margin-bottom: 6px; }
.pd-enquiry-card > form > p { font-size: 14px; color: var(--v4-ink-soft); margin-bottom: 24px; }
.pd-enquiry-card .form-field-full { margin-top: 18px; }
.pd-enquiry-card .btn-full { margin-top: 24px; }
.pd-form-note { margin-top: 14px; font-size: 12px; color: var(--v4-ink-soft); text-align: center; }

/* ═══════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════ */
.pd-lightbox {
    position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
    background: rgba(7, 13, 27, 0.94); opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.pd-lightbox.is-open { opacity: 1; pointer-events: auto; }
.pd-lightbox figure { max-width: min(1200px, 92vw); text-align: center; }
.pd-lightbox figure.is-img-loading { min-width: min(400px, 80vw); min-height: 240px; /* room for the loader before the first image has a size */ }
.pd-lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--v4-radius-sm); background: #fff; }
.pd-lightbox figcaption { margin-top: 14px; color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.pd-lb-btn {
    position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.pd-lb-btn:hover { background: var(--v4-gold); border-color: var(--v4-gold); }
.pd-lb-close { top: 24px; right: 24px; }
.pd-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.pd-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ═══════════════════════════════════════════════
   MOBILE ACTION BAR
═══════════════════════════════════════════════ */
.pd-mobile-bar { display: none; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1080px) {
    .pd-facts-grid { grid-template-columns: repeat(3, 1fr); }
    .pd-fact:nth-child(3) { border-right: 0; }
    .pd-fact:nth-child(n+4) { border-top: 1px solid var(--v4-line-navy); }
    .pd-units, .pd-units-3 { grid-template-columns: repeat(2, 1fr); }
    .pd-gallery { grid-template-columns: repeat(3, 1fr); }
    .pd-overview, .pd-location, .pd-enquiry { grid-template-columns: 1fr; gap: 40px; }
    .pd-video { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
    .pd-building { grid-template-columns: 1fr; gap: 40px; }
    /* No room for the portrait card beside the text: the reel becomes the hero background, under the overlay */
    .pd-hero-reel {
        z-index: auto; inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; aspect-ratio: auto;
        border: 0; border-radius: 0; box-shadow: none;
    }
    .pd-tower { --floor-h: 22px; width: 200px; }
    /* Phones/tablets: the stage sticks under the header (top ~half of the screen) and the floor chapters
       scroll underneath it, so the tower and the floor being described are always on screen together */
    .pd-building.is-3d { grid-template-columns: 1fr; gap: 0; }
    .pd-building.is-3d .pd-b3d {
        top: var(--pd-sticky-top); height: 46svh; min-height: 300px;
        box-shadow: 0 18px 30px -12px rgba(7, 13, 27, 0.9);
    }
    .pd-building.is-3d .pd-stack { padding-bottom: 22svh; }
    .pd-building.is-3d .pd-stack-intro { min-height: 40svh; padding-top: 28px; text-align: center; align-items: center; }
    .pd-stack-intro p { font-size: 15px; }
    .pd-building.is-3d .pd-stack .pd-stack-row {
        min-height: 42svh; padding: 0; gap: 6px; align-items: center; text-align: center; border-left: 0;
    }
    .pd-building.is-3d .pd-stack-use { display: block; }
    .pd-spec { margin-bottom: 12px; padding: 16px 18px; }
    .pd-spec summary { pointer-events: auto; cursor: pointer; }
    .pd-spec h3 { margin-bottom: 0; font-size: 17px; }
    .pd-spec h3::after {
        content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; margin-left: auto;
        color: var(--v4-gold-dark); transition: transform 0.3s var(--v4-ease);
    }
    .pd-spec[open] h3 { margin-bottom: 12px; }
    .pd-spec[open] h3::after { transform: rotate(180deg); }
    .pd-building.is-3d .pd-stack-use i { margin-right: 8px; }
}

@media (max-width: 760px) {
    .pd-section { padding: 70px 0; }
    .pd-hero { min-height: 0; padding: calc(var(--v4-header-h) + 40px) 0 48px; }
    .pd-hero-overlay { background: linear-gradient(0deg, rgba(7, 13, 27, 0.95) 20%, rgba(7, 13, 27, 0.55) 100%); }
    .pd-hero-actions .btn { flex: 1 1 100%; justify-content: center; }
    .pd-facts-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-fact { padding: 22px 16px; border-right: 1px solid var(--v4-line-navy); }
    .pd-fact:nth-child(3) { border-right: 1px solid var(--v4-line-navy); }
    .pd-fact:nth-child(even) { border-right: 0; }
    .pd-fact:nth-child(n+3) { border-top: 1px solid var(--v4-line-navy); }
    .pd-fact:last-child:nth-child(odd) { grid-column: span 2; border-right: 0; }
    .pd-units, .pd-units-3 { grid-template-columns: 1fr; }
    .pd-overview-points, .pd-video-list { grid-template-columns: 1fr; }
    .pd-highlights { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pd-highlight { padding: 14px 12px; }
    .pd-highlight strong { font-size: 20px; }
    .pd-stack-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
    .pd-tower { --floor-h: 18px; width: 170px; }
    .pd-tower-block span { font-size: 9.5px; padding: 2px 7px; }
    .pd-building.is-3d { --pd-sticky-top: 64px; /* nav row only: the info strip is hidden at this width */ }
    .pd-building.is-3d .pd-stack-use { font-size: 21px; }
    .pd-b3d-tag { font-size: 10px; padding: 4px 8px; margin-left: 14px; }
    .pd-b3d-tag::before { width: 12px; }
    .pd-b3d-tag small { display: none; }
    .pd-nearby { grid-template-columns: minmax(0, 150px) 1fr auto; column-gap: 10px; }
    .pd-nearby-name { gap: 10px; font-size: 14px; }
    .pd-nearby-dist { min-width: 0; font-size: 16px; }
    .pd-nearby-name i { width: 32px; height: 32px; }
    .pd-nearby-group { grid-template-columns: 1fr; gap: 2px; }
    .pd-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .pd-gallery-item.is-wide { grid-column: span 2; }
    .pd-gallery-item.is-tall { grid-row: span 1; }
    .pd-video-frame { width: min(300px, 80vw); }
    .pd-plan-frame { padding: 8px; }
    .pd-plan-lock { padding: 10px 16px; font-size: 13px; border-radius: 18px; }
    .pd-map, .pd-map iframe { min-height: 300px; }
    .pd-lb-prev, .pd-lb-next { top: auto; bottom: 24px; transform: none; }
    .pd-lb-prev { left: calc(50% - 60px); }
    .pd-lb-next { right: calc(50% - 60px); }

    /* Sticky call/WhatsApp/enquire bar replaces the floating Genie launcher on phones */
    .pd-mobile-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: repeat(3, 1fr);
        background: var(--v4-navy-950); border-top: 1px solid var(--v4-line);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .pd-mobile-bar a {
        display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
        font-size: 12px; color: #fff;
    }
    .pd-mobile-bar a i { font-size: 17px; color: var(--v4-gold-light); }
    .pd-mobile-bar a.pd-mobile-bar-cta { background: var(--v4-gold); color: var(--v4-navy-950); font-weight: 600; }
    .pd-mobile-bar a.pd-mobile-bar-cta i { color: var(--v4-navy-950); }
    .pd-page .genie-launcher, .pd-page .back-top { bottom: 84px; }
    .pd-page .v4-footer { padding-bottom: 64px; }
}
