/* ============================================================================
 * directory-orgs.css — Organizations directory page (PHP port of mockup
 *   003_design_handoff_organizations_directory/Organizations Directory.html).
 * Layered on top of design-tokens.css; relies on its color/typography vars.
 * Used by /organizations/ — pairs with directory-orgs.js.
 * ============================================================================ */

:root {
  --filter-h: 108px;          /* updated at runtime by directory-orgs.js */
}

/* ─── Hero ─── */
.dir-hero {
  background: var(--blue-900);
  border-bottom: 3px solid var(--gold);
  padding: 28px 20px 24px;
}
.dir-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dir-hero h1 {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.15;
}
.dir-hero .hero-lede {
  color: rgba(255,255,255,.72);
  font-size: .97rem;
  margin: 0;
}
.dir-hero .hero-count {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 575px) {
  .dir-hero h1 { font-size: 1.5rem; }
  .dir-hero { padding: 20px 16px 18px; }
}

/* ─── Sticky filter bar ─── */
/* header-new's nav is position:relative (not sticky), so the filter bar
 * sticks to the top of the viewport once the user scrolls past it. */
.filter-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.filter-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Search row */
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--border);
}
.search-wrap {
  flex: 1;
  position: relative;
  max-width: 480px;
}
.search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-300);
  font-size: .9rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 32px 8px 34px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .93rem;
  color: var(--text-900);
  background: var(--bg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(38,114,184,.10);
  background: #fff;
}
.search-input::placeholder { color: var(--text-300); }
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-300);
  cursor: pointer;
  font-size: .8rem;
  padding: 2px 4px;
  display: none;
}
.search-clear.visible { display: block; }
.search-clear:hover { color: var(--text-700); }

/* Map toggle button (mobile only) */
.btn-map-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-100);
  color: var(--blue-700);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.btn-map-toggle:hover { background: var(--blue-100); }
.btn-map-toggle.active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
@media (max-width: 991px) {
  .btn-map-toggle { display: flex; }
}

/* Filters toggle button — always visible, opens the collapsed drawer */
.btn-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  color: var(--text-700);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.btn-filters:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.btn-filters.has-active {
  background: var(--blue-50);
  border-color: var(--blue-600);
  color: var(--blue-700);
}
.btn-filters[aria-expanded="true"] {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: #fff;
}
.btn-filters[aria-expanded="true"] .filter-count-badge {
  background: #fff;
  color: var(--blue-700);
}
.btn-filters .chev {
  font-size: .7rem;
  transition: transform .15s;
}
.btn-filters[aria-expanded="true"] .chev { transform: rotate(180deg); }
.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--blue-700);
  color: #fff;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

/* Collapsible filter drawer — wraps near-me-row + chips-row */
.filter-drawer {
  display: none;
}
.filter-drawer.open {
  display: block;
}
.filter-drawer > :first-child {
  border-top: 1px solid var(--border);
}

/* ─── Near-me / radius row ─── */
.near-me-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.near-me-wrap {
  flex: 1 1 240px;
  min-width: 0;
  position: relative;
  max-width: 360px;
}
.near-me-wrap .near-me-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-700);
  font-size: .9rem;
  pointer-events: none;
}
.near-me-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 32px 8px 34px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .93rem;
  color: var(--text-900);
  background: var(--bg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.near-me-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(38,114,184,.10);
  background: #fff;
}
.near-me-input::placeholder { color: var(--text-300); }
.near-me-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-300);
  cursor: pointer;
  font-size: .8rem;
  padding: 2px 4px;
  display: none;
}
.near-me-clear.visible { display: block; }
.near-me-clear:hover { color: var(--text-700); }

.near-me-radius {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-500);
  flex-shrink: 0;
  margin: 0;
}
.radius-select {
  appearance: none;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 28px 5px 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-700);
  cursor: pointer;
  outline: none;
  transition: border-color .15s, background-color .15s, color .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  text-transform: none;
  letter-spacing: 0;
}
.radius-select:focus { border-color: var(--blue-600); }
.radius-select.active {
  background-color: var(--blue-50);
  border-color: var(--blue-600);
  color: var(--blue-700);
}

