/* BuildNow / TGBPass Check — Brand Orange Theme (#ff6725), prefix: bn- */

.bn-search-hero {
    background: linear-gradient(135deg, #ff6725 0%, #ff8f5c 50%, #ffb88c 100%);
    padding: 32px 28px 22px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}
.bn-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.bn-search-hero-decoration::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.bn-search-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.bn-search-hero-badge i { margin-right: 5px; }
.bn-search-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.bn-search-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}
.bn-search-hero-desc a {
    color: #ffd4c2;
    text-decoration: underline;
    font-weight: 500;
}
.bn-search-hero-desc a:hover { color: #fff; text-decoration: none; }
.bn-search-hero + .bn-search-card { border-radius: 0 0 20px 20px !important; }
.bn-search-card { padding: 24px; }

/* Section titles */
.bn-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}
.bn-section-title i {
    color: #ff6725;
    margin-right: 8px;
}

/* Info section */
.bn-info-section { margin-bottom: 0; }
.bn-info-section h3 {
    color: #e55a1b;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.bn-info-section p,
.bn-info-section li {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}
.bn-info-section ul,
.bn-info-section ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.bn-info-section li { margin-bottom: 6px; }

/* Guidance card */
.bn-guidance-card {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.bn-guidance-card h4 {
    color: #e65100;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}
.bn-guidance-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}
.bn-guidance-card a {
    color: #e55a1b;
    font-weight: 600;
    text-decoration: underline;
}
.bn-guidance-card a:hover { color: #bf360c; }

/* Fee / data table */
.bn-fee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.bn-fee-table thead th {
    background: #e55a1b;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
.bn-fee-table tbody td {
    padding: 10px 14px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}
.bn-fee-table tbody tr:last-child td { border-bottom: none; }
.bn-fee-table tbody tr:nth-child(even) { background: #fafafa; }
.bn-fee-table tbody tr:hover { background: #fff3e0; }

/* Timeline grid */
.bn-timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.bn-timeline-item {
    padding: 16px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
}
.bn-timeline-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: #e55a1b;
    margin-bottom: 6px;
}
.bn-timeline-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Search results data table */
.bn-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.bn-data-table thead th {
    background: #fff5f0;
    color: #333;
    font-weight: 700;
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #ffe0d0;
    white-space: nowrap;
}
.bn-data-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: middle;
}
.bn-data-table tbody tr:hover {
    background: #fff9f6;
}
.bn-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Results actions */
.bn-results-actions .btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Skeleton loading */
.bn-skeleton-bar {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bn-shimmer 1.5s infinite;
    border-radius: 6px;
    height: 14px;
    display: inline-block;
}
.bn-skeleton-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}
.bn-skeleton-row .bn-skeleton-bar { height: 16px; }
@keyframes bn-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* FAQ */
.bn-faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.bn-faq-item.open { border-color: #ff6725; }
.bn-faq-question {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    background: #fafafa;
}
.bn-faq-question i { transition: transform 0.3s; color: #ff6725; }
.bn-faq-item.open .bn-faq-question i { transform: rotate(180deg); }
.bn-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}
.bn-faq-item.open .bn-faq-answer {
    padding: 0 20px 16px;
    max-height: 500px;
}

/* Print */
@media print {
    .dashboard-side-menu, .dashboard-header, .bn-search-hero, .bn-search-card,
    .related-tool-card, #tool-article, .bn-faq-item, footer, nav, .breadcrumb,
    .bn-results-actions, #bn-info-section, .related-tools-heading { display: none !important; }
    .bn-data-table { font-size: 11px; }
    .bn-data-table thead th { background: #f5f5f5 !important; }
    .bn-data-table tbody tr { page-break-inside: avoid; }
    #bn-result-area::before {
        content: 'BuildNow / TGBPass Building Permission Search — Source: tg.verified.realestate';
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .bn-search-hero-title { font-size: 20px; }
    .bn-search-hero { padding: 24px 20px 18px; }
    .bn-timeline-grid { grid-template-columns: 1fr; }
    .bn-data-table { font-size: 12px; }
    .bn-data-table thead th, .bn-data-table tbody td { padding: 8px 10px; }
    .bn-fee-table { font-size: 13px; }
    .bn-fee-table thead th, .bn-fee-table tbody td { padding: 8px 10px; }
}
@media (max-width: 576px) {
    .bn-search-hero { padding: 20px 16px 14px; }
    .bn-search-hero-title { font-size: 18px; }
    .bn-search-hero-desc { font-size: 13px; }
    .bn-data-table thead th, .bn-data-table tbody td { padding: 6px 8px; font-size: 11px; }
    .bn-fee-table thead th, .bn-fee-table tbody td { padding: 8px 10px; font-size: 12px; }
}
