:root {
  /* White/Gold/Black palette */
  --bg: #FFFFFF;
  --s: #F9F9FB;
  --s2: #F3F4F6;
  --s3: #E9EAEC;
  --gold: #B8860B;
  --gl: #9A7009;
  --gp: rgba(184,134,11,0.08);
  --gd: rgba(184,134,11,0.04);
  --w: #111827;
  --ow: #1F2937;
  --mu: #6B7280;
  --mu2: #9CA3AF;
  --rose: #DC2626;
  --grn: #16A34A;
  --blue: #2563EB;
  --bdr: #E5E7EB;
  --bdr2: #D1D5DB;
  --sh: rgba(0,0,0,0.08);
  --r: 10px;
  --r2: 7px;
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; scrollbar-gutter: stable; }
body {
  background: var(--bg);
  color: var(--w);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--s); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r2);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  white-space: nowrap;
  text-decoration: none;
}
.bg { background: var(--gold); color: #fff; }
.bg:hover { background: var(--gl); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(184,134,11,0.3); }
.bo { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.bo:hover { background: var(--gp); }
.bgh { background: var(--s2); color: var(--mu); border: 1px solid var(--bdr); }
.bgh:hover { color: var(--w); border-color: var(--bdr2); background: var(--s3); }
.bdg { background: rgba(220,38,38,0.06); color: var(--rose); border: 1px solid rgba(220,38,38,0.2); }
.bdg:hover { background: var(--rose); color: #fff; }
.bsc { background: rgba(22,163,74,0.06); color: var(--grn); border: 1px solid rgba(22,163,74,0.2); }
.bsc:hover { background: var(--grn); color: #fff; }
.bsm { padding: 0 14px; font-size: 13px; height: 34px; }
.add-biz-btn { padding-left: 12px; padding-right: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── TOPBAR ── */
#bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  height: var(--nav-h);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#bar .lw {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
#bar .lw img {
  height: 56px;
  object-fit: contain;
}
.sp { flex: 1; }

/* Desktop nav */
.tnav { display: flex; gap: 4px; }
.tnav button {
  background: none;
  border: none;
  color: var(--mu);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r2);
  cursor: pointer;
  transition: all 0.2s;
}
.tnav button:hover { color: var(--w); background: var(--s2); }
.tnav button.act { color: var(--gold); font-weight: 600; }

/* Language toggle */
#lt {
  display: flex;
  background: var(--s2);
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--bdr);
  padding: 2px;
  gap: 2px;
  height: 34px;
  box-sizing: border-box;
  align-items: stretch;
}
#lt button {
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  background: none;
  color: var(--mu);
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
  line-height: 1;
}
#lt button.act { background: var(--gold); color: #fff; }

/* Auth area */
#authArea { display: flex; align-items: center; gap: 8px; }

/* User circle */
.ucw { position: relative; }
.ucircle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(184,134,11,0.3);
  transition: all 0.2s;
  flex-shrink: 0;
}
.ucircle:hover { transform: scale(1.06); box-shadow: 0 2px 8px rgba(184,134,11,0.3); }
.ucircle img { width:100%; height:100%; object-fit:cover; display:block; }
.mob-profile-circle { cursor: default; width:42px; height:42px; }
.mob-profile-circle:hover { transform:none; box-shadow:none; }
.udrop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 300;
  overflow: hidden;
  display: none;
}
.udrop.open { display: block; }
.udrop-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bdr);
  background: var(--s);
}
.udrop-head .nm { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: var(--w); }
.udrop-head:hover { background: var(--s2); border-radius: 6px; }
.udrop-head .em { font-size: 12px; color: var(--mu); }
.udrop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  color: var(--w);
  font-family: "Inter", sans-serif;
  width: 100%;
  text-align: left;
}
.udrop-item:hover { background: var(--s); color: var(--gold); }
.udrop-item.danger { color: var(--rose); }
.udrop-item.danger:hover { background: rgba(220,38,38,0.05); }
.udrop-div { height: 1px; background: var(--bdr); margin: 4px 0; }

/* Hamburger */
.hmb {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  cursor: pointer;
  padding: 9px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.hmb:hover { border-color: var(--gold); }
.hmb span {
  display: block;
  height: 1.5px;
  background: var(--w);
  border-radius: 2px;
  transition: all 0.25s;
}
.hmb.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hmb.open span:nth-child(2) { opacity: 0; }
.hmb.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
/* MOBMENU and DRAWER styles consolidated at end of file in
   "MOBILE DRAWERS" section. */

/* ── HERO ── */
#hero {
  margin-top: var(--nav-h);
  padding: 80px 24px 70px;
  text-align: center;
  background: linear-gradient(180deg, rgba(184,134,11,0.04) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero-network-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
#hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 18px;
  letter-spacing: -2px;
  color: #111827;
  font-family: "Montserrat", "Inter", sans-serif;
}
.hero-sbn {
  display: inline;
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 900;
  letter-spacing: -2px;
  color: #1B2A4A;
}
.hero-b { color: #B8A05A; }
.hero-connect {
  color: #B8860B;
  font-size: clamp(50px, 9vw, 100px);
  display: block;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 0.95;
  margin-top: 4px;
  font-family: "Montserrat", "Inter", sans-serif;
}
#hero .tgl {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--mu);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.ha { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* ── HERO SEARCH ── */
.hero-search {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 560px;
  margin: 0 auto 28px;
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(184, 134, 11, 0.14);
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--w);
  padding: 10px 8px;
  min-width: 0;
}
.hero-search input::placeholder { color: var(--mu2); }
.hero-search > button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.hero-search > button:hover { background: #9c7209; }
.hero-search > button:active { transform: scale(0.97); }
.hero-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 8px;
  right: 8px;
  z-index: 80;
  display: none;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
  text-align: left;
}
.hero-suggest.open { display: block; }
.dir-search-wrap { position: relative; }
.dir-search-wrap input { padding-right: 44px !important; }
.dir-suggest {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-width: none;
  z-index: 650;
}
.dir-search-clear {
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  border-radius: 50%;
  background: var(--s2);
  color: var(--mu);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.dir-search-clear.show { display: inline-flex; }
.dir-search-clear:hover { color: var(--gold); background: rgba(184,134,11,0.1); }
.hero-suggest-item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--bdr);
  border-radius: 0;
  background: #fff;
  color: var(--w);
  font-family: "Inter", sans-serif;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  transform: none;
  white-space: normal;
}
.hero-suggest-item:last-child { border-bottom: 0; }
.hero-suggest-item:hover,
.hero-suggest-item.active {
  background: #FFFDF5;
}
.hero-suggest-type {
  width: 62px;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-suggest-main {
  min-width: 0;
  flex: 1;
}
.hero-suggest-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-suggest-meta {
  display: block;
  margin-top: 1px;
  color: var(--mu);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .hero-search { padding: 5px 5px 5px 16px; }
  .hero-search > button span { display: none; }
  .hero-search > button { padding: 11px 14px; }
  .hero-suggest { left: 4px; right: 4px; border-radius: 9px; }
  .hero-suggest-type { width: 58px; font-size: 8px; }
}

.hs {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 0;
}
.hs-item .n { font-size: 32px; font-weight: 800; color: var(--gold); display: block; }
.hs-item .l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mu);
  margin-top: 4px;
  display: block;
}

/* ── SPONSORS STRIP ── */
#sponsSec {
  background: #FFFDF5;
  border-bottom: 1px solid var(--bdr);
  padding: 28px 24px;
  display: none;
}
.spons-inner { max-width: 1200px; margin: 0 auto; }
.spons-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 18px;
}
.spons-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.spons-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--w);
}
.spons-chip:hover { border-color: var(--gold); box-shadow: 0 2px 8px rgba(184,134,11,0.15); }
.spons-chip .av {
  width: 28px; height: 28px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s2);
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
}
.spons-chip .av img { width: 100%; height: 100%; object-fit: cover; }

