/* ── HomeCheck ──────────────────────────────────────── */
.hc-demo-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: #d97706;
  margin-bottom: 14px;
}

.hc-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.hc-score-ring {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.hc-score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.hc-score-summary {
  flex: 1;
}

.hc-score-label {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hc-score-badges {
  display: flex;
  gap: 8px;
}

.hc-count-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.hc-count-good {
  background: rgba(0, 212, 138, 0.1);
  color: var(--success);
}

.hc-count-attention {
  background: rgba(255, 68, 88, 0.1);
  color: var(--danger);
}

/* Factor rows */
.hc-factors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.hc-factor {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s;
}

.hc-factor-hidden {
  display: none;
}

.hc-factor:hover {
  background: var(--surface-alt);
}

.hc-factor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.hc-factor-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.hc-factor-info {
  flex: 1;
  min-width: 0;
}

.hc-factor-label {
  font-size: 13px;
  font-weight: 600;
}

.hc-factor-summary {
  font-size: 11px;
  color: var(--text-secondary);
}

.hc-cond-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid;
  white-space: nowrap;
}

.hc-factor-chevron {
  color: var(--text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.hc-factor.expanded .hc-factor-chevron {
  transform: rotate(180deg);
}

.hc-factor-detail {
  display: none;
  padding: 0 12px 12px;
}

.hc-factor.expanded .hc-factor-detail {
  display: block;
}

.hc-factor-detail p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.hc-factor-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hc-factor-bar-track {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.hc-factor-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.hc-factor-pts {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hc-show-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
}

.hc-show-all-btn:hover {
  background: var(--primary-bg);
}

.hc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-placeholder);
  padding-top: 4px;
}

.hc-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Coming Soon */
.hc-coming-soon {
  padding: 4px 0;
}

.hc-cs-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hc-cs-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-cs-title {
  font-size: 16px;
  font-weight: 700;
}

.hc-cs-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hc-cs-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hc-cs-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.hc-cs-features div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Swipe card badge */
.hc-swipe-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  color: var(--text-secondary);
}

/* Likes list badge */
.hc-list-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hc-list-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid;
  background: rgba(0, 0, 0, 0.2);
}


/* ── Trust Layer: PhotoTruth ────────────────────────── */
.pt-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.pt-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.pt-issues {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.pt-issue-row {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.pt-issue-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pt-issue-detail {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 22px;
}

/* ── Trust Layer: Neighborhood IQ ──────────────────── */
.niq-scores-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.niq-score-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.niq-score-val {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.niq-score-icon {
  color: var(--text-secondary);
}

.niq-score-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.niq-amenities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.niq-amenity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.niq-amenity-row:last-child {
  border-bottom: none;
}

.niq-amenity-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: 8px;
  color: var(--primary);
  flex-shrink: 0;
}

.niq-amenity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.niq-amenity-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.niq-amenity-detail {
  font-size: 11px;
  color: var(--text-secondary);
}

.niq-amenity-dist {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.niq-schools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.niq-school-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.niq-school-row:last-child {
  border-bottom: none;
}

.niq-school-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  color: #8b5cf6;
  flex-shrink: 0;
}

.niq-school-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.niq-school-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.niq-school-type {
  font-size: 11px;
  color: var(--text-secondary);
}

.niq-school-rating {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Demo Data Badge ──────────────────────────────── */
.demo-data-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  color: #f59e0b;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ── Trust Layer: Offer Insight ────────────────────── */
.oi-price-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.oi-price-item {
  flex: 1;
  padding: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.oi-price-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-bottom: 4px;
}

.oi-price-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.oi-context-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

.oi-context-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.oi-context-row:last-child {
  border-bottom: none;
}

/* ── Trust Layer: Investor Hub ──────────────────────── */
.ih-appreciation-card,
.ih-rental-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.ih-proj-row {
  display: flex;
  gap: 10px;
}

.ih-proj-item {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--bg);
  border-radius: 8px;
}

.ih-proj-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ih-proj-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.ih-metrics-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.ih-metric-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ih-metric-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.ih-metric-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.ih-rating {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ih-rating-good {
  background: rgba(0, 212, 138, 0.15);
  color: var(--success);
}

.ih-rating-fair {
  background: rgba(217, 119, 6, 0.15);
  color: var(--warning);
}

.ih-rating-low {
  background: rgba(255, 68, 88, 0.15);
  color: var(--danger);
}

.ih-calc-inputs {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.ih-breakdown {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.ih-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.ih-row:last-child {
  border-bottom: none;
}

.ih-row-income {
  font-weight: 600;
}

.ih-row-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 10px 0 6px;
}

.ih-row-divider {
  height: 1px;
  background: var(--border-strong);
  margin: 4px 0;
}

.ih-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}

.ih-insight-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.ih-insight-positive {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
}

.ih-insight-neutral {
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
}


/* ── Photo-Truth Badge ──────────────────────────────── */
.photo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.photo-badge-verified {
  background: rgba(0, 212, 138, 0.2);
  color: #00d48a;
  border: 1px solid rgba(0, 212, 138, 0.3);
}
.photo-badge-enhanced {
  background: rgba(217, 119, 6, 0.2);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

