/* Through-Lot Bracket Report — page-specific styles
 * Builds on lot-market-report.css (LMR base) — only additions/overrides here.
 */

/* Bracket tabs (extend .lmr-tabs) */
.lmr-tabs { display: flex; gap: 4px; background: #fff; border-bottom: 1px solid #E5E7EB; padding: 0 18px; overflow-x: auto; }
.lmr-tab {
  background: transparent; border: none;
  padding: 12px 16px; font-size: 13px; font-weight: 600; color: #475569;
  cursor: pointer; border-bottom: 3px solid transparent;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.lmr-tab:hover { color: #0f172a; background: #f8fafc; }
.lmr-tab.active { color: #15803d; border-bottom-color: #15803d; }
.tlb-tab-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.tlb-tab-sub { font-size: 11px; color: #94a3b8; font-weight: 500; }

/* Bracket comparison cards */
.tlb-bracket-card { padding: 0 !important; overflow: hidden; }
.tlb-bracket-head {
  padding: 12px 16px;
  border-bottom: 3px solid #06b6d4;
  background: #f8fafc;
}
.tlb-bracket-head h3 { margin: 0; font-size: 15px; color: #0f172a; }
.tlb-bracket-meta { color: #64748b; font-size: 12px; font-weight: 500; margin-left: 6px; }
.tlb-bracket-body { padding: 12px 16px; }
.tlb-bracket-body .tlb-stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 5px 0; border-bottom: 1px dashed #f1f5f9;
  font-size: 12.5px;
}
.tlb-bracket-body .tlb-stat-row:last-child { border-bottom: none; }
.tlb-bracket-body .tlb-stat-row .lbl { color: #475569; }
.tlb-bracket-body .tlb-stat-row .val { font-weight: 600; color: #0f172a; }
.tlb-bracket-body .tlb-stat-row .val.pos { color: #16A34A; }
.tlb-bracket-body .tlb-stat-row .val.neg { color: #DC2626; }
.tlb-bracket-body .tlb-stat-sub { color: #94a3b8; font-size: 11px; margin-left: 6px; }

/* Neighborhood controls */
.tlb-nh-controls {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
  font-size: 13px; color: #475569;
}
.tlb-nh-controls select, .tlb-nh-controls input {
  padding: 4px 10px; border: 1px solid #E5E7EB; border-radius: 6px;
  background: #fff; font-size: 13px;
}

/* Neighborhood table */
.tlb-nh-table-wrap, .tlb-deals-table-wrap {
  overflow-x: auto; max-height: 560px; overflow-y: auto;
  border: 1px solid #E5E7EB; border-radius: 8px;
}
.tlb-nh-table, .tlb-deals-table {
  width: 100%; border-collapse: collapse; font-size: 12.5px;
}
.tlb-nh-table th, .tlb-deals-table th {
  position: sticky; top: 0; background: #f8fafc;
  text-align: left; padding: 8px 12px; font-weight: 600;
  color: #475569; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid #E5E7EB; z-index: 1;
}
.tlb-nh-table td, .tlb-deals-table td {
  padding: 7px 12px; border-bottom: 1px solid #F3F4F6;
  color: #0f172a;
}
.tlb-nh-table tr:hover, .tlb-deals-table tr:hover { background: #fafbfc; }
.tlb-num { text-align: right; font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
.tlb-pos { color: #16A34A; font-weight: 600; }
.tlb-neg { color: #DC2626; font-weight: 600; }
.tlb-pill {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: 10.5px; font-weight: 600; line-height: 1.4;
}
.tlb-pill-shallow { background: #ecfeff; color: #06b6d4; }
.tlb-pill-medium  { background: #fdf2f8; color: #DB2777; }
.tlb-pill-deep    { background: #eef2ff; color: #4338CA; }
.tlb-pill-A { background: #eff6ff; color: #2563EB; }
.tlb-pill-B { background: #f0fdf4; color: #16A34A; }
.tlb-pill-best { background: #fef3c7; color: #92400E; }

.tlb-deal-tier-pill {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 700; color: #fff; line-height: 1.6;
}

/* APN — plain text (no longer linked; the address is now the click target) */
.tlb-apn-text {
  color: #475569; font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums; font-size: 12px;
}

/* Address as link — opens /ui/any-property.html?apn=... in a new tab */
.tlb-addr-link {
  color: #2563EB; text-decoration: none; font-weight: 600;
}
.tlb-addr-link:hover { text-decoration: underline; }
.tlb-addr-link:visited { color: #1d4ed8; }

/* MLS status pills */
.tlb-pill-status-active  { background: #dcfce7; color: #166534; }
.tlb-pill-status-coming  { background: #ddd6fe; color: #5b21b6; }
.tlb-pill-status-pending { background: #fef3c7; color: #92400E; }

/* Methodology */
.tlb-method { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.tlb-method-row { background: #f8fafc; padding: 14px 16px; border-radius: 8px; border: 1px solid #E5E7EB; }
.tlb-method-row h3 { font-size: 12.5px; margin: 0 0 6px; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.tlb-method-row p, .tlb-method-row li { font-size: 13px; line-height: 1.5; color: #0f172a; margin: 0 0 4px; }
.tlb-method-row ul { margin: 0; padding-left: 18px; }
.tlb-method-row code { background: #fff; padding: 1px 5px; border-radius: 3px; font-size: 12px; color: #DB2777; }

/* Loading state */
.tlb-loading {
  text-align: center; padding: 40px; color: #94a3b8; font-size: 13px;
}
.tlb-empty {
  text-align: center; padding: 30px; color: #94a3b8; font-size: 13px;
  font-style: italic;
}

/* Hidden helper */
.tlb-hidden { display: none !important; }
