:root {
  --primary: #e11d2e;
  --primary-foreground: #fafafa;
  --primary-dark: #b91524;
  --ink: #1a1412;
  --muted: #6b6560;
  --paper: #ffffff;
  --card: #ffffff;
  --accent: #fce8ea;
  --line: #e5e0dc;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(26 20 18 / 6%), 0 10px 28px rgb(26 20 18 / 8%);
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Anton", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
.wrap { width: min(100% - 1.25rem, var(--max)); margin-inline: auto; }
@media (min-width: 640px) {
  .wrap { width: min(100% - 2rem, var(--max)); }
}

/* —— Header (VOC-like; mobile = logo + menu only) —— */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / 95%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(26 20 18 / 4%);
  backdrop-filter: blur(10px);
}
.header-bar-mobile {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  min-height: 64px; padding: .35rem .75rem;
}
.header-bar-mobile .brand-lockup--mobile {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.header-bar-desktop { display: none; }
.mobile-site-label {
  margin: 0; padding: 0 0 .65rem;
  text-align: center; font-size: .82rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink);
}
.mobile-site-label::after {
  content: "";
  display: none;
}
.brand-lockup {
  display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit;
  min-width: 0;
}
.brand-lockup img.voc-sticker {
  height: 52px; width: auto; flex-shrink: 0;
}
.brand-text { display: grid; gap: .1rem; min-width: 0; }
.brand-text .eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); line-height: 1.2;
}
.brand-text .wordmark {
  font-weight: 800; font-size: clamp(.95rem, 2.2vw, 1.15rem);
  letter-spacing: -0.03em; color: var(--ink); line-height: 1.15;
}
.brand-text .wordmark span { color: var(--primary); }
.header-actions {
  display: flex; align-items: center; gap: .55rem; flex-shrink: 0;
}
.nav-desktop { display: none; gap: 1rem; font-size: .92rem; margin-right: .35rem; }
.nav-desktop a {
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.nav-desktop a:hover { color: var(--primary); }
.nav-toggle {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 1.25rem; line-height: 1;
}
.mobile-nav {
  display: none; border-top: 1px solid var(--line);
  padding: .35rem 0 1rem;
}
.mobile-nav.open { display: grid; gap: .15rem; }
.mobile-nav > a {
  display: block; padding: .85rem .15rem; color: var(--ink);
  text-decoration: none; font-weight: 650; border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.mobile-nav-actions {
  display: grid; gap: .65rem; margin-top: .85rem;
}
.mobile-nav-actions .btn { width: 100%; min-height: 48px; }

@media (min-width: 860px) {
  .header-bar-mobile,
  .mobile-site-label { display: none; }
  .header-bar-desktop {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 76px; padding: .5rem 0;
  }
  .brand-lockup img.voc-sticker { height: 64px; }
  .nav-toggle { display: none; }
  .mobile-nav,
  .mobile-nav.open { display: none !important; }
}
@media (min-width: 980px) {
  .nav-desktop { display: flex; }
}

/* —— Buttons (match VOC shadcn Button) —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.25rem; padding: .5rem 1rem; border-radius: .375rem;
  border: 1px solid transparent;
  font: inherit; font-size: .875rem; font-weight: 500;
  line-height: 1; text-decoration: none; cursor: pointer;
  white-space: nowrap; box-shadow: 0 1px 2px rgb(26 20 18 / 5%);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 1rem; height: 1rem; }
.btn-primary {
  background: var(--primary); color: #fff; border-color: transparent;
  box-shadow: 0 1px 2px rgb(26 20 18 / 10%);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
  background: #fff; border-color: #d6d0c9; color: var(--ink);
}
.btn-outline:hover {
  background: var(--accent); border-color: #d6d0c9; color: var(--primary);
}
.btn-ghost {
  background: #fff; border-color: var(--line); color: var(--ink);
  box-shadow: 0 1px 2px rgb(26 20 18 / 6%);
}
.btn-ghost:hover { background: var(--accent); color: var(--primary); }
.btn-sm { height: 2rem; padding: .4rem .75rem; font-size: .75rem; }
.header-cta { height: 2.25rem; font-weight: 500; }
.btn-outline.header-cta { border-color: #d6d0c9; }

/* —— Photo hero (home) —— */
.photo-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
}
.photo-hero .hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.photo-hero .hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(26 20 18 / 72%) 0%, rgb(26 20 18 / 48%) 45%, rgb(26 20 18 / 82%) 100%);
}
.photo-hero .inner {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  padding: 2rem 0 2.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .photo-hero .inner {
    width: min(100% - 2rem, var(--max));
    padding: 3.5rem 0 4.5rem;
  }
}
.hero-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  max-width: 100%;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgb(255 255 255 / 15%); backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 700; line-height: 1.3;
}
@media (min-width: 640px) {
  .hero-pill { font-size: .9rem; padding: .4rem 1rem; }
}
.photo-hero h1 {
  margin: 1rem auto 0; max-width: 16ch;
  font-size: clamp(1.65rem, 7vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
}
.photo-hero h1 .hl {
  text-decoration: underline; text-decoration-color: var(--primary);
  text-decoration-thickness: clamp(4px, 1.2vw, 8px);
  text-underline-offset: clamp(4px, 1.2vw, 8px);
}
.photo-hero .sub {
  margin: .9rem auto 0; max-width: 36rem;
  font-size: .98rem; color: rgb(255 255 255 / 90%); line-height: 1.5;
}
@media (min-width: 640px) {
  .photo-hero .sub { margin-top: 1.1rem; font-size: 1.1rem; }
}
.hero-search {
  margin: 1.35rem auto 0; max-width: 42rem;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  text-align: left;
}
@media (min-width: 640px) {
  .hero-search { margin-top: 1.75rem; flex-direction: row; align-items: stretch; }
}
.hero-search label {
  display: flex; align-items: center; gap: .65rem;
  flex: 1; padding: .9rem 1rem; color: var(--ink);
}
.hero-search label + label,
.hero-search .search-split {
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .hero-search label + label { border-top: 0; border-left: 1px solid var(--line); }
}
.hero-search input {
  width: 100%; border: 0; background: transparent; font: inherit;
  font-size: 16px; /* avoid iOS zoom */
  color: var(--ink); outline: none;
}
.hero-search .btn-search {
  border: 0; border-radius: 0; padding: 1rem 1.5rem;
  background: var(--primary); color: #fff; font-weight: 700; cursor: pointer;
  font: inherit; min-height: 48px;
}
.hero-search .btn-search:hover { background: var(--primary-dark); }
.quick-filters {
  margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem;
}
.quick-filters label,
.quick-filters button {
  display: inline-flex; align-items: center; min-height: 2.5rem;
  padding: 0 .85rem; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 40%);
  background: transparent; color: #fff; font: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer;
}
@media (min-width: 640px) {
  .quick-filters { margin-top: 1.25rem; gap: .5rem; }
  .quick-filters label,
  .quick-filters button { min-height: 2.75rem; padding: 0 1rem; font-size: .9rem; }
}
.quick-filters label:has(input:checked),
.quick-filters label:hover {
  background: #fff; color: var(--ink); border-color: #fff;
}
.quick-filters input { position: absolute; opacity: 0; pointer-events: none; }

