/* ============================================================
   JAMMUADS TOP 5 — LISTEO COMPATIBLE (Blue Tick, No Features)
   ============================================================ */

/* ---- Listeo Full Width ---- */
.single-top5 .col-lg-8, .single-top5 .col-md-8, .single-top5 .col-lg-9, .single-top5 .col-md-9 {
    width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important;
    padding-left: 0 !important; padding-right: 0 !important;
}
.single-top5 .col-lg-4, .single-top5 .col-md-4, .single-top5 .col-lg-3, .single-top5 .col-md-3,
.single-top5 .widget-area, .single-top5 #secondary, .single-top5 .sidebar,
.single-top5 .listing-sidebar, .single-top5 .listeo-sidebar {
    display: none !important;
}
.single-top5 .container, .single-top5 .listeo-container { max-width: 100% !important; }
.single-top5 .row { margin-left: 0 !important; margin-right: 0 !important; }

/* ---- Hide Theme Author Box ---- */
.single-top5 .author-box, .single-top5 .post-author, .single-top5 .about-author,
.single-top5 .byline, .single-top5 .author-profile, .single-top5 .wp-block-post-author,
.single-top5 [class*="author-box"] { display: none !important; }

/* ---- Table ---- */
.j5-table-wrapper { margin: 16px 0; width: 100%; overflow-x: visible; }

.j5-comparison-table {
    width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px; line-height: 1.3; background: #fff;
    border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden;
}

/* Column widths (5 columns now: Rank, Business, Rating, Reviews, Contact, Action) */
.j5-comparison-table .j5-th-rank,    .j5-comparison-table .j5-td-rank    { width: 38px; min-width: 38px; }
.j5-comparison-table .j5-th-business,.j5-comparison-table .j5-td-business{ width: auto; }
.j5-comparison-table .j5-th-rating,  .j5-comparison-table .j5-td-rating  { width: 50px; min-width: 50px; }
.j5-comparison-table .j5-th-reviews, .j5-comparison-table .j5-td-reviews { width: 48px; min-width: 48px; }
.j5-comparison-table .j5-th-contact, .j5-comparison-table .j5-td-contact { width: 42px; min-width: 42px; text-align: center; }
.j5-comparison-table .j5-th-action,  .j5-comparison-table .j5-td-action  { width: 48px; min-width: 48px; }