/* ── NAV TABS ── */
#navTabs {
  background: #fff;
  border-bottom: 1px solid var(--bdr);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: var(--nav-h);
  z-index: 99;
}
#navTabs::-webkit-scrollbar { display: none; }
.ntab {
  padding: 0 18px;
  height: 46px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  color: var(--mu);
  font-family: "Inter", sans-serif;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.ntab:hover { color: var(--w); }
.ntab.act { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

/* ── PAGES ── */

/* ── REGION FILTER ── */
#fb {
  background: #fff;
  border-bottom: 1px solid var(--bdr);
  padding: 0 24px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
#fb::-webkit-scrollbar { display: none; }
.rc {
  padding: 0 16px;
  height: 46px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  color: var(--mu);
  font-family: "Inter", sans-serif;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}
.rc:hover { color: var(--w); }
.rc.act { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }
.fdv { width: 1px; height: 18px; background: var(--bdr); margin: 0 4px; flex-shrink: 0; }

/* ── SEARCH ROW ── */
#sr {
  background: #fff;
  padding: 0 10px;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  border-bottom: 1px solid var(--bdr);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
}
#sr::-webkit-scrollbar { display: none; }
.sr-inner { display:flex; align-items:center; gap:6px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
.sr-inner::-webkit-scrollbar { display:none; }

.sw { flex: 1; min-width: 160px; max-width: 320px; }
#sr .sw { max-width: none; }
.fsel { flex-shrink: 0; min-width: 110px; }
.vt { flex-shrink: 0; }
.sw { flex: 2; min-width: 200px; position: relative; }
.sw input {
  width: 100%;
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  padding: 5px 10px 5px 32px;
  color: var(--w);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  transition: border-color 0.2s;
}
.sw input::placeholder { color: var(--mu2); }
.sw input:focus { outline: none; border-color: var(--gold); background: #fff; }
.sw::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.fsel {
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  padding: 5px 8px;
  color: var(--w);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.fsel:focus { outline: none; border-color: var(--gold); }
.vt {
  display: flex;
  background: var(--s);
  border-radius: var(--r2);
  overflow: hidden;
  border: 1.5px solid var(--bdr);
  padding: 2px;
  gap: 2px;
  height: 34px;
  box-sizing: border-box;
  align-items: stretch;
}
.vb {
  padding: 0 12px;
  border: none;
  background: none;
  color: var(--mu);
  cursor: pointer;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
  border-radius: 4px;
  line-height: 1;
}
.vb.act { background: var(--gold); color: #fff; }

/* ── MAIN LAYOUT ── */
#mc { max-width: 1320px; margin: 0 auto; padding: 24px; display: flex; gap: 20px; }
#lp { flex: 1; min-width: 0; }
#mp { display: none; overflow: visible; }
#mp:not(.hidden) { display: block; }
#mp.hidden { display: none !important; }
#map { width: 100%; height: 100%; min-height: 300px; }

/* ── BUSINESS GRID ── */
.bg-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}
.bg-grid .bc { width: 100%; max-width: 100%; }
/* Force cards to fill their column fully */
.bc { width: 100%; }
.bg-grid.lv { grid-template-columns: 1fr; }

/* ── BUSINESS CARD ── */
.bc {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.bc:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(184,134,11,0.12);
  transform: translateY(-2px);
}
.bc.sp {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff 0%, #FFFDF5 100%);
}
/* Cover photo area */
.bcc { display: none !important; }
.bcc-inner { display: none !important; }
.bcc-inner img { width: 100%; height: 100%; object-fit: cover; }
.bcp { display: none !important; }
/* Business logo badge - positioned relative to .bc card, not .bcc */
.blb {
  position: relative;
  top: auto;
  left: auto;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1.5px solid var(--bdr);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s);
  flex-shrink: 0;
}
.blb img { width: 100%; height: 100%; object-fit: contain; }
.logo-bg-light { background: #fff !important; }
.logo-bg-dark { background: #111827 !important; }
.logo-bg-neutral { background: #64748b !important; }
.bvc-logo.logo-bg-neutral,
.det-logo.logo-bg-neutral { background: #64748b !important; }
.bvc-logo.logo-bg-dark,
.det-logo.logo-bg-dark {
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 8px 22px rgba(15,23,42,0.24), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.logo-bg-neutral,
.logo-bg-dark {
  border-color: rgba(255,255,255,0.18) !important;
}
.logo-bg-neutral img,
.logo-bg-dark img {
  filter:
    drop-shadow(0 1px 1px rgba(0,0,0,0.34))
    drop-shadow(0 0 1px rgba(255,255,255,0.28));
}
.logo-bg-light img {
  filter:
    drop-shadow(0 1px 1px rgba(15,23,42,0.22))
    drop-shadow(0 0 1px rgba(15,23,42,0.18));
}
.bcb { padding: 14px; }
.bcb h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; line-height: 1.3; color: var(--w); }
.bor { font-size: 12px; color: var(--mu); margin-bottom: 8px; }
.btgs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tg {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.ti { background: rgba(184,134,11,0.1); color: var(--gold); }
.tr { background: var(--s2); color: var(--mu); }
.tc { background: rgba(37,99,235,0.08); color: #1D4ED8; }
.tsp { background: rgba(184,134,11,0.12); color: var(--gold); border: 1px solid rgba(184,134,11,0.3); }
.bds {
  font-size: 13px;
  color: var(--mu);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bmr {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--mu);
  padding-top: 8px;
  border-top: 1px solid var(--bdr);
}
.bca { padding: 0 14px 12px; display: flex; gap: 6px; }
.frb {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
/* List view */
.bg-grid.lv .bc { display: flex; }
.bg-grid.lv .bcc { width: 120px; height: auto; min-height: 90px; flex-shrink: 0; }
.bg-grid.lv .blb { top: 60px; left: 10px; }
.bg-grid.lv .bcb { flex: 1; padding: 12px 14px; }

/* ── MODALS ── */
.ovl {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ovl.open { display: flex; }
.modal {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  /* max-height lets short modals shrink; tall modals scroll via .mb overflow */
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mhd {
  background: var(--s);
  padding: 18px 22px;
  border-radius: 14px 14px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  z-index: 5;
  border-bottom: 1px solid var(--bdr);
}
.mhd h2 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.mhd p { font-size: 12px; color: var(--mu); }
.mc2 {
  background: none;
  border: none;
  color: var(--mu);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1;
  transition: all 0.15s;
}
.mc2:hover { background: var(--s2); color: var(--w); }
.mb {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  /* min-height: 0 is required — without it a flex child expands to fit
     its content regardless of the parent's height, so overflow never fires */
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--bdr) transparent;
  /* Reserve scrollbar gutter always so content stays centered */
  scrollbar-gutter: stable;
}
.mb::-webkit-scrollbar { width: 6px; }
.mb::-webkit-scrollbar-track { background: transparent; margin-bottom: 14px; }
.mb::-webkit-scrollbar-thumb { background: var(--bdr); border-radius: 99px; }
.mb::-webkit-scrollbar-thumb:hover { background: var(--mu2); }
.mft { padding: 0 22px 22px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; flex-shrink: 0; }

/* ── FORMS ── */
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fr.full { grid-template-columns: 1fr; }
.fr.three { grid-template-columns: 1fr 1fr 1fr; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mu);
}
.fg label .rq { color: var(--rose); }
.fg input, .fg select, .fg textarea {
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  padding: 10px 12px;
  color: var(--w);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  transition: border-color 0.2s;
  width: 100%;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--mu2); }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.fg textarea { resize: vertical; min-height: 80px; }
.shd {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin: 20px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--bdr);
}
.ib {
  padding: 11px 14px;
  border-radius: var(--r2);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.igo { background: rgba(184,134,11,0.06); border: 1px solid rgba(184,134,11,0.25); color: #92700A; }
.igr { background: rgba(22,163,74,0.06); border: 1px solid rgba(22,163,74,0.2); color: #15803D; }
.ird { background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2); color: #B91C1C; }
.ibl { background: rgba(37,99,235,0.06); border: 1px solid rgba(37,99,235,0.2); color: #1D4ED8; }

/* ── CHURCH AUTOCOMPLETE ── */
.ciw { position: relative; }
.ciw-search input { padding-right: 42px; }
.ciw-search-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--mu);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ciw-search-btn:hover { background: var(--s2); color: var(--gold); }
.ciw-search-btn:active { background: var(--gold); color: #fff; }
.cdd {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  display: none;
  box-shadow: 0 8px 24px var(--sh);
  overflow: hidden;
}
.cdd-body {
  max-height: 240px;
  overflow-y: auto;
}
.co {
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--bdr);
  transition: background 0.15s;
}
.co:hover { background: var(--gp); }
.co.an { color: var(--gold); font-weight: 600; }
.co-search { display: flex; align-items: center; gap: 8px; }
.co-result { display: flex; align-items: flex-start; gap: 8px; }
.co-notfound-pin {
  background: #FBF3E1;
  color: var(--gold);
  font-weight: 500;
  text-align: center;
  border-bottom: 1.5px solid var(--gold);
}
.co-notfound-pin:hover { background: #F6E8C9; }
.co-notfound-pin strong { font-weight: 800; }
.co-loading { display: flex; align-items: center; gap: 8px; cursor: default; }
.co-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid var(--bdr);
  border-top-color: var(--gold);
  border-radius: 50%;
  display: inline-block;
  animation: co-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes co-spin { to { transform: rotate(360deg); } }

/* ── STEP INDICATOR ── */
.stb { display: flex; align-items: center; padding: 16px 22px 0; flex-shrink: 0; }
/* Listing modal step containers — each is a flex child of .modal.
   flex: 1 + min-height: 0 lets the inner .mb scroll without the container
   growing beyond the modal's fixed height. */
#lsAuth, #lsForm, #lsRev, #lsOK {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sd { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--mu2); }
.sd.act { color: var(--w); }
.sd.dn { color: var(--grn); }
.sn {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.sd.act .sn { background: var(--gold); border-color: var(--gold); color: #fff; }
.sd.dn .sn { background: var(--grn); border-color: var(--grn); color: #fff; }
.sl { flex: 1; height: 1px; background: var(--bdr); margin: 0 6px; }
.sl.dn { background: var(--grn); }

/* ── UPLOAD ZONES ── */
.uz {
  border: 2px dashed var(--bdr);
  border-radius: var(--r2);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--s);
}
.uz:hover, .uz.drag { border-color: var(--gold); background: var(--gd); }
.uz input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.uz p { font-size: 13px; color: var(--mu); line-height: 1.6; }
.ui { font-size: 22px; margin-bottom: 4px; }
.lpr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px;
  background: var(--s);
  border-radius: var(--r2);
  border: 1px solid var(--bdr);
}
.lth {
  width: 52px; height: 52px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--s2);
  border: 1px solid var(--bdr);
}
.lth img { width: 100%; height: 100%; object-fit: contain; }
.rb2 {
  font-size: 11px;
  color: var(--rose);
  background: none;
  border: 1px solid rgba(220,38,38,0.3);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  margin-top: 4px;
  display: block;
  transition: all 0.15s;
}
.rb2:hover { background: var(--rose); color: #fff; }
.pg { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 8px; }
.ptw { position: relative; }
.ptm { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--bdr); }
.prm {
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pa {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px dashed var(--bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--mu2);
  cursor: pointer;
  position: relative;
  background: var(--s);
  transition: all 0.15s;
}
.pa:hover { border-color: var(--gold); color: var(--gold); }
.pa input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* ── SPECIALTY TAGS ── */
.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--s2);
  color: var(--mu);
  border: 1.5px solid var(--bdr);
  cursor: pointer;
  margin: 2px;
  transition: all 0.15s;
}
.spec-tag:hover { border-color: var(--gold); color: var(--gold); background: var(--gp); }
.spec-tag.sel { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ── DUPLICATE WARNING ── */
.dw {
  background: rgba(251,146,60,0.06);
  border: 1.5px solid rgba(251,146,60,0.35);
  border-radius: var(--r2);
  padding: 10px 12px;
  font-size: 13px;
  color: #92400E;
  margin: 8px 0;
  display: none;
}

/* ── AUTH TABS ── */
.atabs { display: flex; border-bottom: 1.5px solid var(--bdr); margin-bottom: 18px; }
.atat {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--mu);
  font-family: "Inter", sans-serif;
  position: relative;
  transition: color 0.2s;
}
.atat.act { color: var(--w); }
.atat.act::after {
  content: "";
  position: absolute;
  bottom: -1.5px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

/* Password toggle */
.pw-w { position: relative; }
.pw-w input { padding-right: 60px !important; }
.pwe {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--mu);
  font-family: "Inter", sans-serif;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}
.pwe:hover { color: var(--gold); background: var(--gp); }
.pws { font-size: 11px; margin-top: 3px; height: 14px; }
.pwk { color: var(--rose); }
.pwo { color: #D97706; }
.pws2 { color: var(--grn); }

/* ── INDUSTRY GRID ── */
.ig { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ii {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  font-weight: 500;
  color: var(--w);
}
.ii:hover { border-color: var(--gold); color: var(--gold); background: var(--gp); }
.ii.on { border-color: var(--gold); background: var(--gp); color: var(--gold); font-weight: 600; }

/* ── SUBMISSIONS ── */
.msc {
  padding: 12px 14px;
  background: var(--s);
  border-radius: 8px;
  border: 1px solid var(--bdr);
  margin-bottom: 8px;
}
.spp { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; text-transform: uppercase; }
.spp-p { background: rgba(217,119,6,0.1); color: #B45309; }
.spp-a { background: rgba(22,163,74,0.1); color: #15803D; }
.spp-r { background: rgba(220,38,38,0.1); color: #B91C1C; }

/* ── BUSINESS DETAIL MODAL ── */
.dc2 { height: 200px; overflow: visible; position: relative; background: var(--s2); border-radius: 14px 14px 0 0; }
.dc2-inner { height: 200px; overflow: hidden; border-radius: 14px 14px 0 0; }
.dc2-inner img { width: 100%; height: 200px; object-fit: cover; }
.dc2 img { width: 100%; height: 100%; object-fit: cover; }
.dcp {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  background: linear-gradient(135deg, #F3F4F6, #E9EAEC);
  letter-spacing: 1px;
  border-radius: 14px 14px 0 0;
}
.dlg {
  position: absolute;
  top: 168px;
  left: 18px;
  width: 56px; height: 56px;
  border-radius: 10px;
  border: 3px solid #fff;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 3;
}
.dlg img { width: 100%; height: 100%; object-fit: contain; }
.dih { padding: 32px 22px 14px; border-bottom: 1px solid var(--bdr); }
.dih h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.dbp { padding: 16px 22px; }
.dgr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.df label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--mu2); display: block; margin-bottom: 3px; }
.df p { font-size: 14px; font-weight: 500; color: var(--w); }
.gg { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; margin-top: 8px; }
.gi {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bdr);
  cursor: pointer;
  transition: transform 0.2s;
}
.gi:hover { transform: scale(1.03); }

/* ── FORUM ── */
.fp-card {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.fp-card:hover { border-color: var(--gold); box-shadow: 0 2px 12px rgba(184,134,11,0.1); }
.fp-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.fp-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--mu); margin-bottom: 8px; }
.fp-body { font-size: 14px; color: var(--mu); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-cat { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--gp); color: var(--gold); }
.fp-actions { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bdr); }

/* ── SEMINARS ── */
.sem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.sem-card {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
  transition: all 0.2s;
}
.sem-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(184,134,11,0.1); }
.sem-thumb { height: 150px; overflow: hidden; background: var(--s2); }
.sem-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sem-thumb-ph {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
  letter-spacing: 1px;
}
.sem-body { padding: 16px; }
.sem-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sem-meta { font-size: 13px; color: var(--mu); line-height: 1.8; }
.sem-type {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--gp);
  color: var(--gold);
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── RESOURCES ── */
.res-card {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 10px;
}
.res-card:hover { border-color: var(--gold); box-shadow: 0 2px 10px rgba(184,134,11,0.08); }
.res-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--gp);
  border: 1px solid rgba(184,134,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--gold);
}
.res-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.res-body p { font-size: 13px; color: var(--mu); line-height: 1.5; }
.res-meta { display: flex; gap: 10px; font-size: 11px; color: var(--mu2); margin-top: 6px; }

/* ── LIGHTBOX ── */
.lbx { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.93); z-index: 500; align-items: center; justify-content: center; }
.lbx.open { display: flex; }
.lbi { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 5px; }
.lbc { position: fixed; top: 14px; right: 18px; color: #fff; font-size: 22px; cursor: pointer; background: rgba(255,255,255,0.1); border: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lbn { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 24px; padding: 10px 14px; cursor: pointer; border-radius: 8px; }
.lbpv { left: 10px; } .lbnx { right: 10px; }
.lbct { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 12px; }

/* ── ADMIN ── */
.ap {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 14px;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
#adminShell {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #0F1117;
  overflow-y: auto;
  /* Admin shell has its own dark theme */
  --bg: #0F1117;
  --s: #11141C;
  --s2: #1A1E29;
  --s3: #22283A;
  --bdr: #2A2F3D;
  --w: #F0F2F8;
  --mu: #8B92A8;
  --mu2: #6B7285;
  --gold: #B8A05A;
  --rose: #E11D48;
  --green: #22C55E;
  color: #F0F2F8;
}
/* ── ADMIN SHELL HEADER (responsive) ── */
.adm-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--bdr);
  gap: 12px;
  flex-wrap: nowrap;
}
.adm-hd-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.adm-hd-title {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.adm-hd-who {
  font-size: 12px;
  color: var(--mu);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-hd-who-circle { width: 30px; height: 30px; font-size: 11px; flex-shrink: 0; cursor: default; }
.adm-hd-who-circle:hover { transform: none; box-shadow: none; }
.adm-hd-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  .adm-hd { padding: 12px 16px; }
  .adm-hd-title { font-size: 11px; letter-spacing: 1px; }
  .adm-hd-who { display: none; }
  .adm-hd-who-circle { display: flex !important; }
  .adm-hd-exit-label { display: none; }
  .adm-hd-exit { padding: 9px 11px !important; }
}
.ahd {
  background: var(--s);
  padding: 16px 22px;
  border-radius: 14px 14px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--bdr);
}
.ahd h2 { font-size: 16px; font-weight: 700; }
.atb {
  display: flex;
  flex-wrap: nowrap;
  border-bottom: 1px solid var(--bdr);
  padding: 0 22px;
  background: #fff;
  position: sticky;
  top: 61px;
  z-index: 4;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .atb { padding: 0 10px; top: 49px; }
  .atbt { padding: 9px 10px; font-size: 12px; }
}
.atbt {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--mu);
  font-family: "Inter", sans-serif;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.atbt:hover { color: var(--w); }
.atbt.act { color: var(--gold); font-weight: 600; }
.atbt.act::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--gold); }
.abd { display: inline-block; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 10px; margin-left: 4px; vertical-align: middle; }
.abw { background: var(--rose); color: #fff; }
.abo { background: var(--grn); color: #fff; }
.abg { background: var(--mu2); color: #fff; }
.adb { padding: 18px 22px; }
@media (max-width: 640px) {
  .adb { padding: 14px 14px; }
  .ast { gap: 6px; }
  .asc { min-width: 64px; padding: 8px; }
  .asc .n { font-size: 17px; }
}
.ast { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.asc {
  flex: 1;
  min-width: 80px;
  background: var(--s);
  border: 1px solid var(--bdr);
  border-radius: var(--r2);
  padding: 12px;
  text-align: center;
}
.asc .n { font-size: 22px; font-weight: 800; color: var(--gold); }
.asc .l { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--mu); display: block; margin-top: 3px; }
.ssc {
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.ssc.dim { opacity: 0.5; }
.sch2 { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.slsm {
  width: 38px; height: 38px;
  border-radius: 7px;
  border: 1px solid var(--bdr);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.slsm img { width: 100%; height: 100%; object-fit: cover; }
.si3 { flex: 1; }
.si3 h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.sm2 { display: flex; flex-wrap: wrap; gap: 5px; font-size: 11px; color: var(--mu); }
.sdt { font-size: 11px; color: var(--mu2); margin-left: auto; white-space: nowrap; }
.sds { font-size: 13px; color: var(--mu); line-height: 1.5; margin-bottom: 8px; }
.sct { font-size: 12px; color: var(--mu); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sas { display: flex; gap: 6px; flex-wrap: wrap; }
.rjb {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: rgba(220,38,38,0.03);
  border-radius: 7px;
  border: 1px solid rgba(220,38,38,0.15);
}
.rjb textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 5px;
  padding: 8px;
  color: var(--w);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  resize: none;
  height: 70px;
}
.rjn {
  background: rgba(220,38,38,0.04);
  border: 1px solid rgba(220,38,38,0.15);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #B91C1C;
  margin-top: 8px;
}


/* Admin contrast cleanup: keep the admin shell consistently dark and readable. */
#adminShell .atb { background: var(--s); }
#adminShell .adm-hd,
#adminShell .ahd,
#adminShell .adb,
#adminShell #admCnt { color: var(--w); }
#adminShell .asc,
#adminShell .ssc,
#adminShell .nsl,
#adminShell .rjb,
#adminShell .dtt,
#adminShell .sp-banner,
#adminShell .adm-fields,
#adminShell .adm-field-grid,
#adminShell .uz,
#adminShell .msc {
  background: var(--s2);
  color: var(--w);
  border-color: var(--bdr);
}
#adminShell .slsm,
#adminShell .adm-field-k,
#adminShell .adm-field-v { background: var(--s3) !important; color: var(--w) !important; }
#adminShell input,
#adminShell select,
#adminShell textarea,
#adminShell .pd,
#adminShell .fi {
  background: var(--s2);
  color: var(--w);
  border-color: var(--bdr);
}
#adminShell input:focus,
#adminShell select:focus,
#adminShell textarea:focus,
#adminShell .pd:focus,
#adminShell .fi:focus {
  background: var(--s3);
  color: var(--w);
  border-color: var(--gold);
}
#adminShell input::placeholder,
#adminShell textarea::placeholder { color: var(--mu2); }
#adminShell .rjn { color: #FCA5A5; background: rgba(225,29,72,0.10); border-color: rgba(225,29,72,0.28); }
#adminShell .ti,
#adminShell .tr,
#adminShell .tc,
#adminShell .tsp { border-color: rgba(184,160,90,0.28); }

/* ── PIN ── */
.pnb { padding: 30px 22px; text-align: center; }
.pr2 { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.pd {
  width: 46px; height: 54px;
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--w);
  transition: border-color 0.2s;
}
.pd:focus { outline: none; border-color: var(--gold); background: #fff; }
.pe { color: var(--rose); font-size: 12px; min-height: 16px; margin-bottom: 8px; }

/* ── CHURCH LIST ── */
.chl { max-height: 240px; overflow-y: auto; border: 1px solid var(--bdr); border-radius: var(--r2); }
.chr { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--bdr); font-size: 13px; }
.chr:last-child { border-bottom: none; }
.chr .cn { flex: 1; font-weight: 500; }
.chr .loc { color: var(--mu); font-size: 12px; }

/* ── DONATE / SPONSOR ── */
.dts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dtt {
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.dtt:hover, .dtt.sel { border-color: var(--gold); background: var(--gp); }
.dtt .am { font-size: 20px; font-weight: 800; color: var(--gold); display: block; margin-bottom: 2px; }
.dtt .tl { font-size: 11px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: 0.5px; }
.dtt .td { font-size: 12px; color: var(--mu2); margin-top: 3px; }
.dcs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dc {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--bdr);
  background: var(--s);
  color: var(--mu);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.2s;
}
.dc:hover, .dc.sel { background: var(--gold); color: #fff; border-color: var(--gold); }
.dc.sk { border-color: var(--bdr2); color: var(--mu2); }
.sp-banner {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E7 100%);
  border: 1.5px solid rgba(184,134,11,0.25);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 18px;
}
.sp-banner h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--gold); }
.sp-banner p { font-size: 14px; color: var(--mu); line-height: 1.65; margin-bottom: 16px; }
.sp-bens { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.sb-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--w); }
.camt { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.camt input {
  flex: 1;
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  padding: 10px 14px;
  color: var(--w);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.camt input:focus { outline: none; border-color: var(--gold); background: #fff; }
.camt .sym { font-size: 20px; color: var(--gold); font-weight: 700; }

/* ── SUCCESS ── */
.scs { text-align: center; padding: 32px 22px; }
.sci { font-size: 48px; margin-bottom: 12px; }
.scs h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.scs p { font-size: 14px; color: var(--mu); line-height: 1.7; max-width: 400px; margin: 0 auto 10px; }
.nsl { background: var(--s); border-radius: 8px; padding: 14px 16px; margin: 14px 0; text-align: left; }
.nsl li { font-size: 13px; color: var(--mu); padding: 5px 0; display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }

/* ── MAP POPUP ── */
.leaflet-popup-content-wrapper {
  background: #fff !important;
  border: 1px solid var(--bdr) !important;
  border-radius: 10px !important;
  color: var(--w) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.leaflet-popup-tip { background: #fff !important; }
.mpp h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.mpp p { font-size: 12px; color: var(--mu); margin-bottom: 3px; }
.mpp a { font-size: 12px; color: var(--gold); font-weight: 600; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  background: rgba(255,255,255,0.96);
  color: #1F2937;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  z-index: 600;
  transition: transform 0.3s, opacity 0.3s;
  border: 1px solid rgba(184,134,11,0.22);
  box-shadow: 0 10px 30px rgba(15,23,42,0.14);
  max-width: min(520px, calc(100vw - 32px));
  width: fit-content;
  text-align: center;
  line-height: 1.35;
  white-space: pre-wrap;
  opacity: 0;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── EMPTY STATE ── */
.empty { text-align: center; padding: 56px 20px; color: var(--mu); }
.empty .ico { font-size: 36px; margin-bottom: 10px; }
.empty p { font-size: 15px; }

/* ── FOOTER ── */
footer {
  background: #111827;
  color: #9CA3AF;
  padding: 40px 24px;
  text-align: center;
  margin-top: 60px;
}
footer .fl {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
}
footer .fl a { color: #9CA3AF; transition: color 0.2s; }
footer .fl a:hover { color: var(--gold); text-decoration: none; }
footer p { font-size: 12px; color: #6B7280; }
footer .fl a:hover { text-decoration: none; }

/* ── RESPONSIVE ── */
@media(max-width: 1000px) {
  #mc { padding: 14px; }
}
@media(max-width: 1100px) {
  .tnav { display: none; }
  .hmb { display: flex; }
  #authArea { display: flex; align-items: center; justify-content: center; }
  #authArea .btn { display: none; }
  #authArea .ucw { display: block; }
  #authArea .udrop { right: 0; left: auto; }
  .fr.three { grid-template-columns: 1fr 1fr; }
  .dgr { grid-template-columns: 1fr; }
  .dts { grid-template-columns: 1fr; }
  .hs { gap: 20px; }
  .ig { grid-template-columns: 1fr; }
  #bar { padding: 0 12px; gap: 8px; justify-content: space-between; }
  #bar .sp { display: none; }
  #bar .lw img { height: 32px !important; }
  .add-biz-btn { height: 34px; padding: 0 10px; font-size: 12px; flex: 0 0 auto; }
  .sp-bens { grid-template-columns: 1fr; }
  .sem-grid { grid-template-columns: 1fr; }
  #sr { padding: 0 10px; }
  #mc { padding: 0; }
  .bg-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media(max-width: 480px) {
  .fr { grid-template-columns: 1fr; }
  #bar { gap: 6px; padding: 0 8px; }
  .btn { font-size: 13px; padding: 9px 16px; }
  .bsm { padding: 0 12px; font-size: 12px; height: 34px; }
  .hs { gap: 14px; }
  .bg-grid { grid-template-columns: 1fr; }
  /* Keep EN/RU/UK readable but fit on iPhone */
  #lt { gap: 1px; padding: 1px; height: 32px; }
  #lt button { padding: 0 6px; font-size: 10px; letter-spacing: 0; }
  .add-biz-btn { padding: 0 8px; font-size: 11px; }
}
@media(max-width: 390px) {
  #bar { padding: 0 6px; gap: 5px; }
  #bar .lw img { height: 30px !important; }
  .add-biz-btn { padding: 0 6px; font-size: 10.5px; }
  #lt button { padding: 0 5px; font-size: 9px; }
  .hmb { width: 38px; height: 38px; }
}


/* When hero is hidden, other pages also need margin-top */

/* Detail modal container needs position:relative for logo badge */
#detCnt { position: relative; }


/* ── LIST VIEW ── */
.biz-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
}
.bl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bdr);
  cursor: pointer;
  transition: background 0.15s;
  background: #fff;
}
.bl-row:last-child { border-bottom: none; }
.bl-row:hover { background: #FFFDF5; }
.bl-sp { border-left: 3px solid var(--gold); }
.bl-logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--bdr);
  background: var(--s);
}
.bl-logo img { width: 100%; height: 100%; object-fit: contain; }
.bl-init {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  background: var(--s2);
}
.bl-info { flex: 1; min-width: 0; }
.bl-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bl-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.bl-contact {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   PAGE LAYOUT SYSTEM — clean version
   ═══════════════════════════════════ */

/* All pages hidden by default */
.page {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  background: var(--bg);
  z-index: 10;
}

/* Active page fills below navbar */
.page.active {
  display: block;
}

/* Inner content wrapper — provides padding and max-width */
.page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* ── ABOUT PAGE — editorial long-form layout ── */
.about-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.about-section {
  padding: 36px 0;
}
.about-section + .about-section {
  border-top: 1px solid var(--bdr);
}
.about-section:first-child {
  padding-top: 0;
}
.about-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.about-section h2 {
  font-family: "Lora", serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--w);
  margin-bottom: 6px;
  line-height: 1.25;
}
.about-rule {
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px 0 20px;
}
.about-body {
  font-size: 16px;
  color: var(--mu);
  line-height: 1.8;
}
.about-body p {
  margin-bottom: 16px;
}
.about-body p:last-child {
  margin-bottom: 0;
}
.about-body strong {
  color: var(--w);
  font-weight: 700;
}
.about-body ul {
  margin: 4px 0 16px;
  padding-left: 22px;
}
.about-body li {
  margin-bottom: 8px;
}
.about-body li::marker {
  color: var(--gold);
}
.about-intro-section h2 {
  font-size: 34px;
}
.about-intro-section .about-body {
  font-size: 18px;
  color: var(--w);
}
@media (max-width: 600px) {
  .about-wrap { padding: 36px 18px 60px; }
  .about-section h2 { font-size: 23px; }
  .about-intro-section h2 { font-size: 27px; }
}

/* Directory page — also fills below navbar */
#dirPage {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
  background: var(--bg);
  z-index: 10;
  flex-direction: column;
}
#dirPage.active {
  display: flex;
}
/* When directory page (fixed overlay) is active, lock body so we don't get
   a second outer scrollbar competing with the content column. */
body.dir-active { overflow: hidden; }
#dirPage #sr { flex-shrink: 0; position: relative; z-index: 200; }
#dirPage #fb { flex-shrink: 0; position: relative; z-index: 200; }
#dirPage #mc {
  flex: 1;
  overflow: hidden;
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 0;
}
#dirPage.map-mode {
  overflow: hidden;
}
#dirPage.map-mode #mc {
  overflow: visible;
  padding: 0;
}

/* Hero stays below navbar on homepage */
#hero { margin-top: var(--nav-h); }

/* ── MAP PANEL ── */
.map-panel {
  position: fixed;
  bottom: 24px;
  left: 16px;
  z-index: 400;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.mp-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mu);
  margin-bottom: 8px;
}
.mp-radius-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1;
}
.mp-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold) 30%, #E5E7EB 30%, #E5E7EB 100%);
  outline: none;
  cursor: pointer;
  margin-bottom: 4px;
}
.mp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}
.mp-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}
.mp-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--mu2);
  margin-bottom: 10px;
}
.mp-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--w);
  padding-top: 10px;
  border-top: 1px solid var(--bdr);
}