/* —— Page sections —— */
.page-hero { padding: 1.25rem 0 .75rem; }
@media (min-width: 640px) {
  .page-hero { padding: 2rem 0 1rem; }
}
.page-hero h1 {
  margin: .35rem 0 .75rem;
  font-size: clamp(1.45rem, 5.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.lead { color: var(--muted); max-width: 42rem; font-size: .95rem; }
@media (min-width: 640px) {
  .lead { font-size: 1rem; }
}
.lead p { margin: 0 0 .85rem; }
#listings .lead {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) {
  #listings .lead { display: block; -webkit-line-clamp: unset; overflow: visible; }
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin: 1rem 0 0; color: var(--muted); font-size: .92rem;
}
.section { padding: 1.75rem 0; }
@media (min-width: 640px) {
  .section { padding: 2.5rem 0; }
}
.section h2 {
  margin: 0 0 .35rem; font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800; letter-spacing: -0.02em;
}
.section .section-sub { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
@media (min-width: 640px) {
  .section .section-sub { margin-bottom: 1.25rem; }
}
.section-head { text-align: center; margin-bottom: 1.15rem; }
@media (min-width: 640px) {
  .section-head { margin-bottom: 1.75rem; }
}
.section-head h2 { margin-bottom: .35rem; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--accent); color: var(--primary-dark);
  font-size: .75rem; font-weight: 700;
}

/* —— Listing cards (VOC “Churches Visitors Love” featured style) —— */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 0.75rem; overflow: hidden;
  box-shadow: 0 1px 2px rgb(26 20 18 / 5%);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; min-height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgb(26 20 18 / 12%);
}
.card a.card-link {
  color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1;
}
.listing-media {
  aspect-ratio: 16 / 10; overflow: hidden; background: #eceae8;
}
.card .thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .thumb { transform: scale(1.05); }
.card .body {
  padding: 1.25rem;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0; flex: 1;
}
.card .body > * { margin: 0; }
.listing-title-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
}
.card h2, .card h3 {
  margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.25; min-width: 0;
}
.card:hover h2 { color: var(--primary); }
.listing-badge {
  width: 3rem; height: 2.5rem; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgb(26 20 18 / 18%));
  pointer-events: none; user-select: none;
}
.listing-place {
  display: flex; align-items: flex-start; gap: .25rem;
  margin: 0.25rem 0 0 !important; color: var(--muted); font-size: .875rem; line-height: 1.4;
}
.listing-place .icon {
  width: 1rem; height: 1rem; margin-top: .125rem;
  color: var(--muted); flex-shrink: 0;
}
.listing-address,
.church-address,
.inline-address {
  display: grid; gap: .1rem;
  margin: 0; font-style: normal;
  color: var(--muted); font-size: .9rem; line-height: 1.4;
}
.listing-address .addr-line,
.church-address .addr-line,
.inline-address .addr-line {
  display: block;
}
.listing-rating {
  display: flex; align-items: center; gap: .25rem;
  margin: 0.75rem 0 0 !important; font-size: .875rem; font-weight: 600; color: var(--ink);
}
.listing-star {
  width: 1rem; height: 1rem; flex-shrink: 0;
  color: var(--primary);
}
.listing-score { font-weight: 600; }
.listing-rating .reviews { font-weight: 400; color: var(--muted); }
.listing-excerpt {
  margin: 0.5rem 0 0 !important; color: var(--muted); font-size: .875rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.review-block { margin-top: .75rem; }
.review-stars {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: 0 0 .75rem; font-weight: 700;
}
.review-stars .icon-star { color: var(--primary); }
.review-block blockquote {
  margin: 0; font-size: 1.15rem; line-height: 1.5; font-weight: 500;
}
.review-note { margin: .75rem 0 0; font-size: .8rem; }
.card .addr, .card .svc { color: var(--muted); font-size: .9rem; margin: 0; }

.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 2.5rem;
  padding: .35rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  text-decoration: none; color: var(--ink);
  font-size: .9rem; font-weight: 600;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }

