/* results-page.css – page-specific styles extracted from results.php */

        :root {
            --deski-nofixed: rgb(44 70 86);
            --deski-talk-gray: #999999;
            --deski-talk-ph: #444444;
            --deski-talk-ul: #777777;
        }
        #logo img.white{
            display: none;
        }
        #site-title .deski-dropdown{
            display: flex !important;
        }

#competitor_table_wrapper .dataTables_empty { 
    height: 100px;
}
#competitor_table_wrapper .dataTables_processing { 
    padding: 25px;
}
.hidden {
    display: none;
}

/* ── Improved competitors table ─────────────────────── */
#competitor_table { border-collapse: separate !important; border-spacing: 0; width: 100% !important; font-size: 13px; }
#competitor_table thead th {
    background: #f8f9fb;
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    border-bottom: 1px solid #e8edf2 !important;
    border-top: none !important;
    white-space: nowrap;
}
#competitor_table tbody tr { transition: background 0.15s; }
#competitor_table tbody tr:hover { background: #f8faff !important; }
#competitor_table tbody td {
    padding: 10px 14px;
    border-top: 1px solid #f0f3f8 !important;
    vertical-align: middle;
    color: #374151;
    font-size: 13px;
}
#competitor_table.table-striped tbody tr:nth-child(odd) { background: #fff; }
#competitor_table.table-striped tbody tr:nth-child(even) { background: #fafbfd; }
#competitor_table_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    outline: none;
}
#competitor_table_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
}
#competitor_table_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    font-size: 12px;
}
/* ── Filter Bar ──────────────────────────────────────── */
.ci-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 0 14px;
    position: relative;
}
/* Google Ads-style chip: the wrap IS the pill */
.ci-filter-chip-wrap {
    display: inline-flex;
    align-items: center;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ci-filter-chip-wrap:hover {
    border-color: #aab0b8;
    box-shadow: 0 1px 3px rgba(60,64,67,0.12);
}
.ci-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    color: #202124;
    border: none;
    border-radius: 0;
    padding: 5px 4px 5px 12px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    line-height: 1.4;
}
.ci-filter-chip:hover { background: rgba(60,64,67,0.06); }
.ci-filter-chip-remove {
    background: transparent;
    border: none;
    color: #80868b;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    display: flex;
    align-items: center;
    transition: color 0.1s;
}
.ci-filter-chip-remove:hover { color: #444746; }
.ci-add-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #444746;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 5px 14px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.4;
    transition: background 0.15s, border-color 0.15s;
}
.ci-add-filter-btn svg { color: #80868b; flex-shrink: 0; }
.ci-add-filter-btn:hover { background: #f1f3f4; border-color: #aab0b8; }
/* Dropdown shared */
.ci-filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
    min-width: 240px;
    overflow: hidden;
}
/* Type picker */
.ci-type-list { list-style: none; margin: 0; padding: 8px 0; }
.ci-type-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}
.ci-type-list li:hover { background: #f3f4f6; }
.ci-type-list li svg { color: #6b7280; flex-shrink: 0; }
/* Options picker */
.ci-filter-search-wrap {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.ci-filter-search-wrap svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.ci-filter-search {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 10px 7px 30px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.ci-filter-meta {
    display: flex;
    justify-content: space-between;
    padding: 6px 14px 2px;
    font-size: 12px;
    color: #6b7280;
}
.ci-filter-meta span { cursor: pointer; }
.ci-filter-meta span:hover { color: #374151; }
.ci-options-list {
    max-height: 190px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
.ci-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}
.ci-option:hover { background: #f9fafb; }
.ci-option input[type=checkbox] { accent-color: #3d4a5c; width: 15px; height: 15px; cursor: pointer; }
.ci-option.selected { color: #1b2e4b; font-weight: 500; }
.ci-option-icon { font-size: 11px; color: #9ca3af; width: 16px; text-align: center; flex-shrink: 0; }
.ci-filter-footer {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
    gap: 6px;
}
.ci-footer-btn {
    flex: 1;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
}
.ci-footer-btn:hover { background: #e5e7eb; }
.ci-filter-apply {
    background: #3d4a5c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
}
.ci-filter-apply:hover { background: #2d3a4c; }
/* Range filter */
.ci-range-wrap { padding: 12px 14px 14px; }
.ci-range-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.ci-range-row label { font-size:12px; color:#6b7280; width:32px; flex-shrink:0; font-weight:500; }
.ci-range-row input[type=number] { flex:1; border:1px solid #ddd; border-radius:4px; padding:5px 8px; font-size:13px; width:100%; outline:none; }
.ci-range-row input[type=number]:focus { border-color:#3d4a5c; }
/* Website filter domain input */
.ci-website-domain-label { font-size:11px; color:#9ca3af; margin-bottom:4px; text-transform:uppercase; letter-spacing:.5px; padding: 8px 14px 0; display:block; border-top:1px solid #f0f0f0; }
/* Timeline change indicators */
.timeline-change-indicator {
    text-align: center;
    margin-top: 8px;
}
.timeline-delta {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}
.timeline-delta.delta-positive {
    color: #0d9e6c;
    background: #e6f9f1;
}
.timeline-delta.delta-negative {
    color: #dc3545;
    background: #fde8ea;
}
.timeline-delta-inline {
    font-size: 12px;
    font-weight: 600;
}
.timeline-delta-inline.delta-positive {
    color: #0d9e6c;
}
.timeline-delta-inline.delta-negative {
    color: #dc3545;
}
@media (max-width: 767px){
    .competitor-insight-report-main {
        margin-top: 110px !important;
    }
    .seo-header-section h1 {
        font-size: 26px !important;
    }
    #top-businesses-map {
        height: 300px !important;
        margin-top: 20px !important;
    }
}

/* Top Businesses List Styling */
.top-business-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.top-business-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #c5cdd8 !important;
    transform: translateY(-2px);
}

.top-business-item a:hover {
    color: #7c4dff !important;
}

.business-rank {
    font-size: 18px;
    font-weight: 700;
    color: var(--card-color);
    margin-right: 14px;
    min-width: 28px;
}

.business-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 14px;
    flex-shrink: 0;
    background: var(--card-color-bg);
    border: 2px solid var(--card-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-avatar__acronym {
    color: var(--card-color);
    font-weight: 700;
    font-size: 18px;
}

.business-details {
    flex: 1;
    min-width: 0;
}

.business-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.business-name {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    flex: 1;
}

.business-name a {
    color: #1a1a2e;
    text-decoration: none;
}

.business-ext-link {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.6;
}

.business-sources {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.business-sources img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.business-rating {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-rating img {
    width: 16px;
    height: 16px;
}

.rating-value {
    font-weight: 600;
    color: #1a1a2e;
}

.rating-count {
    color: #999;
}

.rating-no-value {
    color: #999;
}

.business-address {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 6px;
}

.business-address img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.business-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.business-category-badge {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--card-color-bg);
    color: var(--card-color);
    border-radius: 4px;
    white-space: nowrap;
}

#top-businesses-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    border: 1px solid #e8edf2;
    margin-top: 0;
    position: sticky;
    top: 20px;
}

/* Market Signals — Insight Cards (section 6) */
.insight-cards-row {
    padding: 8px 0 4px;
}
.insight-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    padding: 22px 20px 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.insight-card:hover {
    border-color: #c5cdd8;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    z-index: 10;
}
.insight-card__header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #f0f3f7;
}
.insight-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f4f9;
    border-radius: 8px;
    flex-shrink: 0;
}
.insight-card__title {
    font-size: 11.5px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0;
    margin: 0;
    line-height: 1.3;
}
.insight-card__body {
    flex: 1;
}
.insight-card__body .tags-container {
    padding: 0;
}
.insight-card__body .tags-container li {
    display: inline-flex;
    align-items: center;
    margin: 0 6px 8px 0;
    border-radius: 999px;
    overflow: hidden;
    background: #f1f4f9;
    border: 1px solid #e4e9f0;
    font-size: 12px;
    color: #3d4a5c;
    height: auto;
    line-height: 1;
    word-break: normal;
    transition: background 0.15s ease;
}
.insight-card__body .tags-container li:hover {
    background: #e6eaf2;
}
.insight-card__body .tags-container .text {
    padding: 4px 9px 4px 10px;
    font-weight: 500;
}
.insight-card__body .tags-container .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2b5c86;
    color: #fff;
    height: auto;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0 999px 999px 0;
    min-width: 26px;
}

/* Top Competitors Card Design */
.comp-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    padding: 24px 20px 18px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.comp-card:hover {
    border-color: #c5cdd8;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.comp-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    overflow: hidden;
    flex-shrink: 0;
}
.comp-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.comp-card__name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.35;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}
.comp-card__sources {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    min-height: 24px;
}
.comp-card__sources img {
    width: 22px;
    height: 22px;
}
.comp-card__metrics {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}
.comp-card__metric {
    flex: 1;
    text-align: center;
    padding: 10px 6px 6px;
    background: #f8f9fc;
    border-radius: 10px;
}
.comp-card__metric-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8892a4;
    margin-bottom: 4px;
}
.comp-card__metric-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}
.comp-card__metric-value--rating {
    color: #e74c3c;
}
.comp-card__metric-value--reviews {
    color: #3498db;
}
.comp-card__metric canvas {
    display: block;
    margin: 6px auto 0;
}
/* External micro-chart tooltip */
#microChartTooltip {
    position: fixed;
    pointer-events: none;
    background: rgba(0,0,0,0.82);
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.45;
    z-index: 99999;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    transition: opacity 0.15s ease;
    opacity: 0;
}
#microChartTooltip .mc-title {
    font-size: 10px;
    opacity: 0.75;
    margin-bottom: 2px;
}
#microChartTooltip .mc-value {
    font-weight: 700;
    font-size: 12px;
}
.comp-card__address {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #999;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    justify-content: center;
}
.comp-card__address span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.main-boxview .col-lg-3 {
    margin-bottom: 20px;
}
@media (max-width: 575px) {
    .comp-card__metrics {
        gap: 8px;
    }
    .comp-card__metric-value {
        font-size: 22px;
    }
}

/* Google Maps InfoWindow custom styling */
.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15) !important;
    overflow: visible !important;
}
.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}
.gm-style-iw {
    padding: 0 !important;
}
/* Floating close button - circle half in/half out */
.gm-ui-hover-effect {
    top: -12px !important;
    right: -12px !important;
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.gm-ui-hover-effect span {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
}

/* Category "+N more" tooltip */
.cat-more-badge {
    position: relative;
}
.cat-more-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
    max-width: 220px;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
    min-width: 160px;
}
.cat-more-badge:hover::after {
    opacity: 1;
}
.review-info-icon {
    position: relative;
}
.review-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
}
.review-info-icon:hover::after {
    opacity: 1;
}
.metric-label-tooltip {
    position: relative;
}
.metric-label-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
}
.metric-label-tooltip:hover::after {
    opacity: 1;
}