/* ── MAP CONTAINER ── */
/* Default: sidebar map next to grid */
#mp {
  display: none;
  position: relative;
}
#mp:not(.hidden) {
  display: block;
}
#map {
  width: 100%;
  height: 100%;
}

/* Map renders inside the content column, beside the filters sidebar */
#mp.map-inline {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h) - 50px);
  min-height: 420px;
  border: none;
  border-radius: 0;
  overflow: hidden;
  display: block;
  margin-top: 0;
}
/* When map view is active, remove the surrounding column padding so the map
   reaches the edges of the available area. */
#dirPage:has(#mp.map-inline) #lp { padding: 0 !important; }
/* Push the map's own controls (zoom +/-, GPS) down so they clear the search bar above. */
#mp.map-inline .mapboxgl-ctrl-top-left,
#mp.map-inline .mapboxgl-ctrl-top-right,
#mp.map-inline .leaflet-top.leaflet-left,
#mp.map-inline .leaflet-top.leaflet-right,
#mp.map-inline .gm-style .gm-svpc,
#mp.map-inline .gmnoprint {
  margin-top: 10px !important;
}
#mp.map-inline #map {
  width: 100% !important; height: 100% !important;
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
}
.mapboxgl-map,
.mapboxgl-canvas-container,
.mapboxgl-canvas {
  width: 100% !important;
  height: 100% !important;
}


/* ════════════════════════════════
   PILL AUTH BUTTONS
════════════════════════════════ */
.pill-out {
  padding: 7px 18px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill-out:hover { background: var(--gold); color: #fff; }
.pill-in {
  padding: 7px 18px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill-in:hover { opacity: 0.85; }
.mob-pill { width: 100%; text-align: center; padding: 12px 20px; font-size: 15px; }

/* ════════════════════════════════
   MOBILE MENU - FULL OVERLAY
════════════════════════════════ */
/* mobmenu styles live in "MOBILE DRAWERS" section at end. */

/* ════════════════════════════════
   SEARCH ROW
════════════════════════════════ */
#sr {
  background: #fff;
  border-bottom: 1px solid var(--bdr);
  flex-shrink: 0 !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  box-sizing: border-box;
  padding: 0 !important;
}
.sr-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px; /* mirrors #bar default padding so logo/controls edges align */
  height: 50px;
  box-sizing: border-box;
}
/* Match #bar breakpoint paddings so search left/right edges track with logo & hamburger */
@media(max-width: 1100px) { .sr-inner { padding: 0 12px; } }
@media(max-width: 480px)  { .sr-inner { padding: 0 8px; } }
@media(max-width: 390px)  { .sr-inner { padding: 0 6px; } }
.sw { flex: 1; min-width: 0; position: relative; }
.sw input {
  width: 100% !important;
  box-sizing: border-box;
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  padding: 7px 12px 7px 32px;
  font-size: 13px;
  color: var(--w);
  font-family: "Inter", sans-serif;
}
/* Filter button - mobile only */
.flt-btn {
  display: none;
  padding: 6px 14px;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  background: var(--s);
  color: var(--w);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
  transition: all 0.2s;
}
.flt-btn.on { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ════════════════════════════════
   DIRECTORY SIDEBAR (filters)
════════════════════════════════ */
.dir-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--bdr);
  overflow-y: auto;
  padding: 16px 14px;
  box-sizing: border-box;
}
.sidebar-flt { display: flex; flex-direction: column; gap: 18px; }
.flt-section { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.flt-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--mu);
  margin-bottom: 2px;
}
.fsel-side {
  width: 100%;
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  padding: 7px 10px;
  color: var(--w);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  cursor: pointer;
  box-sizing: border-box;
}
.fsel-side:focus { outline: none; border-color: var(--gold); }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  padding: 10px 11px;
  color: var(--w);
  cursor: pointer;
  box-sizing: border-box;
}
.toggle-row span { min-width: 0; }
.toggle-row strong { display: block; font-size: 13px; line-height: 1.2; }
.toggle-row small { display: block; margin-top: 2px; color: var(--mu); font-size: 11px; line-height: 1.25; }
.toggle-row input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--gold); }
.toggle-row:hover { border-color: rgba(184,134,11,0.5); }
/* Checkbox list (regions) */
.chk-list { display: flex; flex-direction: column; gap: 4px; }
.chk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--w);
  cursor: pointer;
  padding: 2px 0;
  font-family: "Inter", sans-serif;
}
.chk-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  margin: 0;
}
.chk-item:hover { color: var(--gold); }
/* Range slider */
input[type="range"] { accent-color: var(--gold); }
input[type="range"]:disabled { opacity: 0.5; }

/* Right content area */
#lp { flex: 1; min-width: 0; padding: 16px 20px; overflow-y: auto; }

/* Mobile sidebar drawer styles live in "MOBILE DRAWERS" section at end. */
@media(max-width: 900px) {
  .flt-btn { display: block; }
  #lp { padding: 12px; }
}

/* ════════════════════════════════
   BUSINESS CARD - WIDE ALIGNABLE STYLE
════════════════════════════════ */
.bc {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.bc:hover { border-color: var(--gold); box-shadow: 0 4px 12px rgba(184,134,11,0.1); }
.bc.sp { border-color: var(--gold); }
.blb {
  position: relative; top: auto; left: auto;
  width: 60px; height: 60px;
  border-radius: 8px;
  border: 1.5px solid var(--bdr);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--s);
  flex-shrink: 0;
}
.blb img { width: 100%; height: 100%; object-fit: contain; }

/* ════════════════════════════════
   LIST VIEW
════════════════════════════════ */
.biz-list { display:flex; flex-direction:column; border:1.5px solid var(--bdr); border-radius:var(--r); overflow:hidden; }
.bl-row { display:flex; align-items:center; gap:12px; padding:10px 16px; border-bottom:1px solid var(--bdr); cursor:pointer; transition:background 0.15s; background:#fff; min-height:54px; }
.bl-row:last-child { border-bottom:none; }
.bl-row:hover { background:#FFFDF5; }
.bl-sp { border-left:3px solid var(--gold); }
.bl-logo { width:38px; height:38px; border-radius:6px; overflow:hidden; flex-shrink:0; border:1px solid var(--bdr); background:var(--s); display:flex; align-items:center; justify-content:center; }
.bl-logo img { width:100%; height:100%; object-fit:contain; }
.bl-cn { flex:2; min-width:0; padding-right:8px; }
.bl-ci { flex:1.5; min-width:0; padding-right:8px; }
.bl-cl { flex:1; min-width:0; font-size:12px; color:var(--mu); white-space:nowrap; padding-right:8px; }
.bl-cc { flex:1.3; min-width:0; font-size:12px; padding-right:6px; }
.bl-ca { flex:0 0 auto; display:flex; gap:5px; flex-wrap:nowrap; justify-content:flex-end; align-items:center; }
.bl-action-btn { width:36px; min-width:36px; height:36px; padding:0; font-size:0; border-radius:8px; }
.bl-action-btn svg { width:17px; height:17px; flex-shrink:0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:900px){ .bl-ci,.bl-cl,.bl-cc { display:none; } .bl-ca { max-width:none; } }
@media(max-width:560px){ .bl-row { align-items:center; gap:9px; padding:10px 12px; } .bl-cn { flex:1; padding-right:0; } .bl-ca { justify-content:flex-end; margin-left:auto; gap:4px; } .bl-action-btn { width:34px; min-width:34px; height:34px; } }

/* ════════════════════════════════
   FLASH FIX
════════════════════════════════ */
/* The auth circle stays visible at all sizes; only the SignIn/Join pill buttons
   are hidden by the 1100px rule above. */

/* ════════════════════════════════════════════════════
   MOBILE DRAWERS — consolidated
   Shared backdrop + two slide-in drawers:
   • #mobmenu (hamburger) slides in from the RIGHT
   • #dirSidebar.open on mobile slides in from the LEFT (filters)
   Both use the same backdrop element.
   On desktop (>900px), dirSidebar reverts to an inline column.
═══════════════════════════════════════════════════════ */

/* Shared backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Shared drawer header (Filters / Menu titlebar with close X) */
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bdr);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--w);
  letter-spacing: -0.2px;
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--bdr);
  background: #fff;
  color: var(--w);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.drawer-close:hover { border-color: var(--gold); color: var(--gold); }
.drawer-head-mobile { display: none; }

/* ── HAMBURGER DRAWER (right side) ── */
.mobmenu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  z-index: 200;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobmenu.open {
  transform: translateX(0);
}
.mobmenu .mob-inner {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 28px;
}
.mob-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  border: none;
  border-bottom: 1px solid var(--bdr);
  background: none;
  color: var(--w);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.mob-nav-btn:hover { color: var(--gold); background: var(--gp); }
.mob-nav-btn.act { color: var(--gold); background: var(--gp); font-weight: 700; }
.mobmenu .mauth {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 20px 16px;
  border-top: 0;
  margin-top: 0;
}

/* ── FILTER DRAWER (left side, mobile only) ── */
@media (max-width: 900px) {
  .dir-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 78vw;
    z-index: 150;
    background: #fff;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    border-right: none;
    padding: 0;
  }
  .dir-sidebar.open {
    transform: translateX(0);
  }
  /* Make #mc the positioning context for the drawer, so the drawer naturally
     starts at the TOP of the content area (i.e., below the search row). */
  #mc { position: relative; }
  .dir-sidebar .drawer-head-mobile {
    display: flex;
    flex: 0 0 auto;
  }
  .dir-sidebar .drawer-close {
    display: inline-flex;
  }
  .dir-sidebar .sidebar-flt {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 18px 80px;
  }
}