.map-panel {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; min-height: 280px; position: relative;
  box-shadow: var(--shadow);
}
.map-panel .map-canvas { width: 100%; height: 300px; border: 0; background: #eceae8; z-index: 0; }
@media (min-width: 640px) {
  .map-panel .map-canvas { height: 420px; }
}
.map-panel--tall .map-canvas { height: min(65vh, 640px); min-height: 360px; }
@media (min-width: 640px) {
  .map-panel--tall .map-canvas { min-height: 480px; }
}
.map-fallback { padding: 1rem; color: var(--muted); }
.map-list {
  columns: 1; gap: 2rem; margin: 0; padding-left: 1.25rem; color: var(--muted);
}
@media (min-width: 700px) {
  .map-list { columns: 2; }
}
@media (min-width: 1000px) {
  .map-list { columns: 3; }
}
.map-list li { break-inside: avoid; margin-bottom: .55rem; }
.map-list a { font-weight: 600; text-decoration: none; }
.map-list a:hover { text-decoration: underline; }

/* —— Dedicated map page —— */
.map-page { padding-bottom: 2rem; }
.map-page-hero { margin: .35rem 0 1.25rem; }
.map-page-hero-copy { max-width: 44rem; }
.map-page-hero h1 {
  margin: .35rem 0 .75rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
}
.map-page-stats {
  margin-top: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.map-workspace {
  display: grid; gap: 1rem; align-items: stretch;
  margin-bottom: 1.75rem;
}
@media (min-width: 960px) {
  .map-workspace {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
    gap: 1.15rem; min-height: 560px;
  }
}
.map-workspace-map .map-panel,
.map-workspace-map .map-panel--tall { height: 100%; }
.map-workspace-map .map-panel--tall .map-canvas {
  height: min(62vh, 560px); min-height: 320px;
}
@media (min-width: 960px) {
  .map-workspace-map .map-panel--tall .map-canvas {
    height: 100%; min-height: 560px;
  }
}
.map-workspace-list {
  border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 320px; max-height: min(70vh, 640px);
  overflow: hidden;
}
.map-list-head { padding: 1rem 1rem .75rem; border-bottom: 1px solid var(--line); }
.map-list-head h2 { margin: 0 0 .2rem; font-size: 1.15rem; font-weight: 800; }
.map-list-head .muted { margin: 0 0 .75rem; font-size: .88rem; }
.map-list-search input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .85rem; font: inherit; font-size: 16px; background: #fff;
}
.map-list-search input:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
  border-color: var(--primary);
}
.map-church-list {
  list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1;
}
.map-church-list li { border-bottom: 1px solid var(--line); }
.map-church-list a {
  display: grid; gap: .15rem; padding: .85rem 1rem;
  text-decoration: none; color: inherit;
}
.map-church-list a:hover { background: var(--accent); }
.map-church-name { font-weight: 750; font-size: .95rem; line-height: 1.3; }
.map-church-meta { color: var(--muted); font-size: .85rem; }
.map-zips h2 {
  margin: 0 0 .85rem; font-size: 1.25rem; font-weight: 800;
}
.voc-pin {
  background: transparent; border: 0;
}
.voc-pin-dot {
  display: block; width: 18px; height: 18px; border-radius: 999px;
  background: var(--primary); border: 2px solid #fff;
  box-shadow: 0 2px 8px rgb(26 20 18 / 35%);
}
.leaflet-popup-content { margin: .65rem .85rem; font-family: var(--font); }
.leaflet-popup-content a { color: var(--primary); font-weight: 700; }

