/* ==========================================================================
   DakLab Property AI — Home / Landing
   Inherits from colors_and_type.css and property-hub/hub.css
   Two-tone: white canvas, hairline cards, single primary accent reserved for
   the listing-health rings + primary CTAs.
   ========================================================================== */

.home-main {
  display: flex; flex-direction: column;
  background: #fafafa;
  padding: 48px 56px 80px;
  gap: 56px;
  min-width: 0;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Hero "Hey Brad, let's get started" ---------- */
.home-hero {
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
  padding: 24px 0 8px;
}
.home-hero-overline {
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  color: #666;
  text-transform: none;
}
.home-hero-title {
  margin: 0;
  font-size: 44px; font-weight: 700; line-height: 1.05;
  letter-spacing: -0.5px;
  color: #000;
  text-align: center;
}

.home-prompt {
  width: 100%; max-width: 720px;
  background: #fff;
  border: 1px solid var(--r-hairline);
  border-radius: 4px;
  padding: 18px 18px 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.home-prompt:focus-within {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(var(--r-primary-rgb), 0.06), 0 1px 4px rgba(0,0,0,0.04);
}
.home-prompt-input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 15px; line-height: 1.4;
  color: #000;
  width: 100%;
  padding: 4px 4px 24px;
  resize: none;
  min-height: 48px;
}
.home-prompt-input::placeholder { color: #999; }
.home-prompt-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.home-prompt-attach {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #000;
  border: 1px solid var(--r-hairline);
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 12px;
  border-radius: 2px;
  cursor: pointer;
}
.home-prompt-attach:hover { border-color: #000; }
.home-prompt-send {
  width: 36px; height: 36px;
  background: #000; color: #fff;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.home-prompt-send:hover { background: #1a1a1a; }

/* ---------- Quick action tiles row ---------- */
.home-quick {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%; max-width: 720px;
}
.home-quick-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 18px 10px;
  background: #fff;
  border: 1px solid var(--r-hairline);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  min-height: 88px;
  transition: border-color 0.12s, background 0.12s;
}
.home-quick-tile:hover {
  border-color: #000;
  background: #fff;
}
.home-quick-tile-icon { color: #1a1a1a; display: inline-flex; }
.home-quick-tile-label {
  font-size: 12px; font-weight: 600; line-height: 1.25;
  color: #1a1a1a;
}

/* ---------- Section intro ---------- */
.home-intro-overline {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}
.home-intro-title {
  margin: 0;
  font-size: 24px; font-weight: 700; line-height: 1.25;
  color: #000;
  max-width: 36ch;
  letter-spacing: -0.2px;
}

/* ---------- Workspace grid (Seller Opps + Active Listings) ---------- */
.home-workspace {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: stretch;
}

.home-card {
  background: #fff;
  border: 1px solid var(--r-hairline);
  border-radius: 4px;
  display: flex; flex-direction: column;
}
.home-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px 12px;
  border-bottom: 0;
}
.home-card-head-title {
  font-size: 17px; font-weight: 700; letter-spacing: -0.1px;
  color: #000;
}
.home-card-head-link {
  font-size: 12px; font-weight: 600;
  color: #666;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit;
}
.home-card-head-link:hover { color: #000; }

/* Seller Opportunities list */
.home-opps {
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 4px 16px 16px;
  flex: 1;
  overflow-y: auto;
  max-height: 720px;
}
.home-opp {
  background: #fff;
  border: 1px solid var(--r-hairline);
  border-radius: 4px;
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: opacity 0.3s, transform 0.3s;
}
.home-opp.is-converting {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
}
.home-opp-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.home-opp-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #666;
  display: inline-flex; align-items: center; gap: 6px;
}
.home-opp-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--r-primary); display: inline-block;
}
.home-opp-status {
  display: inline-flex; align-items: center;
  border: 1px solid var(--r-hairline);
  color: #555;
  background: #fafafa;
  border-radius: 2px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-opp-addr {
  margin: 0;
  font-size: 18px; font-weight: 700; line-height: 1.15;
  color: #000;
}
.home-opp-source {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-top: -6px;
}
.home-opp-signal {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}
.home-opp-rec {
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--r-hairline);
  display: flex; flex-direction: column; gap: 6px;
}
.home-opp-meta-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: #999;
}
.home-opp-rec p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #1a1a1a;
}
.home-opp-actions {
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}
.home-opp-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #000; color: #fff;
  border: 1px solid #000;
  border-radius: 2px;
  padding: 11px 14px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 0.144px;
  cursor: pointer;
  text-decoration: none;
}
.home-opp-primary:hover { background: #1a1a1a; border-color: #1a1a1a; }
.home-opp-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #000;
  border: 1px solid var(--r-hairline-strong);
  border-radius: 2px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.home-opp-secondary:hover { background: #000; color: #fff; border-color: #000; }

.home-opps-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* Active Listings */
.home-actives {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 4px 20px 20px;
}
.home-active {
  border: 1px solid var(--r-hairline);
  border-radius: 4px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  background: #fff;
  animation: home-active-in 420ms cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes home-active-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-active-head {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 12px; align-items: center;
}
.home-active-photo {
  width: 80px; height: 60px;
  background: #f7f7f7;
  overflow: hidden;
  border-radius: 2px;
}
.home-active-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.home-active-photo-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #c4c4c4;
  background: repeating-linear-gradient(135deg, #f2f2f2 0 8px, #ededed 8px 16px);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 9px;
}
.home-active-meta { min-width: 0; }
.home-active-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #666;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.home-active-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #5e8a3a; display: inline-block;
}
.home-active-addr {
  margin: 0;
  font-size: 15px; font-weight: 700; line-height: 1.2;
  color: #000;
  overflow: hidden; text-overflow: ellipsis;
}
.home-active-locality {
  font-size: 12px; color: #666;
  margin-top: 2px;
}
.home-active-summary {
  margin: 0;
  font-size: 12.5px; line-height: 1.45;
  color: #444;
}
.home-active-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  background: #fafafa;
  border-radius: 2px;
}
.home-active-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.home-active-stat-num {
  font-size: 18px; font-weight: 700; line-height: 1; color: #000;
}
.home-active-stat-num-pct {
  font-size: 14px; font-weight: 700; line-height: 1; color: #000;
}
.home-active-stat-lbl {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #888;
  line-height: 1.2;
}
.home-active-rec {
  background: linear-gradient(180deg, rgba(var(--r-primary-rgb), 0.035) 0%, #fafafa 100%);
  border-left: 2px solid rgba(var(--r-primary-rgb), 0.32);
  border-radius: 2px;
  padding: 10px 12px;
}
.home-active-rec-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 4px;
}
.home-active-rec-text {
  margin: 0;
  font-size: 12.5px; line-height: 1.45;
  color: #1a1a1a;
}
.home-active-actions {
  display: flex; gap: 8px;
}
.home-active-actions .r-btn { font-size: 12px; padding: 9px 12px; }

.home-actives-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* ---------- Property Library ---------- */
.home-library-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--r-hairline);
}
.home-library-tools {
  display: inline-flex; align-items: center; gap: 8px;
}
.home-library-search {
  width: 280px;
  background: #fff;
  border: 1px solid var(--r-hairline-strong);
  border-radius: 2px;
  padding: 7px 12px;
  font-family: inherit; font-size: 13px;
  color: #000;
  outline: none;
  height: 36px;
}
.home-library-search::placeholder { color: #999; }
.home-library-add {
  width: 36px; height: 36px;
  background: #000; color: #fff;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.home-library-add:hover { background: #1a1a1a; }

.home-library-scroll {
  /* Match min to max so filtering rows doesn't shorten the card and shift the page */
  min-height: 460px;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.home-library-scroll::-webkit-scrollbar { width: 6px; }
.home-library-scroll::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 3px; }
.home-library-scroll::-webkit-scrollbar-track { background: transparent; }

.home-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.home-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #888;
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--r-hairline);
}
.home-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--r-hairline);
  color: #1a1a1a;
  vertical-align: middle;
}
.home-table tbody tr:last-child td { border-bottom: none; }
.home-table tbody tr:hover { background: #fafafa; }
.home-table-addr { font-weight: 600; }

/* TEMP: Property Hub demo link — remove with TEMP_PH_* in Home.jsx */
.home-temp-ph-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.home-temp-ph-link:hover {
  text-decoration: underline;
}
.home-table-state {
  font-size: 12px; color: #444;
}
.home-table-source { color: #666; }
.home-table-activity { color: #666; }
.home-table-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.home-table-status-ready { color: #4a7a30; }
.home-table-status-review { color: #b07020; }
.home-table-status-archived { color: #888; }
.home-table-status-watch { color: #b34141; }
.home-table-actions {
  display: inline-flex; gap: 6px;
}
.home-table-btn {
  background: #000; color: #fff;
  border: none; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.144px;
  padding: 7px 12px;
  border-radius: 2px;
}
.home-table-btn:hover { background: #1a1a1a; }
.home-table-btn-ghost {
  background: transparent; color: #000;
  border: 1px solid var(--r-hairline);
  border-radius: 2px;
  padding: 6px 10px;
  font-family: inherit; font-size: 11px; font-weight: 600;
  cursor: pointer;
}
.home-table-btn-ghost:hover { border-color: #000; background: #000; color: #fff; }

/* Empty state */
.home-library-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: 80px 20px;
  text-align: center;
  min-height: 460px;
}
.home-library-empty-title {
  font-size: 22px; font-weight: 700; color: #000;
  margin: 0;
}
.home-library-empty-body {
  font-size: 13px; color: #666;
  margin: 0;
}
.home-library-empty-cta {
  margin-top: 8px;
  background: #000; color: #fff;
  border: none; cursor: pointer;
  border-radius: 2px;
  padding: 12px 18px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 0.144px;
}
.home-library-empty-cta:hover { background: #1a1a1a; }

/* ---------- Confetti canvas ---------- */
.home-confetti {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
}