/* ── SEARCH THIS AREA BUTTON ── */
#mp { position: relative; }
.search-area-btn {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: rgba(255,255,255,0.74);
  color: rgba(17,24,39,0.78);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  font-family: "Inter", sans-serif;
  box-shadow: 0 6px 18px rgba(15,23,42,0.10);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, background 0.15s;
}
.search-area-btn:hover { transform: translateX(-50%) translateY(-1px); background: rgba(255,255,255,0.9); box-shadow: 0 8px 22px rgba(15,23,42,0.14); }
.search-area-btn.is-status { pointer-events: none; opacity: 0.86; }
.search-area-btn.hidden { display: none; }

/* Map base-layer switcher */
.map-style-control {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
}
.map-style-control button {
  height: 30px;
  min-width: 56px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mu);
  font: 800 12px/1 Inter, sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.map-style-control button:hover {
  background: rgba(184, 134, 11, 0.1);
  color: var(--w);
}
.map-style-control button.act {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.28);
}
@media (max-width: 640px) {
  .map-style-control { top: 12px; left: 10px; }
  .map-style-control button { min-width: 48px; padding: 0 9px; font-size: 11px; }
}

/* ── MAP POPUP — clean override of Mapbox defaults ── */
.mapboxgl-popup,
.mapboxgl-popup-content {
  pointer-events: auto !important;
}
.mapboxgl-popup-content {
  font-family: "Inter", sans-serif !important;
  padding: 14px 16px !important;
  border-radius: var(--r2) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  min-width: 180px;
  text-align: left;
}
.mapboxgl-popup-close-button {
  width: 24px !important;
  height: 24px !important;
  top: 6px !important;
  right: 6px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: var(--mu) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  z-index: 3 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.mapboxgl-popup-close-button:hover {
  background: var(--s) !important;
  color: var(--w) !important;
}
.mapboxgl-popup-tip {
  border-top-color: #fff !important;
}

/* ── MAP POPUP INTERNAL ── */
.map-popup .mp-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--w);
  margin-bottom: 4px;
  padding-right: 24px; /* leave room for close X */
  line-height: 1.3;
}
.map-popup .mp-meta {
  font-size: 12px;
  color: var(--mu);
  margin-bottom: 8px;
  line-height: 1.4;
}
.map-popup .mp-phone {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  text-decoration: none;
}
.map-popup .mp-view {
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: opacity 0.15s;
}
.map-popup .mp-view:hover { opacity: 0.9; }

/* ── SUPPORT CHOOSER MODAL OPTIONS ── */
.sup-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r2);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.sup-opt:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.1);
  transform: translateY(-1px);
}
.sup-opt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--w);
  margin-bottom: 4px;
}
.sup-opt-sub {
  font-size: 13px;
  color: var(--mu);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   LISTING WIZARD — Mobile-first step UI
═══════════════════════════════════════════════ */
.wiz-step-inner {
  padding: 28px 20px 24px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.wiz-confirm-step { padding-bottom: 24px; }
.wiz-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 10px;
}
.wiz-heading {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  color: var(--w);
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.wiz-sub {
  font-size: 15px;
  color: var(--mu);
  line-height: 1.6;
  margin-bottom: 24px;
}
.wiz-hint {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 8px;
  min-height: 20px;
  text-align: center;
}
.wiz-input {
  width: 100%;
  background: var(--s);
  border: 1.5px solid var(--bdr);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--w);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.wiz-input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
.wiz-input::placeholder { color: var(--mu2); }
.wiz-input { scroll-margin-bottom: 180px; }
.wiz-input-lg {
  font-size: 22px;
  font-weight: 700;
  padding: 18px 20px;
  border-radius: 14px;
}
.wiz-input-center { text-align: center; }
.wiz-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.wiz-ai-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.wiz-ai-write-btn,
.wiz-ai-mic-btn {
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.wiz-ai-write-btn {
  flex: 0 0 auto;
  padding: 0 14px;
}
.wiz-ai-mic-btn {
  min-width: 104px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.wiz-mic-icon { display:inline-flex; align-items:center; justify-content:center; }
.wiz-ai-mic-btn svg {
  width: 17px;
  height: 17px;
}
.wiz-ai-mic-btn.listening {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.wiz-hint-left {
  min-height: 18px;
  color: var(--mu);
  font-size: 12px;
}
.wiz-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.wiz-contact-card {
  padding: 12px;
  border: 1px solid var(--bdr);
  border-radius: 10px;
  background: rgba(184,134,11,0.06);
}
.wiz-public-contact-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: 9px;
  background: #fff;
}
.wiz-public-contact-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--w);
  margin-bottom: 4px;
}
.wiz-public-contact-box p {
  margin: 0 0 8px;
  color: var(--mu);
  font-size: 11px;
  line-height: 1.45;
}
.wiz-toggle-row {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--bdr);
  color: var(--w);
  font-size: 13px;
  font-weight: 700;
}
.wiz-toggle-row input { width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 auto; }
.wiz-field-group { display: flex; flex-direction: column; gap: 6px; }
.wiz-field-row { display: flex; gap: 10px; }
.wiz-field-row .wiz-field-group { flex: 1; }
.wiz-field-sm { flex: 0 0 96px !important; }
.wiz-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mu);
}
/* Choice cards */
.wiz-choices { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.wiz-choice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: "Inter", sans-serif;
}
.wiz-choice-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(184,134,11,0.12);
  transform: translateY(-1px);
}
.wiz-choice-icon { font-size: 28px; flex-shrink: 0; width: 40px; text-align: center; }
.wiz-choice-text { flex: 1; }
.wiz-choice-title { font-size: 15px; font-weight: 700; color: var(--w); margin-bottom: 3px; }
.wiz-choice-desc { font-size: 13px; color: var(--mu); }
/* Navigation buttons */
.wiz-nav {
  position: static;
  margin-top: auto;
  padding-top: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  z-index: 5;
  box-shadow: none;
}
.wiz-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}
.wiz-btn-primary {
  flex: 1;
  padding: 12px 20px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.wiz-btn-primary:hover { background: var(--gl); }
.wiz-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.wiz-btn-secondary {
  padding: 12px 18px;
  background: var(--s2);
  color: var(--mu);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.wiz-btn-secondary:hover { color: var(--w); border-color: var(--bdr2); }
.wiz-nav-util { flex: 0 0 auto; min-width: 74px; padding-left: 12px; padding-right: 12px; }
.wiz-nav .wiz-nav-util {
  background: transparent;
  border-color: transparent;
  color: var(--mu2);
  padding-left: 10px;
  padding-right: 10px;
}
.wiz-nav .wiz-nav-util:hover {
  background: var(--s3);
  border-color: var(--bdr);
  color: var(--w);
}
.wiz-nav .wiz-btn-primary {
  flex: 0 0 auto;
  min-width: 148px;
}
.wiz-nav-actions .wizard-skip {
  min-width: 92px;
  background: #fff;
  border-color: rgba(184,134,11,0.35);
  color: var(--gold);
}
.wiz-nav-actions .wizard-skip:hover { background: rgba(184,134,11,0.08); color: var(--gold); border-color: var(--gold); }
@media(max-width:560px){
  .wiz-step-inner { padding: 22px 16px 18px; min-height: 100%; }
  .wiz-confirm-step { padding-bottom: 18px; }
  .wiz-input { scroll-margin-bottom: 120px; }
  .wiz-field-row { flex-wrap: wrap; }
  .wiz-field-sm { flex: 1 1 calc(50% - 5px) !important; }
  .wiz-nav { gap: 8px; padding-top: 14px; }
  .wiz-nav-actions { gap: 6px; }
  .wiz-nav .wiz-btn-secondary,
  .wiz-nav .wiz-btn-primary {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
  .wiz-nav .wizard-continue { min-width: 92px; }
  .wiz-nav .wizard-cancel,
  .wiz-nav .wizard-back,
  .wiz-nav .wizard-skip { min-width: 0; }
}
.wiz-link-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  padding: 12px 0;
  text-decoration: underline;
  display: block;
}
/* Google search */
.wiz-search-wrap { position: relative; margin-bottom: 8px; }
.wiz-search-results { margin-top: 8px; }
.wiz-search-loading { padding: 14px; color: var(--mu); font-size: 14px; }
.wiz-search-empty { padding: 14px; color: var(--mu); font-size: 14px; }
.wiz-result-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
}
.wiz-result-item:hover { border-color: var(--gold); background: var(--gp); }
.wiz-result-name { font-size: 15px; font-weight: 600; color: var(--w); margin-bottom: 3px; }
.wiz-result-addr { font-size: 13px; color: var(--mu); }
.wiz-inline-btn { background: none; border: none; color: var(--gold); font-weight: 600; cursor: pointer; font-size: 14px; text-decoration: underline; font-family: inherit; }
/* AI suggestion */
.wiz-ai-suggestion {
  background: linear-gradient(135deg, #FFFDF5, #FFF8E7);
  border: 1.5px solid rgba(184,134,11,0.25);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.wiz-ai-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(184,134,11,0.12);
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.wiz-ai-text { font-size: 13px; color: var(--mu); margin-bottom: 10px; }
.wiz-ai-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wiz-ai-loading { text-align: center; padding: 40px 0; }
.wiz-ai-loading p { color: var(--mu); font-size: 14px; margin-top: 12px; }
.wiz-category-panel {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0 4px;
}
.wiz-category-select { margin-top: 8px; }
.wiz-category-hint { font-size: 11px; color: var(--mu); margin-top: 12px; font-weight: 600; }
.wiz-category-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.wiz-category-option {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1.5px solid var(--bdr);
  border-radius: 8px;
  background: var(--s);
  color: var(--w);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.wiz-category-option:hover { border-color: var(--gold); color: var(--gold); }
.wiz-category-option.selected { background: var(--gold); border-color: var(--gold); color: #fff; }
.wiz-empty-note { font-size: 13px; color: var(--mu); line-height: 1.5; }

/* Tag buttons */
.wiz-tag-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--bdr);
  background: var(--s2);
  color: var(--mu);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.15s;
}
.wiz-tag-btn.selected { background: var(--gold); color: #fff; border-color: var(--gold); }
.wiz-tag-btn:hover:not(.selected) { border-color: var(--gold); color: var(--gold); }
/* Specialty dropdown */
.wiz-spec-dd {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--sh);
  z-index: 50;
  display: none;
  overflow: hidden;
  max-height: 250px;
  overflow-y: auto;
}
.wiz-spec-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--bdr);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--w);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.wiz-spec-item:hover { background: var(--gp); }
.wiz-spec-ind { font-size: 11px; color: var(--mu); }
/* Selected tags */
.wiz-selected-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-height: 20px; }
.wiz-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  background: var(--gold);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.wiz-selected-tag button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
/* Employee grid */
.wiz-emp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.wiz-emp-btn {
  padding: 18px 16px;
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--w);
  cursor: pointer;
  transition: all 0.15s;
}
.wiz-emp-btn.selected { background: var(--gold); color: #fff; border-color: var(--gold); }
.wiz-emp-btn:hover:not(.selected) { border-color: var(--gold); color: var(--gold); }
/* Preview card */
.wiz-preview-card {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 8px;
}
.wiz-preview-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.wiz-preview-logo { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--bdr); }
.wiz-preview-logo img { width: 100%; height: 100%; object-fit: cover; }
.wiz-preview-name { font-size: 16px; font-weight: 800; color: var(--w); margin-bottom: 3px; }
.wiz-preview-contact { font-size: 13px; color: var(--mu); margin-bottom: 8px; }
.wiz-preview-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.wiz-preview-desc { font-size: 14px; color: var(--mu); line-height: 1.6; margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--bdr); }
.wiz-preview-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wiz-preview-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--mu); }
/* Loading */
.wiz-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; }
.wiz-loading p { color: var(--mu); font-size: 14px; margin-top: 12px; }

/* ── Wizard header buttons ── */
.wiz-hd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--bdr);
  background: var(--s);
  color: var(--w);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.wiz-hd-btn:hover { border-color: var(--gold); color: var(--gold); }
.wiz-hd-cancel {
  margin-left: auto;
  color: var(--mu);
}
.wiz-hd-cancel:hover { border-color: var(--rose); color: var(--rose); }
.wiz-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--bdr);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: wiz-spin 0.7s linear infinite;
}
@keyframes wiz-spin { to { transform: rotate(360deg); } }
/* Success */
.wiz-success { text-align: center; padding-top: 60px; align-items: center; }
.wiz-success-icon { font-size: 64px; margin-bottom: 16px; }
.wiz-success .wiz-btn-primary {
  flex: 0 0 auto;
  align-self: center;
  width: auto;
  min-width: 136px;
  max-width: 220px;
  padding-left: 28px;
  padding-right: 28px;
}
/* Shake animation */
@keyframes wiz-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.wiz-shake { animation: wiz-shake 0.4s ease; border-color: var(--rose) !important; }

/* Wizard photo upload */
.wiz-photo-section { display: flex; flex-direction: column; gap: 8px; }
.wiz-photo-label { display: flex; justify-content: space-between; align-items: baseline; }
.wiz-photo-label span:first-child { font-size: 14px; font-weight: 700; color: var(--w); }
.wiz-photo-hint { font-size: 11px; color: var(--mu2); }
.wiz-photo-upload {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  border: 2px dashed var(--bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: var(--s);
  transition: border-color 0.2s;
}
.wiz-photo-upload:hover { border-color: var(--gold); }
.wiz-photo-wide {
  width: 100%;
  height: 160px;
  border-radius: 14px;
}
.wiz-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--mu2);
  font-size: 12px;
  padding: 12px;
  text-align: center;
}
.wiz-photo-preview { width: 100%; height: 100%; object-fit: cover; }
.wiz-logo-preview { object-fit: contain; padding: 8px; background: #fff; box-sizing: border-box; }
.wiz-remove-photo {
  background: none;
  border: none;
  color: var(--rose);
  font-size: 12px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  padding: 4px 0;
  text-align: left;
}


/* ──────────────────────────────────────────────
   BIZ VERTICAL CARDS  (Apple Maps style grid)
   ────────────────────────────────────────────── */
.biz-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 4px 0 24px;
}

/* Card wrapper */
.bvc {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--bdr);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.bvc:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.bvc-sp {
  border-color: var(--gold);
}

/* ── Photo zone ── */
.bvc-photo {
  position: relative;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Placeholder shown when no cover photo */
.bvc-ph-init {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B2A4A 0%, #24304d 50%, #1B2A4A 100%);
}

/* Gradient fade — bottom of photo so name text pops */
.bvc-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 58%,
    rgba(0,0,0,0.16) 66%,
    rgba(0,0,0,0.5) 82%,
    rgba(0,0,0,0.86) 100%
  );
  pointer-events: none;
}

/* Sponsor badge top-left */
.bvc-sp-badge {
  position: absolute;
  top: 64px; left: 10px;
  background: var(--gold);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 3;
}

/* Logo badge top-left */
.bvc-logo {
  position: absolute;
  top: 10px; left: 10px;
  min-width: 48px;
  max-width: 112px;
  height: 48px;
  padding: 6px;
  border-radius: 11px;
  background: linear-gradient(135deg,#fff 0%,#f8fafc 100%);
  border: 1px solid rgba(15,23,42,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  box-shadow: 0 8px 22px rgba(15,23,42,0.18), inset 0 0 0 1px rgba(255,255,255,0.72);
  box-sizing: border-box;
}
.bvc-share,
.det-share {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.96);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 8px 20px rgba(15,23,42,0.18);
}
.bvc-share:hover,
.det-share:hover {
  color: var(--gold);
  border-color: rgba(184,134,11,0.42);
  background: #fff;
}
.bvc-share svg,
.det-share svg { width: 17px; height: 17px; }
.bvc-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96px;
  max-height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(15,23,42,0.28));
}
.bvc-logo-fb {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
}
.bvc-logo-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
}