.cta-band {
  margin: .5rem 0;
  padding: 1.35rem 1.15rem;
  border-radius: 1.15rem;
  background: var(--accent);
}
@media (min-width: 800px) {
  .cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding: 2.5rem 3rem; border-radius: 1.5rem; margin: 1rem 0;
  }
}
.cta-band h2 { margin: .35rem 0 .5rem; font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 800; }
.cta-band .eyebrow {
  margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary);
}
.cta-band p { margin: 0; color: var(--muted); font-size: .95rem; }
.cta-band .actions {
  display: grid; gap: .65rem; margin-top: 1rem;
}
.cta-band .actions .btn { width: 100%; min-height: 48px; }
@media (min-width: 800px) {
  .cta-band .actions {
    display: flex; flex-wrap: wrap; margin-top: 0; flex-shrink: 0;
  }
  .cta-band .actions .btn { width: auto; }
}

.cta-box {
  margin: 1.5rem 0; padding: 1.35rem; border-radius: var(--radius);
  background: var(--accent); border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
}
.cta-box h2, .cta-box h3 { margin: 0 0 .5rem; }

.faq details {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: .95rem 1.1rem; margin-bottom: .65rem;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: .65rem 0 0; color: var(--muted); }

.breadcrumbs { font-size: .75rem; color: var(--muted); margin: 0; }
.breadcrumb-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem;
  margin: 0; padding: 0; list-style: none;
}
.breadcrumb-sep { color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--muted); word-break: break-word; }

.church-hero { padding: 1.5rem 0 0; }
.church-hero h1 {
  margin: .35rem 0 .5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800; letter-spacing: -0.03em;
}
.dl { display: grid; gap: .85rem; }
.dl div { display: grid; gap: .15rem; }
.dl dt {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700;
}
.dl dd { margin: 0; }
.muted { color: var(--muted); }
.missing { font-style: italic; }
.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1.4fr .9fr; align-items: start; }
}

.sticky-actions { display: none; }
@media (max-width: 720px) {
  .sticky-actions {
    display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0;
    padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 96%);
    border-top: 1px solid var(--line); z-index: 50; backdrop-filter: blur(8px);
  }
  .sticky-actions .btn { flex: 1; min-height: 48px; }
  body.has-sticky { padding-bottom: 5.25rem; }
}

