
    :root {
      --brand-deep: #2f6f55;
      --brand-deep-2: #4fa174;
      --brand-green: #10251f;
      --brand-green-bright: #18382f;
      --brand-gold: #c8a24a;
      --brand-gold-soft: #f3e5bd;
      --paper: #f7f5ef;
      --paper-2: #ebe7dc;
      --white: #ffffff;
      --ink: #17211d;
      --muted: #65716b;
      --line: rgba(23, 33, 29, 0.12);
      --shadow: 0 24px 70px rgba(47, 111, 85, 0.16);
      --radius-lg: 28px;
      --radius-md: 18px;
      --radius-sm: 12px;
      --container: min(90vw, 1760px);
      --read-width: 980px;
      --lede-width: 760px;
      --card-gap: clamp(18px, 1.55vw, 30px);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.6;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    .site-shell {
      min-height: 100vh;
      overflow: hidden;
      background:
        radial-gradient(circle at 12% 0%, rgba(200, 162, 74, 0.18), transparent 32rem),
        radial-gradient(circle at 100% 7%, rgba(79, 161, 116, 0.17), transparent 31rem),
        var(--paper);
    }

    .topbar {
      background: var(--brand-deep);
      color: rgba(255,255,255,.86);
      font-size: .88rem;
    }
    .topbar-inner, .nav-inner, .container, .hero-inner {
      width: var(--container);
      margin: 0 auto;
    }
    .topbar-inner {
      min-height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
    .topbar strong { color: var(--brand-gold-soft); font-weight: 800; }

    .nav {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(18px);
      background: rgba(247,245,239,.9);
      border-bottom: 1px solid rgba(23,33,29,.08);
    }
    .nav-inner {
      min-height: 82px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 26px;
    }
    .brand { display: flex; align-items: center; gap: 14px; min-width: 290px; }
    .brand img {
      width: 58px;
      height: 58px;
      object-fit: contain;
      border-radius: 16px;
      background: rgba(255,255,255,.78);
      box-shadow: 0 12px 26px rgba(47,111,85,.13);
    }
    .brand-title {
      display: block;
      font-weight: 900;
      line-height: 1.05;
      letter-spacing: -.045em;
      color: var(--brand-deep);
      font-size: 1.03rem;
    }
    .brand-subtitle {
      display: block;
      color: var(--muted);
      font-size: .75rem;
      text-transform: uppercase;
      letter-spacing: .17em;
      margin-top: 3px;
    }
    .nav-links { display: flex; align-items: center; gap: 24px; color: #33423b; font-weight: 780; font-size: .94rem; }
    .nav-links a { position: relative; }
    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -8px;
      width: 0;
      height: 2px;
      background: var(--brand-gold);
      transition: width .2s ease;
    }
    .nav-links a:hover::after { width: 100%; }
    .nav-actions { display: flex; gap: 10px; align-items: center; }
    .nav-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 17px;
      color: var(--white);
      background: var(--brand-green);
      border-radius: 999px;
      font-weight: 900;
      box-shadow: 0 14px 28px rgba(16,37,31,.22);
      white-space: nowrap;
    }
    .nav-download { background: var(--brand-gold); color: #1d2119; }

    .hero {
      position: relative;
      color: var(--white);
      background:
        linear-gradient(120deg, rgba(47,111,85,.94), rgba(79,161,116,.82)),
        radial-gradient(circle at 78% 12%, rgba(200,162,74,.38), transparent 30rem),
        linear-gradient(135deg, var(--brand-deep-2), var(--brand-deep));
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
      background-size: 46px 46px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 72%);
      pointer-events: none;
    }
    .hero-inner {
      position: relative;
      display: grid;
      grid-template-columns: 1fr;
      gap: 34px;
      padding: 78px 0 78px;
    }
    .hero-copy-wrap { max-width: 1050px; }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      width: fit-content;
      padding: 8px 12px;
      border: 1px solid rgba(243,229,189,.32);
      border-radius: 999px;
      color: var(--brand-gold-soft);
      background: rgba(255,255,255,.07);
      font-size: .78rem;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .14em;
    }
    .eyebrow-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--brand-green-bright);
      box-shadow: 0 0 0 5px rgba(79,161,116,.15);
    }
    h1, h2, h3, p { margin-top: 0; }
    h1 {
      max-width: 1060px;
      margin: 22px 0 18px;
      font-size: clamp(3rem, 6.2vw, 6.35rem);
      line-height: .88;
      letter-spacing: -.075em;
    }
    .hero-copy {
      max-width: 880px;
      color: rgba(255,255,255,.8);
      font-size: 1.18rem;
      line-height: 1.78;
      margin-bottom: 0;
    }
    .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 52px;
      padding: 0 22px;
      border-radius: 999px;
      font-weight: 900;
      border: 1px solid transparent;
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: var(--brand-gold); color: #1d2119; box-shadow: 0 18px 44px rgba(200,162,74,.26); }
    .btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--white); }
    .hero-footnote { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 23px; color: rgba(255,255,255,.66); font-size: .92rem; }
    .hero-footnote span { display: inline-flex; align-items: center; gap: 8px; }
    .hero-footnote span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold); }

    .hero-stage {
      display: grid;
      grid-template-columns: minmax(0, .78fr) minmax(560px, 1fr);
      gap: clamp(28px, 3vw, 58px);
      align-items: center;
    }

    .daily-deal-card {
      display: grid;
      grid-template-columns: minmax(230px, .95fr) minmax(260px, 1.05fr);
      overflow: hidden;
      border-radius: 0;
      background: #111312;
      border: 1px solid rgba(243,229,189,.18);
      box-shadow: 0 32px 84px rgba(8,22,18,.34);
    }
    .daily-deal-photo {
      min-height: 336px;
      background: #d8d2c6;
      border: 10px solid rgba(247,245,239,.96);
    }
    .daily-deal-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .daily-deal-info {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: clamp(24px, 2vw, 38px);
      color: var(--white);
      background: #111312;
    }
    .daily-ribbon {
      width: fit-content;
      margin-bottom: 26px;
      padding: 9px 16px;
      color: var(--white);
      background: #070908;
      font-size: clamp(.9rem, .9vw, 1rem);
      font-weight: 950;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .daily-kicker {
      color: var(--white);
      font-size: .85rem;
      font-weight: 950;
      letter-spacing: .22em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }
    .daily-deal-info h2 {
      max-width: none;
      color: var(--white);
      font-family: Georgia, "Times New Roman", serif;
      font-weight: 400;
      font-size: clamp(2.3rem, 3.25vw, 4.2rem);
      letter-spacing: -.045em;
      line-height: .96;
      margin-bottom: 18px;
    }
    .daily-price {
      color: var(--white);
      font-size: clamp(2.35rem, 4.1vw, 4.85rem);
      line-height: .92;
      letter-spacing: -.055em;
      font-weight: 950;
      margin-bottom: 20px;
    }
    .daily-facts,
    .daily-type,
    .daily-value {
      color: rgba(255,255,255,.94);
      font-size: clamp(1rem, 1.25vw, 1.45rem);
      line-height: 1.32;
      margin: 0 0 8px;
    }
    .daily-address {
      color: var(--white);
      font-size: clamp(1rem, 1.2vw, 1.35rem);
      line-height: 1.2;
      font-weight: 950;
      text-transform: uppercase;
      margin: 24px 0 0;
    }
    .daily-broker-strip {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
      gap: 24px;
      align-items: center;
      padding: 18px 22px;
      color: #050807;
      background: rgba(247,245,239,.98);
      border-top: 6px solid var(--brand-deep-2);
    }
    .daily-agent {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }
    .daily-agent img {
      width: 66px;
      height: 66px;
      object-fit: cover;
      border: 3px solid var(--brand-deep-2);
    }
    .daily-agent span {
      display: block;
      color: var(--brand-deep-2);
      font-size: .78rem;
      font-weight: 950;
      letter-spacing: .11em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .daily-agent strong {
      display: block;
      color: #050807;
      font-size: clamp(1.05rem, 1.2vw, 1.38rem);
      line-height: 1.06;
      letter-spacing: -.035em;
    }
    .daily-metrics {
      display: grid;
      gap: 3px;
      font-size: clamp(.86rem, .95vw, 1.05rem);
      line-height: 1.25;
    }
    .daily-metrics strong { color: #050807; font-weight: 950; }

    .filter-console {
      width: 100%;
      border-radius: var(--radius-lg);
      background:
        radial-gradient(circle at 18% 0%, rgba(200,162,74,.16), transparent 24rem),
        linear-gradient(160deg, rgba(16,37,31,.98), rgba(24,56,47,.96));
      border: 1px solid rgba(243,229,189,.18);
      box-shadow: 0 30px 92px rgba(16,37,31,.34);
      overflow: hidden;
    }
    .console-top {
      padding: 20px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      background: rgba(8,22,18,.34);
      border-bottom: 1px solid rgba(243,229,189,.13);
    }
    .console-title {
      font-size: .92rem;
      font-weight: 950;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--brand-gold-soft);
    }
    .console-tools {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }
    .match-pill {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 46px;
      padding: 0 14px;
      border-radius: 999px;
      background: rgba(8,22,18,.72);
      border: 1px solid rgba(243,229,189,.16);
      color: var(--white);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
      white-space: nowrap;
    }
    .match-pill span {
      color: rgba(255,255,255,.58);
      font-size: .68rem;
      font-weight: 950;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .match-pill strong {
      color: var(--white);
      font-size: 1.18rem;
      line-height: 1;
      font-weight: 950;
      letter-spacing: -.03em;
    }
    .status-pill, .lab-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 10px;
      border-radius: 999px;
      color: rgba(255,255,255,.78);
      background: rgba(79,161,116,.2);
      border: 1px solid rgba(79,161,116,.36);
      font-size: .77rem;
      font-weight: 850;
      white-space: nowrap;
    }
    .status-pill::before, .lab-pill::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--brand-green-bright);
    }
    .console-body { padding: 24px; }
    .filter-label {
      display: block;
      margin-bottom: 9px;
      color: rgba(255,255,255,.7);
      font-size: .84rem;
      font-weight: 900;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .market-row {
      display: grid;
      grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
      gap: 16px;
      align-items: start;
      margin-bottom: 18px;
    }
    .location-picker { position: relative; }
    .location-picker summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      min-height: 56px;
      padding: 11px 14px;
      border-radius: 17px;
      color: var(--white);
      background: rgba(8,22,18,.76);
      border: 1px solid rgba(243,229,189,.18);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
      font-weight: 900;
    }
    .location-picker summary::-webkit-details-marker { display: none; }
    .location-picker summary::after { content: "▾"; color: var(--brand-gold-soft); font-size: .9rem; }
    .location-menu {
      margin-top: 9px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(8,22,18,.92);
      border: 1px solid rgba(243,229,189,.16);
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px 12px;
    }
    .location-option {
      display: flex;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,.82);
      font-weight: 780;
      font-size: .9rem;
    }
    .location-option input { accent-color: var(--brand-gold); }
    .market-summary-card {
      min-height: 100%;
      padding: 16px;
      border-radius: 19px;
      background: rgba(8,22,18,.56);
      border: 1px solid rgba(243,229,189,.13);
    }
    .market-summary-line {
      margin: 0 0 12px;
      color: rgba(255,255,255,.82);
      font-weight: 800;
    }
    .market-summary-line strong { color: var(--white); }
    .selected-markets { display: flex; flex-wrap: wrap; gap: 8px; }
    .market-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 31px;
      padding: 0 10px;
      border-radius: 999px;
      color: #16231e;
      background: var(--brand-gold-soft);
      border: 1px solid rgba(243,229,189,.62);
      font-size: .75rem;
      font-weight: 950;
    }
    .market-chip button {
      border: 0;
      padding: 0;
      margin: 0;
      width: 17px;
      height: 17px;
      border-radius: 50%;
      color: #16231e;
      background: rgba(22,35,30,.12);
      font-weight: 950;
      line-height: 1;
      cursor: pointer;
    }

    .range-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .range-card {
      min-height: 112px;
      padding: 13px 13px 12px;
      border-radius: 16px;
      background: rgba(8,22,18,.64);
      border: 1px solid rgba(243,229,189,.13);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    }
    .range-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 13px;
    }
    .range-name {
      color: rgba(255,255,255,.58);
      font-size: .68rem;
      font-weight: 950;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .range-value {
      color: var(--white);
      font-size: 1rem;
      line-height: 1;
      font-weight: 950;
      letter-spacing: -.035em;
      white-space: nowrap;
    }
    .range-slider {
      position: relative;
      height: 32px;
    }
    .range-track {
      position: absolute;
      left: 0;
      right: 0;
      top: 14px;
      height: 6px;
      border-radius: 999px;
      background: rgba(255,255,255,.13);
    }
    .range-fill {
      position: absolute;
      top: 14px;
      height: 6px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--brand-gold-soft), var(--brand-gold));
      left: 0;
      right: 0;
    }
    .range-slider input[type="range"] {
      position: absolute;
      left: 0;
      top: 3px;
      width: 100%;
      height: 28px;
      margin: 0;
      background: none;
      appearance: none;
      -webkit-appearance: none;
      pointer-events: none;
      outline: none;
    }
    .range-slider input[type="range"]::-webkit-slider-thumb {
      appearance: none;
      -webkit-appearance: none;
      pointer-events: auto;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 3px solid var(--brand-gold-soft);
      background: var(--brand-gold);
      box-shadow: 0 6px 16px rgba(0,0,0,.28);
      cursor: pointer;
    }
    .range-slider input[type="range"]::-moz-range-thumb {
      pointer-events: auto;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 3px solid var(--brand-gold-soft);
      background: var(--brand-gold);
      box-shadow: 0 6px 16px rgba(0,0,0,.28);
      cursor: pointer;
    }
    .range-slider input[type="range"]::-moz-range-track { background: transparent; border: 0; }
    .range-scale {
      display: flex;
      justify-content: space-between;
      margin-top: 2px;
      color: rgba(255,255,255,.42);
      font-size: .68rem;
      font-weight: 820;
    }

    .filter-footer {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      align-items: center;
      margin-top: 18px;
      padding: 15px;
      border-radius: 20px;
      background: rgba(8,22,18,.54);
      border: 1px solid rgba(243,229,189,.13);
    }
    .filter-summary-text {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      color: rgba(255,255,255,.7);
      font-size: .88rem;
      font-weight: 780;
    }
    .filter-summary-text strong { color: var(--white); }
    .filter-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .filter-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      border: 0;
      border-radius: 999px;
      padding: 0 18px;
      background: var(--brand-gold);
      color: #1d2119;
      font-weight: 950;
      cursor: pointer;
      text-decoration: none;
      white-space: nowrap;
    }
    .filter-button.secondary { background: rgba(255,255,255,.09); color: var(--white); border: 1px solid rgba(255,255,255,.17); }

    .result-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 16px;
    }
    .result-stat {
      padding: 13px;
      border-radius: 16px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
    }
    .result-stat span {
      display: block;
      color: rgba(255,255,255,.52);
      font-size: .68rem;
      font-weight: 950;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .result-stat strong {
      display: block;
      margin-top: 6px;
      color: var(--white);
      font-size: 1.28rem;
      line-height: 1;
      font-weight: 950;
      letter-spacing: -.04em;
    }

    .section { padding: clamp(46px, 3.4vw, 66px) 0; }
    .section-header {
      display: grid;
      grid-template-columns: 1fr;
      align-items: start;
      gap: 16px;
      max-width: 1180px;
      margin: 0 0 28px;
    }
    .section-kicker {
      color: var(--brand-green);
      font-size: .82rem;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .16em;
      margin-bottom: 9px;
    }
    h2 {
      max-width: var(--read-width);
      font-size: clamp(2.1rem, 3.8vw, 3.85rem);
      line-height: .98;
      letter-spacing: -.06em;
      color: var(--brand-deep);
      margin-bottom: 0;
    }
    .section-lede {
      max-width: var(--lede-width);
      color: var(--muted);
      font-size: 1.06rem;
      margin: 0;
    }

    .filter-logic-section {
      padding: clamp(38px, 3.2vw, 62px) 0;
      background:
        radial-gradient(circle at 16% 0%, rgba(79, 161, 116, .12), transparent 24rem),
        linear-gradient(180deg, rgba(235, 231, 220, .82), rgba(247, 245, 239, .96));
    }
    .logic-shell {
      border: 1px solid rgba(47, 111, 85, .14);
      border-radius: var(--radius-lg);
      background: rgba(255, 255, 255, .74);
      padding: clamp(24px, 2.6vw, 46px);
      box-shadow: 0 18px 56px rgba(47, 111, 85, .10);
    }
    .logic-header {
      grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
      align-items: end;
      gap: clamp(20px, 2.2vw, 38px);
      max-width: none;
      margin-bottom: clamp(18px, 1.8vw, 30px);
    }
    .logic-header h2 {
      max-width: 940px;
      font-size: clamp(2rem, 3.05vw, 3.28rem);
      line-height: 1.01;
    }
    .logic-header .section-lede {
      max-width: 680px;
      color: #53635b;
      font-weight: 650;
    }
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: clamp(12px, 1vw, 18px);
    }
    .feature-card {
      position: relative;
      overflow: hidden;
      min-height: 208px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 18px;
      padding: clamp(20px, 1.5vw, 28px);
      border-radius: 24px;
      color: var(--white);
      background:
        radial-gradient(circle at 100% 0%, rgba(200, 162, 74, .20), transparent 12rem),
        linear-gradient(145deg, rgba(47, 111, 85, .98), rgba(16, 37, 31, .98));
      border: 1px solid rgba(243, 229, 189, .16);
      box-shadow: 0 16px 38px rgba(16, 37, 31, .15);
    }
    .feature-card::after {
      content: "";
      position: absolute;
      inset: auto -18px -38px auto;
      width: 108px;
      height: 108px;
      border-radius: 50%;
      background: rgba(79, 161, 116, .18);
      pointer-events: none;
    }
    .feature-number {
      width: 44px;
      height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: var(--brand-gold-soft);
      color: #15231d;
      font-weight: 950;
      font-size: .85rem;
      letter-spacing: -.02em;
      box-shadow: inset 0 0 0 1px rgba(23, 33, 29, .08);
    }
    .feature-card h3 {
      margin: auto 0 10px;
      color: var(--white);
      font-size: clamp(1.22rem, 1.18vw, 1.48rem);
      line-height: 1.06;
      letter-spacing: -.045em;
    }
    .feature-card p {
      margin: 0;
      color: rgba(255, 255, 255, .72);
      font-size: .94rem;
      line-height: 1.62;
      max-width: 430px;
    }

    .compare-grid, .service-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--card-gap);
    }
    .deal-card-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: var(--card-gap);
    }
    .compare-card, .deal-card, .service-card, .contact-card, .broker-card, .chart-card {
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: rgba(255,255,255,.74);
      box-shadow: 0 14px 44px rgba(47,111,85,.08);
    }
    .compare-card, .service-card { padding: 26px; }
    .compare-card.dark {
      color: var(--white);
      background: linear-gradient(145deg, rgba(47,111,85,.96), rgba(16,37,31,.96));
      border-color: rgba(255,255,255,.12);
      box-shadow: var(--shadow);
    }
    .compare-card h3, .service-card h3 {
      color: var(--brand-deep);
      margin-bottom: 12px;
      font-size: 1.5rem;
      line-height: 1.07;
      letter-spacing: -.045em;
      max-width: 520px;
    }
    .compare-card.dark h3 { color: var(--white); }
    .compare-card p, .service-card p { color: var(--muted); margin-bottom: 0; max-width: 560px; }
    .compare-card.dark p { color: rgba(255,255,255,.74); }
    .check-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; max-width: 620px; }
    .check-list li { position: relative; padding-left: 27px; color: var(--muted); font-weight: 760; }
    .compare-card.dark .check-list li { color: rgba(255,255,255,.78); }
    .check-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: .62em;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--brand-gold);
    }

    .deal-card { overflow: hidden; }
    .deal-card-photo { position: relative; height: clamp(160px, 11vw, 225px); background: #d8d2c6; }
    .deal-card-photo img { width: 100%; height: 100%; object-fit: cover; }
    .photo-tag {
      position: absolute;
      left: 14px;
      top: 14px;
      padding: 7px 10px;
      border-radius: 999px;
      background: var(--brand-gold-soft);
      color: #16231e;
      font-size: .75rem;
      font-weight: 950;
    }
    .deal-card-body { padding: 18px; }
    .deal-card h3 { margin-bottom: 6px; color: var(--brand-deep); font-size: 1.18rem; letter-spacing: -.04em; line-height: 1.1; max-width: 520px; }
    .deal-card p { color: var(--muted); margin-bottom: 14px; max-width: 580px; font-size: .95rem; }
    .deal-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .deal-metric { padding: 9px; border-radius: 14px; background: #fbfaf6; border: 1px solid var(--line); }
    .deal-metric span { display: block; color: var(--muted); font-size: .68rem; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
    .deal-metric strong { display: block; margin-top: 4px; color: var(--brand-green); font-size: 1.02rem; line-height: 1; }

    .split-band {
      padding: clamp(52px, 3.8vw, 72px) 0;
      background: var(--brand-deep);
      color: var(--white);
    }
    .split-grid {
      display: grid;
      grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.22fr);
      gap: var(--card-gap);
      align-items: stretch;
    }
    .split-band h2 { color: var(--white); }
    .split-band .section-kicker { color: var(--brand-gold-soft); }
    .split-copy { color: rgba(255,255,255,.72); font-size: 1.08rem; max-width: 760px; }
    .chart-card {
      min-height: 100%;
      background:
        radial-gradient(circle at 12% 0%, rgba(200,162,74,.18), transparent 16rem),
        linear-gradient(145deg, #10251f, #18382f);
      border-color: rgba(243,229,189,.16);
      padding: 24px;
      color: var(--white);
    }
    .chart-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 20px; }
    .chart-title { font-weight: 950; letter-spacing: -.03em; font-size: 1.28rem; }
    .chart-subtitle { color: rgba(255,255,255,.58); font-size: .86rem; }
    .chart-box {
      height: 250px;
      border-radius: 22px;
      background:
        linear-gradient(135deg, rgba(24,56,47,.82), rgba(8,22,18,.78)),
        radial-gradient(circle at 82% 20%, rgba(200,162,74,.12), transparent 16rem);
      border: 1px solid rgba(243,229,189,.14);
      position: relative;
      overflow: hidden;
    }
    .chart-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
    .legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: rgba(255,255,255,.68); font-size: .84rem; font-weight: 780; }
    .legend span { display: inline-flex; gap: 7px; align-items: center; }
    .legend span::before { content: ""; width: 18px; height: 3px; border-radius: 99px; background: var(--brand-gold-soft); }
    .legend .dotted::before { background: transparent; border-top: 3px dotted rgba(255,255,255,.72); height: 0; }
    .legend .green::before { background: var(--brand-deep-2); }

    .brokerage-grid { display: grid; grid-template-columns: minmax(380px, .82fr) minmax(520px, 1.18fr); gap: var(--card-gap); align-items: stretch; }
    .broker-card {
      color: var(--white);
      padding: 30px;
      background: linear-gradient(145deg, rgba(79,161,116,.92), rgba(47,111,85,.94));
      box-shadow: var(--shadow);
    }
    .broker-card h2 { color: var(--white); margin-bottom: 18px; }
    .broker-card p { color: rgba(255,255,255,.74); font-size: 1.04rem; }
    .broker-mini { display: flex; align-items: center; gap: 16px; padding-top: 20px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
    .broker-mini img { width: 62px; height: 62px; object-fit: cover; border-radius: 18px; background: rgba(255,255,255,.12); }
    .broker-mini strong { display: block; line-height: 1.1; }
    .broker-mini span { display: block; color: rgba(255,255,255,.6); font-size: .88rem; margin-top: 4px; }
    .contact-broker {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 24px 0 18px;
      padding: 18px;
      border-radius: 22px;
      background: linear-gradient(145deg, rgba(47,111,85,.09), rgba(200,162,74,.08));
      border: 1px solid rgba(47,111,85,.16);
    }
    .contact-broker img {
      width: 78px;
      height: 78px;
      object-fit: cover;
      border-radius: 20px;
      background: var(--paper-2);
      border: 3px solid rgba(79,161,116,.22);
    }
    .contact-broker-label {
      color: var(--brand-deep-2);
      font-size: .78rem;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .12em;
      margin-bottom: 4px;
    }
    .contact-broker strong {
      display: block;
      color: var(--brand-green);
      font-size: 1.18rem;
      line-height: 1.05;
    }
    .contact-broker span {
      display: block;
      color: var(--muted);
      font-size: .92rem;
      margin-top: 4px;
    }
    .service-grid { grid-template-columns: repeat(2, minmax(360px, 1fr)); }
    .service-tag {
      display: inline-flex;
      margin-bottom: 20px;
      padding: 7px 10px;
      border-radius: 999px;
      background: rgba(47,111,85,.12);
      color: var(--brand-green);
      font-size: .77rem;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .1em;
    }

    .cta-band {
      padding: clamp(52px, 3.8vw, 72px) 0;
      background:
        radial-gradient(circle at 8% 10%, rgba(200,162,74,.22), transparent 24rem),
        linear-gradient(135deg, var(--paper-2), var(--paper));
    }
    .contact-card {
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 28px;
      padding: 34px;
      background: var(--white);
    }
    .contact-card h2 { margin-bottom: 18px; }
    .contact-card p { color: var(--muted); font-size: 1.06rem; }
    .mock-form { display: grid; gap: 12px; align-content: start; }
    .mock-form input, .mock-form select, .mock-form textarea {
      width: 100%;
      min-height: 50px;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 0 14px;
      color: var(--ink);
      background: #fbfaf6;
      font: inherit;
      outline: none;
    }
    .mock-form textarea { min-height: 104px; padding-top: 13px; resize: vertical; }
    .mock-form button {
      min-height: 52px;
      border: 0;
      border-radius: 999px;
      background: var(--brand-deep);
      color: var(--white);
      font-weight: 950;
      font-size: 1rem;
    }
    .fine-print { color: var(--muted); font-size: .82rem; margin-bottom: 0; }

    .footer { background: var(--brand-deep); color: rgba(255,255,255,.68); padding: 54px 0 28px; }
    .footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .footer h4 { margin: 0 0 14px; color: var(--white); font-size: .96rem; }
    .footer p, .footer a { display: block; margin: 0 0 8px; color: rgba(255,255,255,.62); }
    .footer-logos { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
    .footer-logos img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: var(--white); padding: 5px; }
    .footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: .86rem; color: rgba(255,255,255,.46); }


    @media (min-width: 1180px) {
      .section-header .section-kicker,
      .section-header h2,
      .section-header .section-lede { width: 100%; }
      .compare-card, .service-card { padding: clamp(26px, 1.65vw, 34px); }
      .deal-card-body { padding: clamp(20px, 1.45vw, 28px); }
      .deal-metrics { gap: 10px; }
    }

    @media (max-width: 1100px) {
      .nav-links { display: none; }
      .hero-stage { display: block; }
      .daily-deal-card { display: none; }
      .range-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .compare-grid, .deal-card-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .split-grid, .brokerage-grid, .contact-card, .logic-header { grid-template-columns: 1fr; }
    }
    @media (max-width: 820px) {
      .topbar-inner { flex-direction: column; align-items: flex-start; padding: 10px 0; }
      .brand { min-width: 0; }
      .brand-subtitle { display: none; }
      .nav-actions { display: none; }
      .topbar-inner, .nav-inner, .container, .hero-inner { width: calc(100% - 28px); }
      .hero-inner { padding: 58px 0; }
      h1 { font-size: 3.35rem; }
      .market-row { grid-template-columns: 1fr; }
      .location-menu { grid-template-columns: 1fr; }
      .range-grid, .compare-grid, .deal-card-grid, .feature-grid, .service-grid, .result-strip, .footer-grid { grid-template-columns: 1fr; }
      .filter-footer { grid-template-columns: 1fr; }
      .console-top { flex-direction: column; align-items: stretch; }
      .console-tools { justify-content: flex-start; }
      .match-pill { width: 100%; justify-content: space-between; }
      .filter-actions { justify-content: stretch; }
      .filter-button { width: 100%; }
      .section-header { display: block; }
      .section-lede { margin-top: 16px; }
      .section { padding: 62px 0; }
      .logic-shell { padding: 22px; }
      .feature-card { min-height: auto; }
      .footer-bottom { display: block; }
    }
  

    /* v10 patch: move nav headers right, anchor buy-box button to the filter console, and use hotsheet-style chart visuals. */
    .nav-inner {
      justify-content: flex-start;
    }

    .nav-links {
      margin-left: auto;
      justify-content: flex-end;
      gap: clamp(16px, 1.35vw, 28px);
    }

    .nav-actions {
      margin-left: 10px;
      flex: 0 0 auto;
    }

    #buy-box-console {
      scroll-margin-top: 120px;
    }

    @media (max-width: 1280px) and (min-width: 1101px) {
      .deal-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .deal-card h3 { font-size: 1.08rem; }
      .deal-card-body { padding: 16px; }
      .deal-metric span { font-size: .62rem; }
      .deal-metric strong { font-size: .96rem; }
    }

    .chart-card {
      background:
        radial-gradient(circle at 10% 0%, rgba(200,162,74,.14), transparent 18rem),
        linear-gradient(145deg, #10251f, #18382f);
      padding: clamp(22px, 1.8vw, 32px);
    }

    .chart-box.hotsheet-chart {
      height: clamp(290px, 22vw, 390px);
      background: #fbfaf6;
      border: 1px solid rgba(23, 33, 29, .13);
      border-radius: 22px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 40px rgba(8,22,18,.18);
    }

    .hotsheet-chart svg text {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .hotsheet-chart .chart-grid line {
      stroke: rgba(23,33,29,.12);
      stroke-width: 1;
    }

    .hotsheet-chart .axis-text text {
      fill: #52645b;
      font-size: 12px;
      font-weight: 800;
    }

    .hotsheet-chart .chart-title-svg {
      fill: #2f6f55;
      font-size: 18px;
      font-weight: 950;
    }

    .hotsheet-chart .y-axis-label {
      fill: #52645b;
      font-size: 13px;
      font-weight: 900;
    }

    .hotsheet-chart .chart-legend-svg text {
      fill: #52645b;
      font-size: 13px;
      font-weight: 850;
    }

    .legend span::before {
      background: #2f6f55;
    }

    .legend .regression::before {
      background: transparent;
      border-top: 3px dashed rgba(255,255,255,.78);
      height: 0;
    }

    .legend .list-price::before {
      background: transparent;
      border-top: 3px dashed var(--brand-gold);
      height: 0;
    }

    .legend .subject-sale::before {
      width: 12px;
      height: 12px;
      border-radius: 999px;
      background: var(--brand-gold);
      border: 2px solid rgba(255,255,255,.7);
    }


    /* v11 patch: alternate the brokerage section to green and turn the market picker into a county-based four-row selector. */
    .brokerage-section {
      background:
        radial-gradient(circle at 10% 0%, rgba(200, 162, 74, .16), transparent 26rem),
        radial-gradient(circle at 100% 12%, rgba(79, 161, 116, .22), transparent 34rem),
        linear-gradient(135deg, #2f6f55, #4fa174);
      color: var(--white);
    }

    .brokerage-section .section-kicker {
      color: var(--brand-gold-soft);
    }

    .brokerage-section .broker-card,
    .brokerage-section .service-card {
      color: var(--ink);
      background: rgba(255,255,255,.94);
      border: 1px solid rgba(255,255,255,.54);
      box-shadow: 0 20px 55px rgba(8, 22, 18, .16);
    }

    .brokerage-section .broker-card h2,
    .brokerage-section .service-card h3 {
      color: var(--brand-deep);
    }

    .brokerage-section .broker-card p,
    .brokerage-section .service-card p {
      color: var(--muted);
    }

    .brokerage-section .service-tag {
      background: rgba(47,111,85,.11);
      color: var(--brand-green);
    }

    .market-row {
      grid-template-columns: minmax(0, 2.25fr) minmax(250px, .55fr);
      gap: 14px;
    }

    .location-menu {
      grid-template-columns: none;
      grid-template-rows: repeat(4, minmax(27px, auto));
      grid-auto-flow: column;
      grid-auto-columns: minmax(154px, 1fr);
      overflow-x: auto;
      overflow-y: hidden;
      padding-bottom: 14px;
      scrollbar-width: thin;
      scrollbar-color: rgba(243,229,189,.5) rgba(8,22,18,.25);
    }

    .location-menu::-webkit-scrollbar { height: 8px; }
    .location-menu::-webkit-scrollbar-track { background: rgba(8,22,18,.25); border-radius: 999px; }
    .location-menu::-webkit-scrollbar-thumb { background: rgba(243,229,189,.5); border-radius: 999px; }

    .location-option {
      white-space: nowrap;
      font-size: .82rem;
    }

    .market-summary-card {
      min-height: 0;
      padding: 14px;
    }

    .market-summary-line {
      font-size: .86rem;
      line-height: 1.35;
    }

    .selected-markets {
      max-height: 112px;
      overflow-y: auto;
      padding-right: 3px;
    }

    @media (max-width: 1100px) {
      .brokerage-section .broker-card,
      .brokerage-section .service-card {
        box-shadow: 0 14px 38px rgba(8,22,18,.14);
      }
    }

    @media (max-width: 820px) {
      .location-menu {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        max-height: 340px;
        overflow-y: auto;
        overflow-x: hidden;
      }
      .market-summary-card { min-height: 0; }
      .selected-markets { max-height: none; overflow: visible; }
    }


    /* v12 patch: county picker preview as a full-width 6-column grid with no internal scroll. */
    .market-row {
      grid-template-columns: 1fr;
      gap: 12px;
      margin-bottom: 18px;
    }

    .location-menu {
      grid-template-columns: repeat(6, minmax(112px, 1fr));
      grid-template-rows: none;
      grid-auto-flow: row;
      grid-auto-columns: auto;
      overflow: visible;
      max-height: none;
      padding: 16px;
      padding-bottom: 16px;
      gap: 10px 14px;
      scrollbar-width: auto;
    }

    .location-menu::-webkit-scrollbar { display: none; }

    .location-option {
      white-space: nowrap;
      min-height: 28px;
      font-size: .82rem;
      line-height: 1.1;
    }

    .market-summary-card {
      min-height: 0;
      padding: 12px 14px;
      display: grid;
      grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
      gap: 12px;
      align-items: start;
    }

    .market-summary-line {
      margin: 0;
      font-size: .84rem;
      line-height: 1.4;
    }

    .selected-markets {
      max-height: none;
      overflow: visible;
      align-content: start;
    }

    @media (max-width: 1180px) {
      .location-menu { grid-template-columns: repeat(4, minmax(112px, 1fr)); }
      .market-summary-card { grid-template-columns: 1fr; }
    }

    @media (max-width: 820px) {
      .location-menu {
        grid-template-columns: 1fr;
        max-height: 340px;
        overflow-y: auto;
        overflow-x: hidden;
      }
      .location-menu::-webkit-scrollbar { display: block; width: 8px; }
      .market-summary-card { display: block; }
      .selected-markets { margin-top: 10px; }
    }


    /* v13 patch: return selected-market summary to the right of the county dropdown and tighten the county grid rows. */
    .market-row {
      grid-template-columns: minmax(0, 3.25fr) minmax(275px, .75fr);
      gap: 12px;
      align-items: start;
      margin-bottom: 16px;
    }

    .location-menu {
      grid-template-columns: repeat(6, minmax(96px, 1fr));
      gap: 3px 12px;
      padding: 10px 12px;
      padding-bottom: 10px;
      align-items: start;
    }

    .location-option {
      min-height: 20px;
      gap: 7px;
      font-size: .79rem;
      line-height: 1;
      padding: 1px 0;
    }

    .location-option input {
      width: 13px;
      height: 13px;
      margin: 0;
      flex: 0 0 auto;
    }

    .market-summary-card {
      display: block;
      align-self: start;
      padding: 12px 13px;
      min-height: 0;
    }

    .market-summary-line {
      margin: 0 0 10px;
      font-size: .82rem;
      line-height: 1.35;
    }

    .selected-markets {
      max-height: 176px;
      overflow-y: auto;
      gap: 7px;
      padding-right: 3px;
    }

    .market-chip {
      min-height: 28px;
      padding: 0 9px;
      font-size: .72rem;
    }

    @media (max-width: 1180px) {
      .market-row { grid-template-columns: 1fr; }
      .location-menu { grid-template-columns: repeat(4, minmax(104px, 1fr)); }
      .market-summary-card { display: block; }
      .selected-markets { max-height: none; overflow: visible; }
    }

    @media (max-width: 820px) {
      .location-menu {
        grid-template-columns: 1fr;
        gap: 8px;
        max-height: 340px;
        overflow-y: auto;
      }
      .location-option { min-height: 28px; font-size: .84rem; line-height: 1.15; }
      .selected-markets { margin-top: 10px; }
    }


    /* v14 patch: keep six county columns but stop each option from stretching across the grid. */
    @media (min-width: 1181px) {
      .market-row {
        grid-template-columns: minmax(0, 2.8fr) minmax(320px, 1fr);
        gap: 12px;
      }

      .location-menu {
        grid-template-columns: repeat(6, max-content);
        justify-content: start;
        column-gap: clamp(9px, 1.05vw, 18px);
        row-gap: 2px;
      }

      .location-option {
        width: max-content;
        min-width: 0;
        white-space: nowrap;
        padding-right: 0;
      }
    }


    /* v15 patch: county selector to 8 across, tighter horizontal rhythm, summary card fills leftover space. */
    @media (min-width: 1181px) {
      .market-row {
        grid-template-columns: max-content minmax(360px, 1fr);
        gap: 14px;
        align-items: stretch;
      }

      .location-menu {
        grid-template-columns: repeat(8, max-content);
        justify-content: start;
        align-content: start;
        column-gap: clamp(7px, .72vw, 12px);
        row-gap: 2px;
        padding: 10px 12px;
        width: max-content;
        max-width: none;
      }

      .location-option {
        width: max-content;
        min-width: 0;
        gap: 5px;
        padding-right: 0;
        font-size: .77rem;
        letter-spacing: -.01em;
      }

      .location-option input {
        width: 12px;
        height: 12px;
      }

      .market-summary-card {
        width: 100%;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
      }

      .selected-markets {
        max-height: 206px;
      }
    }

    @media (min-width: 1181px) and (max-width: 1450px) {
      .market-row {
        grid-template-columns: minmax(0, 1.75fr) minmax(300px, .9fr);
      }

      .location-menu {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        width: 100%;
        column-gap: 6px;
      }

      .location-option {
        width: auto;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }



    /* v16 patch: select-all county tools and brokerage white-tile header color. */
    .location-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 12px 0;
      margin-bottom: 2px;
    }

    .location-action-group {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }

    .location-tool-button {
      appearance: none;
      border: 1px solid rgba(243,229,189,.20);
      border-radius: 999px;
      min-height: 30px;
      padding: 0 12px;
      background: rgba(255,255,255,.08);
      color: rgba(255,255,255,.9);
      font: inherit;
      font-size: .74rem;
      font-weight: 900;
      letter-spacing: .06em;
      text-transform: uppercase;
      cursor: pointer;
    }

    .location-tool-button.primary {
      background: var(--brand-gold-soft);
      color: #17211d;
      border-color: rgba(243,229,189,.54);
    }

    .market-tally {
      color: rgba(255,255,255,.62);
      font-size: .76rem;
      font-weight: 850;
      white-space: nowrap;
    }

    .brokerage-section .broker-card .section-kicker {
      color: var(--brand-green);
    }

    @media (max-width: 820px) {
      .location-actions {
        display: block;
      }

      .location-action-group {
        margin-bottom: 8px;
      }
    }

  

    /* v18 patch: rollback to v16 behavior, only prevent the dropdown summary itself from widening. */
    @media (min-width: 1181px) {
      .location-picker {
        min-width: 0;
      }

      .location-picker summary {
        display: block;
        position: relative;
        width: clamp(700px, 52vw, 890px);
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: clip;
        padding-right: 34px;
      }

      .location-picker summary::after {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
      }
    }

    @media (min-width: 1181px) and (max-width: 1450px) {
      .location-picker summary {
        width: 100%;
      }
    }

  
    /* v19 patch: selected counties display as chips only; no duplicate county-name text line. */
    .market-summary-card .selected-markets {
      margin-top: 0;
    }


    /* v20 patch: let selected county chips use the full market-summary card height before scrolling. */
    @media (min-width: 1181px) {
      .market-summary-card {
        height: 100%;
        max-height: none;
        overflow: hidden;
      }

      .market-summary-card .selected-markets {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        align-content: flex-start;
        padding-bottom: 2px;
      }
    }


    /* v21 patch: keep the Market Selection card at a stable height and only scroll chips after the card space is consumed. */
    @media (min-width: 1181px) {
      .market-row {
        align-items: start;
      }

      .market-summary-card {
        height: clamp(386px, 22.6vw, 426px);
        max-height: clamp(386px, 22.6vw, 426px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
      }

      .market-summary-card .selected-markets {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        align-content: flex-start;
        padding-right: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(243,229,189,.55) rgba(8,22,18,.28);
      }

      .market-summary-card .selected-markets::-webkit-scrollbar {
        width: 8px;
      }

      .market-summary-card .selected-markets::-webkit-scrollbar-track {
        background: rgba(8,22,18,.28);
        border-radius: 999px;
      }

      .market-summary-card .selected-markets::-webkit-scrollbar-thumb {
        background: rgba(243,229,189,.55);
        border-radius: 999px;
      }
    }



    /* v24 patch: compress desktop hero so the ARIEA Buy Box Filter peeks above the fold on page load. */
    @media (min-width: 1101px) {
      .hero-inner {
        padding: clamp(42px, 4.6vh, 58px) 0 clamp(34px, 4vh, 50px);
        gap: clamp(18px, 2.1vh, 26px);
      }

      .hero-stage {
        grid-template-columns: minmax(0, 1.12fr) minmax(420px, .72fr);
        gap: clamp(26px, 2.4vw, 44px);
        align-items: center;
      }

      .hero-copy-wrap {
        max-width: 1180px;
      }

      h1 {
        max-width: 1180px;
        margin: 18px 0 14px;
        font-size: clamp(3.9rem, 5.35vw, 6rem);
        line-height: .86;
      }

      .hero-copy {
        max-width: 1030px;
        font-size: clamp(1.02rem, 1.02vw, 1.16rem);
        line-height: 1.62;
      }

      .hero-actions {
        margin-top: 24px;
      }

      .hero-footnote {
        margin-top: 18px;
      }

      .daily-deal-card {
        justify-self: end;
        width: min(100%, 860px);
        grid-template-columns: minmax(190px, .92fr) minmax(245px, 1.08fr);
      }

      .daily-deal-photo {
        min-height: clamp(236px, 18vw, 318px);
        border-width: 8px;
      }

      .daily-deal-info {
        padding: clamp(18px, 1.45vw, 28px);
      }

      .daily-ribbon {
        margin-bottom: 16px;
        padding: 7px 13px;
        font-size: clamp(.78rem, .72vw, .92rem);
      }

      .daily-kicker {
        margin-bottom: 6px;
        font-size: clamp(.72rem, .68vw, .82rem);
        letter-spacing: .2em;
      }

      .daily-deal-info h2 {
        font-size: clamp(1.95rem, 2.4vw, 3.45rem);
        margin-bottom: 12px;
      }

      .daily-price {
        font-size: clamp(2.35rem, 3.18vw, 4.1rem);
        margin-bottom: 14px;
      }

      .daily-facts,
      .daily-type,
      .daily-value {
        font-size: clamp(.95rem, 1vw, 1.25rem);
        line-height: 1.26;
        margin-bottom: 6px;
      }

      .daily-address {
        font-size: clamp(.88rem, .98vw, 1.18rem);
        margin-top: 14px;
      }

      .daily-broker-strip {
        grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr);
        gap: 16px;
        padding: 11px 16px;
        border-top-width: 4px;
      }

      .daily-agent {
        gap: 12px;
      }

      .daily-agent img {
        width: 52px;
        height: 52px;
        border-width: 3px;
      }

      .daily-agent span {
        font-size: .68rem;
        margin-bottom: 3px;
      }

      .daily-agent strong {
        font-size: clamp(.98rem, 1vw, 1.16rem);
      }

      .daily-metrics {
        font-size: clamp(.76rem, .82vw, .95rem);
        gap: 1px;
      }
    }

    @media (min-width: 1101px) and (max-width: 1320px) {
      .hero-stage {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .66fr);
      }

      h1 {
        font-size: clamp(3.45rem, 5vw, 5.2rem);
      }

      .daily-deal-card {
        width: min(100%, 760px);
      }
    }



    /* v24 patch: reframe Stanley contact photo so his head stays visible in the broker handoff tile. */
    .contact-broker {
      align-items: center;
    }

    .contact-broker img {
      width: 104px;
      height: 104px;
      flex: 0 0 104px;
      object-fit: cover;
      object-position: 50% 12%;
      border-radius: 24px;
      border-width: 3px;
    }

    @media (max-width: 680px) {
      .contact-broker img {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
      }
    }



/* v0.1.5 production backbone patches */
.nav-cta, .filter-button, .btn, .mock-form button { cursor: pointer; }
button[disabled], .filter-button[aria-disabled="true"] { opacity: .62; cursor: not-allowed; }
.hero-copy a, .section-lede a, .fine-print a { text-decoration: underline; text-underline-offset: 3px; }
.system-message {
  width: var(--container);
  margin: 20px auto 0;
  border: 1px solid rgba(47,111,85,.18);
  background: rgba(255,255,255,.82);
  color: var(--ink);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(47,111,85,.08);
}
.form-note {
  margin-top: 12px;
  font-size: .84rem;
  color: rgba(255,255,255,.72);
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.deal-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.deal-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  background: var(--brand-deep);
  color: var(--white);
  font-size: .82rem;
}
.deal-card-actions a.secondary-link {
  background: var(--brand-gold-soft);
  color: var(--brand-green);
}
.daily-deal-info h2 a:hover, .deal-card-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.live-data-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  font-weight: 900;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-data-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gold);
  display: inline-block;
}
@media (max-width: 760px) {
  .daily-deal-card { display: none; }
  .console-tools { width: 100%; justify-content: stretch; }
  .console-tools .match-pill, .console-tools .filter-button { flex: 1 1 auto; }
}


    /* v0.1.7 patch: compact the ARIEA Buy Box Filter so the desktop console fits inside a single viewport. */
    @media (min-width: 1181px) {
      #buy-box-console {
        max-height: 100vh;
      }

      #buy-box-console .console-top {
        padding: 14px 20px;
      }

      #buy-box-console .console-title {
        font-size: .86rem;
      }

      #buy-box-console .live-data-pill {
        padding: 5px 10px;
        font-size: .7rem;
      }

      #buy-box-console .match-pill,
      #buy-box-console .filter-button {
        min-height: 40px;
      }

      #buy-box-console .console-body {
        padding: 16px 20px 18px;
      }

      #buy-box-console .market-row {
        grid-template-columns: minmax(0, 1.28fr) minmax(300px, .92fr);
        gap: 14px;
        align-items: start;
        margin-bottom: 10px;
      }

      /* The selected-county dropdown bar duplicated the gold chips, so hide the bar and let the checkboxes rise into its space. */
      #buy-box-console .market-row .filter-label,
      #buy-box-console .location-picker > summary {
        display: none;
      }

      #buy-box-console .location-actions {
        padding: 0 10px 5px;
        margin: 0;
      }

      #buy-box-console .location-tool-button {
        min-height: 26px;
        padding: 0 10px;
        font-size: .68rem;
      }

      #buy-box-console .market-tally {
        font-size: .7rem;
      }

      #buy-box-console .location-menu {
        margin-top: 0;
        padding: 8px 10px;
        border-radius: 15px;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        column-gap: 6px;
        row-gap: 1px;
        width: 100%;
      }

      #buy-box-console .location-option {
        width: auto;
        min-width: 0;
        gap: 4px;
        font-size: .705rem;
        line-height: 1.14;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      #buy-box-console .location-option input {
        flex: 0 0 auto;
        width: 11px;
        height: 11px;
        margin: 0;
      }

      #buy-box-console .market-summary-card {
        height: clamp(290px, 16.4vw, 324px);
        max-height: clamp(290px, 16.4vw, 324px);
        padding: 10px 12px;
        border-radius: 15px;
      }

      #buy-box-console .market-summary-card .selected-markets {
        gap: 6px;
        padding-right: 6px;
      }

      #buy-box-console .market-chip {
        min-height: 25px;
        padding: 0 8px;
        gap: 5px;
        font-size: .68rem;
      }

      #buy-box-console .market-chip button {
        width: 15px;
        height: 15px;
      }

      #buy-box-console .range-grid {
        gap: 8px;
      }

      #buy-box-console .range-card {
        min-height: 82px;
        padding: 9px 10px 7px;
        border-radius: 14px;
      }

      #buy-box-console .range-head {
        gap: 8px;
        margin-bottom: 5px;
      }

      #buy-box-console .range-name {
        font-size: .6rem;
        letter-spacing: .07em;
      }

      #buy-box-console .range-value {
        font-size: .86rem;
      }

      #buy-box-console .range-slider {
        height: 24px;
      }

      #buy-box-console .range-track,
      #buy-box-console .range-fill {
        top: 11px;
        height: 5px;
      }

      #buy-box-console .range-slider input[type="range"] {
        top: 0;
        height: 25px;
      }

      #buy-box-console .range-slider input[type="range"]::-webkit-slider-thumb {
        width: 15px;
        height: 15px;
        border-width: 2px;
      }

      #buy-box-console .range-slider input[type="range"]::-moz-range-thumb {
        width: 12px;
        height: 12px;
        border-width: 2px;
      }

      #buy-box-console .range-scale {
        margin-top: 0;
        font-size: .6rem;
      }

      #buy-box-console .filter-footer {
        margin-top: 9px;
        padding: 9px 12px;
        border-radius: 15px;
      }

      #buy-box-console .filter-summary-text {
        gap: 5px 10px;
        font-size: .76rem;
      }
    }

    @media (min-width: 1181px) and (max-height: 820px) {
      #buy-box-console .market-summary-card {
        height: 282px;
        max-height: 282px;
      }

      #buy-box-console .location-menu {
        padding-top: 7px;
        padding-bottom: 7px;
      }

      #buy-box-console .range-card {
        min-height: 78px;
      }
    }

    /* v0.1.8 patch: remove duplicate market summary bar on mobile too and shorten the mobile county menu scroll box. */
    #buy-box-console .market-row .filter-label,
    #buy-box-console .location-picker > summary {
      display: none !important;
    }

    @media (max-width: 820px) {
      #buy-box-console .console-body {
        padding-top: 16px;
      }

      #buy-box-console .location-actions {
        padding-top: 0;
        margin-top: 0;
      }

      #buy-box-console .location-menu {
        max-height: 226px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
      }
    }

