/* Home church locator: search first, with quieter location and directory actions. */
.home .banner-carousel + #igrejas.church-locator {padding-block:8px clamp(15px,2.25vw,27px)}
.home #igrejas > .locator-card {
  display:grid;
  grid-template-columns:minmax(15rem,auto) minmax(0,1fr) auto;
  align-items:center;
  gap:4px clamp(12px,2vw,24px);
  padding:clamp(14px,2vw,22px) clamp(15px,2.35vw,28px) 6px;
  border:1px solid var(--divider);
  border-radius:16px;
  background:var(--paper);
  color:var(--ink);
}
#igrejas .locator-intro {display:flex;align-items:center;gap:12px;min-width:0}
#igrejas .locator-pin {
  display:grid;
  place-items:center;
  flex:0 0 42px;
  height:42px;
  border-radius:11px;
  background:var(--soft);
  color:var(--accent);
}
#igrejas .locator-pin svg {width:23px;height:23px}
.home #igrejas .locator-intro h2 {margin:0;color:var(--dark);font-size:clamp(1.42rem,2.15vw,1.9rem);line-height:1.04}
#igrejas .locator-intro p {margin:4px 0 0;color:#536579;font-size:.9375rem;line-height:1.3}
#igrejas .locator-field {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  min-height:50px;
  padding-inline:13px 10px;
  border:1px solid #9cafc7;
  border-radius:10px;
  background:var(--surface);
  color:var(--accent);
}
#igrejas .locator-field > svg {flex:0 0 21px;height:21px;pointer-events:none}
#igrejas .locator-field:focus-within {border-color:var(--accent);outline:2px solid var(--accent);outline-offset:2px;background:var(--paper)}
#igrejas .locator-field input {
  width:100%;
  min-width:0;
  min-height:48px;
  border:0;
  outline:none;
  padding:0;
  appearance:auto;
  background:transparent;
  color:var(--dark);
  font:inherit;
}
#igrejas .locator-field input::placeholder {color:#536579;opacity:1}
#igrejas .locator-nearby {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  padding:4px 12px;
  border:1px solid #cad7e6;
  border-radius:9px;
  background:var(--paper);
  color:var(--dark);
  font:inherit;
  font-size:.9375rem;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}
#igrejas .locator-nearby svg {width:18px;height:18px}
#igrejas .locator-nearby:hover {background:var(--soft)}
#igrejas .locator-nearby:disabled {cursor:wait;opacity:.65}
#igrejas .locator-disclosure {grid-column:1 / -1;min-width:0}
.home #igrejas .locator-browse {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  width:fit-content;
  min-height:44px;
  margin-inline-start:auto;
  padding:4px 2px;
  color:var(--accent);
  font-size:.9375rem;
  font-weight:600;
  list-style:none;
}
#igrejas .locator-browse::-webkit-details-marker {display:none}
#igrejas .locator-browse:hover {text-decoration:underline;text-underline-offset:3px}
#igrejas .locator-browse svg {width:17px;height:17px}
#igrejas details[open] .locator-browse svg {transform:rotate(180deg)}
.home #igrejas .locator-browse:focus-visible,
#igrejas .locator-nearby:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
#igrejas #church-status {margin:3px 0 9px;color:#536579}
#igrejas #church-results {margin-bottom:8px}
@media(max-width:760px) {
  .home #igrejas > .locator-card {
    grid-template-columns:minmax(0,1fr) auto;
    gap:9px 10px;
    padding:14px 14px 8px;
  }
  #igrejas .locator-intro {grid-column:1 / -1}
  #igrejas .locator-pin {flex-basis:37px;height:37px}
  #igrejas .locator-pin svg {width:21px;height:21px}
  #igrejas .locator-disclosure {margin-top:-6px}
}
@media(max-width:540px) {
  #igrejas .locator-field {grid-column:1 / -1}
  #igrejas .locator-nearby {
    grid-area:3 / 1 / 4 / 2;
    justify-self:start;
    align-self:start;
    z-index:1;
    margin:0;
  }
  #igrejas .locator-disclosure {grid-area:3 / 1 / 4 / -1;margin:0}
}
@media(max-width:360px) {
  #igrejas .locator-nearby {padding-inline:8px;font-size:.875rem;gap:5px}
  #igrejas .locator-nearby svg {width:16px;height:16px}
  .home #igrejas .locator-browse {font-size:.875rem;gap:4px}
  #igrejas .locator-browse svg {width:14px;height:14px}
}
@media(max-width:315px) {
  #igrejas .locator-nearby {grid-area:3 / 1 / 4 / -1}
  #igrejas .locator-disclosure {grid-area:4 / 1 / 5 / -1}
  .home #igrejas .locator-browse {margin-inline-start:0}
}