/* —— Footer —— */
.site-footer { margin-top: 1rem; }
.footer-cta-wrap { padding: 1.5rem 0 .75rem; }
@media (min-width: 640px) {
  .footer-cta-wrap { padding: 2.5rem 0 1rem; }
}
.footer-main {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 1.25rem;
}
@media (min-width: 640px) {
  .footer-main { padding: 2.5rem 0 1.5rem; }
}
.footer-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand img { height: 64px; width: auto; }
.footer-brand p {
  margin: 1rem 0 0; max-width: 18rem; color: var(--muted); font-size: .92rem; line-height: 1.55;
}
.footer-col h3 { margin: 0 0 .85rem; font-size: .92rem; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-col a {
  color: var(--muted); text-decoration: none; font-size: .92rem;
}
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; color: var(--muted); font-size: .9rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.prose h2 { margin-top: 1.75rem; font-weight: 800; }
.prose h3 { margin-top: 1.25rem; font-weight: 700; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }

.hidden { display: none !important; }
.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;
}

.inline-search {
  margin: 1.25rem 0 0;
  display: flex; gap: .65rem; flex-wrap: wrap; align-items: center;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.inline-search input {
  flex: 1; min-width: 12rem; border: 0; outline: none; font: inherit;
}
.inline-filters { display: flex; flex-wrap: wrap; gap: .45rem; width: 100%; }
.inline-filters label {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 2.25rem; padding: 0 .8rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .85rem; font-weight: 600; cursor: pointer;
}
.inline-filters label:has(input:checked) {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.inline-filters input { accent-color: var(--primary); }

.page-status {
  margin: 0 0 1rem;
  font-size: .92rem;
}
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .4rem; margin: 1.35rem 0 0;
}
.pagination[hidden] { display: none !important; }
.page-btn {
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 700;
  cursor: pointer;
}
.page-btn[data-page="prev"],
.page-btn[data-page="next"] {
  flex: 1 1 auto; min-width: 5.5rem;
}
@media (min-width: 640px) {
  .page-btn[data-page="prev"],
  .page-btn[data-page="next"] { flex: 0 0 auto; }
}

/* —— Church profile (VOC-style) —— */
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.profile-top { padding: 1.25rem 0 0; }
.profile-crumb-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1rem;
}
.profile-back { text-decoration: none; }
.profile-back-short { display: inline; }
.profile-back-full { display: none; }
@media (min-width: 640px) {
  .profile-back-short { display: none; }
  .profile-back-full { display: inline; }
}
.profile-identity {
  display: grid; gap: 1rem; margin-top: 1.15rem;
}
@media (min-width: 800px) {
  .profile-identity {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start; gap: 1.5rem;
  }
}
.profile-eyebrow {
  margin: 0 0 .5rem; font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--primary);
}
.profile-identity h1 {
  margin: 0; font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
}
.profile-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  margin-top: .75rem; font-size: .875rem; align-items: center;
}
.profile-rating {
  font-weight: 600; display: inline-flex; align-items: center; gap: .3rem;
}
.profile-rating .icon-star { color: var(--primary); }
.profile-place {
  color: var(--muted); display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 400;
}
.profile-actions {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.profile-actions .btn { height: 2.75rem; }
.btn-icon {
  width: 2.75rem; height: 2.75rem; padding: 0;
}
.btn-icon .icon { width: 1rem; height: 1rem; }
.btn-icon.is-saved {
  border-color: var(--primary); color: var(--primary); background: var(--accent);
}
.btn-icon.is-saved .icon { fill: currentColor; }

.gallery {
  position: relative; margin-top: 1.35rem;
  display: grid; gap: .5rem; overflow: hidden; border-radius: 8px;
  min-height: 220px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--1 .gallery-main { height: 280px; }
@media (min-width: 640px) {
  .gallery--1 .gallery-main { height: 380px; }
  .gallery--2 { grid-template-columns: 2fr 1fr; height: 380px; }
  .gallery--3 { grid-template-columns: 2fr 1fr 1fr; height: 380px; }
  .gallery--2 .gallery-main,
  .gallery--2 .gallery-side,
  .gallery--3 .gallery-main,
  .gallery--3 .gallery-side { height: 100%; min-height: 0; }
  .gallery-stack { display: grid; grid-template-rows: 1fr 1fr; gap: .5rem; min-height: 0; }
}
@media (max-width: 639px) {
  .gallery-side, .gallery-stack { display: none; }
  .gallery--2, .gallery--3 { grid-template-columns: 1fr; }
}
.gallery-tools {
  position: absolute; inset-inline: .75rem; bottom: .75rem;
  display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end;
}
.gallery-tools .btn {
  background: #fff; box-shadow: 0 1px 2px rgb(26 20 18 / 10%);
  border-color: var(--line); min-height: 2.75rem;
}
.gallery-count { pointer-events: none; }
.sample-note { margin: .65rem 0 0; font-size: .8rem; }

.profile-nav {
  position: sticky; top: 64px; z-index: 25;
  margin-top: 1.25rem; border-block: 1px solid var(--line);
  background: rgb(255 255 255 / 96%); backdrop-filter: blur(8px);
}
@media (min-width: 860px) {
  .profile-nav { top: 76px; }
}
.profile-nav-inner {
  display: flex; gap: .5rem 1.75rem; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.profile-nav a {
  flex: 0 0 auto; min-height: 2.75rem;
  display: inline-flex; align-items: center;
  padding: 0 .5rem; border-bottom: 2px solid transparent;
  color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 600;
  white-space: nowrap; letter-spacing: 0;
}
.profile-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.profile-layout {
  display: grid; gap: 2.5rem; padding: 2rem 0 2.5rem;
}
@media (min-width: 980px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3.5rem; align-items: start;
  }
}
.profile-section {
  padding: 2rem 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 8rem;
}
.profile-section:first-child { padding-top: 0; }
.profile-section--claim { border-bottom: 0; }
.profile-section h2 {
  margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 700;
}
.profile-section .section-sub {
  margin: .5rem 0 0; font-size: .875rem; color: var(--muted); font-weight: 400;
}
.profile-section p {
  margin: .75rem 0 0; font-size: .95rem; line-height: 1.65; color: var(--ink);
}
.profile-section p.muted { color: var(--muted); font-weight: 400; }
.profile-section .eyebrow,
.aside-card .eyebrow {
  margin: 0 0 .5rem; font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--primary);
}
.profile-section > .btn { margin-top: 1rem; }
.highlight-list {
  margin: 1.25rem 0 0; padding: 0; list-style: none;
  display: grid; gap: .85rem;
}
@media (min-width: 640px) {
  .highlight-list { grid-template-columns: 1fr 1fr; }
}
.service-list { margin-top: 1rem; }
.service-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem; align-items: center;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.service-row h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.service-row .muted { margin: .25rem 0 0; font-size: .875rem; }
.service-time {
  margin: 0; font-weight: 700; font-size: .875rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5rem;
}
.service-time .icon { color: var(--primary); }
.service-summary { margin-top: 1rem; }
.inline-address { margin: 0; }
.pastor-block {
  display: grid; gap: 1rem; margin-top: 1rem;
}
.pastor-block img {
  width: 140px; height: 140px; object-fit: cover; border-radius: 8px;
}
@media (min-width: 640px) {
  .pastor-block--photo { grid-template-columns: 140px minmax(0, 1fr); }
}
.pastor-block h3 { margin: .15rem 0 .5rem; font-size: 1.2rem; }
.pastor-block blockquote {
  margin: .75rem 0 0; padding-left: .85rem;
  border-left: 3px solid var(--primary);
  font-style: italic; color: var(--muted);
}
.ministry-grid {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; gap: .85rem;
}
@media (min-width: 640px) {
  .ministry-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.ministry-grid li {
  border: 0; border-radius: 0; padding: 0; background: transparent;
}
.ministry-grid h3 { margin: 0 0 .35rem; font-size: 1rem; }
.chip-static { cursor: default; }
.chip-static:hover { border-color: var(--line); color: var(--ink); }

.profile-aside {
  display: grid; gap: 1rem;
}
@media (min-width: 980px) {
  .profile-aside {
    position: sticky; top: 6.5rem;
    max-height: calc(100vh - 7rem); overflow-y: auto;
    align-self: start;
  }
}
.aside-card {
  border: 1px solid var(--line); border-radius: .375rem;
  padding: 1.5rem; background: #fff; box-shadow: 0 1px 2px rgb(26 20 18 / 5%);
}
.aside-card h2 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.aside-card h3 { margin: 0 0 .75rem; font-size: 1rem; font-weight: 700; }
.aside-join-summary {
  display: flex; align-items: flex-start; gap: .5rem;
  margin: .75rem 0 0; font-size: .875rem; line-height: 1.5; font-weight: 400;
}
.aside-join-summary .icon { margin-top: .15rem; color: var(--primary); }
.aside-full {
  width: 100%; height: 2.25rem; margin-top: .5rem;
  box-sizing: border-box;
}
.aside-full:first-of-type { margin-top: 1.25rem; }
.aside-block {
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.aside-row {
  display: flex; align-items: flex-start; gap: .75rem;
  margin: 0 0 1rem; color: inherit; text-decoration: none;
  font-size: .875rem; line-height: 1.5; font-weight: 400;
}
.aside-row .icon { margin-top: .15rem; color: var(--muted); }
.aside-row:hover { color: var(--primary); }
.aside-row--accent { color: var(--primary); font-weight: 600; }
.aside-row--accent .icon { color: var(--primary); }
.aside-row span,
.aside-row { overflow-wrap: anywhere; }
.aside-socials { margin: .25rem 0 0; font-size: .9rem; }
.aside-hours { margin: 0; }
.aside-hours > div {
  display: flex; justify-content: space-between; gap: .75rem;
  margin: 0 0 .45rem; font-size: .9rem;
}
.aside-hours dt { color: var(--muted); }
.aside-hours dd { margin: 0; font-weight: 600; color: var(--ink); }
.aside-map-link { margin: .75rem 0 0; }
.aside-card .map-panel { border: 0; box-shadow: none; margin: .35rem 0 0; }
.aside-card .map-canvas { height: 220px; border-radius: 6px; }

/* —— Static pages (About / Contact / Add listing) —— */
.static-page { padding-bottom: 2rem; }
.about-banner {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 16px; min-height: 220px; margin: .75rem 0 1.25rem;
  color: #fff;
}
.about-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.about-banner-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgb(26 20 18 / 78%) 10%, rgb(26 20 18 / 45%) 55%, rgb(185 28 28 / 35%) 100%);
}
.about-banner-copy {
  padding: 1.75rem 1.25rem 1.9rem; max-width: 36rem;
}
@media (min-width: 640px) {
  .about-banner { min-height: 280px; }
  .about-banner-copy { padding: 2.5rem 2rem; }
}
.about-banner .eyebrow {
  margin: 0 0 .55rem; color: #fecaca; font-size: .72rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.about-banner h1 {
  margin: 0 0 .65rem;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
}
.about-banner p { margin: 0; color: rgb(255 255 255 / 92%); line-height: 1.5; }
.stat-strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem; margin: 0 0 1.5rem;
}
@media (min-width: 720px) {
  .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat-strip > div {
  border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem 1rem; background: #fff; box-shadow: var(--shadow);
  display: grid; gap: .2rem;
}
.stat-strip strong {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
}
.stat-strip span {
  font-size: .82rem; font-weight: 650; color: var(--muted);
}
.static-hero {
  max-width: 42rem;
  padding: 1.25rem 0 1.5rem;
}
.static-hero--tight { padding-top: .25rem; }
.static-hero h1 {
  margin: .35rem 0 .75rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
}
.static-h2 {
  margin: .35rem 0 .75rem !important;
  font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
  font-weight: 800 !important; letter-spacing: -0.02em; line-height: 1.2;
}
.static-hero .lead {
  margin: 0; font-size: 1.05rem; line-height: 1.55;
}
.steps-list--compact h3 {
  margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 800;
}

/* —— Guide page —— */
.guide-page { padding-bottom: 2rem; }
.guide-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 16px; min-height: 220px; margin: .5rem 0 1.5rem; color: #fff;
}
.guide-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.guide-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgb(26 20 18 / 82%) 8%, rgb(26 20 18 / 50%) 55%, rgb(185 28 28 / 40%) 100%);
}
.guide-hero-copy { padding: 1.75rem 1.25rem; max-width: 40rem; }
@media (min-width: 640px) {
  .guide-hero { min-height: 260px; }
  .guide-hero-copy { padding: 2.35rem 2rem; }
}
.guide-hero .eyebrow {
  margin: 0 0 .5rem; color: #fecaca; font-size: .72rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.guide-hero h1 {
  margin: 0 0 .65rem;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
}
.guide-hero p { margin: 0; color: rgb(255 255 255 / 92%); line-height: 1.5; }

