/* ==========================================================================
   PRANGON PROJECT DETAILS PAGE - COMPLETE STYLESHEET
   Brand Theme: Deep Trust Navy (#0F2C59) & Dynamic Orange (#FF6B00)
   ========================================================================== */

/* AutoCAD Blueprint Background Grid */
.autocad-bg {
    background-color: #f8fafc;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Home Matching Reveal Effect (Blur-to-Clear Fade Up) */
.reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.reveal.active {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   1. Base Page & Breadcrumb Layout
   -------------------------------------------------------------------------- */
.project-details-page {
    padding: 120px 0 80px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--primary-navy, #0f172a);
    font-weight: 600;
    transition: var(--transition, all 0.3s ease);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-orange, #e65100);
}

.breadcrumb i {
    font-size: 10px;
    color: var(--text-muted, #64748b);
}

/* Section Common Titles */
.section-block-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-navy, #0f172a);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   2. Photo Gallery & Full Screen Display Fix
   -------------------------------------------------------------------------- */
.details-gallery-section {
    margin-bottom: 40px;
}

/* Main Display Viewport */
.main-image-viewport {
    position: relative;
    width: 100%;
    height: 520px;
    background: #08172e;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm, 0 4px 6px -1px rgba(0,0,0,0.03));
}

.main-image-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.main-image-viewport:hover img {
    transform: scale(1.02);
}

/* Badges & Overlay Hints */
.gallery-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-orange, #e65100);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
    z-index: 2;
}

.zoom-overlay-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

/* Thumbnails Strip */
.gallery-thumbnails {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.thumb-item {
    width: 120px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    background: #08172e;
    transition: var(--transition, all 0.3s ease);
    flex-shrink: 0;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: var(--accent-orange, #e65100);
    opacity: 1;
    transform: translateY(-2px);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   3. Full-Screen Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: zoomAnimation 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 42px;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    line-height: 1;
    z-index: 100000;
}

.lightbox-close:hover {
    color: var(--accent-orange, #e65100);
    transform: scale(1.15) rotate(90deg);
}

@keyframes zoomAnimation {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --------------------------------------------------------------------------
   4. Video Section
   -------------------------------------------------------------------------- */
.details-video-section {
    margin-bottom: 40px;
}

.video-container-box {
    position: relative;
    padding-bottom: 52%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm, 0 4px 6px -1px rgba(0,0,0,0.03));
    background: #000000;
}

.video-container-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   5. Main Grid & Left Section Cards
   -------------------------------------------------------------------------- */
.details-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
}

.details-left-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Title & Header Card */
.project-header-box {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm, 0 4px 6px -1px rgba(0,0,0,0.03));
}

.dev-badge-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-navy, #0f172a);
    margin-bottom: 12px;
}

.status-tag {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.project-main-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-navy, #0f172a);
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-location-text {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    margin-bottom: 20px;
}

.price-strip {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange, #e65100);
}

.price-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
}

.price-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-navy, #0f172a);
}

.price-amount small {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    font-weight: 500;
}

/* Feature Cards Common Style */
.flat-specs-card,
.audit-summary-card,
.why-choose-card,
.full-description-card,
.detail-emi-calculator-card,
.map-location-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm, 0 4px 6px -1px rgba(0,0,0,0.03));
}

.flat-specs-card h3,
.audit-summary-card h3,
.why-choose-card h3,
.full-description-card h3,
.detail-emi-calculator-card h3,
.map-location-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-navy, #0f172a);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Specs Matrix Grid */
.specs-grid-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.spec-unit {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
}

.spec-unit i {
    font-size: 22px;
    color: var(--accent-orange, #e65100);
}

.spec-unit span {
    display: block;
    font-size: 11px;
    color: var(--text-muted, #64748b);
}

.spec-unit strong {
    font-size: 13px;
    color: var(--primary-navy, #0f172a);
}

/* NEW: Structural Audit Card Styling */
.audit-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.audit-metric-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px dashed var(--border-color, #e2e8f0);
}

.audit-metric-item i {
    font-size: 26px;
}

.audit-metric-item strong {
    display: block;
    font-size: 13px;
    color: var(--primary-navy, #0f172a);
}

.audit-metric-item span {
    font-size: 11px;
    color: var(--text-muted, #64748b);
}

/* Why Choose Section */
.why-reasons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reason-item {
    display: flex;
    gap: 14px;
}

.reason-item i {
    font-size: 24px;
    color: var(--primary-navy, #0f172a);
    margin-top: 4px;
}

.reason-item h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-navy, #0f172a);
    margin-bottom: 4px;
}

.reason-item p {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
}

/* Description Details List */
.full-description-card p {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    line-height: 1.7;
}

.flat-details-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--primary-navy, #0f172a);
    list-style: none;
    padding: 0;
}

/* NEW: EMI Calculator Widget Inside Details */
.emi-calc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.calc-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-navy, #0f172a);
    margin-bottom: 6px;
}

.calc-field input, .calc-field select {
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.emi-result-strip {
    background: #f8fafc;
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px dashed var(--border-color, #e2e8f0);
}

.emi-result-strip span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.emi-result-strip strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-orange, #e65100);
}

/* Google Map Embed Frame */
.google-map-iframe {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e2e8f0);
}

/* --------------------------------------------------------------------------
   6. Sticky Contact Sidebar
   -------------------------------------------------------------------------- */
.details-right-sidebar {
    position: relative;
}

.sticky-booking-card {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-md, 0 10px 25px rgba(0,0,0,0.05));
}

.agent-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.agent-avatar {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-navy, #0f172a);
}

.agent-profile h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-navy, #0f172a);
    margin: 0;
}

.agent-profile span {
    font-size: 11px;
    color: var(--text-muted, #64748b);
}

.btn-sidebar-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--primary-navy, #0f172a);
    color: #ffffff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: var(--transition, all 0.3s ease);
}

.btn-sidebar-call:hover {
    background: var(--accent-orange, #e65100);
}

.sidebar-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.sidebar-divider span {
    background: #ffffff;
    padding: 0 10px;
    font-size: 11px;
    color: var(--text-muted, #64748b);
}

.sidebar-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-contact-form input,
.sidebar-contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition, all 0.3s ease);
}

.sidebar-contact-form input:focus,
.sidebar-contact-form textarea:focus {
    border-color: var(--primary-navy, #0f172a);
    background: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .details-main-grid {
        grid-template-columns: 1fr;
    }
    .specs-grid-box,
    .why-reasons-grid,
    .audit-metrics-grid,
    .emi-calc-grid {
        grid-template-columns: 1fr;
    }
    .main-image-viewport {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .main-image-viewport {
        height: 300px;
        border-radius: 14px;
    }

    .thumb-item {
        width: 90px;
        height: 60px;
        border-radius: 8px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 36px;
    }

    .zoom-overlay-hint {
        font-size: 10px;
        padding: 6px 12px;
        bottom: 12px;
        right: 12px;
    }

    .project-main-title {
        font-size: 22px;
    }

    .price-strip {
        flex-direction: column;
        gap: 4px;
    }
}