@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,600;1,700;1,900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #080808;
  --bg-raised: #121212;
  --bg-raised-2: #1a1a1a;
  --line-white: rgba(255, 255, 255, 0.14);
  --line-white-strong: rgba(255, 255, 255, 0.32);
  --line-red: rgba(220, 38, 38, 0.55);
  --red: #dc2626;
  --red-bright: #ef4444;
  --white: #ffffff;
  --ink: #f5f5f5;
  --dim: #a1a1a1;
  --dim-2: #6f6f6f;
  --radius: 14px;
  --shadow-red: 0 0 0 1px var(--line-red), 0 10px 30px -12px rgba(220, 38, 38, 0.35);
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ad-height: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--ad-height) + var(--safe-bottom) + 16px);
}

/* ===== RESERVED AD DOCK (CleanMedia) — pinned above the phone's safe-area / soft nav bar ===== */
.bottom-ad {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--safe-bottom);
  min-height: var(--ad-height);
  background: #000;
  border-top: 1px solid var(--line-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1000;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-white);
  flex-wrap: wrap;
  gap: 12px;
}
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.weather-chip-header {
  margin-top: 0;
  padding: 4px 12px;
  font-size: 12px;
  flex-shrink: 0;
  gap: 6px;
}
.weather-chip-header img { width: 20px; height: 20px; }
.weather-chip-header .clock-sep { opacity: 0.5; }
.weather-chip-header #weather-clock { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name span { color: var(--red-bright); }
.main-tabs { display: flex; align-items: center; gap: 4px; background: var(--bg-raised); border: 1px solid var(--line-white); border-radius: 999px; padding: 4px; margin: 0 auto; }
.tab-link {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dim);
  transition: all 0.15s;
}
.tab-link:hover { color: var(--white); }
.tab-link.active { background: var(--red); color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.scanner-header-btn { padding: 6px 12px; font-size: 12px; gap: 6px; border-color: var(--line-red); flex-shrink: 0; }
.scanner-header-btn:hover { border-color: var(--red-bright); }
#mobile-menu-btn { display: none; }
#mobile-nav-backdrop { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line-white-strong);
  background: transparent;
  color: var(--white);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }
.btn-ghost { border-color: transparent; padding: 10px 12px; }
.btn-ghost:hover { border-color: var(--line-white); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }


/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
  overflow: hidden;
  isolation: isolate;
  background: #060606;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
}
.hero-photo::after { content: none; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 75% 60% at 50% 20%, rgba(220,38,38,0.20), transparent 60%),
    linear-gradient(180deg, rgba(6,6,6,0.55) 0%, rgba(6,6,6,0.72) 45%, #060606 92%);
}
.hero-content { max-width: 780px; }
.hero-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--red-bright);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(40px, 7.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 22px;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}
.hero h1 em {
  font-style: italic;
  color: var(--red-bright);
  -webkit-text-stroke: 1px rgba(255,255,255,0.25);
}
.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--dim);
  margin: 0 auto 36px;
  max-width: 560px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 30px;
  color: var(--white);
}
.hero-stat span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim-2); }

/* ===== ABOUT COUNTY ===== */
.about-county {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line-white);
  border-radius: var(--radius);
  padding: 36px;
}
.about-text h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 12px;
}
.about-text h2 em { color: var(--red-bright); font-style: italic; }
.about-text p { color: var(--dim); font-size: 15px; line-height: 1.7; margin: 0; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  border-left: 1px solid var(--line-white);
  padding-left: 36px;
}
.about-stats .hero-stat b { font-size: 24px; }
@media (max-width: 780px) {
  .about-county { grid-template-columns: 1fr; padding: 26px; }
  .about-stats { border-left: none; border-top: 1px solid var(--line-white); padding-left: 0; padding-top: 24px; }
}

