:root{
  --max:1120px;
  --heroMax:720px;
  --pagePad:20px;
  --line:#e5e7eb;
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --accent:#2563eb;
  --accent-weak:rgba(37,99,235,.14);
  --err:#dc2626;
  --shadow: 0 10px 24px rgba(2,6,23,.08);
  --radius:14px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background: var(--bg);
}

.section{background:#fff;}

.containerWide{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pagePad);
}

.containerNarrow{
  max-width: var(--heroMax);
  margin: 0 auto;
  padding: 0 var(--pagePad);
}

/* HEADER */
.headerWrap{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 0;
}
.brandRow{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.hint{color:var(--muted);font-size:13px;}

.siteLogo{
  width:36px;height:auto;display:block;max-height:48px;
  background:#fff;padding:4px;border-radius:8px;object-fit:contain
}
.brandNameImg{width:80px;height:auto;display:block;object-fit:contain}

/* HERO */
.heroWrap{ border-bottom:none; }
body.has-results .heroWrap{ border-bottom:1px solid var(--line); }

.hero{
  max-width: var(--heroMax);
  margin: 0 auto;
  text-align:center;
  padding: 18px 0 14px;
}
h1{margin:0 0 8px;font-size:28px;line-height:1.15;}
h2{margin:0 0 22px;font-weight:600;font-size:14px;color:var(--muted);}

.searchCol{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}

.srOnly{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

input{
  width:min(var(--heroMax), 100%);
  padding:12px 12px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  outline:none;
  box-shadow: var(--shadow);
}
input:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px var(--accent-weak);
}

button{
  width:min(var(--heroMax), 100%);
  padding:12px 16px;
  border-radius: var(--radius);
  border:1px solid rgba(37,99,235,.25);
  background: var(--accent);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow: var(--shadow);
}
button:focus{
  outline:none;
  box-shadow: 0 0 0 4px var(--accent-weak);
}
button:disabled{opacity:.55;cursor:not-allowed}

/* contador */
.statusBar{
  margin-top:14px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 18px;
}
#contador{
  color:var(--muted);
  font-size:13px;
  display:none;
}

/* mensagens */
#mensagemLocalizacao{
  margin:10px auto 0;
  max-width: var(--heroMax);
  display:none;
  color: var(--muted);
  font-size:12.5px;
  line-height:1.35;
}
#mensagem{
  margin:10px auto 0;
  max-width: var(--heroMax);
  display:none;
  font-size:13px;
  line-height:1.35;
  text-align:center;
}
#mensagem.msg-info{ color: var(--muted); }
#mensagem.msg-hint{ color: var(--muted); }
#mensagem.msg-warn{ color: #b45309; }
#mensagem.msg-err{ color: var(--err); }

/* RESULTADOS */
.resultsWrap{
  border-bottom:1px solid var(--line);
}

/* ✅ Grid: mobile 1 coluna | desktop 2+ colunas */
#resultados.cards{
  padding: 16px 0 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr; /* mobile */
  justify-content: start;
}

/* desktop: 2 colunas garantidas quando couber */
@media (min-width: 860px){
  #resultados.cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* telas grandes: 3 colunas quando couber */
@media (min-width: 1100px){
  #resultados.cards{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card ocupa a coluna inteira */
.card{
  width:100%;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:#fff;
  padding:14px 16px;
  box-shadow: var(--shadow);
}

.cardTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.title{
  font-size:15px;
  font-weight:900;
  margin:0;
  line-height:1.2;
}

.meta{
  margin-top:4px;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.35;
}

/* compat: se você usa .cardMeta em vez de .meta */
.cardMeta{
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.distance{
  font-size:12px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  color:var(--muted);
  background:#fff;
  white-space:nowrap;
}

/* ações */
.actions{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

a.btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 9px;
  border-radius: 12px;
  border:1px solid var(--line);
  background:#fff;
  color:#0b1b4a;
  font-weight:900;
  font-size:12.5px;
  line-height:1;
}
a.btn:hover{background: rgba(37,99,235,.06);}
a.btn:focus{
  outline:none;
  box-shadow: 0 0 0 4px var(--accent-weak);
}
.btnIcon{width:16px;height:16px;flex:0 0 auto;}

/* FOOTER */
.siteFooter{
  border-top:1px solid var(--line);
  background:var(--bg);
  color:#555;
  padding:28px 0;
  font-size:13px;
  line-height:20px;
}
.siteFooter, .siteFooter * { box-shadow: none; }
.footerSimple{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.footerRow{display:flex;justify-content:space-between;align-items:center;width:100%;gap:20px;flex-wrap:wrap}
.footerMain{display:flex;gap:12px;align-items:center}
.footerMain .siteLogo{width:28px;height:auto;display:block;background:transparent;padding:0;border-radius:0;}
.footerTag{font-size:13px;color:var(--muted);margin-top:2px;line-height:18px}
.footerEmail{color:var(--muted);text-decoration:none;font-weight:500;font-size:13px}
.footerEmail:hover,.footerEmail:focus{text-decoration:underline;color:var(--text)}
.footerBottom{margin-top:18px;text-align:left;font-size:12px;color:var(--muted);line-height:18px;opacity:.85}

/* RESPONSIVO GERAL */
@media (max-width:740px){
  :root{ --pagePad: 16px; }
  h1{font-size:24px}
  header{flex-direction:column;align-items:flex-start}
  .hint{align-self:flex-start}
}

#mensagemLocalizacao svg,
#mensagemLocalizacao img{
  width: 56px !important;
  height: 56px !important;
  display: inline-block;
}

#mensagemLocalizacao.geoIcon{
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
}