/* Desc info icon tooltip for dispersity / density */
.desc-info-icon {
    display: inline-block;
    position: relative;
    color: #aaa;
    font-size: 11px;
    margin-left: 4px;
    cursor: help;
    vertical-align: middle;
    line-height: 1;
    text-transform: none;
}
.desc-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 7px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 200;
    white-space: normal;
    text-align: left;
    line-height: 1.5;
    min-width: 220px;
    max-width: 260px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    text-transform: none;
    font-weight: normal;
    letter-spacing: normal;
}
.desc-info-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 200;
}
.desc-info-icon:hover::after,
.desc-info-icon:hover::before {
    opacity: 1;
}

/* Market Competitiveness indicator — purple */
.market-competitiveness-indicator {
    max-width: 100% !important;
}
.market-competitiveness-indicator > .indicator-value {
    background-color: #7c3aed;
    color: #7c3aed;
}
/* Market Opportunity indicator — green */
.market-opportunity-indicator {
    max-width: 100% !important;
}
.market-opportunity-indicator > .indicator-value {
    background-color: #16a34a;
    color: #16a34a;
}
/* Quadrant badge */
.market-quadrant-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid;
    margin-top: 10px;
}
.market-quadrant-badge .mq-label {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
}
.market-quadrant-badge .mq-desc {
    font-size: 11px;
    color: #555;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    line-height: 1.4;
}
/* Area Demographics card stat tiles */
.demo-stats-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -6px;
}
.demo-stat {
    flex: 1 1 16%;
    min-width: 120px;
    padding: 12px 6px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}
.demo-stat:last-child { border-right: none; }
.demo-stat-icon {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1;
}
.demo-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
}
.demo-stat-label {
    font-size: 9px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 3px;
    font-weight: 600;
    line-height: 1.2;
}
.vertical-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(22,163,74,0.10);
    color: #16a34a;
    line-height: 1.3;
}
@media (max-width: 576px) {
    .demo-stat { flex: 1 1 50%; }
    .demo-stat:nth-child(3n)    { border-right: 1px solid #f0f0f0; }
    .demo-stat:nth-child(even) { border-right: none; }
}

