/*
  IPROYEC | Cobertura General
  Diseño actualizado según observaciones:
  - El mapa inicia con el panel de información minimizado.
  - Se eliminó el buscador de iglesias y el texto explicativo largo.
  - Se agregó sección Pastores con tarjetas y foto grupal.
*/

:root {
  --bg: #061326;
  --bg-soft: #0b1b33;
  --card: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --text: #eef6ff;
  --muted: #a9bad0;
  --brand: #2f7cff;
  --brand-strong: #1456d8;
  --brand-soft: #67a3ff;
  --accent: #d6b56d;
  --success: #70e1b9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 124, 255, 0.25), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(214, 181, 109, 0.16), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(47, 124, 255, 0.14), transparent 34%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: rgba(6, 19, 38, 0.74);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.18), transparent 38%),
    linear-gradient(135deg, rgba(47,124,255,0.32), rgba(255,255,255,0.07));
  box-shadow: 0 14px 34px rgba(47, 124, 255, 0.24);
  overflow: hidden;
}

.brand-mark img {
  width: 30px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-cta {
  color: #ffffff !important;
  background: rgba(47, 124, 255, 0.16) !important;
  border: 1px solid rgba(103, 163, 255, 0.4);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 99px;
}

.hero { padding: 82px 0 52px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: 34px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(103, 163, 255, 0.35);
  border-radius: 999px;
  color: #cfe1ff;
  background: rgba(47, 124, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(112, 225, 185, 0.12);
}

h1 {
  margin: 26px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.text-gradient {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 15%, var(--brand-soft) 56%, var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  max-width: 670px;
  margin: 0;
  color: #c8d6e8;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.72;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 180ms ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 18px 48px rgba(47, 124, 255, 0.28);
}

.btn-secondary {
  color: white;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
  filter: brightness(1.08);
}

.hero-stats {
  max-width: 650px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.map-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045)),
    rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.map-shell::before {
  content: "";
  position: absolute;
  inset: -120px -100px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(47,124,255,0.23);
  filter: blur(28px);
}

.map-topbar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.map-badge {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9e8ff;
  background: rgba(6, 19, 38, 0.58);
  backdrop-filter: blur(14px);
  font-size: 0.86rem;
  font-weight: 800;
}

.map-canvas {
  width: 100%;
  height: 680px;
  display: block;
}

.map-dot { fill: rgba(103, 163, 255, 0.78); }
.map-dot.soft { fill: rgba(103, 163, 255, 0.36); }

.connection-line {
  fill: none;
  stroke: rgba(214, 181, 109, 0.78);
  stroke-width: 2;
  stroke-dasharray: 9 10;
}

.pin-group { cursor: pointer; outline: none; }

.pin-label-bg {
  fill: rgba(6, 19, 38, 0.86);
  stroke: rgba(255,255,255,0.16);
}

.pin-label {
  fill: #ffffff;
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
}

.pin-country {
  fill: #a9bad0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.pin-core {
  fill: var(--brand);
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 8px 16px rgba(47, 124, 255, 0.42));
}

.pin-ring {
  fill: rgba(47, 124, 255, 0.18);
  stroke: rgba(103, 163, 255, 0.65);
  stroke-width: 2;
}

.pin-group.is-active .pin-core { fill: var(--accent); }
.pin-group.is-active .pin-ring {
  fill: rgba(214, 181, 109, 0.2);
  stroke: var(--accent);
}

.active-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  background: rgba(6, 19, 38, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  transition: 220ms ease;
}

.active-card.is-collapsed {
  padding: 10px;
  border-radius: 24px;
}

.active-card.is-collapsed .active-card-body { display: none; }

.map-drawer {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  color: #dbe9ff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.map-drawer[aria-disabled="true"] {
  cursor: default;
}

.drawer-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  background: rgba(47,124,255,0.18);
  font-weight: 900;
}

.drawer-text strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
}

.drawer-text span {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.86rem;
}

.drawer-chevron {
  color: #ffffff;
  font-size: 1.3rem;
}

