/* ---------- Theme 4: "Split View" — airy, minimal, sticky map + scroll feed ---------- */
:root {
  --cream: #faf9f6;
  --white: #ffffff;
  --ink: #24261f;
  --sage: #7a9271;
  --sage-dark: #5d7355;
  --sage-light: #e6ede2;
  --peach: #e8a27f;
  --line: #e6e3da;
  --gray-700: #5c5e54;
  --gray-500: #8c8e83;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 32px rgba(36, 38, 31, .08);
  --shadow-lg: 0 24px 60px rgba(36, 38, 31, .14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--sage-dark); }
.btn-sage { background: var(--sage); color: var(--white); }
.btn-sage:hover { background: var(--sage-dark); }
.btn-outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Floating pill nav ---------- */
.pill-nav-wrap { position: sticky; top: 0; z-index: 60; padding: 18px 24px 0; background: linear-gradient(var(--cream) 60%, transparent); }
.pill-nav { max-width: 1280px; margin: 0 auto; background: var(--white); border-radius: 999px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 22px; }
.pill-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.pill-logo .mark { width: 30px; height: 30px; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.pill-links { display: flex; align-items: center; gap: 6px; }
.pill-links a { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gray-700); }
.pill-links a:hover, .pill-links a.active { background: var(--sage-light); color: var(--sage-dark); }
.pill-nav .cta { display: flex; align-items: center; gap: 8px; }

/* ---------- Intro strip above split ---------- */
.split-intro { padding: 34px 0 22px; }
.split-intro .eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sage-dark); }
.split-intro h1 { font-size: 38px; font-weight: 800; margin: 10px 0 8px; letter-spacing: -.01em; }
.split-intro p { font-size: 15.5px; color: var(--gray-700); max-width: 560px; margin: 0; }
.split-intro-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.split-search { display: flex; gap: 8px; background: var(--white); border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow); align-items: center; }
.split-search input { border: none; background: transparent; font-size: 14.5px; width: 220px; }
.split-search input:focus { outline: none; }

/* ---------- Split view ---------- */
.split-view { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 40px; align-items: start; }
.split-map { position: sticky; top: 100px; height: calc(100vh - 130px); border-radius: var(--radius); overflow: hidden; background: var(--sage-light); box-shadow: var(--shadow); }
.split-map svg { width: 100%; height: 100%; }
.split-map .pin { fill: var(--ink); cursor: pointer; }
.split-map .pin.active { fill: var(--peach); }
.split-feed { display: flex; flex-direction: column; gap: 16px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.filter-row .chip { border: 1.5px solid var(--line); background: var(--white); padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--gray-700); cursor: pointer; }
.filter-row .chip.active, .filter-row .chip:hover { border-color: var(--sage); color: var(--sage-dark); background: var(--sage-light); }

