/*
 * agent-sales.css — VOW-gated per-agent sales archive section
 * Per _research/Per_Agent_Profile_Sales_History_Design_Spec_2026-05-18.md
 * Decision F1: external stylesheet (matches Phase B1 L2 + sold-detail H1).
 *
 * Loaded by all 11 agent profile pages across the 3 listings-feed sites.
 * Convention #15 byte-symmetric across realestategander-site/css/,
 * goosebay-site/css/, and stjohns-site/css/.
 *
 * Card design intentionally hides sale price (Mike directive 2026-05-18).
 * The card click takes consumer to /listings/sold/detail.html where the
 * full price + Client Full data is revealed (still under VOW gate).
 */

/* ─── Section wrapper ─────────────────────────────────────────────── */
.ag-sales {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  color: var(--text, #e6e6e6);
  font-family: Roboto, system-ui, -apple-system, sans-serif;
}

.ag-sales-eyebrow {
  margin: 0 0 8px;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #EA002A;
}

.ag-sales-heading {
  margin: 0 0 8px;
  font-family: Raleway, sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.15;
  color: #ffffff;
}

.ag-sales-subheading {
  margin: 0 0 32px;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(230, 230, 230, 0.75);
}

/* ─── Locked / loading / empty / error states ─────────────────────── */
.ag-sales-locked,
.ag-sales-loading,
.ag-sales-empty,
.ag-sales-error {
  text-align: center;
  padding-bottom: 56px;
}

.ag-sales-locked-copy {
  max-width: 540px;
  margin: 0 auto 24px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(230, 230, 230, 0.85);
}

.ag-sales-locked-cta {
  display: inline-block;
  padding: 14px 28px;
  background: #EA002A;
  color: #ffffff;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.ag-sales-locked-cta:hover {
  background: #c8001f;
}

.ag-sales-locked-note {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: rgba(230, 230, 230, 0.55);
}

.ag-sales-loading-msg {
  font-size: 0.95rem;
  color: rgba(230, 230, 230, 0.65);
  font-style: italic;
}

.ag-sales-empty-copy {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(230, 230, 230, 0.75);
}

.ag-sales-empty-copy a {
  color: #EA002A;
  text-decoration: none;
  border-bottom: 1px solid rgba(234, 0, 42, 0.35);
}

.ag-sales-empty-copy a:hover {
  border-bottom-color: #EA002A;
}

/* ─── Card grid ───────────────────────────────────────────────────── */
.ag-sales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ─── Card ─────────────────────────────────────────────────────────── */
.ag-sale-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ag-sale-card:hover {
  transform: translateY(-3px);
  border-color: rgba(234, 0, 42, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ag-sale-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  overflow: hidden;
}

.ag-sale-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ag-sale-photo-fallback::before {
  content: 'Photo on request';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(230, 230, 230, 0.4);
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ag-sale-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
}

.ag-sale-pill-sell {
  background: rgba(234, 0, 42, 0.85);
}

.ag-sale-body {
  padding: 14px 16px 18px;
}

.ag-sale-street {
  margin: 0 0 2px;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  color: #ffffff;
}

.ag-sale-city {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(230, 230, 230, 0.65);
}

.ag-sale-price {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: rgba(230, 230, 230, 0.92);
  font-weight: 300;
}

.ag-sale-price strong {
  font-family: Raleway, sans-serif;
  font-weight: 800;
  color: #ffffff;
}

.ag-sale-price-was {
  color: rgba(230, 230, 230, 0.55);
  text-decoration: line-through;
}

.ag-sale-meta {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: rgba(230, 230, 230, 0.75);
}

.ag-sale-ptype {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(230, 230, 230, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Show more pagination ────────────────────────────────────────── */
.ag-sales-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.ag-sales-more-btn {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(234, 0, 42, 0.6);
  color: #EA002A;
  font-family: Raleway, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ag-sales-more-btn:hover {
  background: #EA002A;
  color: #ffffff;
}

/* ─── Footnote ────────────────────────────────────────────────────── */
.ag-sales-footnote {
  margin: 40px auto 0;
  max-width: 760px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(230, 230, 230, 0.45);
  text-align: center;
}

/* ─── Mobile adjustments ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .ag-sales {
    padding: 48px 16px 32px;
  }
  .ag-sales-heading {
    font-size: 1.5rem;
  }
  .ag-sales-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ag-sale-photo-wrap {
    aspect-ratio: 16 / 10;
  }
}
