/* ddf-fragment.css — shared DDF listing-card styles for marketing pages
 *
 * Sourced verbatim from the inline stylesheet in
 *   tools/ddf-generate-pages.py :: head_block_simple()
 * (lines ~1895-2034 as of git SHA 0b17275).
 *
 * Kept in sync manually with the generator's inline copy. If the generator's
 * inline .lst-card* rules change, update this file in the same commit.
 * Tracked per Convention #14 (every asset referenced by HTML must be tracked).
 *
 * Scope: loaded by marketing pages (index.html, pages/*.html) that host
 *   injected DDF fragments. NOT loaded by the generated /listings/... pages —
 *   those still get the inline stylesheet from head_block_simple().
 */

/* ---------------------------------------------------------------------- */
/* Card grid — mirrors the generator's .lst-card-grid                      */
/* ---------------------------------------------------------------------- */

.lst-card-grid {
  max-width: 1200px;
  margin: 24px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.lst-card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s;
  color: inherit;
}
.lst-card:hover { transform: translateY(-4px); border-color: #EA002A; }
.lst-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.lst-card-link:focus-visible {
  outline: 2px solid #EA002A;
  outline-offset: -2px;
}
.lst-card-realtor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #1e1e1e;
  background: #0d0d0d;
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.lst-card-realtor:hover,
.lst-card-realtor:focus-visible {
  background: #151515;
  color: #fff;
  outline: none;
}
.lst-card-realtor strong {
  color: #EA002A;
  font-weight: 700;
}
.lst-card-img {
  aspect-ratio: 3 / 2;
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
}
.lst-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s;
}
.lst-card:hover .lst-card-img img { transform: scale(1.05); }
.lst-card-img .lst-card-noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 2rem;
  background: linear-gradient(135deg,#1a1a1a,#0f0f0f);
}
.lst-card-body { padding: 18px 20px 20px; }
.lst-card-price {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 4px;
}
.lst-card-addr {
  font-family: 'Roboto', sans-serif;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lst-card-city {
  font-family: 'Roboto', sans-serif;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.lst-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: 'Roboto', sans-serif;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  border-top: 1px solid #1e1e1e;
  padding-top: 12px;
}
.lst-card-meta span strong {
  color: #fff; font-weight: 700; margin-right: 4px;
}
.lst-card-mls {
  font-family: 'Roboto', sans-serif;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Task #107 — Turner team contact byline on each card */
.lst-card-team {
  font-family: 'Roboto', sans-serif;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.lst-card-team strong { color: #fff; font-weight: 600; }
.lst-card-new {
  position: absolute;
  top: 10px; left: 10px;
  background: #EA002A;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------- */
/* Fragment wrapper + View-all link — new for task #134                    */
/* ---------------------------------------------------------------------- */

.ddf-fragment-grid {
  /* Alias of .lst-card-grid — the fragment emitter wraps cards in this
     container so the CSS can diverge later if fragments need different
     gutters / max-width from the full listings index. */
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.ddf-fragment-viewall {
  max-width: 1200px;
  margin: 8px auto 48px;
  padding: 0 20px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
}
.ddf-fragment-viewall a {
  display: inline-block;
  color: #fff;
  background: #EA002A;
  padding: 12px 28px;
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.ddf-fragment-viewall a:hover,
.ddf-fragment-viewall a:focus-visible {
  background: #c00024;
  transform: translateY(-1px);
  outline: none;
}

.ddf-fragment-empty {
  max-width: 720px;
  margin: 24px auto 48px;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: rgba(255,255,255,0.55);
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
}
