.iprb-map-page-main { width: 100%; }
.iprb-map-app { --green:#183f30; --green-2:#2b6049; --red:#b3262e; --ink:#17211d; --muted:#5f6d66; --line:#dce4df; position:relative; z-index:0; isolation:isolate; width:min(1120px, calc(100% - 36px)); margin:0 auto; padding:72px 0 80px; color:var(--ink); }
.iprb-map-heading { max-width:760px; margin:0 auto 32px; text-align:center; }
.iprb-map-eyebrow { margin:0 0 8px; color:var(--red); font-size:.75rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.iprb-map-heading > .iprb-map-eyebrow { display:block; width:100%; max-width:none; margin:0 auto 8px; text-align:center; }
.iprb-map-heading h1 { margin:0; color:var(--green); font-size:clamp(2rem, 4vw, 3.5rem); line-height:1.05; }
.iprb-map-heading > p:last-child { max-width:680px; margin:18px auto 0; color:var(--muted); font-size:1.08rem; line-height:1.65; }
.iprb-map-impact { margin:40px 0 0; }
.iprb-map-impact-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:stretch; gap:12px; }
.iprb-map-impact-grid article { display:flex; flex-direction:column; justify-content:center; min-width:0; min-height:138px; padding:20px 10px; border:1px solid rgba(255,255,255,.16); border-radius:14px; background:linear-gradient(145deg,#123653 0%,#245d8c 100%); text-align:center; box-shadow:0 14px 30px rgba(16,42,67,.14); }
.iprb-map-impact-grid article::before { content:""; align-self:center; width:24px; height:3px; margin-bottom:14px; border-radius:999px; background:#d1a550; }
.iprb-map-impact-grid strong { color:#fff; font-size:clamp(1.45rem,2.2vw,2rem); line-height:1; letter-spacing:-.025em; }
.iprb-map-impact-grid span { margin-top:9px; color:#dbe8f1; font-size:.66rem; font-weight:900; letter-spacing:.055em; line-height:1.25; text-transform:uppercase; }
.iprb-map-search { width:min(760px, 100%); margin:0 auto 24px; }
.iprb-map-search > label { display:block; margin-bottom:8px; color:var(--green); font-size:.85rem; font-weight:800; }
.iprb-map-search-row { display:flex; gap:10px; }
.iprb-map-combobox { position:relative; flex:1; }
.iprb-map-search input { width:100%; min-height:54px; padding:0 18px; border:1px solid #bccbc2; border-radius:10px; background:#fff; color:var(--ink); font:inherit; box-shadow:0 8px 24px rgba(26,58,44,.08); }
.iprb-map-search input:focus { outline:3px solid rgba(179,38,46,.16); border-color:var(--red); }
.iprb-map-search button[type=submit] { min-height:54px; padding:0 25px; border:0; border-radius:10px; background:#2368a2; color:#fff; font-weight:800; cursor:pointer; box-shadow:0 8px 18px rgba(35,104,162,.18); }
.iprb-map-search button[type=submit]:hover,.iprb-map-search button[type=submit]:focus-visible { background:#bd9140; outline:none; }
.iprb-map-suggestions { position:absolute; z-index:1200; top:calc(100% + 6px); left:0; right:0; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 18px 45px rgba(20,42,32,.18); }
.iprb-map-suggestions button { display:flex; justify-content:space-between; width:100%; padding:12px 16px; border:0; border-bottom:1px solid #edf1ef; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.iprb-map-suggestions button:hover,.iprb-map-suggestions button:focus { background:#eef5f1; outline:none; }
.iprb-map-suggestions span { color:var(--muted); font-size:.84rem; font-weight:800; }
.iprb-map-status { margin:0 auto 12px; color:var(--muted); font-size:.9rem; text-align:center; }
.iprb-map-canvas { position:relative; z-index:0; isolation:isolate; height:min(690px, 72vh); min-height:480px; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#f4f7f5; box-shadow:0 22px 60px rgba(26,58,44,.12); }
.iprb-map-canvas .leaflet-overlay-pane svg { width:auto !important; height:auto !important; fill:initial; stroke:initial; stroke-linecap:initial; stroke-linejoin:initial; stroke-width:initial; flex:none; }
.iprb-map-canvas .leaflet-tooltip { padding:7px 10px; border:0; border-radius:6px; background:#17211d; color:#fff; font-weight:800; box-shadow:0 6px 16px rgba(0,0,0,.18); }
.iprb-map-canvas .leaflet-tooltip:before { display:none; }
.iprb-map-home { width:34px; height:34px; padding:7px; border:0; background:#fff; color:var(--green); cursor:pointer; }
.iprb-map-home svg { display:block; width:20px; height:20px; fill:currentColor; }
.iprb-map-view-control { overflow:hidden; background:#fff; }
.iprb-map-view-control button { display:block; width:34px; height:34px; padding:6px; border:0; border-bottom:1px solid #ccc; background:#fff; cursor:pointer; }
.iprb-map-view-control button:last-child { border-bottom:0; }
.iprb-map-view-control svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.35; stroke-linejoin:round; }
.iprb-map-view-states { color:#2368a2; }
.iprb-map-view-cities { color:#9b742f; }
.iprb-map-view-control button:hover,.iprb-map-view-control button:focus-visible { background:#eef5fb; outline:none; }
.iprb-map-view-states.is-active { background:#2368a2; color:#fff; }
.iprb-map-view-cities.is-active { background:#bd9140; color:#fff; }
.iprb-map-view-control button:disabled { opacity:.45; cursor:wait; }
.iprb-map-legend { display:flex; justify-content:center; flex-wrap:wrap; gap:22px; margin-top:16px; color:var(--muted); font-size:.86rem; }
.iprb-map-legend[hidden] { display:none !important; }
.iprb-map-legend span { display:inline-flex; align-items:center; gap:8px; }
.iprb-map-legend i { width:16px; height:16px; border:2px solid #fff; border-radius:4px; box-shadow:0 0 0 1px #ccd7d1; }
.iprb-map-legend .has-churches { background:#bd9140; }
.iprb-map-legend .no-churches { background:#d8e2dc; }
.iprb-map-modal[hidden] { display:none; }
.iprb-map-modal { position:fixed; z-index:99999; inset:0; display:grid; place-items:center; padding:24px; }
.iprb-map-modal-backdrop { position:absolute; inset:0; background:rgba(9,21,16,.72); backdrop-filter:blur(4px); }
.iprb-map-dialog { position:relative; width:min(760px, 100%); max-height:min(760px, calc(100vh - 48px)); overflow:auto; border-radius:18px; background:#fff; box-shadow:0 30px 100px rgba(0,0,0,.3); }
.iprb-map-dialog-head { position:sticky; z-index:2; top:0; padding:28px 68px 22px 28px; border-bottom:1px solid var(--line,#dce4df); background:#fff; }
.iprb-map-dialog-head h2 { margin:0; color:#183f30; font-size:clamp(1.5rem, 3vw, 2.2rem); }
.iprb-map-dialog-head > p:last-child { margin:8px 0 0; color:#5f6d66; }
.iprb-map-modal-close { position:absolute; z-index:4; top:20px; right:20px; width:40px; height:40px; border:0; border-radius:50%; background:#edf3ef; color:#183f30; font-size:26px; line-height:1; cursor:pointer; }
.iprb-map-results { padding:0 28px 28px; }
.iprb-map-unit { padding:24px 0; border-bottom:1px solid #e3eae6; }
.iprb-map-unit:last-child { border-bottom:0; }
.iprb-map-unit h3 { margin:0 0 9px; color:#183f30; font-size:1.16rem; line-height:1.3; }
.iprb-map-unit p { margin:7px 0 0; color:#38463f; line-height:1.55; }
.iprb-map-unit-meta { color:#b3262e !important; font-size:.82rem; letter-spacing:.04em; text-transform:uppercase; }
.iprb-map-unit-pastor { color:#17446f !important; font-size:.92rem; }
.iprb-map-unit-pastor strong { color:#183f30; }
.iprb-map-unit-place { color:#65736c !important; font-size:.92rem; }
.iprb-map-modal-open { overflow:hidden; }
@media (max-width:680px) {
  .iprb-map-app { width:min(100% - 24px, 1120px); padding:44px 0 56px; }
  .iprb-map-search-row { display:block; }
  .iprb-map-search button[type=submit] { width:100%; margin-top:9px; }
  .iprb-map-canvas { min-height:440px; height:64vh; border-radius:12px; }
  .iprb-map-modal { padding:10px; }
  .iprb-map-dialog { max-height:calc(100vh - 20px); border-radius:14px; }
  .iprb-map-dialog-head { padding:24px 58px 18px 20px; }
  .iprb-map-results { padding:0 20px 20px; }
  .iprb-map-unit { padding:20px 0; }
  .iprb-map-impact-grid { grid-template-columns:1fr 1fr; }
  .iprb-map-impact-grid article { min-height:108px; }
  .iprb-map-impact-grid article:last-child { grid-column:1 / -1; }
}



.iprb-map-mode-tabs { display:grid; grid-template-columns:1fr 1fr; gap:14px; width:min(760px,100%); margin:0 auto 28px; }
.iprb-map-mode-tabs button { position:relative; display:grid; grid-template-columns:1fr auto; align-items:center; gap:14px; min-height:86px; padding:15px 18px; overflow:hidden; border:2px solid #d5e0e7; border-radius:14px; background:#fff; color:#17446f; text-align:left; cursor:pointer; box-shadow:0 10px 24px rgba(23,68,111,.08); transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease,background .2s ease; }
.iprb-map-mode-tabs button::before { content:""; position:absolute; inset:0 auto 0 0; width:5px; background:#d5e0e7; }
.iprb-map-mode-tabs button:hover { transform:translateY(-2px); border-color:#8eafc9; box-shadow:0 14px 30px rgba(23,68,111,.13); }
.iprb-map-mode-tabs button > span { display:grid; gap:2px; }
.iprb-map-mode-tabs button small { color:#718493; font-size:.62rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.iprb-map-mode-tabs button strong { color:inherit; font-size:1.25rem; line-height:1.1; }
.iprb-map-mode-tabs button em { display:grid; place-items:center; min-width:48px; height:38px; padding:0 10px; border-radius:999px; background:#e7f0f6; color:#2368a2; font-size:.78rem; font-style:normal; font-weight:900; }
.iprb-map-mode-tabs button.is-active { border-color:#2368a2; background:#2368a2; color:#fff; box-shadow:0 14px 30px rgba(35,104,162,.22); }
.iprb-map-mode-tabs button.is-active::before { background:#d1a550; }
.iprb-map-mode-tabs button.is-active small { color:#d9e8f3; }
.iprb-map-mode-tabs button.is-active em { background:rgba(255,255,255,.16); color:#fff; }
.iprb-map-suggestions button > span { color:var(--ink); font-size:.92rem; font-weight:700; }
.iprb-map-suggestions button > small { color:var(--muted); font-size:.76rem; font-weight:800; }
.iprb-map-country-city { padding:22px 0 0; }
.iprb-map-country-city > h3 { position:sticky; top:116px; z-index:1; margin:0; padding:11px 14px; border-left:4px solid #bd9140; background:#eef5fb; color:#17446f; font-size:1rem; }
.iprb-map-country-city .iprb-map-unit { margin-left:14px; }
@media (max-width:520px) {
  .iprb-map-impact { margin-top:30px; }
  .iprb-map-impact-grid { gap:8px; }
  .iprb-map-impact-grid article { min-height:86px; padding:13px 6px; border-radius:10px; }
  .iprb-map-impact-grid article::before { width:20px; margin-bottom:9px; }
  .iprb-map-impact-grid strong { font-size:1.35rem; }
  .iprb-map-impact-grid span { margin-top:6px; font-size:.56rem; }
  .iprb-map-mode-tabs { gap:8px; margin-bottom:24px; }
  .iprb-map-mode-tabs button { min-width:0; min-height:76px; gap:7px; padding:11px 9px 11px 14px; border-radius:11px; }
  .iprb-map-mode-tabs button strong { font-size:1rem; }
  .iprb-map-mode-tabs button em { min-width:38px; height:31px; padding:0 7px; font-size:.68rem; }
  .iprb-map-country-city > h3 { top:108px; }
}