/* v0.1.9 patch: transparent MRI logo everywhere and mobile slide-out menu. */
.brand img,
.mobile-menu-brand img {
  background: transparent !important;
  box-shadow: none !important;
}

.brand img {
  width: 66px;
  height: 66px;
  border-radius: 0;
  padding: 0;
}

.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(47,111,85,.28);
  border-radius: 999px;
  background: rgba(79,161,116,.14);
  color: var(--brand-deep);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(47,111,85,.13);
}

.mobile-menu-toggle span {
  display: block;
  width: 21px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-deep);
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background: rgba(79,161,116,.22);
  outline: none;
  border-color: rgba(47,111,85,.42);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8,22,18,.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  width: min(86vw, 390px);
  height: 100vh;
  min-height: 100dvh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background:
    radial-gradient(circle at 82% 8%, rgba(200,162,74,.18), transparent 18rem),
    linear-gradient(150deg, #f7f5ef 0%, #ebe7dc 100%);
  color: var(--ink);
  border-left: 1px solid rgba(47,111,85,.2);
  box-shadow: -24px 0 70px rgba(8,22,18,.32);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.22,.8,.24,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .mobile-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-menu-open .mobile-menu-panel {
  transform: translateX(0);
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(47,111,85,.18);
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--brand-deep);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.mobile-menu-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 62px;
}

