/* === DEALS PAGE === */
body { background: var(--cream); }

/* Nav additions */
.nav-home-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding-right: 1.5rem;
  transition: color 0.2s;
}
.nav-home-link:hover { color: var(--navy); }
.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding-right: 1.5rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--navy); }
.nav-link-active { color: var(--navy) !important; font-weight: 600; }

/* Page Header */
.deals-header {
  background: var(--navy);
  padding: 4rem 4rem 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.deals-header-inner { max-width: 1400px; margin: 0 auto; }

.deals-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.2);
  animation: pulse 2s ease-in-out infinite;
}

.deals-eyebrow span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.deals-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.deals-subhead {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 640px;
}

/* Score-your-own-deal CTA in page header */
.deals-header-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
  border: 1px solid rgba(184,146,74,0.4);
  border-radius: 3px;
  padding: 0.5rem 1.125rem;
  transition: background 0.2s, border-color 0.2s;
}
.deals-header-cta:hover {
  background: rgba(184,146,74,0.1);
  border-color: var(--gold-light);
}

/* Waitlist Capture Hero */
.waitlist-hero {
  background: linear-gradient(135deg, #f7f3ec 0%, #eee8d8 100%);
  border-bottom: 1px solid rgba(184,146,74,0.2);
  padding: 3rem 4rem;
}

.waitlist-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.waitlist-copy { flex: 1; max-width: 520px; }

.waitlist-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.waitlist-subhead {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.waitlist-skip {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}
.waitlist-skip-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.waitlist-skip-link:hover { color: var(--gold); }

.waitlist-form-wrap { flex-shrink: 0; width: 100%; max-width: 420px; }

.waitlist-input-row {
  display: flex;
  gap: 0.5rem;
}

.waitlist-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  border: 1.5px solid rgba(12,24,36,0.18);
  border-radius: 3px;
  background: #fff;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.waitlist-input:focus { border-color: var(--gold); }
.waitlist-input::placeholder { color: var(--text-muted); opacity: 0.7; }

.waitlist-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}

.waitlist-btn:hover { background: #0a1e30; }
.waitlist-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.waitlist-error {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--red);
}

.waitlist-success {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--green);
  font-style: italic;
  padding: 0.5rem 0;
}

/* Deals Grid */
.deals-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 4rem 6rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.deals-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Deal Card */
.deal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.deal-card:hover {
  box-shadow: 0 8px 32px rgba(12,24,36,0.1);
  border-color: rgba(12,24,36,0.2);
}

.deal-card--sample {
  border-color: rgba(184,146,74,0.3);
  background: linear-gradient(135deg, #fff 80%, #faf6ef);
}

/* Score badge */
.deal-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}

.deal-badge--hot { background: var(--green); }
.deal-badge--warm { background: #A87F2A; }
.deal-badge--cool { background: var(--text-muted); }

.deal-badge--sample {
  background: var(--gold);
  font-size: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}

/* Source */
.deal-source {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.source-icon { font-size: 0.75rem; color: var(--text-muted); }
.source-name { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* Market / Address */
.deal-market { display: flex; flex-direction: column; gap: 0.125rem; padding-right: 56px; }

.deal-city {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.deal-address { font-size: 0.8125rem; color: var(--text-muted); }

/* Price */
.deal-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.deal-units {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Metrics row */
.deal-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metric { display: flex; flex-direction: column; gap: 0.25rem; text-align: center; }

.metric-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.metric-good { color: var(--green); }
.metric-ok { color: #A87F2A; }
.metric-warn { color: var(--red); }

/* Card footer */
.deal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* Clickable card wrapper */
.deal-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.deal-card--clickable { cursor: pointer; }

.deal-card-link:hover .deal-card {
  box-shadow: 0 8px 32px rgba(12,24,36,0.12);
  border-color: rgba(12,24,36,0.22);
}

.deal-card-link:hover .deal-link-cta { color: #a07d3c; text-decoration: underline; }

.deal-link-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.2s;
}

.deal-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.deal-link:hover { color: #a07d3c; text-decoration: underline; }

.deal-date { font-size: 0.75rem; color: var(--text-muted); }

/* Scoring Disclosure */
.scoring-disclosure {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
}

.scoring-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.scoring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.scoring-item {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.scoring-item strong {
  color: var(--navy);
  font-weight: 600;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 2rem;
  z-index: 100;
}

.sticky-cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sticky-cta-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.sticky-cta-btn {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  padding: 0.625rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}

.sticky-cta-btn:hover { background: #a07d3c; }

/* Footer adjustment */
.deals-footer { margin-bottom: 5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .deals-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .deals-header { padding: 3rem 1.5rem 2.5rem; }
  .deals-main { padding: 2rem 1.5rem 5rem; }
  .deals-grid { grid-template-columns: 1fr; }
  .scoring-grid { grid-template-columns: 1fr; }
  .sticky-cta-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .deal-metrics { grid-template-columns: repeat(2, 1fr); }
  .waitlist-hero { padding: 2.5rem 1.5rem; }
  .waitlist-hero-inner { flex-direction: column; gap: 1.5rem; }
  .waitlist-form-wrap { max-width: 100%; width: 100%; }
  .waitlist-input-row { flex-direction: column; }
  .waitlist-btn { width: 100%; padding: 0.875rem 1rem; font-size: 1rem; }
}