.btn-locate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-100);
  color: var(--blue-700);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.btn-locate:hover { background: var(--blue-100); }
.btn-locate.active {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
}
.btn-locate.locating { opacity: .6; pointer-events: none; }
.btn-locate i { font-size: .9rem; }

@media (max-width: 575px) {
  .near-me-wrap { flex-basis: 100%; max-width: 100%; }
  .btn-locate .locate-label { display: none; }
  .btn-locate { padding: 7px 10px; }
}

/* ─── Type tabs ─── */
.type-tabs-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.type-tabs-row::-webkit-scrollbar { display: none; }
.type-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-500);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
  text-decoration: none;
}
.type-tab:hover { color: var(--text-900); text-decoration: none; }
.type-tab.active {
  color: var(--blue-700);
  border-bottom-color: var(--blue-700);
}
.type-tab .tab-count {
  background: var(--bg-alt);
  color: var(--text-500);
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
  padding: 1px 7px;
  transition: background .15s, color .15s;
}
.type-tab.active .tab-count {
  background: var(--blue-100);
  color: var(--blue-700);
}

/* ─── Chips row ─── */
.chips-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 0;
}
.chips-row-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.chips-divider {
  display: none;
}
.chip-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-300);
  white-space: nowrap;
  flex-shrink: 0;
}

/* State dropdown */
.state-select-wrap {
  position: relative;
  flex-shrink: 0;
}
.state-select {
  appearance: none;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 28px 5px 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-700);
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.state-select:focus { border-color: var(--blue-600); }
.state-select.active {
  background-color: var(--blue-50);
  border-color: var(--blue-600);
  color: var(--blue-700);
}

/* Filter chip pills (worship/denom/ministry) */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-700);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  user-select: none;
  flex-shrink: 0;
  text-decoration: none;
}
.filter-chip:hover { border-color: var(--blue-600); color: var(--blue-700); text-decoration: none; }
.filter-chip.active {
  background: var(--blue-50);
  border-color: var(--blue-700);
  color: var(--blue-900);
  font-weight: 600;
}
.filter-chip .chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background .15s;
}
.filter-chip.active .chip-dot { background: var(--blue-600); }

/* ─── Active filter pills bar ─── */
.active-pills-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.active-pills-bar:empty { display: none; }
.active-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 20px;
  padding: 3px 10px 3px 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-800);
  text-decoration: none;
}
.active-pill a.pill-remove,
.active-pill button.pill-remove {
  background: none;
  border: none;
  color: var(--blue-700);
  cursor: pointer;
  font-size: .7rem;
  padding: 0 0 0 3px;
  line-height: 1;
  opacity: .7;
  text-decoration: none;
}
.active-pill a.pill-remove:hover,
.active-pill button.pill-remove:hover { opacity: 1; }
.active-pill.notice {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.clear-all-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  margin-left: 4px;
  text-decoration: underline;
}
.clear-all-link:hover { color: var(--text-900); }

/* ─── Page body layout ─── */
.dir-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 991px) {
  .dir-body { grid-template-columns: 1fr; padding: 16px 16px 80px; }
}
@media (min-width: 1700px) {
  .dir-body { max-width: 1700px; }
}

/* ─── Results header ─── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.results-count {
  font-size: .88rem;
  color: var(--text-500);
  font-weight: 500;
  margin: 0;
}
.results-count strong { color: var(--text-900); font-weight: 700; }

.btn-add-org {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.btn-add-org:hover { background: #a07840; color: #fff; text-decoration: none; }

/* Editor "showing drafts" inline chip — sits next to the results count */
.editor-notice-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-800);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: help;
}
.editor-notice-chip i { color: var(--blue-600); font-size: .72rem; }

/* ─── Card grid ─── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) and (max-width: 991px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1900px) {
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Org card */
.org-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s, transform .15s;
  text-decoration: none;
  color: inherit;
  position: relative;
  height: 100%;
}
.org-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.org-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.org-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.org-card-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--blue-900) 0%, var(--blue-800) 100%);
}
.org-card-thumb.placeholder .ph-icon {
  color: rgba(255,255,255,.25);
  font-size: 2.4rem;
}