.mobile-menu-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47,111,85,.22);
  border-radius: 999px;
  background: rgba(47,111,85,.1);
  color: var(--brand-deep);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(47,111,85,.12);
  color: #24362e;
  font-weight: 900;
}

.mobile-menu-links a::after {
  content: '›';
  color: var(--brand-deep);
  font-size: 1.3rem;
  line-height: 1;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible {
  outline: none;
  border-color: rgba(47,111,85,.34);
  background: rgba(255,255,255,.86);
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
}

.mobile-menu-cta {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand-green);
  color: var(--white);
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(16,37,31,.2);
}

.mobile-menu-cta.gold {
  background: var(--brand-gold);
  color: #1d2119;
}

.mobile-menu-note {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-inner {
    gap: 14px;
  }
}

@media (max-width: 820px) {
  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand-title {
    font-size: .96rem;
  }

  .mobile-menu-panel {
    width: min(88vw, 370px);
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-backdrop,
  .mobile-menu-panel,
  .mobile-menu-toggle span {
    transition: none;
  }
}


/* v0.1.10 patch: real primary navigation labels and lifted mobile CTA placement. */
.mobile-menu-actions {
  margin-top: clamp(26px, 7vh, 68px);
  margin-bottom: 12px;
}

.mobile-menu-note {
  display: none;
}

@media (max-width: 420px) {
  .mobile-menu-panel {
    gap: 18px;
  }

  .mobile-menu-links {
    gap: 9px;
  }

  .mobile-menu-links a {
    min-height: 50px;
  }

  .mobile-menu-actions {
    margin-top: clamp(22px, 6vh, 54px);
  }
}

/* v0.1.11 patch: favicon generated from white-background MRI logo; nav/mobile menu behavior unchanged. */

/* ARIEA footer contact width fix v0.1.18
   Keeps Stanley's MRI email on one line on desktop by giving the Contact column enough room. */
.footer-grid {
  grid-template-columns: minmax(260px, 1.05fr) minmax(430px, 1.24fr) minmax(170px, 0.62fr) minmax(210px, 0.74fr) !important;
  gap: clamp(24px, 3.2vw, 64px) !important;
}
.footer-grid > .footer-col:nth-child(2) {
  min-width: 420px;
}
.footer-grid > .footer-col:nth-child(2) a,
.footer-grid > .footer-col:nth-child(2) span {
  white-space: nowrap;
  overflow-wrap: normal !important;
  word-break: normal !important;
  font-size: clamp(0.88rem, 0.82vw, 0.98rem);
}
.mri-footer-grid {
  grid-template-columns: minmax(260px, 1.05fr) minmax(430px, 1.24fr) minmax(170px, 0.62fr) minmax(210px, 0.74fr) !important;
  gap: clamp(24px, 3.2vw, 64px) !important;
}
.mri-footer-grid > div:nth-child(2) {
  min-width: 420px;
}
.mri-footer-grid > div:nth-child(2) a,
.mri-footer-grid > div:nth-child(2) span {
  white-space: nowrap;
  overflow-wrap: normal !important;
  word-break: normal !important;
  font-size: clamp(0.88rem, 0.82vw, 0.98rem);
}
@media (max-width: 1240px) {
  .footer-grid,
  .mri-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.18fr) !important;
    gap: 30px !important;
  }
  .footer-grid > .footer-col:nth-child(2),
  .mri-footer-grid > div:nth-child(2) {
    min-width: 0;
  }
}
@media (max-width: 760px) {
  .footer-grid,
  .mri-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-grid > .footer-col:nth-child(2) a,
  .footer-grid > .footer-col:nth-child(2) span,
  .mri-footer-grid > div:nth-child(2) a,
  .mri-footer-grid > div:nth-child(2) span {
    white-space: normal;
    overflow-wrap: anywhere !important;
  }
}
