<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Bing Webmaster verification - REPLACE WITH YOUR TOKEN -->
<!-- Get it from: https://www.bing.com/webmasters -->
<meta name="msvalidate.01" content="REPLACE_WITH_YOUR_BING_VERIFICATION_TOKEN">

<title>BuzzHired — Jobs Across Texas | Local Hiring Statewide</title>
<meta name="description" content="Find jobs across Texas — from Cedar Park to El Paso, Houston to Lubbock. BuzzHired connects Texas employers with Texas talent. Browse jobs, apply instantly, get hired.">
<meta name="robots" content="index, follow">
<meta name="author" content="BuzzHired">
<meta name="geo.region" content="US-TX">
<meta name="geo.placename" content="Cedar Park, Texas">
<link rel="canonical" href="https://buzzhired.com/">

<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:title" content="BuzzHired — Jobs Across Texas">
<meta property="og:description" content="Find jobs near you anywhere in Texas — from Cedar Park to El Paso. Real Texas employers, real opportunities.">
<meta property="og:url" content="https://buzzhired.com/">
<meta property="og:site_name" content="BuzzHired">
<meta property="og:image" content="https://buzzhired.com/og-image.png">
<meta property="og:locale" content="en_US">

<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="BuzzHired — Jobs Across Texas">
<meta name="twitter:description" content="Find jobs near you anywhere in Texas — from Cedar Park to El Paso.">

<!-- Favicons -->
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png">
<link rel="icon" type="image/png" sizes="192x192" href="/favicon-192.png">
<link rel="apple-touch-icon" sizes="180x180" href="/favicon-180.png">

<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=DM+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">

<!-- Schema.org: WebSite + LocalBusiness + Organization -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "WebSite",
      "@id": "https://buzzhired.com/#website",
      "url": "https://buzzhired.com",
      "name": "BuzzHired",
      "description": "Job marketplace for the state of Texas",
      "potentialAction": {
        "@type": "SearchAction",
        "target": {
          "@type": "EntryPoint",
          "urlTemplate": "https://buzzhired.com/jobs?q={search_term_string}"
        },
        "query-input": "required name=search_term_string"
      }
    },
    {
      "@type": "Organization",
      "@id": "https://buzzhired.com/#organization",
      "name": "BuzzHired",
      "url": "https://buzzhired.com",
      "logo": "https://buzzhired.com/buzzhired-logo-lockup-white.png",
      "description": "Job marketplace connecting Texas employers with Texas talent",
      "foundingDate": "2026",
      "areaServed": {
        "@type": "State",
        "name": "Texas",
        "containedInPlace": { "@type": "Country", "name": "United States" }
      },
      "sameAs": []
    },
    {
      "@type": "LocalBusiness",
      "@id": "https://buzzhired.com/#localbusiness",
      "name": "BuzzHired",
      "url": "https://buzzhired.com",
      "description": "Job marketplace serving the state of Texas",
      "address": {
        "@type": "PostalAddress",
        "addressLocality": "Cedar Park",
        "addressRegion": "TX",
        "addressCountry": "US"
      },
      "areaServed": {
        "@type": "State",
        "name": "Texas"
      }
    }
  ]
}
</script>

<style>
:root {
  --coral: #FF6A2A;
  --coral-light: #FFF0E8;
  --teal: #11C5D9;
  --teal-dark: #0B6E7A;
  --ink: #16343A;
  --ink-soft: #2D4E54;
  --ink-muted: #6B8B91;
  --gold: #D4AF37;
  --bg: #FAFAF8;
  --bg-warm: #F4EDE3;
  --white: #FFFFFF;
  --border: rgba(22,52,58,0.1);
  --border-strong: rgba(22,52,58,0.2);
  --shadow-sm: 0 1px 3px rgba(22,52,58,0.08);
  --shadow-md: 0 4px 16px rgba(22,52,58,0.10);
  --shadow-lg: 0 8px 32px rgba(22,52,58,0.12);
  --radius: 8px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.nav-link:hover { background: var(--bg); color: var(--ink); }

.nav-cta {
  padding: 9px 20px;
  background: var(--coral);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
  margin-left: 8px;
}

.nav-cta:hover { background: #e85a1a; }

.nav-cta-secondary {
  padding: 9px 20px;
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
}

.nav-cta-secondary:hover { border-color: var(--ink); background: var(--bg); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--teal-dark) 100%);
  padding: 48px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,0.75);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SEARCH BOX ===== */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255,255,255,0.1);
  max-width: 720px;
  margin: 0 auto;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
}