/* Name + meta area overlaid on photo fade */
.bvc-namearea {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 10px 10px;
  z-index: 2;
}
.bvc-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.bvc-bname {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.bvc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.bvc-ind {
  font-size: 10px;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.bvc-loc {
  max-width: 42%;
  flex-shrink: 0;
  text-align: right;
}
.bvc-loc,
.bvc-dist {
  font-size: 10.5px;
  color: rgba(255,255,255,0.96);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.75);
  flex-shrink: 0;
}
.bvc-dist {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.bvc-dist svg { color: rgba(255,255,255,0.85); stroke-width: 1.6; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }

/* Grid-view card overrides only (excludes map result-sheet's .map-bvc) */
.biz-card-grid .bvc-title-row {
  align-items: center;
  margin-bottom: 3px;
}
.biz-card-grid .bvc-bname {
  line-height: 1.25;
}
.biz-card-grid .bvc-ind {
  line-height: 1.3;
}
.biz-card-grid .bvc-loc,
.biz-card-grid .bvc-dist {
  font-size: 9.5px;
  line-height: 1.3;
}
.biz-card-grid .bvc-dist svg {
  flex-shrink: 0;
}
.bvc-public-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid rgba(184,134,11,0.18);
  border-radius: 8px;
  background: rgba(184,134,11,0.06);
  color: var(--w);
  font-size: 11px;
  line-height: 1.3;
}
.bvc-public-contact.compact { padding: 6px 7px; }
.bvc-public-contact a,
.bvc-public-contact span:not(.bvc-public-label) {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
  min-width: 0;
}
.bvc-public-label {
  width: 100%;
  color: var(--mu);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
/* Separator between category and specialty */
.bvc-sep {
  opacity: 0.6;
  font-weight: 400;
  margin: 0 3px;
}

/* ── Body zone (light background) ── */
.bvc-body {
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  justify-content: space-between;
  background: #fff;
}
.bvc-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}
.bvc-info-l {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
}
.bvc-phone {
  font-size: 11px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  line-height: 1.5;
  min-height: 1.5em;
}
.bvc-web {
  font-size: 11px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
  line-height: 1.5;
  min-height: 1.5em;
}
.bvc-web:hover { text-decoration: underline; }
.bvc-addr {
  font-size: 10.5px;
  font-weight: 500;
  color: #6B7280;
  text-align: right;
  line-height: 1.45;
  max-width: 48%;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── Action buttons ── */
.bvc-acts {
  display: flex;
  gap: 6px;
}
.bvc-btn {
  flex: 1 1 0;
  min-height: 56px;
  padding: 6px 2px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid var(--bdr);
  background: var(--s);
  color: #111827;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  line-height: 1.05;
}
.bvc-btn:hover {
  background: #FFFDF5;
  border-color: var(--gold);
  color: var(--gold-d, #9A8540);
}
.bvc-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.bvc-btn span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.det-inline-action {
  min-height: 34px;
  border: 1px solid rgba(184,134,11,0.32);
  border-radius: 10px;
  background: rgba(184,134,11,0.08);
  color: var(--gold);
  padding: 0 12px;
  font: 850 12px/1 Inter, sans-serif;
  cursor: pointer;
}
.det-inline-action:hover {
  border-color: var(--gold);
  background: rgba(184,134,11,0.14);
}

/* ── Responsive breakpoints ── */
@media (max-width: 1100px) {
  .biz-card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .biz-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .biz-card-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* Category | Specialty separator in fade zone */
.bvc-sep {
  opacity: 0.6;
  font-weight: 400;
  margin: 0 3px;
}

/* ── DETAIL MODAL ── */
/* Photo: full bleed to card edges (no border-radius on photo itself) */
.det-photo {
  position: relative;
  height: 240px;
  overflow: hidden;
  margin: 0;               /* flush to modal edges */
  flex-shrink: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}
.det-photo * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.det-ph-init {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1B2A4A 0%, #24304d 50%, #1B2A4A 100%);
}
.det-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 0%, transparent 22%,
    rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.80) 100%);
  pointer-events: none;
}
/* Logo badge — top left, same as grid cards */
.det-logo {
  position: absolute; top: 10px; left: 10px;
  min-width: 48px;
  max-width: 112px;
  height: 48px;
  padding: 6px;
  border-radius: 11px;
  background: linear-gradient(135deg,#fff 0%,#f8fafc 100%);
  border: 1px solid rgba(15,23,42,0.08);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 22px rgba(15,23,42,0.18), inset 0 0 0 1px rgba(255,255,255,0.72);
  box-sizing: border-box;
}
.det-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96px;
  max-height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(15,23,42,0.28));
}
/* Name area — sits on the photo fade */
.det-namearea {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 12px 12px;
  z-index: 2;
}
/* Business name (left)   City, State (right) — same pattern as grid card */
.det-title-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.det-bname {
  font-size: 18px; font-weight: 800; color: #fff;
  line-height: 1.25; margin-bottom: 4px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.55);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1;
}
.det-city {
  font-size: 11px; color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); white-space: nowrap; flex-shrink: 0;
  max-width: 42%; text-align: right;
}
/* Category | Specialty (left)   Distance (right) — same pattern as grid card */
.det-submeta {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.det-cat {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%;
  line-height: 1.3;
}
.det-dist-ov {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); flex-shrink: 0; line-height: 1.3;
}
.det-dist-ov svg { color: rgba(255,255,255,0.85); stroke-width: 1.6; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
/* Info bar: phone+website (left) | address (right) */
.det-info-bar {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 11px 14px 0; gap: 12px;
}
.det-info-left  { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.det-info-right { display: flex; flex-direction: column; gap: 2px; text-align: right; flex-shrink: 0; max-width: 50%; }
.det-info-val   { font-size: 12.5px; color: var(--w); line-height: 1.4; font-weight: 500; }
.det-info-right .det-info-val { color: #4B5563; text-align: right; }
.det-val-plain  { color: var(--w); font-weight: 600; text-decoration: none; }
.det-val-link   { color: var(--gold); text-decoration: none; }
.det-val-link:hover { text-decoration: underline; }
/* Buttons — Call/Email/Website/Directions, equal and uncramped */
.det-btns {
  display: flex;
  gap: 7px;
  padding: 12px 14px 13px;
  border-bottom: 1px solid var(--bdr);
}
.det-btn {
  flex: 1 1 0;
  min-height: 58px;
  padding: 7px 2px;
  font-size: 10.5px; font-weight: 750;
  font-family: inherit;
  border-radius: 9px;
  border: 1px solid var(--bdr);
  background: var(--s);
  color: var(--w);
  cursor: pointer;
  text-align: center; text-decoration: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  line-height: 1.05;
  transition: background 0.12s, border-color 0.12s;
}
.det-btn svg { width: 21px; height: 21px; }
.det-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.det-btn:hover { background: var(--s2); border-color: var(--gold); color: var(--gold); }
.det-claim-subtle {
  padding: 6px 14px max(18px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: flex-end;
}
.det-claim-subtle button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--mu);
  font: 700 11px/1.2 Inter, sans-serif;
  cursor: pointer;
  padding: 6px 0;
}
.det-claim-subtle button:hover {
  color: var(--gold);
  text-decoration: underline;
}
.det-claim-subtle svg {
  width: 14px;
  height: 14px;
}
/* Body — consistent padding, consistent text. Extra bottom room for last section + safe area. */
.det-body { padding: 0 0 max(24px, env(safe-area-inset-bottom)); }
/* Detail rows: label/value pairs — email, years, employees, church */
.det-rows {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bdr);
  display: flex; flex-direction: column; gap: 10px;
}
.det-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.det-lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--mu2); flex-shrink: 0;
}
.det-val {
  font-size: 13px; color: var(--w); line-height: 1.4;
  text-align: right;
}
/* Email always gold like other links */
.det-val-email { color: var(--gold); text-decoration: none; font-size: 13px; }
.det-val-email:hover { text-decoration: underline; }
/* Church pill */
.det-church-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px; font-weight: 600; color: #16a34a;
  text-decoration: none;
  white-space: nowrap;
}
.det-church-pill:hover { background: rgba(34,197,94,0.18); }
.det-church-pill-icon { font-size: 12px; }
/* About + map sections */
.det-section { padding: 14px 14px 12px; border-bottom: 1px solid var(--bdr); }
.det-section:last-child { border-bottom: none; }
.det-section-lbl {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--mu2); margin-bottom: 8px;
}
.det-about {
  font-size: 13px; line-height: 1.7; color: var(--w); margin: 0;
}
.det-contact-section {
  background: rgba(184,134,11,0.035);
}
.det-contact-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.det-contact-row .det-val {
  max-width: 66%;
  overflow-wrap: anywhere;
}
.det-contact-row a {
  color: var(--gold);
  text-decoration: none;
}
.det-contact-row a:hover { text-decoration: underline; }
.det-gallery { padding: 14px 14px 0; border-top: 1px solid var(--bdr); }
/* Detail modal uses its own scroll body so the photo, fade, and scrollbar gutter align. */
#detMod #detCnt {
  padding: 0;
  margin: 0;
  scrollbar-gutter: stable;
  scrollbar-gutter: stable both-edges;
}
#detCnt .det-photo {
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

/* Hero logo image */
#heroH1 { margin-bottom: 20px; position: relative; }
.hero-logo-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  isolation: isolate;
}
.hero-logo-mark::before {
  content: '';
  position: absolute;
  inset: -18% -10%;
  z-index: -2;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(184,134,11,0.12), rgba(184,134,11,0.04) 54%, transparent 76%);
}
.hero-logo-mark::after { display: none; }
.hero-logo-hub {
  position: absolute;
  width: clamp(520px, 92vw, 920px);
  max-width: none;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0.52;
  overflow: visible;
}
.hero-hub-primary-lines line,
.hero-hub-secondary-lines line {
  stroke: #B8860B;
  stroke-linecap: round;
}
.hero-hub-primary-lines line {
  stroke-width: 1.35;
  opacity: 0.24;
}
.hero-hub-secondary-lines line {
  stroke-width: 0.9;
  opacity: 0.16;
}
.hero-hub-primary-lines line:nth-child(3n),
.hero-hub-secondary-lines line:nth-child(4n) { stroke: #1B2A4A; opacity: 0.12; }
.hero-hub-primary-nodes circle,
.hero-hub-secondary-nodes circle {
  fill: #B8860B;
}
.hero-hub-primary-nodes circle { opacity: 0.35; }
.hero-hub-secondary-nodes circle { opacity: 0.24; }
.hero-hub-primary-nodes circle:nth-child(3n),
.hero-hub-secondary-nodes circle:nth-child(4n) { fill: #1B2A4A; opacity: 0.20; }
.hero-hub-primary-nodes .hub { fill: rgba(184,134,11,0.16); stroke: rgba(184,134,11,0.34); stroke-width: 1.5; }
.hero-logo-img {
  width: clamp(280px, 55vw, 520px);
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── MOBILE ZOOM PREVENTION ──
   iOS zooms when input font-size < 16px. Force 16px on all text inputs. */
@media (max-width: 768px) {
  input, select, textarea,
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="url"], input[type="search"], input[type="password"],
  input[type="number"] {
    font-size: 16px !important;
  }
}

/* Full-card tap target button — sits above card, below action buttons */
.bvc {
  position: relative;
}
.bvc-tap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
  padding: 0;
}
/* Action buttons and links must sit above the tap target */
.bvc-acts,
.bvc-acts .bvc-btn,
.bvc-web {
  position: relative;
  z-index: 2;
}


/* Admin submission field inspector */
.adm-fields {
  margin-top: 10px;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.adm-fields summary {
  cursor: pointer;
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: #FFFDF5;
}
.adm-field-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  gap: 0;
  font-size: 12px;
}
.adm-field-k,
.adm-field-v {
  padding: 8px 10px;
  border-top: 1px solid var(--bdr);
}
.adm-field-k {
  color: var(--mu);
  font-weight: 700;
  background: var(--s);
  word-break: break-word;
}
.adm-field-v {
  color: var(--w);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media(max-width:640px){
  .adm-field-grid { grid-template-columns: 1fr; }
  .adm-field-v { border-top: 0; padding-top: 0; }
}

.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--bdr);
  border-radius: 10px;
  background: var(--s);
}
.profile-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gp);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-actions { min-width: 0; flex: 1; }
.profile-photo-hint { font-size: 11px; color: var(--mu); margin-top: 6px; }
@media(max-width:480px){ .profile-photo-row { align-items:flex-start; } .profile-photo-preview { width:62px; height:62px; } }


/* Account/auth polish: the auth area starts empty until Supabase restores the session. */
#authArea:empty,
#mauthArea:empty { display: none; }

/* Strong admin dark mode: keep every admin tab and content surface readable. */
#adminShell,
#adminShell #adminPanelView {
  background: var(--bg) !important;
  color: var(--w) !important;
}
#adminShell .adm-hd,
#adminShell .ahd,
#adminShell .atb,
#adminShell .adb,
#adminShell #admCnt {
  background: var(--bg) !important;
  color: var(--w) !important;
  border-color: var(--bdr) !important;
}
#adminShell .atb {
  box-shadow: inset 0 -1px 0 var(--bdr);
}
#adminShell .atbt {
  background: transparent !important;
  color: var(--mu) !important;
}
#adminShell .atbt:hover,
#adminShell .atbt.act {
  background: var(--s2) !important;
  color: var(--gold) !important;
}
#adminShell .asc,
#adminShell .ssc,
#adminShell .empty,
#adminShell .nsl,
#adminShell .rjb,
#adminShell .dtt,
#adminShell .sp-banner,
#adminShell .adm-fields,
#adminShell .adm-field-grid,
#adminShell .uz,
#adminShell .msc {
  background: var(--s2) !important;
  color: var(--w) !important;
  border-color: var(--bdr) !important;
}
#adminShell .shd,
#adminShell .si3 h3,
#adminShell label,
#adminShell summary,
#adminShell h2,
#adminShell h3 {
  color: var(--w) !important;
}
#adminShell .sm2,
#adminShell .sds,
#adminShell .sct,
#adminShell p,
#adminShell .adm-hd-who {
  color: var(--mu) !important;
}

@media(max-width: 1100px) {
  #bar {
    display: grid;
    grid-template-columns: auto minmax(118px, 1fr) auto auto auto;
    align-items: center;
    column-gap: 8px;
  }
  #bar .lw { grid-column: 1; }
  .add-biz-btn {
    grid-column: 2;
    justify-self: center;
    position: static;
    left: auto;
    transform: none;
    min-width: 0;
    max-width: 150px;
    white-space: nowrap;
  }
  #lt { grid-column: 3; justify-self: end; margin: 0; }
  #authArea { grid-column: 4; justify-self: end; min-width: 38px; }
  #authArea .ucircle { width: 38px; height: 38px; font-size: 12px; }
  #authArea .ucircle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .hmb { grid-column: 5; justify-self: end; }
}
@media(max-width: 480px) {
  #bar { grid-template-columns: auto minmax(105px, 1fr) auto auto auto; column-gap: 6px; }
  .add-biz-btn { max-width: 132px; padding-left: 7px; padding-right: 7px; }
  #lt { margin-left: 0; }
  #authArea { min-width: 36px; }
  #authArea .ucircle { width: 36px; height: 36px; font-size: 11px; }
}
@media(max-width: 390px) {
  #bar { grid-template-columns: auto minmax(96px, 1fr) auto auto auto; }
  .add-biz-btn { max-width: 124px; font-size: 10px; padding-left: 5px; padding-right: 5px; }
  #authArea { min-width: 34px; }
  #authArea .ucircle { width: 34px; height: 34px; font-size: 10px; }
}


/* Header control alignment: keep topbar buttons visually the same height. */
#bar .add-biz-btn,
#bar #authArea .btn,
#lt,
.hmb {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
}
#lt {
  align-items: stretch;
  padding: 2px;
}
#lt button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
#bar .add-biz-btn,
#bar #authArea .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
@media(max-width: 480px) {
  #lt,
  .hmb,
  #bar .add-biz-btn,
  #bar #authArea .btn {
    height: 38px;
    min-height: 38px;
  }
  #lt { padding: 2px; }
}
@media(max-width: 390px) {
  #lt,
  .hmb,
  #bar .add-biz-btn,
  #bar #authArea .btn {
    height: 38px;
    min-height: 38px;
  }
}


.det-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.det-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--bdr);
  background: var(--s);
  color: var(--gold);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.det-social-btn:hover {
  background: var(--s2);
  border-color: var(--gold);
}
@media(max-width:480px){
  .wiz-social-row { grid-template-columns: 1fr; }
}

