/* Stay-scoped hero applet — ported from west-brant 2026-07-01 */
  #tlahero{--ink:#17221d;--muted:#6f6a60;--panel:#fffdf8;--line:#e2d8c8;--forest:#245944;--forest-2:#143a2c;--clay:#cf5b34;--sun:#e9a116;--good:#2f7d57;
    --shadow:0 18px 44px rgba(36,27,17,.13);--shadow-sm:0 8px 22px rgba(36,27,17,.08);--serif:Georgia,"Times New Roman",serif;--sans:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
    max-width:1036px;margin:0 auto;padding:0;font-family:var(--sans);color:var(--ink);position:relative}
  #tlahero *{box-sizing:border-box}
  #tlahero button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
  #tlahero a{color:inherit}
  #tlahero .th-card{background:var(--panel);border:1px solid var(--line);border-radius:0;box-shadow:var(--shadow);overflow:hidden}
  #tlahero .th-bar{display:flex;align-items:center;gap:10px;padding:13px 16px 0}
  #tlahero .th-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:900;color:var(--forest);background:#eaf1ea;border-radius:999px;padding:5px 11px}
  #tlahero .th-pin{margin-left:auto;display:inline-flex;align-items:center;gap:6px;background:#eaf1ea;border:1px solid #cadbcc;color:var(--forest-2);border-radius:999px;padding:7px 12px;font-size:13px;font-weight:800}
  #tlahero .th-pin:hover{border-color:var(--clay);color:var(--clay)}
  #tlahero .th-pin .cv{opacity:.6;font-size:10px}
  #tlahero .th-head{padding:6px 16px 14px;text-align:center}
  #tlahero h1.th-h1{font-family:var(--serif);font-size:clamp(22px,3.4vw,32px);line-height:1.05;margin:6px 0 11px}
  #tlahero .th-when{display:inline-flex;background:#efe7d8;border:1px solid var(--line);border-radius:999px;padding:3px;gap:3px;margin-bottom:11px}
  #tlahero .th-when button{padding:9px 18px;border-radius:999px;font-weight:900;font-size:14px;color:var(--forest-2);white-space:nowrap}
  #tlahero .th-when button.on{background:var(--forest);color:#fff;box-shadow:0 8px 18px rgba(36,89,68,.25)}
  #tlahero .th-search{display:flex;gap:8px;background:#fff;border:2px solid rgba(207,91,52,.5);border-radius:13px;padding:6px;max-width:560px;margin:0 auto}
  #tlahero .th-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:800 16px/1.2 var(--sans);color:var(--ink);padding:10px 13px}
  #tlahero .th-search input::placeholder{color:#9b9488;font-weight:600}
  #tlahero .th-search button{background:var(--clay);color:#fff;font-weight:900;border-radius:8px;padding:0 18px}
  #tlahero .th-quick{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;max-width:680px;margin:9px auto 0}
  #tlahero .th-quick button{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.13);color:#fff;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;box-shadow:0 1px 10px rgba(0,0,0,.12)}
  #tlahero .th-quick button:hover{border-color:var(--sun);color:#ffe2a3}
  #tlahero .th-count{margin:9px 0 0;color:var(--muted);font-size:13px;font-weight:700}
  #tlahero .th-count b{color:var(--forest)}
  #tlahero .th-count button{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;font-weight:900}
  #tlahero .th-scout{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:8px auto 0;color:rgba(255,255,255,.88);font-size:12px;font-weight:800}
  #tlahero .th-scout button{background:rgba(20,58,44,.72);border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#fff;padding:6px 10px;font-size:12px;font-weight:900}
  #tlahero .th-scout button:hover{border-color:var(--sun)}
  #tlahero .th-matches{max-width:560px;margin:11px auto 0;text-align:left;display:none}
  #tlahero .th-matches.show{display:block}
  #tlahero .th-mh{display:flex;justify-content:space-between;margin:0 2px 7px;font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--clay)}
  #tlahero .th-mrow{display:flex;gap:11px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:11px;padding:9px;margin-bottom:7px}
  #tlahero .th-mrow .mi{width:46px;height:46px;border-radius:8px;background-size:cover;background-position:center;flex:none;background:#dfe7df}
  #tlahero .th-mrow h3{margin:0;font-size:14px;font-family:var(--serif)}#tlahero .th-mrow small{color:var(--muted);font-weight:700;font-size:12px}
  #tlahero .th-mrow a{margin-left:auto;background:var(--clay);color:#fff;border-radius:8px;padding:8px 11px;font-weight:900;font-size:12px;text-decoration:none;white-space:nowrap}

  /* hero-PHOTO top zone (like the old locale heroes) — photo + scrim, white text */
  #tlahero .th-top{position:relative;background:linear-gradient(180deg,#1d5a43,#143a2c);background-size:cover;background-position:center;color:#fff;padding-bottom:14px}
  #tlahero .th-top .th-chip{color:#fff;background:rgba(255,255,255,.15)}
  #tlahero .th-fox{display:inline-flex;align-items:center;margin-left:auto;filter:drop-shadow(0 1px 5px rgba(0,0,0,.55))}
  #tlahero .th-fox img{width:82px;height:30px;display:block;object-fit:contain}
  #tlahero .th-top h1.th-h1{color:#fff;text-shadow:0 2px 22px rgba(0,0,0,.45)}
  #tlahero .th-top .th-when{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.26)}
  #tlahero .th-top .th-when button{color:#fff}
  #tlahero .th-top .th-when button.on{background:var(--sun);color:#2a1c00;box-shadow:0 8px 18px rgba(0,0,0,.28)}
  #tlahero .th-top .th-count{color:rgba(255,255,255,.92)}
  #tlahero .th-top .th-count b{color:#fff}
  #tlahero .th-top .th-pin{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.3);color:#fff}
  #tlahero .th-top .th-pin:hover{border-color:var(--sun);color:var(--sun)}

  /* weather chip (Open-Meteo, no key) */
  #tlahero .th-barright{display:flex;align-items:center;gap:9px}
  #tlahero .th-barright .th-pin{margin-left:0}
  #tlahero .th-wx{display:none;align-items:center;gap:5px;font-size:14px;font-weight:900;color:#fff;white-space:nowrap;text-shadow:0 1px 9px rgba(0,0,0,.4)}
  #tlahero .th-wx.show{display:inline-flex}
  #tlahero .th-wx .t{font-size:16px;line-height:1}


  #tlahero .th-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:13px 16px 16px}
  #tlahero .th-tile{position:relative;background:#fff;border:1px solid var(--line);border-radius:0;padding:11px 12px;text-align:left;overflow:hidden;min-height:94px;display:flex;flex-direction:column;box-shadow:var(--shadow-sm);transition:transform .15s,box-shadow .15s}
  #tlahero .th-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
  #tlahero .th-tile .ic{font-size:23px}
  #tlahero .th-tile .ic svg{width:24px;height:24px;display:block;color:#c95b35;stroke-width:1.9}
  #tlahero .th-tile h3{font-family:var(--serif);font-size:17px;margin:4px 0 1px;line-height:1}
  #tlahero .th-tile .sub{color:var(--muted);font-size:11px;font-weight:700}
  #tlahero .th-tile .cnt{margin-top:auto;font-weight:900;color:var(--forest);font-size:11px}
  #tlahero .th-tile .cnt b{font-size:17px}
  #tlahero .th-tile.empty{opacity:.5}
  #tlahero .th-tile .thumb{position:absolute;right:-8px;top:-8px;width:58px;height:58px;border-radius:12px;background-size:cover;background-position:center;opacity:.15}

  /* category POPUP overlay (pops up over the page like the old dock-rolodex) */
  #tlahero .th-rolo{position:fixed;inset:0;z-index:9998;display:none}
  #tlahero .th-rolo.show{display:block}
  #tlahero .th-rolo .lb{position:absolute;inset:0;background:rgba(18,28,22,.66);backdrop-filter:blur(3px)}
  #tlahero .th-rolo-panel{position:absolute;inset:0;display:flex;flex-direction:column;padding:18px 0}
  #tlahero .th-rolo-head{display:flex;align-items:center;gap:12px;max-width:680px;width:100%;margin:0 auto;padding:0 18px}
  #tlahero .th-cattitle{font-family:var(--serif);font-size:23px;line-height:1;color:#fff}
  #tlahero .th-cattitle small{display:block;color:rgba(255,255,255,.7);font-family:var(--sans);font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;margin-top:3px}
  #tlahero .th-rolo-x{margin-left:auto;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:20px;font-weight:900;flex:none}
  #tlahero .th-cf-row{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;max-width:680px;width:100%;margin:12px auto 0;padding:0 18px}
  #tlahero .th-cf{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.1);color:#fff;border-radius:999px;padding:7px 12px;font-weight:800;font-size:12.5px}
  #tlahero .th-cf.on{background:var(--sun);border-color:var(--sun);color:#2a1c00}
  #tlahero .th-stagewrap{position:relative;flex:1;display:flex;align-items:center;min-height:0}
  #tlahero .th-scroller{display:flex;width:100%;gap:8px;align-items:center;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:18px max(16px,calc(50% - 150px));scrollbar-width:none;cursor:grab}
  #tlahero .th-scroller.grab{cursor:grabbing}
  #tlahero .th-scroller::-webkit-scrollbar{display:none}
  #tlahero .th-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:42px;height:42px;border-radius:50%;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm);color:var(--forest);font-size:21px;font-weight:900}
  #tlahero .th-arrow.l{left:6px}#tlahero .th-arrow.r{right:6px}
  #tlahero .th-arrow:hover{border-color:var(--clay);color:var(--clay)}
  #tlahero .th-ec{flex:0 0 300px;max-width:82vw;scroll-snap-align:center;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);transform:scale(.86);opacity:.55;transition:transform .25s ease,opacity .25s ease}
  #tlahero .th-ec.focus{transform:scale(1);opacity:1}
  #tlahero .th-ec .img{height:170px;background-size:cover;background-position:center;background-color:#1d5a43;position:relative;display:grid;place-items:center;font-size:48px;color:#fff;flex:none}
  #tlahero .th-ec .tags{position:absolute;left:9px;bottom:9px;display:flex;gap:5px;flex-wrap:wrap}
  #tlahero .th-tag{font-size:11px;font-weight:800;border-radius:999px;padding:4px 8px;background:rgba(0,0,0,.6);color:#fff}
  #tlahero .th-tag.free{background:rgba(47,125,87,.92)}#tlahero .th-tag.time{background:rgba(207,91,52,.92)}
  #tlahero .th-ec .b{padding:12px 14px 14px;display:flex;flex-direction:column;gap:7px;flex:1}
  #tlahero .th-ec h3{margin:0;font-family:var(--serif);font-size:20px;line-height:1.06}
  #tlahero .th-ec .ven{color:var(--muted);font-size:12px;font-weight:700;margin-top:-3px}
  #tlahero .th-hook{background:#fff6ec;border:1px solid #f3dcc4;border-radius:10px;padding:9px 11px;font-size:13px;line-height:1.4;color:#6a4a26}
  #tlahero .th-hook.deal{background:#ffeede;border-color:#f0c4a0;color:#a4521f}
  #tlahero .th-hook b{display:block;font-weight:900;margin-bottom:2px;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase}
  #tlahero .th-ec .acts{display:flex;gap:7px;margin-top:auto;padding-top:3px}
  #tlahero .th-ec .acts a{flex:1;text-align:center;background:var(--clay);color:#fff;border-radius:9px;padding:10px;font-weight:900;font-size:13px;text-decoration:none}
  #tlahero .th-ec .acts button:not(.th-save){flex:1;text-align:center;background:var(--forest);color:#fff;border-radius:9px;padding:10px;font-weight:900;font-size:13px}
  #tlahero .th-save{border:1.5px solid var(--line);border-radius:9px;padding:10px 12px;font-weight:900;color:var(--clay);font-size:15px}
  #tlahero .th-save.on{background:#ffe9e1;border-color:var(--clay)}
  #tlahero .th-empty{position:absolute;left:0;right:0;text-align:center;color:#eaf3ee;padding:34px 20px;line-height:1.6}

  #tlahero .th-locpop{position:fixed;inset:0;z-index:9999;display:none}
  #tlahero .th-locpop.show{display:block}
  #tlahero .th-locpop .lb{position:absolute;inset:0;background:rgba(20,30,24,.5)}
  #tlahero .th-lpc{position:absolute;left:50%;top:80px;transform:translateX(-50%);width:min(400px,92%);background:#f4efe6;border:1px solid var(--line);border-radius:16px;padding:17px;box-shadow:var(--shadow)}
  #tlahero .th-lpc h3{margin:0 0 11px;font-family:var(--serif);font-size:19px}
  #tlahero .th-lpc .row{display:flex;gap:8px;margin-bottom:11px}
  #tlahero .th-lpc input{flex:1;border:1.5px solid var(--line);border-radius:10px;padding:11px;font:700 15px var(--sans);outline:0}
  #tlahero .th-lpc .geo{background:var(--forest);color:#fff;border-radius:10px;padding:0 13px;font-weight:900;font-size:13px;white-space:nowrap}
  #tlahero .th-sugg{display:flex;flex-wrap:wrap;gap:7px}
  #tlahero .th-sugg button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;font-weight:800;font-size:14px;color:var(--forest-2)}
  #tlahero .th-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(12px);background:#143a2c;border:1px solid var(--sun);color:#fff;padding:10px 16px;border-radius:11px;font-weight:700;opacity:0;pointer-events:none;transition:.22s;z-index:10000}
  #tlahero .th-toast.show{opacity:1;transform:translateX(-50%)}
  @media(max-width:600px){#tlahero .th-tiles{grid-template-columns:repeat(2,1fr)}}