/* ChanSpace homepage — extends tokens defined in styles.css :root */

body.home { background: var(--bg); }

a { text-decoration: none; color: inherit; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lime);
  margin: 0 0 14px;
}
.eyebrow-dark { color: var(--gold); }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-mark {
  height: 34px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
.logo-word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}
.logo-chan { color: var(--forest); }
.logo-space { color: var(--maroon); }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.saved-link {
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.saved-link:hover { color: var(--ink); }
.account-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.account-link:hover { color: var(--ink); }
.btn-post {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: filter 0.15s ease;
}
.btn-post:hover { filter: brightness(1.15); }

/* ===== Hero ===== */
.hero-home {
  position: relative;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-ink) 60%, var(--deep-green-3) 100%);
  overflow: hidden;
  padding: 64px 24px 56px;
}
.hero-ring {
  position: absolute;
  right: -140px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.hero-ring::before {
  content: "";
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.035);
}

.hero-home-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-copy { max-width: 640px; }
.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.7rem;
  line-height: 1.2;
  margin: 0 0 18px;
}
.hero-title .line-white,
.hero-title .line-lime {
  display: block;
}
.hero-title .line-white { color: #fff; }
.hero-title .line-lime { color: var(--lime); }

.hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.stat-badge {
  position: absolute;
  top: 56px;
  right: 24px;
  background: var(--lime);
  color: var(--forest-ink);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  max-width: 180px;
}
.stat-number {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.4;
}

.search-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px 24px 24px;
  margin-top: 40px;
  max-width: 880px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}
.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.search-tab {
  border: none;
  background: transparent;
  color: var(--ink-mute);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.search-tab-active {
  color: var(--forest);
  border-bottom-color: var(--maroon);
}

.search-fields {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}
.search-field-location {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.field-icon { font-size: 0.95rem; flex-shrink: 0; }
.field-caption {
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-weight: 500;
}
.search-field input,
.search-field select {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0;
  width: 100%;
}
.search-field select { appearance: none; }

.btn-search {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease;
}
.btn-search:hover { filter: brightness(1.06); }

.popular-search {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.popular-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}
.pill-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pill-tag:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== Listings ===== */
.listings-section { padding: 72px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0;
  color: var(--ink);
}
.see-all {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}
.see-all:hover { color: var(--forest-ink); }

.filter-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-pill {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.filter-pill-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.listing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-2), var(--line));
}
.listing-photo-1 { background: linear-gradient(135deg, #E7EFDD, #B9CFA1); }
.listing-photo-2 { background: linear-gradient(135deg, #F1EFE6, #D8CFB8); }
.listing-photo-3 { background: linear-gradient(135deg, #E4EEE9, #A9C4B6); }
.listing-photo-4 { background: linear-gradient(135deg, #ECEEDA, #C7CE9C); }

.badge-lime {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--lime);
  color: var(--forest-ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(26, 36, 32, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.listing-photo .purpose-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}
.listing-photo .agent-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}
.listing-photo .verified-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}
.listing-photo .agent-badge + .verified-badge {
  top: 40px;
}

.listing-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.listing-loc { font-size: 0.78rem; color: var(--ink-mute); margin: 0; }
.listing-title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 2px 0 0;
  color: var(--ink);
  line-height: 1.35;
}
.listing-spec { font-size: 0.82rem; color: var(--ink-soft); margin: 4px 0 6px; }

.listing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.listing-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.02rem;
}
.arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.arrow-btn:hover { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ===== Orchard split section ===== */
.orchard-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}
.orchard-media {
  background: linear-gradient(160deg, #EFF3EB, #D9E3CE);
  display: flex;
  align-items: center;
  justify-content: center;
}
.orchard-leaf { width: 55%; max-width: 280px; height: auto; }

.orchard-panel {
  background: var(--forest);
  color: #fff;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.orchard-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 16px;
  color: #fff;
}
.orchard-title span { display: block; }
.orchard-sub {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 420px;
}

.orchard-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}
.orchard-stat { display: flex; flex-direction: column; }
.orchard-stat-num {
  font-family: var(--font-head);
  color: var(--gold);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
}
.orchard-stat-label {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
}

.btn-lime-pill {
  display: inline-block;
  background: var(--lime);
  color: var(--forest-ink);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 26px;
  border-radius: 999px;
  width: fit-content;
  transition: filter 0.15s ease;
}
.btn-lime-pill:hover { filter: brightness(0.96); }

/* ===== Why ChanSpace ===== */
.why-section { background: var(--surface-2); padding: 72px 0; }
.why-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.why-head .eyebrow { display: block; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.why-item {
  padding: 0 32px;
  position: relative;
}
.why-item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}
.why-num {
  display: block;
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.why-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}
.why-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { max-width: 360px; }
.logo-footer .logo-chan { color: #fff; }
.logo-footer .logo-space { color: var(--gold); }
.footer-tagline {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-links a:hover { color: var(--lime); }

.footer-bottom {
  max-width: 1160px;
  margin: 20px auto 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .orchard-section { grid-template-columns: 1fr; }
  .orchard-media { min-height: 220px; padding: 32px; }
  .orchard-panel { padding: 48px 32px; }
  .stat-badge { position: static; margin: 20px 0 0; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .btn-search { grid-column: 1 / -1; padding: 14px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-item:not(:first-child)::before { display: none; }
}

@media (max-width: 640px) {
  .site-nav-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .nav-links { order: 3; width: 100%; gap: 18px; overflow-x: auto; }
  .nav-actions { margin-left: auto; gap: 12px; }
  .saved-link { display: none; }
  .account-link { display: none; }

  .hero-home { padding: 40px 16px 40px; }
  .hero-title { font-size: 2rem; }
  .section-inner { padding: 0 16px; }

  .search-card { padding: 18px; margin-top: 24px; }
  .search-fields { grid-template-columns: 1fr; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .listing-grid { grid-template-columns: 1fr; }

  .orchard-panel { padding: 40px 20px; }
  .orchard-title { font-size: 1.6rem; }
  .orchard-stats { gap: 28px; }

  .why-section { padding: 48px 0; }
  .listings-section { padding: 48px 0; }

  .footer-inner { flex-direction: column; }
}