.org-card-body {
  flex: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.org-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.org-card-name {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.25;
  margin: 0;
  text-wrap: pretty;
}
@media (min-width: 576px) {
  .org-card-name { font-size: 1.05rem; }
}

.org-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.badge-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-type.ministry { background: var(--blue-700); }
.badge-subtype {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--blue-100);
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.org-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--text-500);
  min-width: 0;
}
.org-card-location i { font-size: .75rem; color: var(--text-300); flex-shrink: 0; }
.org-card-location span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.org-card-summary {
  font-size: .88rem;
  color: var(--text-700);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  text-wrap: pretty;
}

.org-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.btn-card-view {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.btn-card-view i { font-size: .75rem; transition: transform .15s; }
.org-card:hover .btn-card-view i { transform: translateX(2px); }

.status-badge-card {
  position: absolute;
  top: 10px; right: 10px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}
.status-badge-card.draft    { background: #e2e8f0; color: #475569; }
.status-badge-card.hidden   { background: #fef3c7; color: #92400e; }
.status-badge-card.archived { background: #fee2e2; color: #991b1b; }

.org-card.no-image .org-card-thumb {
  background: linear-gradient(145deg, var(--blue-900) 0%, var(--blue-800) 100%);
}

/* ─── Pagination ─── */
.dir-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pg-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-700);
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  padding: 0 10px;
  text-decoration: none;
}
.pg-btn:hover { border-color: var(--blue-600); color: var(--blue-700); text-decoration: none; }
.pg-btn.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.pg-btn.disabled { opacity: .4; pointer-events: none; }
.pg-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  color: var(--text-300);
  font-size: .85rem;
}

/* ─── Map sidebar (desktop only) ─── */
.map-sidebar {
  position: sticky;
  top: calc(var(--filter-h) + 20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
@media (max-width: 991px) {
  .map-sidebar { display: none; }
}
.map-sidebar-header {
  background: var(--bg-card);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.map-sidebar-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-500);
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-sidebar-title i { color: var(--blue-600); }
.map-center-indicator {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .78rem;
  color: var(--text-500);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-center-indicator strong {
  color: var(--blue-700);
  font-weight: 700;
}

.map-embed-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  background: var(--bg-alt);
}
.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-alt);
  text-align: center;
  padding: 16px;
}
.map-loading-icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600);
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.map-loading p {
  font-size: .85rem;
  color: var(--text-500);
  margin: 0;
}
.map-loading small {
  font-size: .75rem;
  color: var(--text-300);
}

.map-sidebar-footer {
  background: var(--bg-card);
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .76rem;
  color: var(--text-500);
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.map-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-dot.church   { background: var(--blue-700); }
.map-dot.ministry { background: var(--gold); }

/* ─── Mobile map bottom sheet ─── */
.map-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  opacity: 0;
  transition: opacity .25s;
}
.map-sheet-backdrop.open { display: block; }
.map-sheet-backdrop.visible { opacity: 1; }

.map-bottom-sheet {
  position: fixed;
  bottom: -100%;
  left: 0; right: 0;
  height: 70vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 501;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0,0,0,.15);
  transition: bottom .3s cubic-bezier(.32,.72,0,1);
}
.map-bottom-sheet.open { bottom: 0; }
.map-sheet-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 8px;
  flex-shrink: 0;
}
.map-sheet-header {
  padding: 0 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.map-sheet-title {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-sheet-title i { color: var(--blue-600); font-size: .9rem; }
.btn-close-sheet {
  background: var(--bg-alt);
  border: none;
  color: var(--text-500);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  transition: background .15s;
}
.btn-close-sheet:hover { background: var(--border); }
.map-sheet-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.map-sheet-body iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-500);
}
.empty-state-icon {
  width: 64px; height: 64px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
  color: var(--text-300);
}
.empty-state h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-700);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: .93rem;
  color: var(--text-500);
  max-width: 32em;
  margin: 0 auto 20px;
}
.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-700);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-clear-filters:hover { background: var(--blue-900); color: #fff; text-decoration: none; }
