:root {
  --coffee-dark: #3f261a;
  --coffee: #6f4e37;
  --coffee-light: #a9745b;
  --cream: #f7ecdd;
  --accent: #d97a2e;
  --text: #2e2420;
}

.brand-icon {
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coffee-dark);
  color: #fff;
}
.social-links a:hover {
  background: var(--accent);
  color: #fff;
}

body {
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--cream);
}

h1, h2, h3, h4, .navbar-brand {
  font-family: 'Poppins', system-ui, sans-serif;
}

a {
  color: var(--coffee);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}

.btn-coffee {
  background-color: var(--coffee);
  border-color: var(--coffee);
  color: #fff;
}
.btn-coffee:hover {
  background-color: var(--coffee-dark);
  border-color: var(--coffee-dark);
  color: #fff;
}

.site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.navbar-brand {
  color: var(--coffee-dark) !important;
}
.nav-link {
  color: var(--text) !important;
}
.nav-link:hover {
  color: var(--accent) !important;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: var(--coffee-dark);
  color: #fff;
}
.cookie-consent a {
  color: #ffd9ad;
}

/* --- Cards de artigo (home / infinite scroll) --- */
.article-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(75, 54, 33, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(75, 54, 33, 0.14);
}
.article-card img {
  width: 100%;
  aspect-ratio: 970 / 290;
  object-fit: cover;
  display: block;
}
.article-card .card-body {
  padding: 1rem 1.1rem 1.2rem;
}
.article-card .badge-region {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.article-card h2 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0.5rem 0;
}
.article-card .excerpt {
  font-size: 0.9rem;
  color: #6b5b4f;
}

/* --- Faixa "Mais recentes" (topo da home) --- */
.recent-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
}
.recent-strip-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(75, 54, 33, 0.08);
}
.recent-strip-item img {
  width: 100%;
  aspect-ratio: 970 / 290;
  object-fit: cover;
  display: block;
}
.recent-strip-item .badge {
  background: var(--accent);
  color: #fff;
  margin: 0.5rem 0.6rem 0.2rem;
}
.recent-strip-item p {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.6rem 0.7rem;
  line-height: 1.3;
}

/* --- Feed de artigos completos (home) --- */
.feed-article .article-content {
  margin-bottom: 1rem;
}

#infinite-scroll-sentinel {
  height: 1px;
}
.loading-spinner {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.loading-spinner.active {
  display: block;
}

/* --- Página de artigo --- */
.article-hero {
  width: 100%;
  max-width: 970px;
  aspect-ratio: 970 / 290;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 1.5rem;
  display: block;
}
.article-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
}
.article-content h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}
.article-content img.inline-photo {
  width: 300px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  max-width: 100%;
}
.article-content .inline-photo-wrap {
  margin: 1.5rem 0;
}
.article-meta {
  max-width: 780px;
  margin: 0 auto 1rem;
  color: #6b5b4f;
  font-size: 0.9rem;
}

.article-map-el {
  max-width: 780px;
  height: 320px;
  margin: 1.5rem auto;
  border-radius: 12px;
}

/* --- Página /mapa --- */
.map-page-wrap {
  display: flex;
  height: calc(100vh - 72px);
}
#full-map {
  flex: 1 1 auto;
  height: 100%;
}
.map-sidebar {
  width: 340px;
  flex: 0 0 340px;
  overflow-y: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}
.map-sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
}
.map-sidebar-item:hover,
.map-sidebar-item.active {
  background: var(--cream);
}
.map-sidebar-item .place-name {
  font-weight: 700;
  display: block;
}
.map-sidebar-item .place-meta {
  font-size: 0.8rem;
  color: #6b5b4f;
}

@media (max-width: 767.98px) {
  .map-page-wrap {
    flex-direction: column;
    height: auto;
  }
  #full-map {
    height: 45vh;
  }
  .map-sidebar {
    width: 100%;
    flex: 1 1 auto;
    max-height: 45vh;
    border-right: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* --- Espaços de anúncio (AdSense) --- */
.ad-slot {
  max-width: 970px;
  margin: 1.5rem auto;
  text-align: center;
  overflow: hidden;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle { min-height: 250px; max-width: 300px; }

@media (max-width: 767.98px) {
  .article-content { font-size: 1rem; }
  .article-content img.inline-photo { width: 100%; height: auto; aspect-ratio: 300 / 250; }
}