.j5-comparison-table th {
    padding: 8px 5px; text-align: left; font-weight: 600; font-size: 9px;
    color: #666; text-transform: uppercase; letter-spacing: 0.3px;
    border-bottom: 1px solid #e0e0e0; white-space: nowrap; overflow: hidden;
}
.j5-comparison-table td {
    padding: 8px 5px; border-bottom: 1px solid #f0f0f0;
    vertical-align: middle; overflow: hidden;
}
.j5-comparison-table tbody tr:last-child td { border-bottom: none; }
.j5-comparison-table tbody tr:hover { background: #fafafa; }

/* Rank */
.j5-rank-circle {
    width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 11px;
}
.j5-gold   { background: #fff3e0; color: #e65100; }
.j5-silver { background: #f5f5f5; color: #616161; }
.j5-bronze { background: #fff8e1; color: #f57f17; }
.j5-normal { background: #fafafa; color: #9e9e9e; border: 1px solid #e0e0e0; }

/* Business */
.j5-biz-title { margin-bottom: 2px; overflow: hidden; }
.j5-biz-link {
    font-size: 13px; font-weight: 600; color: #111; text-decoration: none;
    line-height: 1.3; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; display: block; max-width: 100%;
}
.j5-tag-sponsored {
    display: inline-block; padding: 1px 4px; border-radius: 3px;
    font-size: 8px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.3px; margin-left: 3px; vertical-align: middle;
    background: #e3f2fd; color: #1565c0;
}

/* ---- BLUE VERIFIED TICK ---- */
.j5-verified-tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; margin-left: 4px;
    vertical-align: middle; cursor: help;
}
.j5-verified-tick svg { width: 100%; height: 100%; display: block; }

/* J-Score */
.j5-jscore-bar { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.j5-jscore-track { width: 40px; height: 3px; background: #eee; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.j5-jscore-fill { height: 100%; background: #111; border-radius: 2px; }
.j5-jscore-text { font-size: 9px; color: #888; font-weight: 500; }

/* Rating */
.j5-stars { color: #ff9800; font-size: 11px; letter-spacing: 0.5px; line-height: 1; }
.j5-rating-num { font-size: 12px; font-weight: 600; color: #111; margin-top: 1px; }

/* Reviews */
.j5-td-reviews { font-variant-numeric: tabular-nums; color: #555; font-size: 11px; }

/* Contact Icon */
.j5-phone-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; background: #e3f2fd; color: #1565c0;
    border-radius: 50%; text-decoration: none; transition: all 0.2s;
}
.j5-phone-icon:hover { background: #1565c0; color: #fff; }
.j5-phone-icon svg { width: 14px; height: 14px; }
.j5-no-phone { color: #ddd; font-size: 11px; }

/* Action Button */
.j5-btn-sm {
    display: inline-block; padding: 4px 8px; background: #111; color: #fff;
    text-decoration: none; border-radius: 5px; font-size: 10px;
    font-weight: 500; white-space: nowrap; text-align: center; line-height: 1.2;
}
.j5-btn-sm:hover { opacity: 0.85; }

/* Updated Badge */
.j5-updated-badge {
    display: inline-flex !important; align-items: center; gap: 6px;
    padding: 6px 10px; background: #f5f5f5; border-radius: 6px;
    font-size: 11px; color: #666; margin: 10px 0; font-weight: 500;
}
.j5-pulse { width: 6px; height: 6px; background: #2e7d32; border-radius: 50%; display: inline-block; animation: j5-pulse 2s infinite; }
@keyframes j5-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

/* Hub Buttons */
.j5-hub-section { margin: 28px 0; padding-top: 20px; border-top: 1px solid #e8e8e8; }
.j5-hub-heading { font-size: 16px; font-weight: 600; color: #111; margin-bottom: 14px; }
.j5-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.j5-hub-btn {
    display: flex; align-items: center; gap: 8px; padding: 12px 14px;
    background: var(--hub-bg, #e3f2fd); border: 2px solid var(--hub-border, #1565c0);
    border-radius: 10px; text-decoration: none; color: var(--hub-text, #1565c0);
    font-size: 13px; font-weight: 600; position: relative; overflow: hidden;
    transition: all 0.3s ease;
}
.j5-hub-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.j5-hub-icon { font-size: 18px; }
.j5-hub-text { flex: 1; line-height: 1.3; }
.j5-hub-arrow { font-size: 14px; }

/* Author Box */
.j5-author-box {
    display: flex; gap: 12px; padding: 16px; background: #fafafa;
    border: 1px solid #e8e8e8; border-radius: 10px; margin-top: 24px;
}
.j5-author-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.j5-author-name { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 3px; }
.j5-author-bio { font-size: 12px; color: #555; line-height: 1.4; margin-bottom: 6px; }
.j5-author-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; }
.j5-verified-date { color: #2e7d32; font-weight: 500; }

/* Mobile */
@media (max-width: 640px) {
    .j5-comparison-table, .j5-comparison-table thead, .j5-comparison-table tbody,
    .j5-comparison-table th, .j5-comparison-table td, .j5-comparison-table tr {
        display: block; width: 100% !important;
    }
    .j5-comparison-table thead { display: none; }
    .j5-comparison-table tbody tr {
        margin-bottom: 10px; border: 1px solid #e0e0e0;
        border-radius: 8px; padding: 12px; background: #fff;
    }
    .j5-comparison-table td {
        border: none; padding: 5px 0;
        display: flex; align-items: center; justify-content: space-between;
    }
    .j5-td-rank { justify-content: flex-start !important; gap: 8px; padding-bottom: 8px !important; border-bottom: 1px solid #f0f0f0 !important; margin-bottom: 4px; }
    .j5-td-business { flex-direction: column; align-items: flex-start !important; gap: 4px; }
    .j5-td-action { padding-top: 8px !important; border-top: 1px solid #f0f0f0 !important; margin-top: 4px; justify-content: flex-end !important; }
    .j5-hub-grid { grid-template-columns: 1fr; }
    .j5-author-box { flex-direction: column; text-align: center; }
    .j5-author-meta { justify-content: center; }
}