/* 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; }
.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-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); }
.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); }

/* 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; }

/* ═══════════════════════════════════════════════
   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-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; }

/* ═══════════════════════════════════════════════
   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); }

/* ═══════════════════════════════════════════════
   GALLERY + WALKTHROUGH VIDEO
═══════════════════════════════════════════════ */
.pd-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; 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); }
.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; }
.pd-nearby { list-style: none; }
.pd-nearby li {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    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; }
.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-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-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 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; }
}

@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-stack-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
    .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-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; }
}
