/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple: #6C5CE7;
  --purple-dark: #5647d1;
  --purple-tint: #F1EEFD;
  --navy: #14104A;
  --ink: #1D1B33;
  --ink-soft: #6E6C89;
  --line: #ECEAF6;
  --bg-soft: #FBFAFF;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(108, 92, 231, 0.55);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.logo-mark { color: var(--purple); font-size: 18px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}
.main-nav a:hover { opacity: 1; }
.has-caret svg { opacity: 0.6; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.link-login {
  font-weight: 600;
  font-size: 15px;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(180deg, #FBFAFF 0%, #F5F3FD 100%);
  padding: 72px 0 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 420px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 24px; font-weight: 800; color: var(--purple); }
.stat span { font-size: 14px; color: var(--ink-soft); }

.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -16px rgba(20, 16, 74, 0.14);
  padding: 12px;
  max-width: 520px;
}

.search-tabs {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 12px;
}
.tab {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.tab.active { background: var(--purple); color: #fff; }

.search-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
}
.field { display: flex; flex-direction: column; gap: 4px; padding: 4px 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink); }
.field span { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.divider { width: 1px; height: 32px; background: var(--line); }
.search-btn { padding: 12px 22px; font-size: 14px; }

/* ---- Hero visual ---- */
.hero-visual { position: relative; }
.hero-img-wrap { position: relative; }

.hero-img-main {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero-map-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.dot-1 { top: -20px; right: 60px; }
.dot-2 { top: 40%; right: -6px; }

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -12px rgba(20,16,74,0.18);
  display: flex;
  gap: 10px;
  padding: 10px;
  width: 220px;
}
.floating-card img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.listing-price { font-weight: 800; font-size: 15px; }
.listing-price span { font-weight: 500; font-size: 11px; color: var(--ink-soft); }
.listing-name { font-weight: 700; font-size: 13px; margin-top: 2px; }
.listing-address { font-size: 10px; color: var(--ink-soft); margin-top: 1px; }
.listing-meta { display: flex; gap: 6px; font-size: 9px; color: var(--ink-soft); margin-top: 4px; }

.card-listing-1 { bottom: -20px; left: -20px; }
.card-listing-2 { top: 20%; right: -30px; width: 190px; }

/* ============ SPLIT SECTION (tenants/landlords) ============ */
.split-section { padding: 110px 0; }
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-visual { position: relative; }
.split-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.badge-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -12px rgba(20,16,74,0.18);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-card strong { display: block; font-size: 13px; font-weight: 700; }
.badge-card span { font-size: 11px; color: var(--ink-soft); }

.badge-tour { top: 24px; left: -24px; width: 240px; }
.badge-icon {
  width: 34px; height: 34px;
  background: var(--purple-tint);
  color: var(--purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.badge-deal {
  bottom: 24px; right: -24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.pill-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}
.pill { padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pill.active { background: var(--purple); color: #fff; }

.split-copy h2 { font-size: 36px; margin-bottom: 18px; line-height: 1.2; }
.split-copy p { color: var(--ink-soft); font-size: 16px; margin-bottom: 28px; max-width: 460px; }

/* ============ STATS BANNER ============ */
.stats-banner {
  background: var(--bg-soft);
  padding: 90px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: 32px;
  padding: 64px;
  box-shadow: 0 30px 60px -30px rgba(20,16,74,0.12);
}
.stats-copy h2 { font-size: 34px; margin-bottom: 14px; line-height: 1.2; max-width: 420px; }
.stats-copy > p { color: var(--ink-soft); margin-bottom: 40px; }

.stats-row { display: flex; gap: 44px; }
.stat-block { display: flex; flex-direction: column; }
.stat-block strong { font-size: 26px; font-weight: 800; }
.stat-block span { font-size: 13px; color: var(--ink-soft); max-width: 110px; margin-top: 4px; }

.stats-visual { display: flex; justify-content: center; }
.house-illustration { width: 100%; max-width: 320px; }

/* ============ LISTINGS ============ */
.listings-section { padding: 100px 0; }
.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.listings-header h2 { font-size: 34px; margin-bottom: 8px; }
.listings-header p { color: var(--ink-soft); }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.property-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(20,16,74,0.18);
}

.property-img { position: relative; height: 200px; }
.property-img img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}
.tag-popular { color: var(--purple); }

.fav-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-size: 14px;
  z-index: 2;
}

.property-body { padding: 20px; }
.property-price { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.property-price span { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.property-body h3 { font-size: 17px; margin-bottom: 4px; }
.property-address { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.property-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ============ TESTIMONIALS ============ */
.testimonials-section {
  background: var(--bg-soft);
  padding: 100px 0;
  text-align: center;
}
.testimonials-inner { max-width: 720px; margin: 0 auto; }
.testimonials-section h2 { font-size: 32px; margin-bottom: 12px; }
.section-sub { color: var(--ink-soft); margin-bottom: 48px; }

blockquote {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 28px;
}

.testimonial-author { margin-bottom: 28px; }
.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { font-size: 13px; color: var(--ink-soft); }

.avatar-row { display: flex; justify-content: center; gap: 10px; }
.avatar-row img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.5;
  border: 2px solid transparent;
}
.avatar-row img.avatar-active {
  opacity: 1;
  width: 56px; height: 56px;
  border-color: var(--purple);
}

/* ============ LANDLORD CTA ============ */
.landlord-cta {
  background: var(--navy);
  padding: 90px 0;
  text-align: center;
}
.cta-inner { max-width: 520px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  color: #A79CF0;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.landlord-cta h2 { color: #fff; font-size: 32px; margin-bottom: 12px; }
.landlord-cta > .cta-inner > p { color: #B8B4D9; margin-bottom: 32px; }

.cta-form {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  margin-bottom: 16px;
}
.cta-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 999px;
}
.cta-form .btn { padding: 12px 24px; font-size: 14px; }
.cta-note { font-size: 12px; color: #8783AE; }

/* ============ FOOTER ============ */
.site-footer { padding: 80px 0 32px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 24px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 18px; color: var(--ink); }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: var(--ink-soft);
}
.social-icons { display: flex; gap: 16px; }
.social-icons a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner, .split-inner, .stats-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .badge-tour, .badge-deal { position: static; margin-top: 16px; width: 100%; }
  .split-visual { display: flex; flex-direction: column; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .main-nav { display: none; }
  .hero-copy h1 { font-size: 36px; }
  .search-fields { grid-template-columns: 1fr; }
  .divider { display: none; }
  .search-btn { width: 100%; margin-top: 8px; }
  .listings-grid { grid-template-columns: 1fr; }
  .listings-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stats-inner { padding: 32px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .cta-form { flex-direction: column; border-radius: 20px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .card-listing-1, .card-listing-2 { position: static; margin-top: 12px; width: 100%; }
  .hero-img-wrap { display: flex; flex-direction: column; }
}
