:root {
  --black: #1a1a1a;
  --white: #ecece8;
  --off-white: #ecece8;
  --text: #1a1a1a;
  --muted: #5f5f5b;
  --border: #b8b8b3;
  --dark-border: #858580;
  --concrete: #bdbdb8;
  --concrete-light: #ecece8;
  --paper: #ecece8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--off-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select { transition: color .15s, background-color .15s, border-color .15s; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: -60px; left: 16px; padding: 10px; background: var(--white); color: var(--black); }
.skip-link:focus { top: 8px; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--dark-border);
  background: var(--concrete-light);
  color: var(--black);
}
.wordmark { font-weight: 750; font-size: 16px; text-decoration: none; letter-spacing: -.03em; }
.menu-button { min-height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.main-nav {
  position: absolute;
  inset: 62px 0 auto;
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-bottom: 1px solid var(--dark-border);
  background: var(--concrete-light);
}
.main-nav.open { display: flex; }
.main-nav a { min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--white); color: var(--black); }

.market-layout, .left-pane { display: contents; }
.search-section {
  order: 1;
  padding: 34px 16px 28px;
  background: var(--concrete);
  color: var(--black);
}
.eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .09em; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(36px, 12vw, 64px);
  line-height: .95;
  letter-spacing: -.055em;
}
.intro { margin-bottom: 26px; color: #40413d; }
.search-form { display: grid; gap: 14px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.field input, .field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 11px;
  border: 1px solid #77766f;
  border-radius: 0;
  color: var(--black);
  background: var(--off-white);
}
.field input::placeholder { color: var(--muted); }
.field select { color-scheme: light; }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary-button, .load-more {
  min-height: 48px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-weight: 800;
  cursor: pointer;
}
.primary-button { margin-top: 4px; background: var(--black); color: var(--off-white); }
.primary-button:hover, .primary-button:focus-visible { background: var(--off-white); color: var(--black); }

.results-pane { order: 2; min-width: 0; padding: 32px 16px 48px; background: var(--off-white); }
.results-header { margin-bottom: 21px; }
h2 { margin-bottom: 8px; font-size: clamp(25px, 7vw, 40px); line-height: 1; letter-spacing: -.04em; }
.result-count { margin: 0; color: var(--muted); font-size: 12px; }
.filters { display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px 14px; }
.filter {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--black);
  border-right: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.filter:last-child { border-right: 1px solid var(--black); }
.filter.active, .filter:hover, .filter:focus-visible { background: var(--black); color: var(--off-white); }
.listings { border-top: 1px solid var(--text); }
.listing {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 19px 10px;
  padding: 25px 0 27px;
  border-bottom: 1px solid var(--border);
}
.listing-number { grid-row: 1 / span 3; margin: 0; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.listing-main h3 { margin-bottom: 2px; font-size: 19px; line-height: 1.1; letter-spacing: -.025em; }
.listing-main p, .listing-price p, .listing-action p { margin-bottom: 0; }
.listing-main > p:last-child { margin-top: 16px; }
.location, .listing-action p { color: var(--muted); font-size: 12px; }
.listing-price strong { font-size: 23px; letter-spacing: -.035em; }
.availability { font-size: 11px; font-weight: 800; }
.listing-action { display: grid; gap: 9px; }
.details-toggle { width: fit-content; min-height: 44px; padding: 0; border: 0; background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.details-toggle:hover, .details-toggle:focus-visible { background: var(--black); color: var(--off-white); }
.listing-detail { grid-column: 2; padding: 12px; border: 1px solid var(--text); font-size: 12px; }
.load-more { width: 100%; margin-top: 28px; background: transparent; color: var(--black); }
.load-more:hover, .load-more:focus-visible { background: var(--black); color: var(--off-white); }

.owner-section { order: 3; padding: 30px 16px 36px; border-top: 1px solid var(--dark-border); background: var(--concrete); color: var(--black); }
.owner-section > p:not(.eyebrow) { max-width: 410px; color: #40413d; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; }
.text-link:hover, .text-link:focus-visible { background: var(--off-white); color: var(--black); }
.owner-placeholder {
  display: none;
  margin-top: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--dark-border);
  color: #40413d;
}
.owner-placeholder:target { display: grid; gap: 4px; }

.site-footer { padding: 40px 16px 22px; border-top: 1px solid var(--dark-border); background: var(--concrete-light); color: var(--black); }
.footer-brand { margin-bottom: 7px; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.site-footer nav { display: grid; margin: 29px 0; }
.site-footer nav a { min-height: 40px; display: flex; align-items: center; }
.disclaimer { max-width: 760px; padding-top: 22px; border-top: 1px solid var(--dark-border); color: #55564f; font-size: 11px; }
.copyright { margin: 32px 0 0; font-size: 11px; }

@media (min-width: 620px) {
  .search-section, .results-pane, .owner-section { padding-left: 32px; padding-right: 32px; }
  .filters { margin-inline: -32px; padding-inline: 32px; }
  .listing { grid-template-columns: 58px minmax(210px, 1.5fr) 1fr; }
  .listing-number { grid-row: 1 / span 2; }
  .listing-action { grid-column: 2 / 4; grid-template-columns: 1fr auto; align-items: center; }
  .listing-detail { grid-column: 2 / 4; }
  .site-footer { padding-inline: 32px; }
}

@media (min-width: 900px) {
  .site-header { height: 64px; padding-inline: 28px; }
  .menu-button { display: none; }
  .main-nav { position: static; display: flex; flex-direction: row; padding: 0; border: 0; }
  .main-nav a { padding: 0 15px; }
  .market-layout {
    display: grid;
    grid-template-columns: minmax(340px, 38%) 1fr;
    align-items: start;
    background: var(--concrete);
  }
  .left-pane {
    position: sticky;
    top: 64px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--concrete);
  }
  .search-section { flex: 1; padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 62px) 30px; }
  h1 { font-size: clamp(46px, 5.1vw, 76px); }
  .owner-section { padding: 25px clamp(28px, 4vw, 62px) 31px; }
  .results-pane { grid-column: 2; min-height: calc(100vh - 64px); padding: clamp(42px, 5vw, 72px) clamp(32px, 5vw, 80px) 70px; }
  .filters { margin-inline: 0; padding-inline: 0; }
  .listing { grid-template-columns: 62px minmax(210px, 1.5fr) minmax(150px, .8fr); padding-block: 31px; }
  .site-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px 60px;
    padding: 52px clamp(32px, 5vw, 80px) 28px;
  }
  .site-footer nav { grid-template-columns: 1fr 1fr; margin: 0; }
  .disclaimer { margin: 0; }
  .copyright { margin: 0; align-self: end; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, a, input, select { transition: none; }
}