.active-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.active-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.active-card-body p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.active-card-toggle {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: #dbe9ff;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.active-card-toggle:hover,
.active-card-toggle:focus-visible,
.map-drawer:hover,
.map-drawer:focus-visible {
  outline: none;
  background: rgba(47,124,255,0.12);
}

.active-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.mini-link,
.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe9ff;
  background: rgba(255,255,255,0.07);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.detail-btn { width: 100%; }
.detail-btn span { margin-left: auto; }

.mini-link.disabled {
  opacity: 0.48;
  pointer-events: none;
}

.church-details {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #c8d6e8;
  font-size: 0.94rem;
  line-height: 1.5;
}

.church-details span {
  display: block;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
}

.section { padding: 72px 0; }
.section-directory { padding-top: 64px; }
.section-pastors { padding-top: 30px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.clean-heading { align-items: center; }

.section-kicker {
  margin-bottom: 10px;
  color: var(--brand-soft);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.filters {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  min-height: 50px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  font-weight: 900;
}

.filter-btn.active {
  color: #fff;
  background: rgba(47,124,255,0.24);
  border-color: rgba(103, 163, 255, 0.5);
  box-shadow: 0 14px 38px rgba(47,124,255,0.18);
}

.church-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.church-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
  box-shadow: 0 22px 56px rgba(0,0,0,0.18);
  transition: 180ms ease;
  overflow: hidden;
}

.church-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 163, 255, 0.42);
}

.church-photo {
  min-height: 145px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 20px;
  position: relative;
  background: linear-gradient(135deg, rgba(47,124,255,0.28), rgba(214,181,109,0.14));
}

.church-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 19, 38, 0.04), rgba(6, 19, 38, 0.50));
}

.church-photo img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 4px 2px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(103, 163, 255, 0.28);
  border-radius: 999px;
  color: #d7e7ff;
  background: rgba(47,124,255,0.14);
  font-size: 0.75rem;
  font-weight: 900;
}

.tag.gold {
  color: #ffe6a9;
  background: rgba(214,181,109,0.12);
  border-color: rgba(214,181,109,0.3);
}

.church-card h3,
.pastor-card h3,
.team-card h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

.church-location {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card-actions {
  margin-top: auto;
  padding-top: 4px;
}

.pastor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pastor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
  box-shadow: 0 22px 56px rgba(0,0,0,0.18);
}

.pastor-photo {
  min-height: 235px;
  position: relative;
  background: linear-gradient(135deg, rgba(47,124,255,0.24), rgba(214,181,109,0.14));
}

.pastor-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 19, 38, 0.02), rgba(6, 19, 38, 0.08));
}

.pastor-photo img {
  width: 100%;
  height: 100%;
  min-height: 235px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.pastor-body {
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(6, 19, 38, 0.46);
}

.pastor-body .section-kicker {
  margin-bottom: 6px;
  font-size: 0.72rem;
}

.pastor-body p {
  margin: 0;
  color: #ffffff;
  font-weight: 850;
  line-height: 1.45;
}

.team-card {
  margin-top: 28px;
  min-height: 270px;
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(47,124,255,0.18), rgba(214,181,109,0.08)),
    rgba(255,255,255,0.07);
  box-shadow: 0 26px 70px rgba(0,0,0,0.22);
}

.team-copy {
  padding: 28px;
  align-self: center;
}

.team-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(103,163,255,0.35);
  border-radius: 18px;
  background: rgba(47,124,255,0.2);
}

.team-copy h3 { font-size: 1.8rem; }
.team-copy p { color: var(--muted); line-height: 1.6; }
.team-lead {
  max-width: 280px;
  color: #ffffff !important;
  font-size: 1.12rem;
  font-weight: 800;
}

.team-photo {
  min-height: 270px;
  background:
    linear-gradient(90deg, rgba(6,19,38,0.35), rgba(6,19,38,0.02)),
    url('../assets/equipo-pastoral.jpg');
  background-size: cover;
  background-position: center;
}

.vision-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: stretch;
}

.vision-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.07);
  box-shadow: 0 22px 56px rgba(0,0,0,0.16);
}

