:root {
  --primary: #1a73e8;
  --text: #202124;
  --muted: #4d5156;
  --border: #dfe1e5;
  --bg: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---- Página inicial (rodapé fixo ao fundo) ---- */
.account-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 16px 22px;
}
.account-bar a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.account-bar a:hover { color: var(--primary); }

.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  padding: 1rem;
}

.home-center { text-align: center; max-width: 620px; width: 100%; margin: auto; }

.logo {
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--primary, #202124);
  margin: 0 0 1.5rem;
}
.logo-dot { color: var(--primary, #1a73e8); }

.region-note {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin: -0.5rem 0 1.25rem;
}

.bday-note {
  margin: 18px 0 0;
  padding: 12px 16px;
  background: #fff8e1;
  border: 1px solid #fccc63;
  border-radius: 12px;
  color: #5d4037;
  font-size: 1rem;
  line-height: 1.4;
}
.bday-note small { color: #8d6e63; }

.search-form {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.18);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}
.search-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
}
.search-btn:hover { background: #1558b0; }

/* ---- Barra superior das resultados ---- */
.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.logo-sm {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo-sm span { color: var(--primary); }
.top-form { max-width: 560px; flex: 1; box-shadow: 0 1px 3px rgba(32,33,36,.2); }
.top-admin { color: var(--muted); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.top-admin:hover { color: var(--primary); }
.top-account {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---- Lista de resultados ---- */
.results {
  max-width: 1100px;
  margin: 22px auto;
  padding: 0 22px;
}
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px 300px;
  gap: 24px;
  align-items: start;
}
.results-main { min-width: 0; }
.results-sidebar { min-width: 0; position: sticky; top: 82px; }
.results-divider {
  width: 1px;
  min-height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--border) 8%, var(--border) 92%, transparent 100%);
}
@media (max-width: 860px) {
  .results-layout { grid-template-columns: 1fr; gap: 20px; }
  .results-sidebar { position: static; }
  .results-divider { display: none; }
}
.stats { color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; }

.result-list { list-style: none; padding: 0; margin: 0; }
.result { margin-bottom: 20px; }

.result-url { font-size: 0.85rem; color: var(--muted); margin: 0 0 2px; word-break: break-all; }

.result-title {
  color: var(--primary);
  font-size: 1.15rem;
  text-decoration: none;
  line-height: 1.3;
}
.result-title:hover { text-decoration: underline; }

.result-snippet {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 4px 0 0;
}
.result-snippet mark { background: #fef163; color: inherit; }

/* Painel de notícias da região (cards com foto no topo dos resultados). */
.news-panel { margin: 0 0 22px; }
.news-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--headings, #202124);
  margin: 0 0 10px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.news-card {
  display: block;
  border: 1px solid #dadce0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.news-card:hover { box-shadow: 0 2px 10px rgba(60, 64, 67, 0.2); transform: translateY(-1px); }
.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #f1f3f4;
}
.news-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.news-card-title {
  color: #1a0dab;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 500;
}
.news-card-title:hover { text-decoration: underline; }
.news-card-url {
  color: var(--muted, #5f6368);
  font-size: 0.72rem;
  word-break: break-all;
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ---- Negócios verificados (módulo Business) ---- */
.biz-panel { margin: 0 0 22px; }
.biz-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--headings, #202124);
  margin: 0 0 10px;
}
.biz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.biz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.biz-card:hover { box-shadow: 0 2px 10px rgba(60, 64, 67, 0.2); transform: translateY(-1px); }
.biz-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #137333;
  background: #e6f4ea;
  border: 1px solid #ceead6;
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 4px;
}
.biz-name {
  color: #1a0dab;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}
.biz-card:hover .biz-name { text-decoration: underline; }
.biz-cat { color: #202124; font-size: 0.82rem; }
.biz-place { color: var(--muted, #5f6368); font-size: 0.74rem; }

/* Card promocional padrão do Juntura (na lateral quando não há verificados). */
.biz-empty {
  border: 1px solid #cfd8dc;
  border-radius: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(160deg, #f8fbff 0%, #eef4ff 100%);
}
.biz-empty .biz-badge {
  color: #1558b0;
  background: #e8f0fe;
  border-color: #cfe2fb;
  margin-bottom: 8px;
}
.biz-empty .biz-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.biz-empty .biz-logo {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}
.biz-empty .biz-logo span { color: var(--primary); }
.biz-empty p {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.biz-empty .biz-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.biz-empty .biz-cta:hover { background: #1558b0; }
.biz-empty small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.empty { color: var(--muted); font-size: 1rem; }

/* ---- Paginação ---- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 26px 0 10px;
  font-size: 0.9rem;
}
.pagination a,
.pagination .pg-current,
.pagination .pg-disabled {
  min-width: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--primary);
  background: #fff;
}
.pagination a:hover { background: #e8f0fe; }
.pagination .pg-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.pagination .pg-disabled { color: #bdc1c6; cursor: not-allowed; }

/* ---- Warning de hard-cap ---- */
.search-cap-warning {
  background: #fffbea;
  border: 1px solid #fde68a;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  color: #92400e;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.search-cap-warning b { color: #78350f; }

/* ---- Nova paginação (topo + rodapé) ---- */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin: 8px 0 14px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.pagination-bar + .pagination-bar {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pagination-bar .pg-section {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pagination-bar .pg-section a,
.pagination-bar .pg-section .pg-disabled {
  min-width: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--primary);
  background: #fff;
  white-space: nowrap;
}
.pagination-bar .pg-section a:hover { background: #e8f0fe; }
.pagination-bar .pg-section .pg-disabled { color: #bdc1c6; cursor: not-allowed; }

.pagination-bar .goto-page {
  gap: 8px;
  color: var(--muted);
}
.pagination-bar .goto-page label {
  font-size: 0.85rem;
  user-select: none;
}
.pagination-bar .goto-page select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.9rem;
  min-width: 78px;
  cursor: pointer;
  color: var(--text);
  height: 36px;
}
.pagination-bar .goto-page select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.18);
}
.pagination-bar .pg-total {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 30px;
}

/* ---- Stats linha ---- */
.stats small { color: var(--muted); margin-left: 4px; }
.stats small span[title="Cache"] {
  color: #ca8a04;
  cursor: help;
  margin-left: 2px;
}

/* ---- Rodapé (página inicial) ---- */
.site-footer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-stats span b { color: var(--text); }
.footer-stats .dot { margin: 0 6px; }
.footer-links a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer-links a:hover { color: var(--primary); }