/* ===== SEARCH BAR ===== */
.search-wrap {
  max-width: 780px;
  margin: -58px auto 0;
  position: relative;
  z-index: 5;
}
.search-eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red-bright);
  margin-bottom: 10px;
}
.search-panel {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
  padding: 7px 7px 7px 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  box-shadow: 0 24px 70px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(220,38,38,0.35);
}
.search-panel::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--red) 0%, rgba(220,38,38,0.15) 35%, rgba(255,255,255,0.15) 60%, var(--red) 100%);
  z-index: -1;
  opacity: 0.8;
}
.search-icon { flex-shrink: 0; color: var(--red-bright); font-size: 17px; }
.search-panel input[type="text"] {
  flex: 2 1 240px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 10px;
  outline: none;
  min-width: 0;
}
.search-panel input[type="text"]::placeholder { color: var(--dim); opacity: 0.85; }
.search-panel select {
  flex: 1 1 130px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--line-white);
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 24px 14px 14px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a1a1a1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  min-width: 0;
}
.search-panel select:focus, .search-panel input:focus { color: var(--white); }
.search-panel button {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.search-hint {
  text-align: center;
  font-size: 12px;
  color: var(--dim-2);
  margin: 12px 0 0;
}
@media (max-width: 780px) {
  .search-panel { flex-wrap: wrap; border-radius: var(--radius); padding: 14px; }
  .search-panel input[type="text"] { flex: 1 1 100%; order: 1; }
  .search-icon { order: 0; }
  .search-panel select { flex: 1 1 45%; border-left: none; border-top: 1px solid var(--line-white); order: 2; }
  .search-panel button { flex: 1 1 100%; order: 3; justify-content: center; margin-top: 4px; }
}

/* ===== SECTION HEADINGS ===== */
.section { padding: 70px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  margin: 0;
}
.section-head h2 em { color: var(--red-bright); font-style: italic; }
.section-head p { color: var(--dim); margin: 6px 0 0; font-size: 15px; }
.result-count { color: var(--dim-2); font-size: 14px; white-space: nowrap; }

.filter-row { margin-bottom: 26px; max-width: 100%; }
.filter-row select {
  background: var(--bg-raised);
  border: 1px solid var(--line-white-strong);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 32px 11px 16px;
  border-radius: 999px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a1a1a1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  /* Native <select> auto-sizes to its longest option text (some category names are long) —
     without this, a single select can render wider than the screen even inside a wrapping flex row. */
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== CHIPS ===== */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-white);
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  background: transparent;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--line-white-strong); color: var(--white); }
.chip.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ===== BUSINESS GRID / CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.grid.sections-mode { display: block; }
.dir-cat-section { margin-bottom: 40px; }
.dir-cat-header { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; max-width: 100%; }
.dir-cat-header h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 20px; margin: 0; min-width: 0; overflow-wrap: break-word; flex: 1 1 200px; }
.dir-cat-header .dir-see-all { flex-shrink: 0; }
.card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line-white);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.featured-card.has-photo {
  min-height: 280px;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: var(--line-red);
}
.featured-card.has-photo h3,
.featured-card.has-photo .view-link { text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.card:hover {
  border-color: var(--line-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--red-bright);
  border: 1px solid var(--line-red);
  padding: 4px 10px;
  border-radius: 999px;
}
.card-town { font-size: 12px; color: var(--dim-2); font-weight: 600; }
.card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  margin: 2px 0 0;
  color: var(--white);
  text-wrap: balance;
}
.card p.desc {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-foot .view-link { font-size: 13px; font-weight: 700; color: var(--white); }
.card-foot .icon-links { display: flex; gap: 8px; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim);
  transition: all 0.15s;
}
.icon-btn:hover { border-color: var(--red); color: var(--red-bright); }