/* Business claim workflow */
.claim-summary { background: var(--s); border: 1px solid var(--bdr); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.claim-kicker { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold); margin-bottom: 4px; }
.claim-biz-name { font-size: 18px; font-weight: 800; color: var(--w); margin-bottom: 5px; }
.claim-summary p { margin: 0; color: var(--mu); font-size: 13px; line-height: 1.55; }
.claim-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.det-claim-btn { color: var(--gold); border-color: rgba(184,134,11,0.38); }
.claim-card { border-left: 3px solid var(--gold); }
.claim-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.claim-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.claim-grid div { background: var(--s3); border: 1px solid rgba(184,160,90,0.18); border-radius: 8px; padding: 8px; min-width: 0; }
.claim-grid span { display: block; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--mu2); margin-bottom: 3px; }
.claim-grid strong { display: block; font-size: 12px; color: var(--w); overflow-wrap: anywhere; }
@media(max-width:760px){ .claim-grid { grid-template-columns: 1fr 1fr; } .claim-card-head { align-items: flex-start; } }
@media(max-width:520px){ .claim-grid { grid-template-columns: 1fr; } .claim-actions { justify-content: stretch; } .claim-actions .btn { flex: 1; } }


/* Church directory filtering and admin church tools */
.filter-banner { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 14px; background:rgba(22,163,74,0.10); border-bottom:1px solid rgba(22,163,74,0.22); color:var(--w); font-size:13px; }
.filter-banner button { border:1px solid rgba(22,163,74,0.35); background:var(--s); color:var(--w); border-radius:7px; padding:6px 10px; font-weight:700; cursor:pointer; }
.filter-banner button:hover { color:var(--gold); border-color:var(--gold); }
.church-filter-wrap { position: relative; }
.church-filter-input { width: 100%; padding-right: 36px; }
.church-filter-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(107,114,128,0.14);
  color: var(--mu);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.church-filter-clear.show { display: inline-flex; }
.church-filter-clear:hover { background: rgba(184,134,11,0.14); color: var(--gold); }
.church-suggest {
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  width: 100%;
  z-index: 70;
}
.church-suggest .hero-suggest-item { min-height: 48px; }
.admin-church-form { display:flex; flex-direction:column; gap:10px; margin-bottom:12px; }
.admin-google-row { display:flex; gap:8px; align-items:center; }
.admin-google-row input { flex:1; }
.admin-google-results { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.admin-google-result { text-align:left; border:1px solid var(--bdr); background:var(--s3); color:var(--w); border-radius:8px; padding:8px 10px; cursor:pointer; }
.admin-google-result strong, .admin-google-result span { display:block; }
.admin-google-result span { color:var(--mu); font-size:11px; margin-top:2px; }
.admin-google-result:hover { border-color:var(--gold); }
.admin-google-status { font-size:12px; color:var(--mu); padding:7px 9px; border:1px solid var(--bdr); border-radius:8px; background:var(--s3); }
.admin-google-status.ok { color:var(--grn); border-color:rgba(34,197,94,0.35); }
.admin-google-status.danger { color:var(--rose); border-color:rgba(225,29,72,0.35); }
.coord-row { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.admin-church-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.admin-church-actions { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.admin-edit-church { margin-bottom:14px; border-left:3px solid var(--gold); }
@media(max-width:680px){ .admin-google-row,.admin-church-row { flex-direction:column; align-items:stretch; } .admin-church-actions { justify-content:stretch; } .admin-church-actions .btn { flex:1; } }


#adminShell .admin-church-form,
#adminShell .admin-google-row,
#adminShell .claim-grid div,
#adminShell .chr,
#adminShell .chl,
#adminShell .admin-google-result,
#adminShell .admin-google-status {
  background: var(--s2) !important;
  color: var(--w) !important;
  border-color: var(--bdr) !important;
}
#adminShell .admin-church-form input,
#adminShell .admin-church-form select,
#adminShell .admin-church-form textarea,
#adminShell .admin-google-row input,
#adminShell .coord-row input,
#adminShell .fi,
#adminShell .fsel,
#adminShell .fsel-side {
  background: var(--s3) !important;
  color: var(--w) !important;
  border-color: rgba(184,160,90,0.28) !important;
}
#adminShell .admin-church-form input::placeholder,
#adminShell .admin-google-row input::placeholder,
#adminShell textarea::placeholder { color: var(--mu2) !important; }
#adminShell .chr .cn { color: var(--w) !important; }
#adminShell .chr .loc { color: var(--mu) !important; }


/* Hero shortcut actions */
.hero-dir-btn { min-width: 118px; }
.ha .btn { min-width: 0; }
@media(max-width:520px){
  .ha {
    display: grid;
    grid-template-columns: minmax(74px,0.8fr) minmax(118px,1.15fr) minmax(124px,1.15fr);
    gap: 6px;
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
  }
  .ha .btn {
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
    height: 38px;
    line-height: 1;
  }
  .hero-dir-btn { min-width: 0; }
}
@media(max-width:370px){
  .ha { grid-template-columns: 0.78fr 1.12fr 1.18fr; gap: 5px; }
  .ha .btn { font-size: 11px; padding-left: 5px; padding-right: 5px; }
}


/* Directory toolbar alignment */
.sr-inner { --dir-control-h: 38px; }
.sw input,
.flt-btn,
.vt {
  height: var(--dir-control-h) !important;
  min-height: var(--dir-control-h) !important;
  max-height: var(--dir-control-h) !important;
  box-sizing: border-box;
}
.sw input { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.2; }
.flt-btn { padding-top: 0 !important; padding-bottom: 0 !important; align-items: center; justify-content: center; }
.vb { display: flex; align-items: center; justify-content: center; height: 100%; }
.mobmenu .mauth .mob-pill { margin: 0; }


/* Admin portal polish: remove light leaks and make management controls readable. */
#adminShell .ahd,
#adminShell .ap {
  border-radius: 0 !important;
}
#adminShell .adm-fields {
  background: var(--s2) !important;
  border-color: var(--bdr) !important;
  box-shadow: none !important;
}
#adminShell .adm-fields summary {
  background: var(--s3) !important;
  color: var(--gold) !important;
  border-bottom: 1px solid var(--bdr) !important;
}
#adminShell .adm-field-k,
#adminShell .adm-field-v {
  background: var(--s2) !important;
  color: var(--w) !important;
  border-color: var(--bdr) !important;
}
#adminShell .adm-field-k {
  color: var(--mu) !important;
  background: var(--s3) !important;
}
#adminShell .atb::-webkit-scrollbar,
#adminShell *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
#adminShell .atb::-webkit-scrollbar-track,
#adminShell *::-webkit-scrollbar-track {
  background: var(--s) !important;
}
#adminShell .atb::-webkit-scrollbar-thumb,
#adminShell *::-webkit-scrollbar-thumb {
  background: var(--s3) !important;
  border-radius: 999px;
}
.admin-row-actions,
.admin-user-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.admin-section-head {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  background: var(--s2);
}
.admin-section-head p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}
.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.admin-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--s3);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.admin-user-copy { min-width: 0; }
.admin-user-name { font-weight: 700; font-size: 13px; color: var(--w); }
.admin-user-email { font-size: 11px; color: var(--mu); overflow-wrap: anywhere; }
.admin-user-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.admin-role-select {
  min-width: 150px;
  height: 34px;
}
@media(max-width:720px){
  .admin-user-row { align-items: stretch; flex-direction: column; }
  .admin-user-actions { justify-content: stretch; }
  .admin-user-actions .btn,
  .admin-role-select { flex: 1; width: 100%; }
}


/* Directory list: stable columns that do not overlap. */
.biz-list {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
}
.bl-row {
  display: grid !important;
  grid-template-columns: 50px minmax(220px, 1.35fr) minmax(230px, 1.1fr) minmax(135px, 0.65fr) minmax(185px, 0.85fr) max-content;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 18px;
}
.bl-logo { width: 42px; height: 42px; }
.bl-cn,
.bl-ci,
.bl-cl,
.bl-cc {
  min-width: 0;
  overflow: hidden;
  padding-right: 0 !important;
}
.bl-ci .tg {
  display: block !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bl-cl,
.bl-cc,
.bl-cc div,
.bl-cc a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bl-ca {
  justify-self: end;
  min-width: max-content;
}
@media(max-width:1200px){
  .bl-row { grid-template-columns: 48px minmax(180px,1.25fr) minmax(190px,1fr) minmax(120px,.65fr) max-content; }
  .bl-cc { display:none; }
}
@media(max-width:900px){
  .bl-row { grid-template-columns: 46px minmax(0,1fr) max-content; gap: 10px; }
  .bl-ci,.bl-cl,.bl-cc { display:none; }
}
@media(max-width:560px){
  .bl-row { padding: 10px 12px; }
  .bl-logo { width: 40px; height: 40px; }
}


/* Directory list polish: tighter professional table layout. */
.biz-list .bl-row {
  display: grid !important;
  grid-template-columns: 48px minmax(210px, 300px) minmax(240px, 1fr) minmax(120px, 150px) minmax(150px, 190px) max-content !important;
  gap: 14px !important;
  align-items: center !important;
  min-height: 66px;
  padding: 12px 18px;
}
.biz-list .bl-cn,
.biz-list .bl-ci,
.biz-list .bl-cl,
.biz-list .bl-cc,
.biz-list .bl-ca {
  align-self: center;
}
.biz-list .bl-cn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.biz-list .bl-ci {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-width: 0;
}
.biz-list .bl-ci .tg {
  display: block !important;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--gold) !important;
  font-size: 12px !important;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.biz-list .bl-cl {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 1.25;
}
.biz-list .bl-cc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.25;
}
.biz-list .bl-cc div,
.biz-list .bl-cc a {
  max-width: 100%;
}
.biz-list .bl-ca {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
@media(max-width:1380px){
  .biz-list .bl-row { grid-template-columns: 48px minmax(190px, 280px) minmax(220px, 1fr) minmax(110px, 140px) max-content !important; }
  .biz-list .bl-cc { display: none !important; }
}
@media(max-width:900px){
  .biz-list .bl-row { grid-template-columns: 46px minmax(0,1fr) max-content !important; gap: 10px !important; }
  .biz-list .bl-ci,
  .biz-list .bl-cl,
  .biz-list .bl-cc { display: none !important; }
}


/* Directory list row cleanup and category map markers */
.biz-list .bl-row {
  grid-template-columns: 48px minmax(230px, 330px) minmax(220px, 1fr) minmax(150px, 190px) max-content !important;
  gap: 12px !important;
  overflow: hidden;
}
.biz-list .bl-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-list .bl-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--mu);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-list .bl-subline > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-list .bl-dist {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 800;
}
.biz-list .bl-ci .tg {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  padding: 4px 10px !important;
  border: 1px solid rgba(184,134,11,0.22) !important;
  border-radius: 999px !important;
  background: rgba(184,134,11,0.08) !important;
  color: var(--gold) !important;
  font-size: 12px !important;
  line-height: 1.15;
}
.biz-list .bl-phone { font-weight: 800; color: var(--ink); letter-spacing: 0; }
.biz-list .bl-cc-sub { color: var(--gold); font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-list .bl-ca { gap: 5px !important; min-width: 151px; }
.biz-list .bl-action-btn {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 9px !important;
}
.map-bubble {
  position: relative;
  z-index: 0;
  width: 32.4px;
  height: 32.4px;
  border-radius: 50%;
  border: 1.6px solid #fff;
  background: var(--map-marker-color);
  box-shadow: 0 2px 8px rgba(15,23,42,0.24);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 90%;
  transition: transform 150ms ease, border-width 150ms ease, box-shadow 150ms ease;
}
.map-bubble::before {
  content: "";
  position: absolute;
  inset: 2.7px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  pointer-events: none;
}
.map-bubble::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -4.5px;
  width: 10.8px;
  height: 10.8px;
  background: var(--map-marker-color);
  border-radius: 0 0 3px 0;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 1px 1px 2px rgba(15,23,42,0.18);
}
.map-bubble svg {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: #fff;
  fill: currentColor;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(15,23,42,0.22));
}
.map-bubble.selected {
  transform: scale(1.22);
  border-width: 2.5px;
  box-shadow: 0 4px 13px rgba(15,23,42,0.34);
}
.map-bubble-wrap:hover .map-bubble,
.map-bubble:hover {
  transform: scale(1.12);
  border-width: 2px;
  box-shadow: 0 4px 13px rgba(15,23,42,0.34);
}
.map-bubble-wrap:hover .map-bubble.selected,
.map-bubble.selected:hover {
  transform: scale(1.28);
}
.map-bubble.list-hover {
  transform: translateY(-9px) scale(1.18);
  border-width: 2.2px;
  box-shadow: 0 4px 13px rgba(15,23,42,0.34);
}
.map-bubble.list-hover.selected {
  transform: translateY(-9px) scale(1.28);
}
.map-bubble.marker-jump {
  animation: sbnMarkerJump 420ms cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes sbnMarkerJump {
  0% { transform: translateY(0) scale(1.18); }
  45% { transform: translateY(-13px) scale(1.26); }
  72% { transform: translateY(-7px) scale(1.2); }
  100% { transform: translateY(-9px) scale(1.18); }
}
#adminShell .admin-church-row {
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) max-content;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
#adminShell .admin-church-main {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 180px);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#adminShell .admin-church-main .cn,
#adminShell .admin-church-main .loc {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#adminShell .admin-church-actions { flex-wrap: nowrap; }
@media(max-width:1380px){
  .biz-list .bl-row { grid-template-columns: 48px minmax(210px, 310px) minmax(190px, 1fr) max-content !important; }
  .biz-list .bl-cc { display: none !important; }
}
@media(max-width:900px){
  .biz-list .bl-row { grid-template-columns: 46px minmax(0,1fr) max-content !important; gap: 10px !important; }
  .biz-list .bl-ci,
  .biz-list .bl-cc { display: none !important; }
  .biz-list .bl-ca { min-width: 122px; gap: 4px !important; }
  .biz-list .bl-action-btn { width: 29px !important; min-width: 29px !important; height: 32px !important; }
}
@media(max-width:760px){
  #adminShell .admin-church-row { grid-template-columns: 1fr; align-items: stretch; }
  #adminShell .admin-church-main { grid-template-columns: 1fr; gap: 3px; }
  #adminShell .admin-church-actions { justify-content: stretch; flex-wrap: wrap; }
  #adminShell .admin-church-actions .btn { flex: 1; }
}


/* Keep phone visible in directory list on tablet widths. */
@media(max-width:1380px) and (min-width:901px){
  .biz-list .bl-row {
    grid-template-columns: 48px minmax(164px, 235px) minmax(132px, 1fr) minmax(150px, 178px) max-content !important;
    gap: 10px !important;
  }
  .biz-list .bl-cc {
    display: flex !important;
    min-width: 0;
  }
  .biz-list .bl-cc-sub { display: block !important; }
  .biz-list .bl-ci .tg { max-width: 100%; }
}

#listPage { overflow: hidden !important; }
#listPage #wizContent { overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
body.wizard-active { overflow: hidden; }
.church-submit-modal { max-width: 640px; }
.church-submit-modal .mhd { border-bottom: 1px solid var(--bdr); }
.church-submit-modal .church-submit-body { padding: 18px 22px 22px; overflow-y: auto; }
.church-submit-modal .fr { margin-bottom: 12px; }
.church-submit-actions { display:flex; gap:10px; justify-content:flex-end; align-items:center; margin-top:16px; padding-top:12px; border-top:1px solid var(--bdr); }
.church-submit-actions .btn { min-width: 118px; }
@media(max-width:560px){ .church-submit-modal .church-submit-body { padding: 16px; } .church-submit-actions { flex-direction: column-reverse; } .church-submit-actions .btn { width: 100%; } }