.search-field input {
  width: 100%;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}

.search-field input::placeholder { color: var(--ink-muted); }

.search-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 8px 0;
}

.search-btn {
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn:hover { background: #e85a1a; }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coral);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
}

.section-title em { font-style: italic; color: var(--teal-dark); }

.section-sub {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== QUICK FILTERS (below search) ===== */
.quick-filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-filters::-webkit-scrollbar { display: none; }

.quick-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.quick-filter-btn {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quick-filter-btn:hover, .quick-filter-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ===== MAIN CONTENT ===== */
main { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== FEATURED JOBS ===== */
.section-pad { padding: 72px 0; }

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ===== JOB CARD ===== */
.job-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.job-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: var(--bg);
  padding: 4px;
  flex-shrink: 0;
}

.job-card-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.job-card-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.job-card-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.job-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-tag {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.job-tag-type { background: var(--coral-light); color: var(--coral); border-color: transparent; }
.job-tag-remote { background: #e8f5f7; color: var(--teal-dark); border-color: transparent; }
.job-tag-featured { background: #fef9e8; color: #b8860b; border-color: transparent; }

.job-card-salary {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-dark);
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-muted);
}

.job-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-card-apply-btn {
  padding: 8px 18px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.job-card-apply-btn:hover { background: #e85a1a; }

/* ===== CATEGORIES GRID ===== */
.categories-section { background: var(--bg-warm); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.category-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 14px;
}

.category-card:hover {
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--coral);
}

.category-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.category-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ===== CITIES SECTION ===== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.city-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.city-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  opacity: 0;
  transition: opacity 0.2s;
}

.city-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.city-card:hover::before { opacity: 1; }

.city-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.city-state {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}

.city-jobs {
  font-size: 14px;
  font-weight: 700;
  color: var(--coral);
  margin-top: 4px;
}

/* ===== FOR EMPLOYERS BANNER ===== */
.employer-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin: 0 0 72px;
}

.employer-banner h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
}

.employer-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.6;
  max-width: 480px;
}

.employer-banner-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover { background: #e85a1a; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
  border: 1.5px solid rgba(255,255,255,0.25);
  white-space: nowrap;
}

.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--white);
  padding: 64px 24px 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { height: 44px; width: auto; margin-bottom: 16px; }

.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 24px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--coral);
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--white); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--coral); text-decoration: none; }

/* ===== APPLY GATE MODAL ===== */
#bh-login-modal {
  position: fixed;
  inset: 0;
  background: rgba(22,52,58,0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink-muted);
  line-height: 1;
}

.modal-bee { width: 80px; height: auto; margin: 0 auto 24px; display: block; }

.modal-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.modal-sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 32px; line-height: 1.5; }

.modal-btns { display: flex; flex-direction: column; gap: 12px; }

.modal-btn-primary {
  display: block;
  padding: 14px;
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}

