/* ==========================================================================
   Cobblestone — Markets Hub
   Scoped to .mkt-hub so nothing leaks into the rest of the theme.
   ========================================================================== */

.mkt-hub{
  --ink:#3D4450;
  --navy:#081729;
  --accent:#E4002B;
  --line:#DDE3EA;
  --muted:#6b7280;
  font-family:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--ink);
}
.mkt-hub *{box-sizing:border-box}
.mkt-hub .scr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* --- Hero ---------------------------------------------------------------- */
.mkt-hub .hub-hero{background:var(--navy);color:#fff;padding:72px 24px;text-align:center}
.mkt-hub .hub-eyebrow{color:#FF3D5E;font-size:12px;letter-spacing:2.6px;text-transform:uppercase;font-weight:700;margin:0 0 14px}
.mkt-hub .hub-hero h1{font-size:clamp(32px,5vw,54px);line-height:1.1;font-weight:700;margin:0 0 16px;color:#fff}
.mkt-hub .hub-hero p{max-width:720px;margin:0 auto 26px;font-size:18px;line-height:1.6;color:rgba(255,255,255,.85)}
.mkt-hub .hub-btn{display:inline-block;border-radius:999px;padding:14px 28px;font-weight:700;font-size:17px;text-decoration:none;background:var(--accent);color:#fff;border:2px solid var(--accent);margin:6px}
.mkt-hub .hub-btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}

/* --- Layout -------------------------------------------------------------- */
.mkt-hub .hub-wrap{max-width:1140px;margin:0 auto;padding:0 24px}
.mkt-hub .hub-intro{padding:56px 0 8px}
.mkt-hub .hub-intro p{font-size:18px;line-height:1.7;max-width:820px}
.mkt-hub .hub-stats{display:flex;flex-wrap:wrap;gap:32px;margin:28px 0 8px}
.mkt-hub .hub-stat{max-width:260px}
.mkt-hub .hub-stat b{display:block;color:var(--accent);font-size:22px;font-weight:800;line-height:1.25;margin-bottom:4px}
.mkt-hub .hub-stat span{font-size:14px;color:var(--muted)}

/* --- Search + filters ---------------------------------------------------- */
.mkt-hub .hub-tools{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;padding:34px 0 6px}
.mkt-hub .hub-search{position:relative;flex:1 1 320px;max-width:420px}
.mkt-hub .hub-search input{width:100%;font:inherit;font-size:16px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:999px;padding:13px 44px 13px 20px;outline:none;transition:border-color .15s,box-shadow .15s}
.mkt-hub .hub-search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(228,0,43,.12)}
.mkt-hub .hub-search input::-webkit-search-cancel-button{display:none}
.mkt-hub .hub-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:28px;height:28px;line-height:1;font-size:20px;color:var(--muted);background:transparent;border:0;border-radius:50%;cursor:pointer}
.mkt-hub .hub-clear:hover{color:var(--accent);background:#f3f5f8}

.mkt-hub .hub-filters{display:flex;flex-wrap:wrap;gap:8px}
.mkt-hub .hub-chip{font:inherit;font-size:14px;font-weight:600;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 18px;cursor:pointer;transition:all .15s}
.mkt-hub .hub-chip:hover{border-color:var(--accent);color:var(--accent)}
.mkt-hub .hub-chip.is-on{background:var(--navy);border-color:var(--navy);color:#fff}

.mkt-hub .hub-result{flex:1 1 100%;margin:0;font-size:14px;color:var(--muted);min-height:20px}

/* --- A–Z jump nav -------------------------------------------------------- */
.mkt-hub .hub-az{display:flex;flex-wrap:wrap;gap:6px;padding:18px 0 0;border-top:1px solid var(--line);margin-top:18px}
.mkt-hub .hub-az a{font-size:13px;font-weight:700;color:var(--muted);text-decoration:none;padding:5px 10px;border-radius:6px;line-height:1}
.mkt-hub .hub-az a:hover{color:#fff;background:var(--accent)}

/* --- Grid ---------------------------------------------------------------- */
.mkt-hub .hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px;align-items:start;padding:28px 0 64px}
.mkt-hub .hub-state{background:#fff;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:12px;padding:18px 20px;scroll-margin-top:120px}
.mkt-hub .hub-state h3{margin:0 0 12px;font-size:16px;font-weight:700;color:var(--navy);display:flex;justify-content:space-between;align-items:center;gap:10px}
.mkt-hub .hub-state h3 span{font-size:11px;font-weight:700;letter-spacing:.6px;color:#9aa3af;background:#f3f5f8;border-radius:999px;padding:3px 9px}
.mkt-hub .hub-state ul{list-style:none;margin:0;padding:0}
.mkt-hub .hub-state li{margin:0 0 7px}
.mkt-hub .hub-state a{color:var(--ink);text-decoration:none;font-size:15px;border-bottom:1px solid transparent}
.mkt-hub .hub-state a:hover{color:var(--accent);border-bottom-color:var(--accent)}

/* College-town / university-city marker */
.mkt-hub .hub-uni{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent);opacity:.55;vertical-align:middle;margin-left:6px}
.mkt-hub .hub-state li[data-t="b"] .hub-uni{opacity:.3}

/* --- Filtered state ------------------------------------------------------ */
.mkt-hub .hub-state[hidden],
.mkt-hub .hub-state li[hidden]{display:none!important}
.mkt-hub .hub-empty{text-align:center;font-size:17px;color:var(--muted);padding:12px 0 64px}
.mkt-hub .hub-reset{font:inherit;color:var(--accent);background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}
.mkt-hub mark{background:rgba(228,0,43,.14);color:inherit;padding:0 1px;border-radius:2px}

/* --- Closing CTA --------------------------------------------------------- */
.mkt-hub .hub-cta{background:#f7f9fb;border-top:1px solid var(--line);padding:56px 24px;text-align:center}
.mkt-hub .hub-cta h2{font-size:clamp(26px,3.4vw,38px);color:var(--navy);margin:0 0 12px}
.mkt-hub .hub-cta p{max-width:660px;margin:0 auto 22px;font-size:17px;line-height:1.65}
.mkt-hub .hub-cta .hub-btn.ghost{color:var(--navy);border-color:var(--navy);background:transparent}

/* --- Responsive ---------------------------------------------------------- */
@media(max-width:640px){
  .mkt-hub .hub-hero{padding:52px 20px}
  .mkt-hub .hub-stats{gap:20px}
  .mkt-hub .hub-tools{padding-top:28px}
  .mkt-hub .hub-search{max-width:none}
}

/* --- Legend -------------------------------------------------------------- */
.mkt-hub .hub-legend{flex:1 1 100%;margin:0;font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}
.mkt-hub .hub-legend .hub-uni{margin-left:0;opacity:.55}