<!-- SOLID CITY · part 2809 -->
() { taroPatch(7.5, 5); });
    dressHome(mrec, { taro: null, palm: true });
    homes.slice(-count).forEach(function (r2) { if (r2 !== mrec) dressHome(r2, {}); });
    plateFor(name, cx, cz);
    return count;
  }
  function singles(cx, cz, name, n, styles, rad) {
    var count = 0;
    for (var i = 0; i < n; i++) {
      var sp = findSpot(cx, cz, rad || 95, 12);
      if (!sp) continue;
      var rp = nearestRoad(sp[0], sp[1]);
      var style = styles[i % styles.length];
      var rec = buildHome(style, sp[0], sp[1], faceAngle(sp[0], sp[1], rp.x, rp.z), 0.92 + R() * 0.3, R() < 0.5 ? 'full' : 'simple');
      placed.push([sp[0], sp[1], 16]);
      serveHome(rec, rp);
      dressHome(rec, { palm: R() < 0.4 });
      count++;
    }
    if (count) plateFor(name, cx, cz);
    return count;
  }
  function scatterTrees(n) {
    var tries = 0, done = 0;
    while (done < n && tries < n * 6) {
      tries++;
      var x = -1050 + R() * 2450, z = -2650 + R() * 1900;
      if (!clearOf(x, z, 13)) continue;
      var h = groundAt(x, z);
      if (h < 9 || h > 420) continue;
      if (slopeAt(x, z, 9) > 0.5) continue;
      var rp = nearestRoad(x, z);
      if (rp.dist < 10) continue;
      var kind = R();
      plantAt(x, z, function () {
        if (kind < 0.34) monkeypod(0.8 + R() * 0.5);
        else if (kind < 0.58) ohia(0.9 + R() * 0.5);
        else if (kind < 0.78) palm(0.85 + R() * 0.4);
        else breadfruit(0.9 + R() * 0.4);
      });
      placed.push([x, z, 7]);
      done++;
    }
    return done;
  }

  /* ================= NAME PLATES — one quiet plate per cluster ================= */
  var extras = [];
  function buildPlates() {
    plates.forEach(function (p) {
      var gy = groundAt(p.x, p.z);
      BASE = M4(p.x, gy, p.z, p.ry, 0, 0);
      box(solid, 0.22, 2.6, 0.22, -4.6, 1.3, 0, C.woodDark);
      box(solid, 0.22, 2.6, 0.22, 4.6, 1.3, 0, C.woodDark);
      BASE = new T.Matrix4();
      if (typeof document === 'undefined' || !document.createElement) return;
      try {
        var cv = document.createElement('canvas'); cv.width = 1024; cv.height = 160;
        var cx2 = cv.getContext('2d');
        cx2.fillStyle = '#23272e'; cx2.fillRect(0, 0, 1024, 160);
        cx2.strokeStyle = '#c9a44a'; cx2.lineWidth = 5; cx2.strokeRect(10, 10, 1004, 140);
        cx2.fillStyle = '#e8c86a'; cx2.textAlign = 'center'; cx2.textBaseline = 'middle';
        var fs = 64; cx2.font = 'bold ' + fs + 'px Georgia, serif';
        while (cx2.measureText(p.name).width > 940 && fs > 26) { fs -= 4; cx2.font = 'bold ' + fs + 'px Georgia, serif'; }
        cx2.fillText(p.name, 512, 84);
        var tex = new T.CanvasTexture(cv);
        var m = new T.Mesh(new T.PlaneGeometry(11, 1.72), new T.MeshBasicMaterial({ map: tex, side: T.DoubleSide }));
        m.position.set(p.x, gy + 2.45, p.z); m.rotation.y = p.ry;
        extras.push(m);
      } catch (e) {}
    });
  }

  /* ================= BUILD ================= */
  buildRoads();
  compound(700, -1290, "THE GATE ROAD 'OHANA", 'plantation', ['waa', 'noa', 'plantation']);
  compound(880, -1180, "THE EAST PLAIN 'OHANA", 'plantation', ['dickey', 'waa', 'noa']);
  compound(-480, -1150, "THE SHORE ROAD 'OHANA", 'dickey', ['noa', 'plantation', 'waa']);
  singles(560, -1330, 'THE MERIDIAN BENCHES', 6, ['plantation', 'noa', 'waa', 'dickey']);
  compound(1080, -1620, 'THE EASTERN BENCHES', 'dickey', ['plantation', 'waa', 'mission'], { ring: 33 });
  singles(1270, -1560, 'THE HIGH BENCHES', 6, ['dickey', 'plantation', 'noa']);
  singles(950, -1830, 'THE OVERLOOK BENCHES', 4, ['waa', 'dickey', 'plantation']);
  singles(790, -1900, 'THE EAST CLIMB HOMES', 4, ['plantation', 'waa', 'noa']);
  compound(660, -2080, 'THE NORTH BENCHES', 'plantation', ['waa', 'plantation', 'noa']);
  singles(430, -2330, 'THE COLOSSEUM ROAD HOMES', 7, ['plantation', 'dickey', 'noa', 'waa']);
  compound(470, -2430, "THE FAR NORTH 'OHANA", 'noa', ['waa', 'plantation', 'noa']);
  singles(-350, -1080, 'THE WESTERN BENCHES', 5, ['noa', 'plantation', 'waa'], 100);
  // the base flats — two small apartment blocks where the ground gentles
  var aptSites = [[705, -1005, -Math.PI / 2], [-625, -1155, Math.PI / 2], [820, -1120, -Math.PI / 2]];
  for (var ai = 0; ai < aptSites.length && homes.filter(function (h) { return h.style === 'apartment'; }).length < 2; ai++) {
    var as = aptSites[ai];
    if (benchAt(as[0], as[1], 16) >= 0 && clearOf(as[0], as[1], 20) && roadClear(as[0], as[1], 16)) {
      var arec = buildApartment(as[0], as[1], as[2]);
      placed.push([as[0], as[1], 26]);
      dressHome({ x: as[0], z: as[1], ry: as[2], w: 27, d: 11, lanaiDepth: 0 }, { palm: true });
    }
  }
  var treeCount = scatterTrees(130);
  buildPlates();

  /* ================= ASSEMBLY ================= */
  var group = new T.Group();
  group.add(solid.build(new T.MeshLambertMaterial({ vertexColors: true })));
  group.add(glassB.build(new T.MeshLambertMaterial({ vertexColors: true, transparent: t