.event-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line-red);
  background: rgba(220,38,38,0.08);
  flex-shrink: 0;
  line-height: 1.1;
}
.event-date-badge b { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--white); }
.event-date-badge span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red-bright); }
.event-card-top { display: flex; gap: 14px; align-items: center; }
.event-card-top h3 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 18px; margin: 0; color: var(--white); }
.event-meta { font-size: 12px; color: var(--dim-2); margin-top: 2px; }
.event-countdown {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-bright);
  border: 1px solid var(--line-red);
  border-radius: 999px;
  padding: 4px 10px;
  margin: 2px 0 4px;
}
.event-countdown:empty { display: none; }
.event-countdown.live { color: #34d399; border-color: #34d399; }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--dim);
}
.empty-state h3 { font-family: var(--font-display); font-style: italic; color: var(--white); font-size: 24px; }

.skeleton { background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-raised-2) 50%, var(--bg-raised) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); height: 190px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== BUSINESS DETAIL ===== */
.detail-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line-white);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(220,38,38,0.12), transparent 70%);
}
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 14px; font-weight: 600; margin-bottom: 26px; }
.back-link:hover { color: var(--white); }
.detail-category { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--red-bright); }
.detail-hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(32px, 5.5vw, 56px);
  margin: 10px 0 8px;
  text-wrap: balance;
}
.detail-town { color: var(--dim); font-size: 15px; margin-bottom: 26px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.detail-body { padding: 50px 0 90px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
@media (max-width: 780px) { .detail-body { grid-template-columns: 1fr; } }
.detail-main h2 { font-family: var(--font-display); font-style: italic; font-size: 20px; margin: 0 0 12px; }
.detail-main p { color: var(--dim); line-height: 1.75; font-size: 16px; }
.info-card {
  background: var(--bg-raised);
  border: 1px solid var(--line-white);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: fit-content;
}
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row .icon-btn { flex-shrink: 0; }
.info-row .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim-2); margin-bottom: 3px; }
.info-row .value { font-size: 14px; font-weight: 600; word-break: break-word; }
.info-row .value a:hover { color: var(--red-bright); }
.report-link { font-size: 13px; color: var(--dim-2); text-align: center; margin-top: 4px; }
.report-link button { background: none; border: none; color: var(--dim-2); text-decoration: underline; font-size: 13px; padding: 0; }
.report-link button:hover { color: var(--red-bright); }

/* ===== FORMS / MODALS ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-raised);
  border: 1px solid var(--line-white-strong);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  padding: 32px;
  position: relative;
}
.modal-close { position: absolute; top: 18px; right: 18px; }
.modal h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 26px; margin: 0 0 6px; }
.modal .sub { color: var(--dim); font-size: 14px; margin: 0 0 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); margin-bottom: 7px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-white);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.form-msg { font-size: 13px; margin-top: 14px; text-align: center; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: #34d399; }
.form-msg.err { color: var(--red-bright); }

/* ===== SCANNER HOMEPAGE CTA — prominent, not buried in the mobile hamburger menu ===== */
.scanner-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-red);
  text-align: left;
}
.scanner-cta:hover { border-color: var(--red-bright); }
.scanner-cta-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red-bright); flex-shrink: 0; animation: pulse-dot 1.4s ease-in-out infinite; }
.scanner-cta-txt { flex: 1; min-width: 0; }
.scanner-cta-txt b { display: block; font-family: var(--font-display); font-style: italic; font-size: 15px; }
.scanner-cta-txt span { font-size: 12px; color: var(--dim); }
.scanner-cta-arrow { color: var(--red-bright); font-size: 16px; flex-shrink: 0; }

/* ===== INSTALL BANNER — pinned above the ad using the ad's reserved height, so it can never
   sit on top of it. Never shown at all when [hidden] (already-installed / dismissed). ===== */