.vision-card.featured {
  background:
    linear-gradient(135deg, rgba(47,124,255,0.18), rgba(214,181,109,0.08)),
    rgba(255,255,255,0.08);
}

.vision-card h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.vision-card p,
.vision-card li {
  color: var(--muted);
  line-height: 1.68;
}

.vision-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer a {
  color: #dbe9ff;
  font-weight: 800;
}


/* Detalle expandible de iglesias locales */
.church-card.is-selected {
  transform: translateY(-4px);
  border-color: rgba(103, 163, 255, 0.58);
  box-shadow:
    0 26px 70px rgba(0,0,0,0.24),
    0 0 0 1px rgba(47,124,255,0.22) inset;
}

.church-card.is-selected .detail-btn {
  color: #ffffff;
  border-color: rgba(103, 163, 255, 0.5);
  background: linear-gradient(135deg, rgba(47,124,255,0.34), rgba(20,86,216,0.22));
}

.church-expanded-panel {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  margin: 2px 0 14px;
  border: 1px solid rgba(103, 163, 255, 0.3);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(47,124,255,0.28), transparent 34%),
    radial-gradient(circle at 95% 20%, rgba(214,181,109,0.16), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
  animation: revealDetails 220ms ease both;
}

.expanded-glow {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(47,124,255,0.35), transparent 34%, rgba(103,163,255,0.18));
  opacity: 0.32;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.expanded-main {
  position: relative;
  padding: 24px;
}

.expanded-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.expanded-heading h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.expanded-heading p {
  max-width: 780px;
  margin: 0;
  color: #c8d6e8;
  line-height: 1.65;
}

.expanded-close {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: #dbe9ff;
  background: rgba(255,255,255,0.07);
  cursor: pointer;
  font-weight: 900;
}

.expanded-close:hover,
.expanded-close:focus-visible {
  outline: none;
  color: #ffffff;
  background: rgba(47,124,255,0.14);
}

.expanded-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 14px;
}

.info-tile {
  display: flex;
  gap: 13px;
  min-height: 124px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  background: rgba(6, 19, 38, 0.42);
}

.info-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103,163,255,0.28);
  border-radius: 14px;
  background: rgba(47,124,255,0.16);
}

.info-tile strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-weight: 900;
}

.info-tile p,
.info-tile ul {
  margin: 0;
  padding: 0;
  color: var(--muted);
  line-height: 1.55;
}

.info-tile ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.info-tile li::before {
  content: "• ";
  color: var(--brand-soft);
  font-weight: 900;
}

.expanded-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.expanded-links .mini-link {
  min-height: 42px;
}

@keyframes revealDetails {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .church-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .expanded-info-grid { grid-template-columns: 1fr; }

  .hero-grid,
  .vision-grid,
  .team-card {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 54px; }
  .map-shell { min-height: 620px; }
  .map-canvas { height: 620px; }
  .church-grid,
  .pastor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .expanded-heading { flex-direction: column; }
  .expanded-close { width: 100%; }
  .expanded-main { padding: 18px; }

  .menu-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(6, 19, 38, 0.95);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 14px; }

  .hero-stats,
  .church-grid,
  .pastor-grid {
    grid-template-columns: 1fr;
  }

  .filters { justify-content: flex-start; }
  .section-heading { display: block; }
  .clean-heading .filters { margin-top: 18px; }
  .section { padding: 56px 0; }
  .pastor-photo, .pastor-photo img { min-height: 245px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand small { display: none; }
  .hero { padding-top: 40px; }
  .map-shell { min-height: 570px; border-radius: 26px; }
  .map-canvas { height: 570px; }
  .map-topbar { align-items: flex-start; flex-direction: column; }
  .active-card { padding: 14px; left: 12px; right: 12px; bottom: 12px; }
  .active-card-header { align-items: flex-start; }
  .map-drawer { min-height: 58px; padding: 0 6px; }
  .drawer-text span { font-size: 0.8rem; }
  .church-photo, .church-photo img { min-height: 160px; }
  .team-copy { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
