/* TG-RERA Project Cards */
.tgrera-project-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0e8e2;
    padding: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.tgrera-project-card:hover {
    box-shadow: 0 8px 30px rgba(255, 103, 37, 0.12);
    border-color: #ffd4bf;
    transform: translateY(-3px);
}
.tgrera-project-card .project-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.tgrera-project-card .project-type-badge.residential { background: #fff3e0; color: #e65100; }
.tgrera-project-card .project-type-badge.commercial { background: #e8f5e9; color: #2e7d32; }
.tgrera-project-card .project-type-badge.plotted { background: #fce4ec; color: #c62828; }
.tgrera-project-card .project-type-badge.mixed { background: #f3e5f5; color: #6a1b9a; }
.tgrera-project-card .project-type-badge.other { background: #f5f5f5; color: #616161; }

.tgrera-project-card .project-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tgrera-project-card .project-name a {
    color: inherit;
    text-decoration: none;
}
.tgrera-project-card .project-name a:hover {
    color: #ff6725;
}
.tgrera-project-card .promoter-name {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.tgrera-project-card .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #fef0e8;
}
.tgrera-project-card .project-meta .meta-item {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tgrera-project-card .project-meta .meta-item i {
    font-size: 11px;
    color: #ff8f5c;
}
.tgrera-project-card .project-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.tgrera-project-card .project-status.status-new { background: #fff3e0; color: #e65100; }
.tgrera-project-card .project-status.status-ongoing { background: #fff8e1; color: #f57f17; }
.tgrera-project-card .project-status.status-completed { background: #e8f5e9; color: #2e7d32; }
.tgrera-project-card .project-status.status-lapsed { background: #fce4ec; color: #c62828; }
.tgrera-project-card .project-status.status-revoked { background: #fce4ec; color: #b71c1c; }
.tgrera-project-card .reg-no {
    font-size: 12px;
    color: #999;
    font-family: monospace;
    margin-bottom: 4px;
}

/* ========================================
   PROJECT DETAIL - HEADER
   ======================================== */

.rera-detail-header {
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 50%, #ffb88c 100%);
    border-radius: 25px;
    padding: 40px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(255, 103, 37, 0.25);
    position: relative;
    overflow: hidden;
}
.rera-detail-header-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}
.rera-detail-header-decoration::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.rera-detail-header-decoration::after {
    content: '';
    position: absolute;
    top: 150px;
    right: 200px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.rera-detail-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}
.rera-detail-header .header-type-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 5px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}
.rera-detail-header .header-promoter {
    font-size: 1.05rem;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 2;
}
.rera-detail-header .header-address {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}
.rera-detail-header .header-reg-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

/* ========================================
   PROJECT DETAIL - SECTION CARDS
   ======================================== */

.rera-section-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    border: 2px solid #fff5f0;
    box-shadow: 0 4px 20px rgba(255, 103, 37, 0.06);
    position: relative;
    overflow: hidden;
}
.rera-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 5% 10%, rgba(255, 103, 37, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 95% 90%, rgba(255, 139, 92, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.rera-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid #fff0e6;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.rera-section-title .section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6725, #ff8f5c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.25);
}

/* ========================================
   PROJECT DETAIL - INFO ROWS
   ======================================== */

.rera-info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #fef5f0;
    position: relative;
    transition: background 0.2s;
}
.rera-info-row:last-child {
    border-bottom: none;
}
.rera-info-row:hover {
    background: #fffbf8;
    border-radius: 8px;
    margin: 0 -8px;
    padding: 12px 8px;
}
.rera-info-row .info-label {
    width: 180px;
    flex-shrink: 0;
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.rera-info-row .info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}
.rera-info-row .info-value a {
    color: #ff6725;
    text-decoration: none;
    font-weight: 600;
}
.rera-info-row .info-value a:hover {
    text-decoration: underline;
}

/* ========================================
   PROJECT DETAIL - STATUS BADGES
   ======================================== */

.rera-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
}
.rera-status-badge.status-new { background: #fff3e0; color: #e65100; border: 1px solid #ffcc02; }
.rera-status-badge.status-ongoing { background: linear-gradient(135deg, #fff8e1, #fff3e0); color: #f57f17; border: 1px solid #ffe082; }
.rera-status-badge.status-completed { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.rera-status-badge.status-lapsed { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }
.rera-status-badge.status-revoked { background: #fce4ec; color: #b71c1c; border: 1px solid #ef9a9a; }

/* ========================================
   PROJECT DETAIL - AREA CARDS
   ======================================== */

.rera-area-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.rera-area-card {
    background: linear-gradient(135deg, #fff8f3 0%, #fff0e6 100%);
    border: 2px solid #ffe0cc;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rera-area-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 103, 37, 0.06);
    border-radius: 50%;
}
.rera-area-card .area-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff8f5c;
    font-weight: 700;
    margin-bottom: 6px;
}
.rera-area-card .area-value {
    font-size: 18px;
    font-weight: 800;
    color: #ff6725;
    line-height: 1.2;
}
.rera-area-card .area-unit {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* ========================================
   PROJECT DETAIL - BOUNDARIES
   ======================================== */

.rera-boundary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.rera-boundary-item {
    background: linear-gradient(135deg, #fff8f3 0%, #fff0e6 100%);
    border: 2px solid #ffe0cc;
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.rera-boundary-item::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 103, 37, 0.06);
    border-radius: 50%;
}
.rera-boundary-item .direction {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff8f5c;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.rera-boundary-item .direction i {
    color: #ff6725;
}
.rera-boundary-item .boundary-value {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
}

/* ========================================
   PROJECT DETAIL - MAP SECTION
   ======================================== */

.rera-map-container {
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid #ffe0cc;
    box-shadow: 0 6px 20px rgba(255, 103, 37, 0.1);
    margin-top: 12px;
}
.rera-map-container #projectMap {
    width: 100%;
    height: 280px;
}
.rera-map-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.rera-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #ff6725;
    color: #ff6725;
    background: #fff;
}
.rera-map-btn:hover {
    background: #ff6725;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 103, 37, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ========================================
   PROJECT DETAIL - STATUS CARD
   ======================================== */

.rera-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rera-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff8f3, #fff);
    border-radius: 12px;
    border: 1px solid #fef0e6;
}
.rera-status-item .status-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.rera-status-item .status-icon.green { background: #e8f5e9; color: #2e7d32; }
.rera-status-item .status-icon.orange { background: #fff3e0; color: #e65100; }
.rera-status-item .status-icon.blue { background: #e3f2fd; color: #1565c0; }
.rera-status-item .status-icon.gray { background: #f5f5f5; color: #757575; }
.rera-status-item .status-text {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

/* ========================================
   PROJECT DETAIL - RELATED PROJECTS
   ======================================== */

.rera-related-card {
    background: #fff;
    border: 2px solid #fff0e6;
    border-radius: 14px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.rera-related-card:hover {
    border-color: #ffd4bf;
    box-shadow: 0 6px 20px rgba(255, 103, 37, 0.1);
    transform: translateY(-2px);
}
.rera-related-card h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}
.rera-related-card h6 a {
    color: #333;
    text-decoration: none;
}
.rera-related-card h6 a:hover {
    color: #ff6725;
}
.rera-related-card .meta {
    font-size: 12px;
    color: #888;
}
.rera-related-card .meta i {
    color: #ff8f5c;
}

/* ========================================
   PROJECT DETAIL - JSON DATA CARDS
   ======================================== */

.rera-data-block {
    background: linear-gradient(135deg, #fffbf8 0%, #fff5ee 100%);
    border: 1px solid #ffe8d9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
}

/* ========================================
   RELATED PROJECTS SECTION
   ======================================== */

.rera-related-section {
    background: linear-gradient(135deg, #ffffff 0%, #fff8f3 100%);
    border: 3px solid #fff0e6;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(255, 103, 37, 0.06);
    position: relative;
    overflow: hidden;
}
.rera-related-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 103, 37, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 139, 92, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.rera-related-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}
.rera-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6725, #ff8f5c);
    color: #fff;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 103, 37, 0.25);
    transition: all 0.3s;
}
.rera-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 37, 0.35);
    color: #fff;
    text-decoration: none;
}

/* ========================================
   FILTER SECTION
   ======================================== */

.tgrera-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.tgrera-filter-pills .filter-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #ffd4bf;
    color: #ff6725;
    text-decoration: none;
    transition: all 0.2s;
}
.tgrera-filter-pills .filter-pill:hover,
.tgrera-filter-pills .filter-pill.active {
    background: linear-gradient(135deg, #ff6725, #ff8f5c);
    color: #fff;
    border-color: #ff6725;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.25);
}

/* Stats Banner for Projects */
.tgrera-project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.tgrera-project-stats .stat-item {
    background: linear-gradient(135deg, #fff8f3, #fff);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    border: 2px solid #fff0e6;
    position: relative;
    overflow: hidden;
}
.tgrera-project-stats .stat-item::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 103, 37, 0.06);
    border-radius: 50%;
}
.tgrera-project-stats .stat-item .stat-num {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6725, #ff8f5c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tgrera-project-stats .stat-item .stat-lbl {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.rera-breadcrumb-card {
    background: linear-gradient(135deg, #ffffff, #fff8f3);
    border: 2px solid #fff0e6;
    border-radius: 16px;
    padding: 14px 22px;
    margin-bottom: 20px;
}
.rera-breadcrumb-card .breadcrumb {
    background: transparent;
    margin-bottom: 0;
}
.rera-breadcrumb-card .breadcrumb a {
    color: #ff6725;
    text-decoration: none;
    font-weight: 500;
}
.rera-breadcrumb-card .breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .rera-detail-header {
        padding: 25px 20px;
        border-radius: 18px;
    }
    .rera-detail-header h1 {
        font-size: 1.3rem;
    }
    .rera-section-card {
        padding: 20px;
        border-radius: 16px;
    }
    .rera-info-row {
        flex-direction: column;
    }
    .rera-info-row .info-label {
        width: 100%;
        margin-bottom: 2px;
    }
    .rera-boundary-grid {
        grid-template-columns: 1fr;
    }
    .rera-area-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .tgrera-project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .rera-related-section {
        padding: 20px;
        border-radius: 18px;
    }
    .rera-documents-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   UPLOADED DOCUMENTS
   ======================================== */

.rera-doc-count {
    background: linear-gradient(135deg, #ff6725, #ff8f5c);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: auto;
}
.rera-documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.rera-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #fff0e6;
    background: #fffbf8;
    transition: all 0.2s;
}
.rera-doc-item:hover {
    border-color: #ffd4bf;
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.08);
    background: #fff;
}
.rera-doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.rera-doc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rera-doc-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rera-doc-name {
    font-size: 12px;
    color: #555;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rera-doc-badge {
    background: #ffeee4;
    color: #ff6725;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
a.rera-doc-item--downloadable {
    text-decoration: none;
    color: inherit;
}
a.rera-doc-item--downloadable:hover {
    transform: translateY(-2px);
    border-color: #ff6725;
    box-shadow: 0 6px 16px rgba(255, 103, 37, 0.12);
}
.rera-doc-download {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: #fff0e6;
    transition: all 0.2s;
}
a.rera-doc-item--downloadable:hover .rera-doc-download {
    background: #ff6725;
    color: #fff !important;
}
.rera-doc-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff8f3, #fff0e6);
    border-radius: 10px;
    font-size: 12px;
    color: #777;
    border: 1px solid #ffe8d9;
}
.rera-doc-note a {
    color: #ff6725;
    font-weight: 600;
    text-decoration: none;
}
.rera-doc-note a:hover {
    text-decoration: underline;
}