/* Map controls, category chips, and pull-up results */
.map-controls {
  position: absolute;
  bottom: 24px;
  top: auto;
  right: 14px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.map-control-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17,24,39,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.94);
  color: var(--w);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15,23,42,0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.map-control-btn:hover, .map-control-btn.act { color: #fff; background: var(--gold); border-color: var(--gold); }
/* Zoom buttons — desktop only */
.map-zoom-btn { display: none !important; }
@media(min-width: 761px) { .map-zoom-btn { display: inline-flex !important; } }
.map-layer-wrap { position: relative; }
.map-layer-menu {
  position: absolute;
  top: 0;
  right: 50px;
  display: none;
  padding: 5px;
  gap: 3px;
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 24px rgba(15,23,42,0.16);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.map-layer-menu.open { display: flex; }
.map-layer-menu button {
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mu);
  padding: 0 12px;
  font: 800 12px/1 Inter, sans-serif;
  cursor: pointer;
}
.map-layer-menu button.act { background: var(--gold); color: #fff; }
.map-quick-chips {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 7;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 4px 8px 1px;
  pointer-events: auto;
}
.map-quick-chips::-webkit-scrollbar { display: none; }
.map-chip {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: var(--w);
  padding: 0 10px;
  font: 800 11px/1 Inter, sans-serif;
  box-shadow: 0 5px 14px rgba(15,23,42,0.10);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  cursor: pointer;
}
.map-chip.act { background: var(--gold); color: #fff; border-color: var(--gold); }
.map-church-picker {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 394px;
  max-width: min(394px, 88vw);
  z-index: 31;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.98);
  border: 0;
  border-right: 1px solid rgba(17,24,39,0.12);
  border-radius: 0;
  box-shadow: 4px 0 28px rgba(15,23,42,0.18);
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.25,0.46,0.45,0.94);
}
.map-church-picker.open { transform: translateX(0); }
.map-church-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--bdr);
}
.map-church-head strong {
  display: block;
  color: var(--w);
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 3px;
}
.map-church-head span {
  display: block;
  color: var(--mu);
  font-size: 12px;
  line-height: 1.35;
}
.map-church-search-wrap {
  position: relative;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bdr);
}
.map-church-search {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--bdr);
  border-radius: 12px;
  background: var(--s);
  color: var(--w);
  padding: 0 40px 0 13px;
  font: 700 14px/1 Inter, sans-serif;
  outline: none;
}
.map-church-search:focus { border-color: var(--gold); background: #fff; }
.map-church-search-clear {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(107,114,128,0.14);
  color: var(--mu);
  font-weight: 900;
  cursor: pointer;
}
.map-church-list {
  overflow-y: auto;
  padding: 6px 0;
}
.map-church-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid rgba(17,24,39,0.07);
  background: transparent;
  text-align: left;
}
.map-church-row:hover { background: var(--s); }
.map-church-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.map-church-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #2563EB;
  border: 1px solid var(--bdr);
  box-shadow: 0 4px 10px rgba(15,23,42,0.08);
  overflow: hidden;
  font: 900 11px/1 Inter, sans-serif;
}
.map-church-logo img { width: 100%; height: 100%; object-fit: contain; }
.map-church-copy { min-width: 0; }
.map-church-copy strong {
  display: block;
  color: var(--w);
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-church-copy small {
  display: block;
  color: var(--mu);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-church-action {
  height: 30px;
  border: 1px solid rgba(184,134,11,0.28);
  border-radius: 999px;
  background: rgba(184,134,11,0.08);
  color: var(--gold);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.map-church-action.secondary { color: var(--mu); border-color: var(--bdr); background: var(--s); }
.map-church-action:hover { border-color: var(--gold); background: rgba(184,134,11,0.14); }
.map-church-empty {
  padding: 18px 14px;
  color: var(--mu);
  font-size: 13px;
}
.map-results-sheet {
  position: absolute;
  z-index: 7;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(17,24,39,0.12);
  box-shadow: 0 12px 40px rgba(15,23,42,0.22);
  backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: height 0.22s ease;
}
.map-sheet-handle {
  height: 24px;
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: none; /* give drag handler full control over the handle */
}
.map-sheet-handle span { width: 42px; height: 4px; border-radius: 999px; background: #CBD5E1; display: block; }
.map-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px 10px; font-size: 13px; color: var(--mu); }
.map-sheet-head strong { color: var(--w); }
.map-sheet-toggle { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--s2); border: 1px solid var(--bdr); }
.map-sheet-toggle button { width: 30px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--mu); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.map-sheet-toggle button.act { background: #fff; color: var(--gold); box-shadow: 0 1px 4px rgba(15,23,42,0.12); }
.map-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; padding: 0 10px max(16px, env(safe-area-inset-bottom)); flex: 1; min-height: 0; }
.map-result-logo { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--s2); border: 1px solid var(--bdr); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--gold); font-weight: 800; font-size: 12px; }
.map-result-logo img { width: 100%; height: 100%; object-fit: contain; }
.map-result-text { min-width: 0; flex: 1 1 auto; }
.map-result-title { font-size: 13px; font-weight: 850; line-height: 1.25; color: var(--w); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-result-meta { margin-top: 2px; font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--ow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-result-card { display: block; width: 100%; border: 1px solid var(--bdr); border-radius: 12px; overflow: hidden; background: #fff; text-align: left; margin-bottom: 10px; cursor: pointer; }
.map-result-photo { height: 96px; background-size: cover; background-position: center; }
.map-result-card-body { padding: 10px; }
.map-result-empty { color: var(--mu); font-size: 13px; padding: 18px 8px; }
.map-sheet-back { padding: 10px 14px 4px; }
.map-sheet-back button { background: none; border: none; color: var(--gold); font: 800 13px/1 Inter, sans-serif; cursor: pointer; padding: 0; letter-spacing: 0.3px; }
@media(min-width: 761px) {
  /* Full-height left panel — Google Maps / Apple Maps style */
  .map-results-sheet {
    left: 0;
    top: 0;
    bottom: 0;
    width: 394px;
    max-width: 394px;
    height: 100% !important;
    border-radius: 0;
    border-right: 1px solid rgba(17,24,39,0.10);
    box-shadow: 4px 0 20px rgba(15,23,42,0.12);
    background: #fff;
  }
  .map-results-sheet.peek,
  .map-results-sheet.half,
  .map-results-sheet.full { height: 100% !important; }
  /* Hide the drag handle on desktop — panel is always full height */
  .map-results-sheet .map-sheet-handle { display: none; }
  /* Sheet head slightly more compact on desktop */
  .map-sheet-head { padding: 10px 14px; border-bottom: 1px solid var(--bdr); }
  /* In map mode, the filter sidebar is replaced by the left sheet panel */
  #dirPage.map-mode .dir-sidebar { display: none !important; }
  /* Chips: centered in the map area to the right of the left panel */
  .map-quick-chips {
    left: 406px;
    right: 8px;
    justify-content: center;
    overflow-x: visible;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}

/* ── Map filter panel (inside results sheet, desktop) ── */
.map-filter-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--bdr);
  background: #fff; flex-shrink: 0;
}
.map-filter-title { font-size: 15px; font-weight: 700; color: var(--w); }
.map-filter-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 14px; display: flex; flex-direction: column; gap: 14px;
}
.map-filter-footer {
  padding: 10px 14px; border-top: 1px solid var(--bdr);
  display: flex; gap: 8px; justify-content: flex-end;
  flex-shrink: 0; background: #fff;
}

/* Share button inside map result rows */
.map-result-row { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--bdr); background: transparent; text-align: left; cursor: pointer; }
.map-result-row:hover { background: var(--s); }
.map-result-row.active {
  background: rgba(184,134,11,0.1);
  box-shadow: inset 3px 0 0 rgba(184,134,11,0.55);
}
.map-result-share {
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--bdr); border-radius: 8px;
  background: var(--s); color: var(--mu);
  cursor: pointer; flex: 0 0 auto; align-self: center;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.map-result-share:hover { border-color: var(--gold); color: var(--gold); }
@media(max-width: 760px) {
  .map-controls { bottom: 92px; top: auto; right: 10px; gap: 8px; }
  .map-control-btn { width: 40px; height: 40px; border-radius: 13px; }
  .map-layer-menu { top: 48px; right: 0; }
  .map-quick-chips { top: 12px; left: 10px; right: 10px; gap: 5px; }
  .map-chip { height: 30px; padding: 0 9px; font-size: 10.5px; }
  .search-area-btn { top: 50px; padding: 5px 10px; font-size: 10.5px; }
  .map-church-picker {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-width: none;
    height: min(72%, 540px);
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(17,24,39,0.12);
    border-bottom: 0;
    z-index: 35;
    box-shadow: 0 -14px 40px rgba(15,23,42,0.24);
    transform: translateY(105%);
  }
  .map-church-picker.open { transform: translateY(0); }
  .map-church-head { padding: 16px 16px 10px; }
  .map-church-search-wrap { padding: 12px 16px; }
  .map-church-row {
    grid-template-columns: minmax(0,1fr);
    padding: 12px 16px;
    gap: 8px;
  }
  .map-church-row .map-church-action {
    width: 100%;
    justify-content: center;
  }
  .map-results-sheet {
    left: 0; right: 0; bottom: 0;
    height: 100%; /* fills #mp.map-inline exactly — prevents overflow above search controls */
    border-radius: 20px 20px 0 0;
    transform: translateY(calc(100% - 80px)); /* CSS default for peek; JS overrides with px values */
    will-change: transform;
    transition: none; /* JS sets transition inline for animated snaps */
  }
}
.map-mobile-detail-sheet {
  display: none;
}
@media(max-width: 760px) {
  .map-mobile-detail-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    max-height: 100%;
    z-index: 34;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(17,24,39,0.12);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -14px 40px rgba(15,23,42,0.24);
    overflow: hidden;
    transform: translateY(106%);
    transition: transform 0.24s ease;
    will-change: transform;
  }
  .map-mobile-detail-sheet.open {
    transform: translateY(0);
  }
  .map-sheet-detail-head {
    display: flex;
    align-items: center;
    padding: 0 14px 10px;
    border-bottom: 1px solid var(--bdr);
  }
  .map-sheet-detail-head .map-detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: var(--mu);
    font: 800 13px/1 Inter, sans-serif;
    cursor: pointer;
    padding: 4px 0;
  }
  .map-detail-back-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--bdr);
    color: var(--w);
    box-shadow: 0 4px 12px rgba(15,23,42,0.10);
  }
  .map-detail-back-label {
    color: var(--mu);
    letter-spacing: 0.1px;
  }
  .map-mobile-detail-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* Desktop map detail panel (Google-Maps-style left panel) */
@media(min-width: 761px) {
  .map-det-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 394px;
    z-index: 10;
    background: #fff;
    border-right: 1px solid rgba(17,24,39,0.10);
    box-shadow: 4px 0 28px rgba(15,23,42,0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .map-det-panel.open { transform: translateX(0); }
  .map-det-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 8px 4px;
    flex-shrink: 0;
    background: #fff;
  }
  .map-det-panel-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bdr) transparent;
    padding: 0;
  }
}
/* Hidden on mobile — CSS guard prevents stale panel from breaking layout on resize */
@media(max-width: 760px) { .map-det-panel { display: none !important; } }
/* Circular close button — matches .drawer-close used on the filter/mobile drawers */
.map-det-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid var(--bdr);
  background: #fff;
  color: var(--w);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.map-det-close:hover { border-color: var(--gold); color: var(--gold); }

/* ── Landscape compact mode ──────────────────────────────────────────────────
   On phone/small-tablet landscape (viewport height ≤ 480px), collapse the
   header AND search row off-screen so the map gets maximum vertical space.
   A "Show header" pill lets the user bring everything back. */
.map-header-reveal {
  display: none;
  position: fixed;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 220;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--bdr);
  border-radius: 20px;
  padding: 4px 14px 4px 10px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  font-size: 12px;
  font-weight: 600;
  color: var(--mu);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
@media (max-height: 480px) and (max-width: 960px) {
  :root { --nav-h: 0px; }
  /* Collapse header off-screen */
  #bar { transform: translateY(-100%); transition: transform 0.25s ease; }
  /* Collapse search row too — nothing visible except the reveal pill */
  #sr {
    height: 0 !important; min-height: 0 !important; max-height: 0 !important;
    overflow: hidden !important; padding: 0 !important; border-bottom: none !important;
    transition: height 0.25s ease, padding 0.25s ease;
  }
  #fb { display: none !important; }
  #dirPage { transition: top 0.25s ease; }
  #mp.map-inline { transition: height 0.25s ease; }
  /* Reveal pill sits at top since bar+sr are both hidden */
  .map-header-reveal { display: flex; top: 4px; }
}
body.map-header-open { --nav-h: 68px; }
@media (max-height: 480px) and (max-width: 960px) {
  body.map-header-open #bar { transform: none; }
  /* Restore search row when expanded */
  body.map-header-open #sr {
    height: 46px !important; min-height: 46px !important; max-height: 46px !important;
    overflow: visible !important; padding: 0 10px !important;
    border-bottom: 1px solid var(--bdr) !important;
  }
  /* Move pill below the now-visible header + search row so user can collapse again */
  body.map-header-open .map-header-reveal {
    top: calc(68px + 46px + 6px);
  }
}

/* ── Directions picker (action sheet) ───────────────────────────────────── */
.dir-picker {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.42);
  display: flex; align-items: flex-end; justify-content: center;
}
.dir-picker-card {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 8px;
}
.dir-picker-title {
  font-size: 12px; color: var(--mu); text-align: center;
  padding: 2px 0 8px; font-weight: 600; letter-spacing: 0.3px;
}
.dir-picker-btn {
  display: block; text-align: center;
  padding: 14px; border-radius: 12px;
  background: var(--s); border: 1px solid var(--bdr);
  color: var(--gold); font-weight: 700; font-size: 15px;
  text-decoration: none; font-family: inherit; cursor: pointer;
}
.dir-picker-btn:hover { border-color: var(--gold); background: var(--s2); }
.dir-picker-cancel {
  text-align: center; padding: 12px;
  background: none; border: none;
  color: var(--mu); font-size: 14px; cursor: pointer;
  font-family: inherit;
}

/* Mobile header and directory toolbar refinements */
.mob-lang { display: none; }
@media(max-width: 760px) {
  #bar { grid-template-columns: auto minmax(118px,1fr) auto auto; }
  #lt { display: none; }
  #authArea { grid-column: 3; }
  .hmb { grid-column: 4; }
  .mob-lang { display: flex; gap: 5px; padding: 10px 24px 4px; }
  .mob-lang button { flex: 1; height: 36px; border: 1px solid var(--bdr); border-radius: 10px; background: var(--s); color: var(--mu); font: 800 12px/1 Inter, sans-serif; }
  .mob-lang button.act { background: var(--gold); color: #fff; border-color: var(--gold); }
}
@media(max-width: 640px) {
  #sr { height: 52px; min-height: 52px; max-height: 52px; padding: 0 8px; }
  .sr-inner { gap: 6px; overflow: hidden; }
  #sr .sw { flex: 1 1 auto; min-width: 0; max-width: none; }
  #sr .vt { flex-shrink: 0; }
  #sr .sw input { height: 38px; font-size: 14px; }
  .flt-btn { width: 38px; min-width: 38px; height: 38px; padding: 0; font-size: 0; display: inline-flex; align-items: center; justify-content: center; }
  .flt-btn::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat; }
  .vt { height: 38px; padding: 2px; }
  .vb { width: 34px; min-width: 34px; height: 34px; padding: 0; font-size: 0; display: inline-flex; align-items: center; justify-content: center; }
  .vb::before { content: ''; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--vb-icon) center/contain no-repeat; mask: var(--vb-icon) center/contain no-repeat; }
  #vG { --vb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
  #vL { --vb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E"); }
  #vM { --vb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18 3 21V6l6-3 6 3 6-3v15l-6 3-6-3z'/%3E%3Cpath d='M9 3v15'/%3E%3Cpath d='M15 6v15'/%3E%3C/svg%3E"); }
}


/* Current map and wizard layout refinements */
#dirPage.map-mode #fltBtn {
  display: none !important;
}
#dirPage.map-mode #sr .sw {
  flex: 1 1 auto;
  max-width: none;
}
.map-quick-chips {
  z-index: 18;
  padding-left: 0;
  padding-right: 0;
}
.map-quick-chips::before,
.map-quick-chips::after {
  position: sticky;
  z-index: 2;
  width: 22px;
  flex: 0 0 22px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: var(--mu);
  font: 900 14px/1 Inter, sans-serif;
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
  backdrop-filter: blur(8px);
}
.map-quick-chips::before { content: "<"; left: 0; }
.map-quick-chips::after { content: ">"; right: 0; }
#dirPage.map-mode .dir-sidebar.open {
  display: flex !important;
  flex-direction: column;
  z-index: 28;
}
@media(min-width: 761px) {
  #dirPage.map-mode .dir-sidebar.open {
    position: absolute;
    top: 12px;
    left: 12px;
    bottom: 12px;
    width: min(374px, calc(100vw - 24px));
    max-height: none;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(15,23,42,0.22);
  }
  #dirPage.map-mode .map-quick-chips {
    overflow-x: auto;
    justify-content: flex-start;
  }
}
@media(max-width: 760px) {
  #dirPage.map-mode .map-results-sheet {
    z-index: 30;
  }
  #dirPage.map-mode .map-controls {
    z-index: 12;
  }
}
@media(max-width: 1100px) {
  #bar {
    grid-template-columns: auto minmax(118px,1fr) auto auto;
  }
  #lt {
    display: none !important;
  }
  #authArea {
    grid-column: 3;
  }
  .hmb {
    grid-column: 4;
  }
  .mob-lang {
    display: flex;
    gap: 5px;
    padding: 10px 24px 4px;
  }
  .mob-lang button {
    flex: 1;
    height: 36px;
    border: 1px solid var(--bdr);
    border-radius: 10px;
    background: var(--s);
    color: var(--mu);
    font: 800 12px/1 Inter, sans-serif;
  }
  .mob-lang button.act {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
  }
}
@media (max-height: 480px) and (max-width: 960px) {
  .map-header-reveal {
    display: none;
  }
  body.dir-active .map-header-reveal {
    display: flex;
    z-index: 320;
  }
  body.dir-active:not(.map-header-open) #bar {
    transform: translateY(-110%) !important;
    visibility: hidden;
    pointer-events: none;
  }
  body.dir-active:not(.map-header-open) #dirPage {
    top: 0 !important;
  }
  body.dir-active:not(.map-header-open) #sr {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-bottom: 0 !important;
  }
  body.dir-active.map-header-open #bar {
    transform: none !important;
    visibility: visible;
    pointer-events: auto;
    height: 68px;
    overflow: hidden;
  }
  body.dir-active.map-header-open #dirPage {
    top: 68px !important;
  }
  body.dir-active.map-header-open #sr {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    overflow: visible !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--bdr) !important;
  }
  body.dir-active.map-header-open #sr .sr-inner {
    height: 50px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  body.dir-active.map-header-open .map-header-reveal {
    top: 124px;
  }
}