.guide-layout {
  display: grid; gap: 1.5rem; align-items: start;
}
@media (min-width: 960px) {
  .guide-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; }
}
.guide-toc {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.1rem; background: #fff; box-shadow: var(--shadow);
}
@media (min-width: 960px) {
  .guide-toc { position: sticky; top: 6.5rem; }
}
.guide-toc-title {
  margin: 0 0 .65rem; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
}
.guide-toc ol {
  margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem;
}
.guide-toc a {
  display: block; padding: .45rem .2rem; color: var(--ink);
  text-decoration: none; font-size: .92rem; font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.guide-toc a:hover { color: var(--primary); }
.guide-toc li:last-child a { border-bottom: 0; }

.guide-article .lead {
  margin: 0 0 1.5rem; font-size: 1.08rem; max-width: 42rem;
}
.guide-section {
  padding: 1.35rem 0 1.6rem; border-top: 1px solid var(--line);
  scroll-margin-top: 7rem;
}
.guide-section h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800; letter-spacing: -0.02em;
}
.guide-section > p {
  margin: 0 0 .85rem; color: var(--muted); max-width: 42rem; line-height: 1.6;
}
.guide-section h3 {
  margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800;
}

.tradition-grid {
  display: grid; gap: .85rem; margin: 1rem 0;
}
@media (min-width: 640px) {
  .tradition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .tradition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tradition-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.05rem; background: #fff; box-shadow: var(--shadow);
}
.tradition-card h3 {
  margin: 0 0 .4rem; font-size: 1rem; color: var(--primary);
}
.tradition-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

