:root{
  --bg:#f6f8fc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:rgba(15,23,42,.10);
  --shadow:0 18px 50px rgba(2,6,23,.10);
  --shadow2:0 10px 25px rgba(2,6,23,.08);
  --brand:#2563eb;
  --brand2:#1d4ed8;
  --gold:#fbbf24;
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 400px at 30% -20%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(1200px 400px at 80% -30%, rgba(251,191,36,.16), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 34px;
}

/* ===== TOPBAR ===== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
}

.topbarInner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}

.brandBox{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}

.brandLogo{
  width:42px;
  height:42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(29,78,216,1));
  box-shadow: 0 14px 30px rgba(37,99,235,.22);
  position:relative;
  overflow:hidden;
}

.brandLogo:after{
  content:"";
  position:absolute;
  inset:-20px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 55%);
  transform: rotate(18deg);
}

.brandText{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brandText strong{ font-size: 15px; letter-spacing:.2px; }
.brandText span{ font-size: 12px; color: var(--muted); margin-top:4px; }

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

.btnTop{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.80);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btnTop:hover{ transform: translateY(-1px); box-shadow: 0 16px 30px rgba(2,6,23,.10); }

.btnPrimary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  border-color: rgba(37,99,235,.25);
}
.btnGold{
  background: linear-gradient(135deg, rgba(251,191,36,1), rgba(245,158,11,1));
  color:#111827;
  border-color: rgba(245,158,11,.25);
}
.btnDanger{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.25);
  color: #b91c1c;
}

/* ===== HERO ===== */
.hero{
  margin-top: 18px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 24px;
  padding: 18px 18px;
  box-shadow: var(--shadow2);
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  align-items:center;
}
.heroTitle{
  margin:0;
  font-size: 22px;
  letter-spacing:-.4px;
}
.heroSub{
  margin:8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height:1.35;
}

/* ===== BUSCA (FIXA) ===== */
.searchWrap{
  margin-top: 14px;
  position: relative;
  top: auto;
  z-index: 1;
}

.searchCard{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  box-shadow: var(--shadow2);
  padding: 12px;
}
.searchRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.inp{
  flex:1;
  min-width: 180px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
  outline:none;
  background:#fff;
  font-size: 14px;
}
.inp:focus{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.btnSearch{
  padding: 12px 14px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  font-weight: 1000;
  cursor:pointer;
  box-shadow: 0 14px 30px rgba(37,99,235,.18);
}
.btnSearch:hover{ filter: brightness(1.02); }

.btnGeo{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: var(--text);
  font-weight: 1000;
  cursor:pointer;
}
.btnGeo:hover{
  box-shadow: 0 16px 28px rgba(2,6,23,.10);
  transform: translateY(-1px);
}

.geoStatus{
  margin-top:10px;
  font-size: 13px;
  color: var(--muted);
  display:none;
}

/* ===== LISTA ===== */
.listArea{ margin-top: 16px; }

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

.card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  display:flex;
  flex-direction:column;
  height: 100%;
  position: relative;
}


.cardTop{
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(251,191,36,.12));
}

.cardTop img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.badgeDestaque{
  position:absolute;
  top: 12px;
  left: 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  font-weight: 1000;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}
.badgeDot{
  width:10px;height:10px;border-radius:999px;background: var(--gold);
  box-shadow: 0 0 0 4px rgba(251,191,36,.22);
}

.cardBody{
  padding: 14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  flex: 1;
}

.cardTitle{
  margin:0;
  font-size: 16px;
  letter-spacing:-.2px;
  font-weight: 1000;
  line-height: 1.2;
}
.cardTitle a{ color: var(--text); }
.cardTitle a:hover{ color: var(--brand2); }

.cardMeta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.metaPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.80);
}

.cardDesc{
  margin:0;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
}