.install-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--ad-height) + var(--safe-bottom) + 8px);
  z-index: 1001;
  max-width: 480px;
  margin: 0 auto;
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--line-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-red);
}
.install-banner[hidden] { display: none !important; }
.install-banner.show { display: flex; }
.install-banner img { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.install-banner .txt { flex: 1; }
.install-banner .txt b { display: block; font-size: 14px; }
.install-banner .txt span { font-size: 12px; color: var(--dim); }
.install-banner .close-x { background: none; border: none; color: var(--dim-2); font-size: 18px; padding: 4px; }

/* ===== SCANNER MINI-PLAYER — same reserved-space pattern as the install banner, stacked one level
   higher (z-index) so it never sits under it; JS bumps its `bottom` further up when the install
   banner is also visible, so the two never overlap each other or the ad dock. ===== */
.scanner-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--ad-height) + var(--safe-bottom) + 8px);
  z-index: 1002;
  max-width: 480px;
  margin: 0 auto;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-red);
}
.scanner-bar[hidden] { display: none !important; }
.scanner-bar.show { display: flex; }
.scanner-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red-bright); flex-shrink: 0; animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.scanner-bar .txt { flex: 1; min-width: 0; }
.scanner-bar .txt b { display: block; font-size: 13px; }
.scanner-bar .txt span { font-size: 11px; color: var(--dim); }
.scanner-bar .close-x { background: none; border: none; color: var(--dim-2); font-size: 18px; padding: 4px; flex-shrink: 0; }

/* ===== WEATHER CHIP ===== */
.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 14px;
  border: 1px solid var(--line-white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--dim);
}
.weather-chip[hidden] { display: none; }
.weather-chip img { width: 24px; height: 24px; display: block; }
.weather-chip b { color: var(--white); font-weight: 700; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--line-white); padding: 50px 0 34px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .brand-name { font-size: 20px; margin-bottom: 10px; }
.footer-brand p { color: var(--dim-2); font-size: 13px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim-2); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--dim); margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-white); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--dim-2); font-size: 12px; }

/* ===== LEGAL PAGES ===== */
.legal { padding: 60px 0 100px; max-width: 760px; margin: 0 auto; }
.legal h1 { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 40px; }
.legal h2 { font-family: var(--font-display); font-style: italic; font-size: 20px; margin-top: 36px; }
.legal p, .legal li { color: var(--dim); line-height: 1.7; font-size: 15px; }
.legal .updated { color: var(--dim-2); font-size: 13px; margin-bottom: 40px; }

/* ===== MOBILE HEADER: hamburger panel, every button fully labeled ===== */
@media (max-width: 900px) {
  .site-header { padding: 12px 16px; position: relative; }
  .hero { padding: 100px 16px 70px; min-height: 64vh; }
  .search-panel { margin-top: -40px; }
  .footer-grid { flex-direction: column; }

  .header-top { width: 100%; }
  #mobile-menu-btn { display: inline-flex; font-size: 14px; padding: 9px 14px; }

  /* Primary nav (Home/Directory/Events) is ALWAYS visible on mobile — only the secondary
     action buttons collapse behind the hamburger. Nothing that's a main destination should
     ever be hidden behind a tap. */
  .main-tabs {
    display: flex;
    width: 100%;
    margin: 10px 0 0;
    order: 1;
  }
  .main-tabs .tab-link { flex: 1; text-align: center; padding: 9px 6px; font-size: 13px; }

  .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    order: 2;
  }
  .site-header.nav-open .header-actions {
    display: flex;
    margin-top: 10px;
  }
  .site-header.nav-open .header-actions .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 15px;
  }
  .site-header.nav-open .header-actions .lbl { display: inline; }
  .site-header.nav-open #account-area { width: 100%; }
  .site-header.nav-open #account-menu-wrap { width: 100%; }
  .site-header.nav-open #account-menu-btn .lbl { display: inline; }
  .site-header.nav-open #account-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  #mobile-nav-backdrop { display: none; }
  .site-header.nav-open ~ #mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(0,0,0,0.6);
    z-index: 90;
  }

  /* Category chip walls don't work on narrow screens — use the select dropdown instead. */
  #category-chips { display: none; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
}
