/* GHMC Building Permission — Brand Orange Theme (#ff6725), prefix: gb- */

.gb-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;
}
.gb-search-hero-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.gb-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);
}
.gb-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;
}
.gb-search-hero-badge i { margin-right: 5px; }
.gb-search-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.gb-search-hero-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin: 0;
}
.gb-search-hero-desc a {
    color: #ffd4c2;
    text-decoration: underline;
    font-weight: 500;
}
.gb-search-hero-desc a:hover { color: #fff; text-decoration: none; }
.gb-search-hero + .gb-search-card { border-radius: 0 0 20px 20px !important; }
.gb-search-card { padding: 24px; }

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

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

.gb-search-summary {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #555;
    margin-top: 12px;
}

/* Rules table */
.gb-rules-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.gb-rules-table thead th {
    background: #e55a1b;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
.gb-rules-table thead th:first-child { border-radius: 8px 0 0 0; }
.gb-rules-table thead th:last-child { border-radius: 0 8px 0 0; }
.gb-rules-table tbody td {
    padding: 10px 14px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}
.gb-rules-table tbody tr:nth-child(even) { background: #fafafa; }
.gb-rules-table tbody tr:hover { background: #fff3ed; }

/* Comparison grid */
.gb-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.gb-comparison-item {
    padding: 16px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
}
.gb-comparison-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: #ff6725;
    margin-bottom: 6px;
}
.gb-comparison-item p,
.gb-comparison-item li {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}
.gb-comparison-item ul {
    padding-left: 16px;
    margin-top: 6px;
    margin-bottom: 0;
}
.gb-comparison-item a {
    color: #ff6725;
    text-decoration: underline;
    font-weight: 500;
}
.gb-comparison-item a:hover { color: #e55a1b; }

/* Violation list */
.gb-violation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gb-violation-list li {
    padding: 10px 14px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}
.gb-violation-list li i {
    color: #c62828;
    margin-right: 8px;
}

/* Portal list */
.gb-portal-list { margin-bottom: 16px; }
.gb-portal-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
    transition: all 0.2s;
}
.gb-portal-item:hover {
    background: #fff3ed;
    border-color: #ffd6c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,103,37,0.08);
}
.gb-portal-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff6725;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.gb-portal-content { flex: 1; }
.gb-portal-content h5 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}
.gb-portal-content p {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.5;
}
.gb-portal-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #ff6725;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(255,103,37,0.08);
    border-radius: 6px;
    transition: all 0.2s;
}
.gb-portal-link:hover {
    background: rgba(255,103,37,0.15);
    color: #e55a1b;
}

/* Compact portal list (in results) */
.gb-portal-list-compact { margin-bottom: 0; }
.gb-portal-compact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s;
    color: inherit;
}
.gb-portal-compact-item:hover {
    background: #fff3ed;
    border-color: #ffd6c2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255,103,37,0.08);
    text-decoration: none;
    color: inherit;
}
.gb-portal-compact-info { flex: 1; }
.gb-portal-compact-info strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}
.gb-portal-compact-info span {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}
.gb-portal-compact-item > i {
    color: #ff6725;
    font-size: 14px;
    flex-shrink: 0;
}

/* Documents grid */
.gb-docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.gb-doc-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    align-items: flex-start;
}
.gb-doc-item i {
    color: #ff6725;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}
.gb-doc-item strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}
.gb-doc-item span {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* Timeline */
.gb-timeline { margin-bottom: 16px; }
.gb-timeline-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.gb-timeline-item:last-child { border-bottom: none; }
.gb-timeline-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ff6725;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.gb-timeline-content { flex: 1; }
.gb-timeline-content strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}
.gb-timeline-content span {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* Skeleton loader */
.gb-skeleton-bar {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: gb-skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes gb-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

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

/* Mobile responsive */
@media (max-width: 768px) {
    .gb-search-hero-title { font-size: 20px; }
    .gb-search-hero { padding: 24px 20px 18px; }
    .gb-comparison-grid { grid-template-columns: 1fr; }
    .gb-docs-grid { grid-template-columns: 1fr; }
    .gb-rules-table { font-size: 13px; }
    .gb-rules-table thead th, .gb-rules-table tbody td { padding: 8px 10px; }
    .gb-portal-item { padding: 14px; }
    .gb-portal-content h5 { font-size: 14px; }
    .gb-faq-question { padding: 14px 16px; font-size: 14px; }
    .gb-faq-answer { font-size: 13px; }
    .gb-timeline-item { gap: 12px; }
}

@media (max-width: 576px) {
    .gb-search-hero-title { font-size: 18px; }
    .gb-search-hero-desc { font-size: 13px; }
    .gb-comparison-item { padding: 12px; }
    .gb-comparison-item h5 { font-size: 14px; }
    .gb-portal-icon { width: 30px; height: 30px; font-size: 12px; }
    .gb-timeline-step { width: 28px; height: 28px; font-size: 12px; }
}

/* Print styles */
@media print {
    .dashboard-side-menu, .dashboard-header, .gb-search-hero, .gb-search-card,
    .related-tool-card, .related-tools-heading, #tool-article, .gb-faq-item, footer, nav, .breadcrumb,
    .gb-results-actions, .gb-portal-list, .gb-portal-list-compact, .btn-one, .btn-two { display: none !important; }
    .gb-guidance-card { box-shadow: none !important; border: 1px solid #ddd; }
    .gb-rules-table { page-break-inside: avoid; }
    .gb-rules-table tbody tr { page-break-inside: avoid; }
    body::before {
        content: 'GHMC Building Permission Check — Source: tg.verified.realestate — Printed: ' attr(data-print-date);
        display: block;
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
    }
}