/* Centered map filter pill rail with working arrows */
.map-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: visible;
  pointer-events: none;
  padding: 0 8px;
}
.map-quick-chips::before,
.map-quick-chips::after {
  content: none !important;
  display: none !important;
}
.map-chip-track {
  width: max-content;
  max-width: calc(100% - 72px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 1px 0;
  pointer-events: auto;
}
.map-chip-track::-webkit-scrollbar { display: none; }
.map-chip { flex: 0 0 auto; }
.map-chip-arrow {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(17,24,39,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--mu);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(15,23,42,0.10);
  backdrop-filter: blur(10px);
  cursor: pointer;
  pointer-events: auto;
  align-self: center;
  margin-top: 1px;
}
.map-chip-arrow:hover {
  color: var(--gold);
  border-color: rgba(184,134,11,0.28);
}
@media(min-width: 761px) {
  #dirPage.map-mode .map-quick-chips {
    left: 406px;
    right: 8px;
    justify-content: center;
    overflow: visible;
  }
}
@media(max-width: 760px) {
  #dirPage.map-mode .map-quick-chips {
    left: 10px;
    right: 10px;
    justify-content: center;
  }
  .map-chip-track { max-width: calc(100% - 68px); }
  .map-chip-arrow { width: 30px; height: 30px; flex-basis: 30px; }
}


/* Keep mobile map layer choices above the bottom results sheet */
.map-layer-menu { z-index: 2; }
.map-controls.layer-menu-open { z-index: 36; }
@media(max-width: 760px) {
  .map-layer-menu {
    top: auto;
    bottom: 48px;
    right: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .map-layer-menu button {
    width: 104px;
    text-align: left;
  }
  #dirPage.map-mode .map-controls.layer-menu-open {
    z-index: 42;
  }
}


/* Cleaner map pill rail: keep More visible and fade only category overflow */
.map-chip-track {
  flex: 0 1 auto;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.map-chip-more {
  flex: 0 0 auto;
}
@media(max-width: 760px) {
  .map-chip-more { padding: 0 10px; }
  .map-chip-track { max-width: calc(100% - 156px); }
}


/* Map-style carousel pill rail */
#dirPage.map-mode .map-quick-chips {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 52px;
  pointer-events: none;
}
#dirPage.map-mode .map-chip-track {
  width: max-content;
  max-width: 100%;
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 0;
  pointer-events: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-mask-image: none;
  mask-image: none;
}
#dirPage.map-mode .map-chip-track::-webkit-scrollbar { display: none; }
#dirPage.map-mode .map-chip {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  gap: 7px;
  flex: 0 0 auto;
}
#dirPage.map-mode .map-chip-arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  transform: translateY(-50%);
  margin: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.96);
  color: var(--w);
}
#dirPage.map-mode .map-chip-arrow-left { left: 6px; }
#dirPage.map-mode .map-chip-arrow-right { right: 6px; }
#dirPage.map-mode .map-quick-chips.can-scroll-left .map-chip-arrow-left,
#dirPage.map-mode .map-quick-chips.can-scroll-right .map-chip-arrow-right {
  opacity: 1;
  pointer-events: auto;
}
@media(max-width: 760px) {
  #dirPage.map-mode .map-quick-chips {
    left: 8px;
    right: 8px;
    padding: 0 50px;
  }
  #dirPage.map-mode .map-chip { height: 34px; font-size: 13px; }
}


/* Map panel polish and collapsible desktop results */
@media(min-width: 761px) {
  #dirPage.map-mode .dir-sidebar.open {
    top: 62px;
    bottom: 12px;
    max-height: calc(100% - 74px);
  }
  .map-results-sheet {
    transform: translateX(0);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
  }
  .map-results-sheet.collapsed {
    transform: translateX(calc(-100% + 34px));
    box-shadow: none;
  }
  .map-sheet-side-tab {
    position: absolute;
    top: 50%;
    right: 0;
    width: 34px;
    height: 76px;
    transform: translateY(-50%);
    border: 1px solid rgba(17,24,39,0.12);
    border-left: 0;
    border-radius: 0 14px 14px 0;
    background: rgba(255,255,255,0.98);
    color: var(--mu);
    box-shadow: 8px 0 22px rgba(15,23,42,0.12);
    cursor: pointer;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .map-results-sheet.collapsed .map-sheet-side-tab { right: 0; }
  .map-sheet-side-tab:hover { color: var(--gold); }
}
@media(max-width: 760px) { .map-sheet-side-tab { display:none; } }
.map-result-place {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--mu);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-result-dist-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: -1px;
  margin: 0 4px;
  color: var(--gold);
}
.map-result-dist-icon svg { display: block; }
.map-results-sheet.card-mode .map-sheet-body { padding: 10px 12px max(18px, env(safe-area-inset-bottom)); }
.map-results-sheet.card-mode .map-bvc { margin-bottom: 12px; }
.map-results-sheet.card-mode .map-bvc .bvc-photo { min-height: 170px; }
.church-google-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}
.church-google-preview div {
  border: 1px solid var(--bdr);
  border-radius: 10px;
  background: var(--s);
  overflow: hidden;
}
.church-google-preview span {
  display: block;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--mu);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.church-google-preview img {
  display: block;
  width: 100%;
  height: 116px;
  object-fit: cover;
  background: #fff;
}


/* Final map pill carousel cleanup */
#dirPage.map-mode .map-quick-chips {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
#dirPage.map-mode .map-chip-track {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
#dirPage.map-mode .map-chip {
  background: #fff;
  backdrop-filter: none;
}
#dirPage.map-mode .map-chip-arrow {
  background: #fff;
  backdrop-filter: none;
}


/* Final map pill and panel corrections */
#dirPage.map-mode .map-quick-chips::before,
#dirPage.map-mode .map-quick-chips::after {
  content: none !important;
  display: none !important;
}
#dirPage.map-mode .map-quick-chips {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden !important;
  padding: 0 8px !important;
  justify-content: center !important;
}
#dirPage.map-mode .map-chip-track {
  max-width: 100% !important;
  padding: 2px 48px !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
#dirPage.map-mode .map-chip-arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #fff !important;
  color: var(--w) !important;
  box-shadow: 0 8px 20px rgba(15,23,42,0.18) !important;
}
#dirPage.map-mode .map-chip-arrow-left { left: 4px !important; }
#dirPage.map-mode .map-chip-arrow-right { right: 4px !important; }
@media(min-width: 761px) {
  #dirPage.map-mode .dir-sidebar.open {
    top: 70px !important;
    bottom: 14px !important;
    max-height: calc(100% - 84px) !important;
  }
}

.map-sheet-side-tab svg { pointer-events: none; }


/* Map drawer and pill visual reset */
#dirPage.map-mode .map-quick-chips,
#dirPage.map-mode .map-chip-track {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#dirPage.map-mode .map-quick-chips::before,
#dirPage.map-mode .map-quick-chips::after {
  content: none !important;
  display: none !important;
}
#dirPage.map-mode .map-quick-chips {
  overflow: visible !important;
  padding: 0 52px !important;
  justify-content: center !important;
}
#dirPage.map-mode .map-chip-track {
  max-width: 100% !important;
  padding: 2px 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
#dirPage.map-mode .map-chip-track::-webkit-scrollbar { display: none !important; }
#dirPage.map-mode .map-chip {
  background: rgba(255,255,255,0.96) !important;
  color: var(--w) !important;
  border-color: rgba(17,24,39,0.13) !important;
  box-shadow: 0 3px 10px rgba(15,23,42,0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#dirPage.map-mode .map-chip.act,
#dirPage.map-mode .map-chip.active {
  background: var(--gold) !important;
  color: #fff !important;
  border-color: var(--gold) !important;
  box-shadow: 0 5px 14px rgba(184,134,11,0.28) !important;
}
#dirPage.map-mode .map-chip.act svg,
#dirPage.map-mode .map-chip.active svg { color: #fff !important; stroke: currentColor !important; }
#dirPage.map-mode .map-chip-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 42px !important;
  height: 42px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--w) !important;
  border: 1px solid rgba(17,24,39,0.12) !important;
  box-shadow: 0 5px 14px rgba(15,23,42,0.14) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#dirPage.map-mode .map-chip-arrow-left { left: 5px !important; }
#dirPage.map-mode .map-chip-arrow-right { right: 5px !important; }
@media(max-width: 760px) {
  #dirPage.map-mode .map-quick-chips {
    left: 8px !important;
    right: 8px !important;
    padding: 0 48px !important;
  }
}
@media(min-width: 761px) {
  #dirPage.map-mode .dir-sidebar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 394px !important;
    max-width: min(394px, calc(100vw - 24px)) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.24s ease !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 28 !important;
    background: #fff !important;
    border-right: 1px solid rgba(17,24,39,0.10) !important;
    border-radius: 0 !important;
    box-shadow: 5px 0 24px rgba(15,23,42,0.16) !important;
    overflow: hidden !important;
    padding: 0 !important;
  }
  #dirPage.map-mode .dir-sidebar.open {
    transform: translateX(0) !important;
  }
  #dirPage.map-mode .dir-sidebar .drawer-head-mobile {
    display: flex !important;
    flex: 0 0 auto !important;
    min-height: 54px !important;
    padding: 10px 12px 10px 16px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--bdr) !important;
    background: #fff !important;
  }
  #dirPage.map-mode .dir-sidebar .drawer-close {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 1.5px solid var(--bdr) !important;
    color: var(--w) !important;
  }
  #dirPage.map-mode .dir-sidebar .sidebar-flt {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 18px 18px 72px !important;
  }
  #dirPage.map-mode .map-results-sheet {
    transition: transform 0.24s ease, box-shadow 0.24s ease !important;
    overflow: visible !important;
  }
  #dirPage.map-mode .map-results-sheet.collapsed {
    transform: translateX(-100%) !important;
    box-shadow: none !important;
  }
  #dirPage.map-mode .map-sheet-side-tab {
    right: -24px !important;
    width: 24px !important;
    height: 46px !important;
    border-radius: 0 9px 9px 0 !important;
    border: 1px solid rgba(17,24,39,0.13) !important;
    border-left: 0 !important;
    background: #fff !important;
    color: var(--mu) !important;
    box-shadow: 7px 0 18px rgba(15,23,42,0.16) !important;
    z-index: 12 !important;
  }
  #dirPage.map-mode .map-sheet-side-tab:hover { color: var(--gold) !important; }
}
.map-sheet-side-tab svg,
.map-chip-arrow svg { pointer-events: none; }


/* Map filter panel alignment and no pill arrows */
#dirPage.map-mode .map-chip-arrow { display: none !important; }
#dirPage.map-mode .map-quick-chips {
  left: 0 !important;
  right: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#dirPage.map-mode .map-chip-track {
  width: auto !important;
  max-width: 100% !important;
  padding: 2px 0 !important;
  gap: 8px !important;
}
@media(min-width: 761px) {
  #dirPage.map-mode .map-quick-chips {
    left: 374px !important;
    right: 0 !important;
  }
}
@media(max-width: 760px) {
  #dirPage.map-mode .map-quick-chips {
    left: 0 !important;
    right: 0 !important;
  }
}
@media(min-width: 761px) {
  #dirPage.map-mode .map-results-sheet,
  #dirPage.map-mode .map-det-panel,
  #dirPage.map-mode .dir-sidebar {
    width: 394px !important;
    max-width: 394px !important;
    top: 0 !important;
    bottom: 0 !important;
  }
  #dirPage.map-mode .dir-sidebar.open {
    width: 394px !important;
    max-width: 394px !important;
    top: 0 !important;
    bottom: 0 !important;
  }
}


/* Keep map filter drawer aligned below the directory search strip */
@media(min-width: 761px) {
  #dirPage.map-mode .dir-sidebar,
  #dirPage.map-mode .dir-sidebar.open {
    top: 51px !important;
    bottom: 0 !important;
    width: 394px !important;
    max-width: 394px !important;
  }
}


.search-area-btn {
  top: 62px !important;
}
@media(min-width: 761px) {
  #dirPage.map-mode .search-area-btn {
    left: calc(374px + ((100% - 374px) / 2)) !important;
  }
}
@media(max-width: 760px) {
  #dirPage.map-mode .search-area-btn {
    top: 62px !important;
    left: 50% !important;
  }
}

/* Larger, clearer map POI markers and matching filter-key icons (Maki icon set, shared with map markers) */
.map-chip-poi {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  color: #fff;
  background: var(--map-marker-color, #374151);
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,0.18);
  margin-left: -5px;
  margin-right: 3px;
}
.map-chip-poi svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}
#dirPage.map-mode .map-chip.act .map-chip-poi { box-shadow: 0 2px 8px rgba(15,23,42,0.28); }
.map-det-panel-body {
  border-left: 4px solid rgba(184,134,11,0.16);
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.45);
}


/* Profile photo cropper and circular avatar hardening */
.ucircle,
.mob-profile-circle,
.acct-profile-avatar {
  overflow: hidden;
  border-radius: 50%;
}
.ucircle img,
.mob-profile-circle img,
.acct-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.acct-profile-avatar {
  width: 48px;
  height: 48px;
  background: var(--gp);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}
.profile-photo-preview {
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.profile-photo-preview:active { cursor: grabbing; }
.profile-photo-preview img {
  border-radius: 50%;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  image-orientation: from-image;
}
.profile-photo-crop-controls {
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.profile-photo-crop-controls label { font-size: 11px; font-weight: 800; color: var(--mu); }
.profile-photo-crop-controls input[type="range"] { min-width: 130px; flex: 1; accent-color: var(--gold); }
.profile-crop-modal {
  max-width: 440px;
}
.profile-crop-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px;
}
.profile-crop-stage {
  width: min(72vw, 300px);
  height: min(72vw, 300px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--s2);
  border: 1px solid var(--bdr);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8), 0 12px 30px rgba(15,23,42,0.15);
  touch-action: none;
  cursor: grab;
}
.profile-crop-stage:active { cursor: grabbing; }
.profile-crop-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
  image-orientation: from-image;
}
.profile-crop-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-crop-toolbar label {
  font-size: 12px;
  font-weight: 800;
  color: var(--mu);
}
.profile-crop-toolbar input[type="range"] { flex: 1; accent-color: var(--gold); }
.profile-crop-actions { width: 100%; display: flex; justify-content: flex-end; }
.profile-save-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 12px;
}
.profile-danger-zone {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--bdr);
  border-radius: 9px;
  background: var(--s);
}
.profile-billing-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.profile-billing-actions .btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  white-space: normal;
  text-align: center;
}
.profile-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: rgba(220,38,38,0.18);
  background: rgba(220,38,38,0.035);
}
.profile-danger-zone strong {
  display: block;
  font-size: 13px;
  color: var(--rose);
}
.profile-danger-zone span {
  display: block;
  margin-top: 3px;
  color: var(--mu);
  font-size: 11px;
  line-height: 1.4;
}
@media(max-width:520px){
  .profile-danger-zone { align-items: stretch; flex-direction: column; }
  .profile-billing-actions { grid-template-columns: 1fr; }
}
.ii {
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button.ii { font-family: inherit; text-align: left; }
