:root {
  --bg: #faf7f1;
  --bg-alt: #f1ece0;
  --card: #ffffff;
  --border: #e4ddc9;
  --text: #1c2333;
  --muted: #6b7280;
  --gold: #b8862f;
  --gold-dark: #8f6a22;
  --blue: #3b82f6;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

/* Affiliate strip */
.affiliate-strip {
  background: linear-gradient(135deg, #f7ecd2 0%, #f0dfae 100%);
  box-shadow: inset 0 -1px 0 rgba(184,134,47,0.35), 0 2px 8px rgba(143,106,34,0.08);
  position: relative;
}
.affiliate-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  padding: 22px 20px 18px;
  text-align: center;
  color: var(--text);
}
.affiliate-logo {
  height: 304px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(143,106,34,0.2));
}
.affiliate-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
  max-width: 52ch;
}
.affiliate-subtitle strong { color: var(--gold-dark); font-weight: 700; }

@media (max-width: 640px) {
  .affiliate-strip-inner { padding: 16px 20px 12px; gap: 4px; }
  .affiliate-logo { height: auto; width: min(220px, 62vw); }
  .affiliate-subtitle { font-size: 12.5px; max-width: 34ch; }
}

/* Header */
.site-header {
  background: rgba(250,247,241,0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(28,35,51,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-text {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 28px 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
}
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text);
  font-size: 15px;
  position: relative;
  padding-bottom: 3px;
  transition: color .15s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right .18s ease;
}
.main-nav a:hover { color: var(--gold-dark); text-decoration: none; }
.main-nav a:hover::after { right: 0; }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #16181f !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(143,106,34,0.35);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta::after { content: none; }
.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(143,106,34,0.45);
}

/* Hero */
.hero {
  background: radial-gradient(circle at 20% 20%, #fbecc4 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
  padding: 70px 0 60px;
}
.hero-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 420px; }
.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}
.hero-copy h1 { font-size: 42px; }
.hero-copy .lede { font-size: 18px; color: var(--muted); max-width: 55ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #16181f; }
.btn-primary:hover { background: var(--gold-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

.hero-photo {
  flex: 0 0 220px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--card) center/cover no-repeat;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Sections */
.section { padding: 60px 0; border-bottom: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 32px; }
.section-head h2 { font-size: 28px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card h3 { font-size: 16px; color: var(--gold); margin-bottom: 6px; }

/* Listings grid */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}
.listing-card:hover { border-color: var(--gold); }
.listing-photo {
  height: 160px;
  background: var(--bg-alt) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
}
.listing-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.listing-body h3 { font-size: 18px; margin-bottom: 4px; }
.listing-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.listing-figures { display: flex; gap: 16px; margin: 10px 0; font-size: 14px; flex-wrap: wrap; }
.listing-figures div span { display: block; color: var(--muted); font-size: 12px; }
.listing-card .btn { margin-top: auto; text-align: center; }
.empty-state { color: var(--muted); padding: 30px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }

/* Listing detail */
.listing-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .listing-detail { grid-template-columns: 1fr; } }
.listing-detail-photo {
  width: 100%; height: 280px;
  background: var(--card) center/cover no-repeat;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.figures-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 20px 0; }
.figures-row .fig { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; min-width: 130px; }
.figures-row .fig span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.figures-row .fig strong { font-size: 18px; color: var(--gold); }

/* Forms */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.radio-group { display: flex; gap: 18px; }
.radio-group label { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px; }
.radio-group input { width: auto; }
.form-msg { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.form-msg.success { background: #e8f5ea; border: 1px solid #a8d5b0; color: #1e6b34; }
.form-msg.error { background: #fbe9e7; border: 1px solid #e3a8a0; color: #9c3324; }

/* Subscribe box */
.subscribe-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.subscribe-box > div:first-child { flex: 1 1 280px; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 1 380px; }
.subscribe-form input {
  flex: 1 1 200px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}
.subscribe-form input:focus { outline: none; border-color: var(--gold); }
.subscribe-box .form-msg { flex: 1 1 380px; margin-top: 0; }

/* ON Business Solutions */
.solutions-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.solutions-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #16181f;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
}
.solutions-card .btn { margin-top: 10px; }

/* Buyer forms */
.buyer-forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { font-size: 17px; color: var(--gold); }
.faq-item p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { padding: 40px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-brand { font-size: 17px; margin-bottom: 6px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-legal { font-size: 12px; }
.footer-affiliate { margin-bottom: 24px; }
.footer-affiliate-card {
  background: #f3e6c4;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.footer-affiliate-card img { height: 180px; width: auto; flex-shrink: 0; }
.footer-affiliate-card p { margin: 0; color: var(--text); font-size: 14px; width: 100%; white-space: nowrap; }
.gold-highlight { color: var(--gold-dark); font-weight: 700; }

/* Admin */
.admin-shell { padding: 30px 0 60px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
table.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.admin-table th, table.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
table.admin-table th { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.admin-table tr:last-child td { border-bottom: none; }
.login-shell { max-width: 380px; margin: 90px auto; }
.action-links a { margin-right: 12px; font-size: 13px; }
.action-links form { display: inline; }
.action-links button.linklike {
  background: none; border: none; color: var(--gold); cursor: pointer; font-size: 13px; padding: 0; font-family: inherit;
}
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.badge.active { background: #e3f5e6; color: #1f7a37; }
.badge.pending { background: #fbeecb; color: #8a6415; }
.badge.sold { background: #eceae4; color: var(--muted); }

@media (max-width: 640px) {
  .hero-copy h1 { font-size: 30px; }
  .header-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-affiliate-card p { white-space: normal; }
}