.list-row { display: flex; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .2s ease; }
.list-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.list-row .lr-img { width: 190px; height: 150px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; position: relative; }
.list-row .lr-img img { width: 100%; height: 100%; object-fit: cover; }
.list-row .lr-tag { position: absolute; top: 10px; left: 10px; background: var(--white); font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--sage-dark); }
.list-row .lr-body { flex: 1; display: flex; flex-direction: column; padding: 4px 6px; }
.list-row .lr-price { font-size: 21px; font-weight: 800; }
.list-row .lr-specs { display: flex; gap: 6px; margin: 6px 0 8px; }
.list-row .lr-specs span { background: var(--sage-light); color: var(--sage-dark); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.list-row .lr-addr { font-size: 13.5px; color: var(--gray-700); margin-bottom: auto; }
.list-row .lr-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.list-row .lr-foot .mls { font-size: 11.5px; color: var(--gray-500); }
.list-row .lr-fav { width: 34px; height: 34px; border-radius: 50%; background: var(--sage-light); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; flex-shrink: 0; }

/* ---------- Rounded band sections ---------- */
.band-section { padding: 20px 0 60px; }
.band { border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.band-sage { background: var(--sage); color: #fff; }
.band .eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.band h2 { font-size: 30px; font-weight: 800; margin: 12px 0 14px; letter-spacing: -.01em; }
.band p { font-size: 15px; line-height: 1.6; opacity: .92; max-width: 440px; }
.band-form { background: var(--white); border-radius: var(--radius); padding: 26px; color: var(--ink); }
.band-form label { font-size: 12px; font-weight: 700; color: var(--gray-700); display: block; margin-bottom: 6px; }
.band-form input { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; margin-bottom: 14px; font-family: var(--sans); }
.band-form .estimate { font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 8px; }

/* ---------- Why us — pill row ---------- */
.pill-features { display: flex; gap: 16px; flex-wrap: wrap; }
.pill-feature { flex: 1; min-width: 260px; background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.pill-feature .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-light); color: var(--sage-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px; }
.pill-feature h3 { font-size: 16.5px; font-weight: 800; margin: 0 0 8px; }
.pill-feature p { font-size: 14px; color: var(--gray-700); line-height: 1.6; margin: 0; }

/* ---------- Testimonials masonry ---------- */
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.masonry .m-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.masonry .m-card .stars { color: var(--peach); letter-spacing: 2px; margin-bottom: 10px; font-size: 14px; }
.masonry .m-card p { font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; }
.masonry .m-card .who { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.masonry .m-card .who span { display: block; font-weight: 500; color: var(--gray-500); font-size: 12px; }
.m-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; }

/* ---------- Footer ---------- */
.split-footer { padding: 50px 0; }
.footer-band { background: var(--ink); color: #dfe3d8; border-radius: 28px; padding: 44px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-band .f-logo { font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 8px; }
.footer-band .f-addr { font-size: 13px; color: #b9c0ab; }
.footer-band .f-links { display: flex; gap: 20px; font-size: 13.5px; }
.footer-band .f-links a:hover { color: #fff; }

/* ---------- Listing detail ---------- */
.pd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 0 40px; align-items: start; }
.pd-media { position: sticky; top: 100px; }
.pd-media .main { border-radius: var(--radius); overflow: hidden; height: 460px; box-shadow: var(--shadow); margin-bottom: 12px; }
.pd-media .main img { width: 100%; height: 100%; object-fit: cover; }
.pd-media .thumbs { display: flex; gap: 10px; }
.pd-media .thumbs img { width: 100%; height: 78px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; }
.pd-info .price-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 16px; }
.pd-info .price-card .tag { display: inline-block; background: var(--sage-light); color: var(--sage-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.pd-info .price-card .price { font-size: 32px; font-weight: 800; }
.pd-info .price-card .addr { font-size: 15px; color: var(--gray-700); margin: 4px 0 18px; }
.pd-info .price-card .specs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-info .price-card .specs span { background: var(--sage-light); color: var(--sage-dark); font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.pd-info .desc-card, .pd-info .facts-card, .pd-info .agent-card-v4 { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 16px; }
.pd-info h3 { font-size: 17px; font-weight: 800; margin: 0 0 12px; }
.pd-info .desc-card p { font-size: 14.5px; line-height: 1.7; color: var(--gray-700); margin: 0; }
.pd-info .facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.pd-info .facts-grid div { display: flex; justify-content: space-between; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pd-info .facts-grid b { font-weight: 700; }
.pd-info .facts-grid span:first-child { color: var(--gray-500); }
.agent-card-v4 .agent-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.agent-card-v4 input, .agent-card-v4 textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 10px; font-family: var(--sans); }
.agent-card-v4 textarea { min-height: 80px; resize: vertical; }

@media (max-width: 1000px) {
  .split-view, .pd-split { grid-template-columns: 1fr; }
  .split-map { position: static; height: 360px; }
  .pd-media { position: static; }
  .band { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: 1fr; }
  .pill-features { flex-direction: column; }
}
@media (max-width: 680px) {
  .pill-links { display: none; }
  .split-intro h1 { font-size: 28px; }
  .list-row { flex-direction: column; }
  .list-row .lr-img { width: 100%; height: 180px; }
  .band { padding: 32px; border-radius: 24px; }
  .footer-band { border-radius: 22px; padding: 30px; }
}

/* ---------- Rentals additions ---------- */
.mo { font-size: 13.5px; font-weight: 600; color: var(--gray-500); }
.avail-line { font-size: 12.5px; color: var(--sage-dark); font-weight: 600; margin-top: 4px; }
.rent-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .rent-list { grid-template-columns: 1fr; } }