.modal-btn-primary:hover { background: #e85a1a; }

.modal-btn-secondary {
  display: block;
  padding: 14px;
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s;
}

.modal-btn-secondary:hover { border-color: var(--ink); }

.modal-divider { font-size: 13px; color: var(--ink-muted); margin: 4px 0; }

/* ===== JOB DETAIL MODAL ===== */
#bh-job-modal {
  position: fixed;
  inset: 0;
  background: rgba(22,52,58,0.7);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.job-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.job-modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.job-modal-top {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.job-modal-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.job-modal-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.job-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-modal-actions {
  padding: 20px 32px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.job-modal-apply-btn {
  flex: 1;
  padding: 14px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.job-modal-apply-btn:hover { background: #e85a1a; }

.job-modal-save-btn {
  padding: 14px 20px;
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-modal-save-btn:hover { border-color: var(--ink); }

.job-modal-pref-btns {
  display: flex;
  gap: 8px;
}

.job-pref-btn {
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.15s;
}

.job-pref-btn:hover { transform: scale(1.1); }
.job-pref-btn.liked { background: #e8f8f0; border-color: #27ae60; }
.job-pref-btn.disliked { background: #feeaea; border-color: #e74c3c; }

.job-modal-body {
  padding: 32px;
}

.job-modal-section-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 16px;
  margin-top: 28px;
}

.job-modal-section-title:first-child { margin-top: 0; }

.job-modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.job-modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.job-modal-detail {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.job-modal-detail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 4px; }
.job-modal-detail-value { font-size: 15px; font-weight: 600; color: var(--ink); }

.job-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-soft);
  transition: all 0.15s;
}

.job-modal-close:hover { background: var(--border); }

/* ===== LOADING STATE ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, #ededeb 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .employer-banner {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    text-align: center;
  }
  .employer-banner-btns { align-items: stretch; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .search-box { flex-direction: column; }
  .search-divider { display: none; }
  .search-field input { padding: 14px 16px 14px 44px; }
  .job-modal-detail-grid { grid-template-columns: 1fr; }
  .job-modal-actions { flex-wrap: wrap; }
  .job-modal-pref-btns { width: 100%; }
  .job-pref-btn { flex: 1; }
}

@media (max-width: 600px) {
  .hero { padding: 36px 20px 48px; }
  .trust-bar { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
}
</style>
<script src="/js/analytics.js" defer></script>
</head>
<body>

<!-- ===== NAV ===== -->
<nav>
  <div class="nav-inner">
    <a href="/" class="nav-logo" aria-label="BuzzHired">
      <img src="/buzzhired-logo-lockup-white.png" alt="BuzzHired">
    </a>
    <div class="nav-links">
      <a href="/jobs" class="nav-link">Browse Jobs</a>
      <a href="/employers" class="nav-link">For Employers</a>
      <a href="/login" class="nav-cta-secondary">Sign In</a>
      <a href="/signup" class="nav-cta">Post a Job</a>
    </div>
    <div class="nav-hamburger" onclick="document.querySelector('.nav-links').style.display='flex'; document.querySelector('.nav-links').style.flexDirection='column'; document.querySelector('.nav-links').style.position='absolute'; document.querySelector('.nav-links').style.top='64px'; document.querySelector('.nav-links').style.left='0'; document.querySelector('.nav-links').style.right='0'; document.querySelector('.nav-links').style.background='white'; document.querySelector('.nav-links').style.padding='16px 24px'; document.querySelector('.nav-links').style.borderBottom='1px solid #eee'; document.querySelector('.nav-links').style.gap='8px';">
      <span></span><span></span><span></span>
    </div>
  </div>
</nav>

<!-- ===== HERO ===== -->
<section class="hero">
  <div class="hero-inner">
    <div class="hero-eyebrow">
      <span class="hero-eyebrow-dot"></span>
      Now Hiring Across Texas
    </div>
    <h1>Find your next job in<br><em>your hometown.</em></h1>
    <p class="hero-sub">Real Texas employers. Real opportunities. From Cedar Park to El Paso, from Houston to Lubbock — BuzzHired connects you with the businesses hiring near you.</p>

    <form class="search-box" id="search-form" onsubmit="return false;">
      <div class="search-field">
        <input type="text" id="search-q" placeholder="Job title, keyword, or company..." autocomplete="off">
      </div>
      <div class="search-divider"></div>
      <div class="search-field" style="position:relative;">
        <input type="text" id="search-city" placeholder="Any city in Texas" autocomplete="off" oninput="searchHomeCity(this.value)" onfocus="searchHomeCity(this.value)" onblur="setTimeout(hideHomeCitySuggestions, 200)">
        <div id="home-city-suggestions" style="display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border:1.5px solid rgba(22,52,58,0.18);border-top:none;border-radius:0 0 8px 8px;max-height:240px;overflow-y:auto;z-index:50;box-shadow:0 4px 20px rgba(22,52,58,0.10);"></div>
      </div>
      <button class="search-btn" onclick="doSearch()">Search Jobs</button>
    </form>

  </div><!-- end hero-inner -->
</section>

<!-- Quick filters -->
<div class="quick-filters">
  <span class="quick-filter-label">Browse by:</span>
  <a href="/jobs?type=full_time" class="quick-filter-btn">Full Time</a>
  <a href="/jobs?type=part_time" class="quick-filter-btn">Part Time</a>
  <a href="/jobs?setting=remote" class="quick-filter-btn">Remote</a>
  <a href="/jobs?setting=hybrid" class="quick-filter-btn">Hybrid</a>
  <a href="/jobs?level=entry" class="quick-filter-btn">Entry Level</a>
  <a href="/jobs?salary=high" class="quick-filter-btn">$20+/hr</a>
  <a href="/jobs?category=construction-trades" class="quick-filter-btn">Trades</a>
  <a href="/jobs?category=healthcare-medical" class="quick-filter-btn">Healthcare</a>
  <a href="/jobs?category=information-technology" class="quick-filter-btn">Tech</a>
  <a href="/jobs?category=food-service" class="quick-filter-btn">Food Service</a>
</div>

<!-- Trust bar -->
<div class="trust-bar">
  <div class="trust-item">A Design Ad Management product</div>
  <div class="trust-item">Apply in under 2 minutes</div>
  <div class="trust-item">Your data stays private</div>
  <div class="trust-item">Message employers directly</div>
</div>

<main>
  <!-- Featured Jobs -->
  <section class="section-pad">
    <div class="section-header">
      <div class="section-eyebrow">Hiring Now</div>
      <h2 class="section-title">Featured <em>Texas jobs</em></h2>
      <p class="section-sub">Hand-picked from employers actively hiring across the state.</p>
    </div>
    <div class="jobs-grid" id="featured-jobs">
      <!-- Skeleton loaders -->
      <div class="skeleton-card">
        <div class="skeleton" style="height:48px;width:48px;border-radius:10px;"></div>
        <div class="skeleton" style="height:16px;width:60%;"></div>
        <div class="skeleton" style="height:22px;width:85%;"></div>
        <div class="skeleton" style="height:14px;width:40%;"></div>
      </div>
      <div class="skeleton-card">
        <div class="skeleton" style="height:48px;width:48px;border-radius:10px;"></div>
        <div class="skeleton" style="height:16px;width:55%;"></div>
        <div class="skeleton" style="height:22px;width:90%;"></div>
        <div class="skeleton" style="height:14px;width:35%;"></div>
      </div>
      <div class="skeleton-card">
        <div class="skeleton" style="height:48px;width:48px;border-radius:10px;"></div>
        <div class="skeleton" style="height:16px;width:70%;"></div>
        <div class="skeleton" style="height:22px;width:80%;"></div>
        <div class="skeleton" style="height:14px;width:45%;"></div>
      </div>
    </div>
    <div style="text-align:center;margin-top:40px;">
      <a href="/jobs" class="btn-primary" style="display:inline-flex;">View All Jobs</a>
    </div>
  </section>

  <!-- Employer CTA Banner -->
  <div class="employer-banner">
    <div>
      <h2>Hiring in Texas?<br>BuzzHired gets you there.</h2>
      <p>Post a job in minutes. Your listing reaches candidates across Texas — from Cedar Park to El Paso. No per-click fees — flat, simple pricing.</p>
    </div>
    <div class="employer-banner-btns">
      <a href="/employers" class="btn-primary">Post a Job Free</a>
      <a href="/employers#how-it-works" class="btn-secondary">See How It Works</a>
    </div>
  </div>
</main>

<!-- ===== FOOTER ===== -->
<footer>
  <div class="footer-inner">
    <div>
      <img src="/buzzhired-logo-lockup-white.png" alt="BuzzHired" class="footer-logo">
      <p class="footer-tagline">Filling up the hive — one great hire at a time.</p>
      <p style="font-size:13px;color:rgba(255,255,255,0.4);">Serving the state of Texas</p>
    </div>
    <div>
      <div class="footer-col-title">For Job Seekers</div>
      <a href="/jobs" class="footer-link">Browse All Jobs</a>
      <a href="/signup" class="footer-link">Create Account</a>
      <a href="/login" class="footer-link">Sign In</a>
    </div>
    <div>
      <div class="footer-col-title">For Employers</div>
      <a href="/employers" class="footer-link">Post a Job</a>
      <a href="/employers#pricing" class="footer-link">Pricing</a>
      <a href="/employers/dashboard" class="footer-link">Employer Dashboard</a>
    </div>
    <div>
      <div class="footer-col-title">BuzzHired</div>
      <a href="/about" class="footer-link">About Us</a>
      <a href="https://designadmanagement.com" target="_blank" rel="noopener" class="footer-link">Design Ad Management ↗</a>
      <a href="/contact" class="footer-link">Contact</a>
      <a href="/privacy" class="footer-link">Privacy Policy</a>
      <a href="/terms" class="footer-link">Terms of Service</a>
    </div>
  </div>
  <div class="footer-bottom">
    <span>© 2026 BuzzHired. All rights reserved.</span>
    <span>Designed, built and managed by <a href="https://designadmanagement.com" target="_blank" rel="noopener">designadmanagement.com</a></span>
  </div>
</footer>

<!-- ===== APPLY GATE MODAL ===== -->
<div id="bh-login-modal" onclick="if(event.target===this)closeLoginModal()">
  <div class="modal-box">
    <button class="modal-close" onclick="closeLoginModal()">✕</button>
    <img src="/bee-handshake.png" alt="" class="modal-bee">
    <div class="modal-title">Join the hive to apply</div>
    <p class="modal-sub">Create your free BuzzHired account to apply for this job, track your applications, and message employers directly.</p>
    <div class="modal-btns">
      <a href="/signup?redirect=apply" id="modal-signup-btn" class="modal-btn-primary">Create Free Account</a>
      <div class="modal-divider">Already have an account?</div>
      <a href="/login?redirect=apply" id="modal-login-btn" class="modal-btn-secondary">Sign In</a>
    </div>
  </div>
</div>

<!-- ===== JOB DETAIL MODAL ===== -->
<div id="bh-job-modal" onclick="if(event.target===this)closeJobModal()">
  <div class="job-modal-box">
    <div class="job-modal-header">
      <button class="job-modal-close" onclick="closeJobModal()">✕</button>
      <div class="job-modal-top">
        <div id="job-modal-logo-wrap"></div>
        <div>
          <div class="job-modal-title" id="job-modal-title">Loading...</div>
          <div class="job-modal-company" id="job-modal-company"></div>
        </div>
      </div>
      <div class="job-modal-tags" id="job-modal-tags"></div>
    </div>
    <div class="job-modal-actions">
      <button class="job-modal-apply-btn" id="job-modal-apply-btn" onclick="handleApply()">Apply Now</button>
      <button class="job-modal-save-btn" onclick="handleSave()">
        <span id="save-icon">Save</span>
      </button>
      <div class="job-modal-pref-btns">
        <button class="job-pref-btn" id="btn-like" onclick="handlePref('liked')" title="Interested">Like</button>
        <button class="job-pref-btn" id="btn-dislike" onclick="handlePref('disliked')" title="Not for me">Pass</button>
      </div>
    </div>
    <div class="job-modal-body" id="job-modal-body">
      <!-- Filled by JS -->
    </div>
  </div>
</div>

<script src="/js/config.js"></script>
<script src="/js/banner.js" defer></script>
<script src="/js/cities-us.js"></script>
<script type="module">
import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2/+esm';
const sb = createClient(BH_SUPABASE_URL, BH_SUPABASE_ANON_KEY);

let activeJob = null;

// ===== LOAD FEATURED JOBS =====
async function loadFeaturedJobs() {
  const { data, error } = await sb
    .from('bh_jobs_full')
    .select('*')
    .order('featured', { ascending: false })
    .order('created_at', { ascending: false })
    .limit(6);

  const grid = document.getElementById('featured-jobs');

  if (error || !data || data.length === 0) {
    grid.innerHTML = `<div style="grid-column:1/-1;text-align:center;padding:48px;color:var(--ink-muted);">
      <div style="font-size:18px;font-weight:600;margin-bottom:8px;">Jobs are coming soon</div>
      <div style="font-size:15px;">Jobs are being posted now. Check back soon or <a href="/employers" style="color:var(--coral);">post the first one</a>.</div>
    </div>`;
    return;
  }

  grid.innerHTML = data.map(job => buildJobCard(job)).join('');
}

// ===== LOAD CATEGORIES =====
async function loadCategories() {
  const { data } = await sb
    .from('bh_categories')
    .select('*')
    .eq('active', true)
    .order('sort_order');

  if (!data) return;

  // Get job counts per category
  const { data: counts } = await sb
    .from('bh_jobs')
    .select('category_id')
    .eq('status','active')
    .eq('published',true);

  const countMap = {};
  (counts || []).forEach(r => {
    countMap[r.category_id] = (countMap[r.category_id] || 0) + 1;
  });

  document.getElementById('categories-grid').innerHTML = data.map(cat => `
    <a href="/jobs?category=${cat.slug}" class="category-card">
      <span class="category-icon">${cat.icon || ''}</span>
      <span>${cat.name}</span>
      ${countMap[cat.id] ? `<span class="category-count">${countMap[cat.id]}</span>` : ''}
    </a>
  `).join('');
}

// ===== LOAD CITIES =====
async function loadCities() {
  const { data: counts } = await sb
    .from('bh_jobs')
    .select('city_id')
    .eq('status','active')
    .eq('published',true);

  const countMap = {};
  (counts || []).forEach(r => {
    if (r.city_id) countMap[r.city_id] = (countMap[r.city_id] || 0) + 1;
  });

  const { data } = await sb
    .from('bh_cities')
    .select('*')
    .eq('active',true)
    .order('name');

  if (!data) return;

  document.getElementById('cities-grid').innerHTML = data.map(city => `
    <a href="/jobs?city=${city.slug}" class="city-card">
      <div class="city-name">${city.name}</div>
      <div class="city-state">${city.state}</div>
      <div class="city-jobs">${countMap[city.id] ? countMap[city.id] + ' jobs' : 'Jobs coming soon'}</div>
    </a>
  `).join('');
}

// ===== BUILD JOB CARD =====
window.buildJobCard = function(job) {
  const salary = bhFormatSalary(job);
  const logo = job.company_logo
    ? `<img src="${job.company_logo}" alt="${job.company_name}" class="job-card-logo">`
    : `<div class="job-card-logo-placeholder"></div>`;

  return `<div class="job-card" onclick="openJob(${JSON.stringify(job).replace(/"/g,'&quot;')})">
    <div class="job-card-header">
      ${logo}
      <div>
        <div class="job-card-company">${job.company_name || 'Local Employer'}</div>
        <div class="job-card-title">${job.title}</div>
      </div>
    </div>
    <div class="job-card-tags">
      <span class="job-tag job-tag-type">${bhEmploymentLabel(job.employment_type)}</span>
      ${job.work_setting !== 'onsite' ? `<span class="job-tag job-tag-remote">${bhWorkSettingLabel(job.work_setting)}</span>` : ''}
      ${job.featured ? '<span class="job-tag job-tag-featured">Featured</span>' : ''}
    </div>
    ${salary ? `<div class="job-card-salary">${salary}</div>` : ''}
    <div class="job-card-footer">
      <div class="job-card-location">${job.city_name || job.city || 'Cedar Park'}, TX</div>
      <span>${bhTimeAgo(job.created_at)}</span>
    </div>
  </div>`;
};

// ===== OPEN JOB MODAL =====
window.openJob = function(job) {
  activeJob = job;
  const salary = bhFormatSalary(job);

  // Header
  const logo = job.company_logo
    ? `<img src="${job.company_logo}" alt="${job.company_name}" class="job-card-logo">`
    : `<div class="job-card-logo-placeholder" style="width:56px;height:56px;"></div>`;
  document.getElementById('job-modal-logo-wrap').innerHTML = logo;
  document.getElementById('job-modal-title').textContent = job.title;
  document.getElementById('job-modal-company').textContent = job.company_name || 'Local Employer';

  // Tags
  const tags = [
    `<span class="job-tag job-tag-type">${bhEmploymentLabel(job.employment_type)}</span>`,
    `<span class="job-tag">${bhWorkSettingLabel(job.work_setting)}</span>`,
    salary ? `<span class="job-tag" style="color:var(--teal-dark);font-weight:700;">${salary}</span>` : '',
    `<span class="job-tag">${job.city_name || job.city || 'Cedar Park'}, TX</span>`,
    `<span class="job-tag">${bhTimeAgo(job.created_at)}</span>`,
  ].filter(Boolean).join('');
  document.getElementById('job-modal-tags').innerHTML = tags;

  // Body
  document.getElementById('job-modal-body').innerHTML = `
    <div class="job-modal-detail-grid">
      <div class="job-modal-detail">
        <div class="job-modal-detail-label">Job Type</div>
        <div class="job-modal-detail-value">${bhEmploymentLabel(job.employment_type)}</div>
      </div>
      <div class="job-modal-detail">
        <div class="job-modal-detail-label">Work Setting</div>
        <div class="job-modal-detail-value">${bhWorkSettingLabel(job.work_setting)}</div>
      </div>
      ${salary ? `<div class="job-modal-detail">
        <div class="job-modal-detail-label">Salary</div>
        <div class="job-modal-detail-value">${salary}</div>
      </div>` : ''}
      <div class="job-modal-detail">
        <div class="job-modal-detail-label">Location</div>
        <div class="job-modal-detail-value">${job.city_name || job.city || 'Cedar Park'}, TX</div>
      </div>
    </div>
    <div class="job-modal-section-title">About This Role</div>
    <div class="job-modal-description">${job.description || 'No description provided.'}</div>
    ${job.requirements ? `<div class="job-modal-section-title">Requirements</div><div class="job-modal-description">${job.requirements}</div>` : ''}
    ${job.benefits ? `<div class="job-modal-section-title">Benefits</div><div class="job-modal-description">${job.benefits}</div>` : ''}
  `;

  // Update apply button text for external
  const applyBtn = document.getElementById('job-modal-apply-btn');
  if (job.apply_method === 'external') {
    applyBtn.textContent = 'Apply on Company Site →';
  } else {
    applyBtn.textContent = 'Apply Now';
  }

  // Show modal
  document.getElementById('bh-job-modal').style.display = 'flex';
  document.body.style.overflow = 'hidden';

  // Increment view count
  sb.rpc('bh_increment_job_views', { job_uuid: job.id }).catch(() => {});
};

window.closeJobModal = function() {
  document.getElementById('bh-job-modal').style.display = 'none';
  document.body.style.overflow = '';
  activeJob = null;
};

// ===== APPLY GATE =====
window.handleApply = function() {
  if (!activeJob) return;
  const session = bhGetSession();
  if (session) {
    // Logged in — route to apply
    if (activeJob.apply_method === 'external' && activeJob.external_apply_url) {
      // Log the external click then redirect
      sb.from('bh_job_preferences').upsert({
        candidate_id: session.candidate_id,
        job_id: activeJob.id,
        preference: 'applied'
      }).then(() => window.open(activeJob.external_apply_url, '_blank'));
    } else {
      window.location.href = `/jobs/apply?id=${activeJob.id}`;
    }
  } else {
    // Not logged in — show gate
    const modal = document.getElementById('bh-login-modal');
    // Store the job ID so we can redirect after login
    localStorage.setItem('bh_pending_job', activeJob.id);
    document.getElementById('modal-signup-btn').href = `/signup?redirect=apply&job=${activeJob.id}`;
    document.getElementById('modal-login-btn').href = `/login?redirect=apply&job=${activeJob.id}`;
    modal.style.display = 'flex';
  }
};

window.handleSave = function() {
  const session = bhGetSession();
  if (!session) {
    document.getElementById('bh-login-modal').style.display = 'flex';
    return;
  }
  if (!activeJob) return;
  sb.from('bh_job_preferences').upsert({
    candidate_id: session.candidate_id,
    job_id: activeJob.id,
    preference: 'saved'
  }).then(() => {
    document.getElementById('save-icon').textContent = 'Saved';
  });
};

window.handlePref = function(pref) {
  const session = bhGetSession();
  if (!session) {
    document.getElementById('bh-login-modal').style.display = 'flex';
    return;
  }
  if (!activeJob) return;
  sb.from('bh_job_preferences').upsert({
    candidate_id: session.candidate_id,
    job_id: activeJob.id,
    preference: pref
  });
  document.getElementById('btn-like').classList.toggle('liked', pref === 'liked');
  document.getElementById('btn-dislike').classList.toggle('disliked', pref === 'disliked');
};

window.closeLoginModal = function() {
  document.getElementById('bh-login-modal').style.display = 'none';
};

// ===== SEARCH =====
window.doSearch = function() {
  const q = document.getElementById('search-q').value.trim();
  const city = document.getElementById('search-city').value.trim();

  // Analytics
  if (window.bhTrack && (q || city)) {
    bhTrack('search_performed', { search_term: q, city: city, source: 'homepage' });
  }

  const params = new URLSearchParams();
  if (q) params.set('q', q);
  if (city) params.set('city', city.split(',')[0].trim().toLowerCase().replace(/\s+/g, '-'));
  window.location.href = `/jobs${params.toString() ? '?' + params.toString() : ''}`;
};

// Statewide TX city autocomplete on homepage hero
window.searchHomeCity = function(query) {
  const box = document.getElementById('home-city-suggestions');
  if (!box || !window.bhSearchCities) return;
  // Filter cities-us list to TX only for the homepage (we serve all of TX)
  const allResults = window.bhSearchCities(query || '');
  const txOnly = allResults.filter(c => c.endsWith(', TX'));
  if (txOnly.length === 0) { box.style.display = 'none'; return; }
  box.innerHTML = txOnly.map(c => `
    <div onclick="selectHomeCity('${c.replace(/'/g, "\\'")}')" style="padding:10px 14px;cursor:pointer;font-size:14px;color:#16343A;border-bottom:1px solid rgba(22,52,58,0.10);" onmouseover="this.style.background='#FAFAF8'" onmouseout="this.style.background='transparent'">${c}</div>
  `).join('');
  box.style.display = 'block';
};

window.hideHomeCitySuggestions = function() {
  const b = document.getElementById('home-city-suggestions');
  if (b) b.style.display = 'none';
};

window.selectHomeCity = function(city) {
  document.getElementById('search-city').value = city;
  hideHomeCitySuggestions();
};

document.getElementById('search-q').addEventListener('keydown', e => { if (e.key === 'Enter') doSearch(); });
document.getElementById('search-city').addEventListener('keydown', e => { if (e.key === 'Enter') doSearch(); });

// ===== INIT =====
Promise.all([loadFeaturedJobs(), loadCategories()]);
</script>

































































<div style="position:fixed;bottom:8px;right:10px;font-family:monospace;font-size:10px;color:rgba(22,52,58,0.18);z-index:9999;pointer-events:none;user-select:none;">v2.5.7</div>
</body>
</html>