.guide-callout {
  margin: 1rem 0 0; padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--accent);
  border-left: 4px solid var(--primary);
  color: var(--ink); font-size: .95rem; line-height: 1.5;
}
.guide-checklist {
  margin: .85rem 0 0; padding-left: 1.15rem; color: var(--muted);
  display: grid; gap: .4rem; max-width: 40rem;
}
.info-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .info-grid--2 { grid-template-columns: 1fr 1fr; }
}
.question-grid {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; gap: .65rem;
}
.question-grid li {
  border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem 1rem; background: #fff; font-weight: 650;
  box-shadow: var(--shadow);
}
.guide-close { margin: 1.25rem 0 !important; color: var(--ink) !important; }
.info-grid {
  display: grid; gap: 1rem;
  margin: .25rem 0 1.5rem;
}
@media (min-width: 720px) {
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
}
.info-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem 1.2rem 1.35rem; background: #fff;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .55rem;
}
.info-card h2 {
  margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em;
}
.info-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.info-card .btn { margin-top: .35rem; align-self: flex-start; }
.info-card--accent {
  background: var(--accent);
  border-color: color-mix(in srgb, var(--primary) 18%, var(--line));
}
.info-kicker {
  margin: 0 !important;
  font-size: .72rem !important; font-weight: 800 !important;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary) !important;
}
.static-actions {
  display: flex; flex-wrap: wrap; gap: .65rem;
  margin: 0 0 1.5rem;
}
.static-panel {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem 1.2rem; background: #fff; margin-bottom: 1.25rem;
}
.static-panel h2 {
  margin: 0 0 .75rem; font-size: 1.15rem; font-weight: 800;
}
.quick-link-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .55rem;
}
@media (min-width: 640px) {
  .quick-link-list { grid-template-columns: 1fr 1fr; }
}
.quick-link-list a {
  display: flex; align-items: center; min-height: 2.75rem;
  padding: .65rem .85rem; border-radius: 10px;
  border: 1px solid var(--line); text-decoration: none;
  color: var(--ink); font-weight: 650; background: #fff;
}
.quick-link-list a:hover {
  border-color: var(--primary); color: var(--primary);
}
.static-footnote { margin: 0; font-size: .9rem; }
.steps-list {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; gap: 1rem;
}
.steps-list > li {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem;
  align-items: start;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.15rem; background: #fff; box-shadow: var(--shadow);
}
.steps-list h2 {
  margin: 0 0 .35rem; font-size: 1.1rem; font-weight: 800;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: .95rem;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--primary); color: var(--primary);
}
.page-btn.is-active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.page-btn:disabled {
  opacity: .45; cursor: not-allowed;
}
.page-ellipsis {
  padding: 0 .25rem; color: var(--muted); font-weight: 700;
}