/* ===== BOTÃO VER NEGÓCIO ===== */
.cardActions{
  margin-top: auto;      /* empurra pro final do card */
  display: flex;
  justify-content: center; /* centraliza o botão */
  padding-top: 12px;     /* respiro */
}

.btnVer{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: 1000;
  border: 1px solid rgba(37,99,235,.25);
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(29,78,216,1));
  color: #fff;
  box-shadow: 0 14px 30px rgba(37,99,235,.18);
  text-decoration:none;
  transition: transform .15s ease, filter .15s ease;
}
.btnVer:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}


.emptyBox{
  margin-top: 14px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  padding: 16px;
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

/* ===== PAGINAÇÃO ===== */
.paginacaoWrap{
  max-width:1100px;
  margin:18px auto 0;
  padding:0 14px;
}

.paginacao{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}

.pg{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  color:#0f172a;
  font-weight:900;
  text-decoration:none;
}

.pg.ativo{
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
}

/* ===== BOTÃO TOPO ===== */
#btnTopo{
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(2,6,23,.18);
  cursor: pointer;
  display:none;
  align-items:center;
  justify-content:center;
  transition: transform .15s ease;
}
#btnTopo:hover{ transform: translateY(-2px); }
#btnTopo svg{ width:22px; height:22px; }

/* ===== RESPONSIVO ===== */
@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .gridCards{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brandBox{ min-width: unset; }
  
}

@media (max-width: 620px){
  .topbarInner{ align-items:flex-start; flex-direction:column; }
  .actionsTop{ width:100%; justify-content:flex-start; }
  
  .searchRow{ flex-direction:column; }
  .inp{ min-width: 0; width:100%; }
  .btnSearch, .btnGeo{ width:100%; }
  .gridCards{ grid-template-columns: 1fr; }
  .cardTop{ height: 190px; }
  .btnVer{ width:100%; }
}

/* dropdown com setinha */
.inp.sel{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,.8) 50%),
    linear-gradient(135deg, rgba(15,23,42,.8) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 55%,
    calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* boto "Portal" neutro */
.btnTop.btnGhost{
  background: rgba(15,23,42,.06);
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.10);
}

/* lupa (aparece só no mobile) */
.btnSearchIcon{
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}
.btnSearchIcon svg{ width: 22px; height: 22px; }

/* modal */
.modalOverlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  z-index: 9999;
  padding: 16px;
}
.modalOverlay.open{ display: flex; align-items: center; justify-content: center; }

.modalCard{
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(2,6,23,.22);
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.10);
}
.modalHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(15,23,42,.10);
}
.modalClose{
  border: 0;
  background: rgba(15,23,42,.06);
  color: #0f172a;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
}
.modalBody{ padding: 14px; }

.lbl{
  display: block;
  font-size: 13px;
  color: rgba(15,23,42,.70);
  margin: 10px 0 6px;
}

.modalActions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* MOBILE: some com a barra de busca e fica só a lupa */
@media (max-width: 768px){
    .searchRow{
    display:flex;
    justify-content:flex-end;
    gap:10px;
  }


  #f_q, #f_cidade, #f_categoria,
  .btnGeo, .btnSearch{
    display: none !important;
  }

  .btnSearchIcon{
    display: inline-flex;
  }
}

  .searchCard{ padding: 10px; }
  .btnSearchIcon{ width: 52px; height: 52px; border-radius: 16px; }

.cardTopLink{
  display:block;
  text-decoration:none;
  color:inherit;
}
.cardTopLink .cardTop img{
  display:block;
}

/* FORÇA botão "Ver negócio" retangular */
.cardActions .btnVer{
  border-radius: 12px !important;
}

.cardTop{ position:relative; }

.bannerCity{
  position:absolute;
  right:8px;          /* mais para a direita */
  bottom:5px;         /* mais para baixo */
  padding:7px 11px;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
  color:#fff;
  background: rgba(2, 8, 23, 0.75);   /* fundo mais escuro */
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  max-width: 85%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


