:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --card-bg: #ffffff;
  --card-border: #000000;
  --text: #1c1c1e;
  --text-dim: #6e6e76;
  --accent: #1f8a5c;
  --accent-orange: #d2691e;
  --accent-orange-text: #a0521a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Ubuntu', sans-serif;
}
a { color: inherit; }

.topbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.logo {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
}
.logo span { color: var(--accent); }
.search {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: 7px;
  overflow: hidden;
  flex: 1;
  max-width: 380px;
  padding: 4px;
}
.search input {
  border: none;
  outline: none;
  padding: 7px 6px 7px 14px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.88rem;
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--text);
}
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-btn:hover { background: #176f49; }

.search-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-mask.active { opacity: 1; pointer-events: all; }
.search-mask-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: search-mask-spin 0.7s linear infinite;
}
@keyframes search-mask-spin { to { transform: rotate(360deg); } }

.mainnav {
  display: flex;
  gap: 8px;
}
.navbtn {
  background: #e6f4ea;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  padding: 8px 16px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e7e42;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease;
}
.navbtn:hover {
  background: #d7ecdf;
}
.navcount { color: var(--text-dim); font-size: 0.72rem; }

/* menu lateral (categorias / lugares) */
body.drawer-lock { overflow: hidden; }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: 360px;
  max-width: 88vw;
  height: 100%;
  background: var(--card-bg);
  box-shadow: -8px 0 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--card-border);
}
.drawer-back {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border: none; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--accent-orange);
  width: 38px; height: 38px; flex: 0 0 auto;
  transition: background 0.15s ease, transform 0.15s ease;
}
.drawer-back:hover { background: #fbe8d9; transform: translateX(-2px); }
.drawer-search {
  flex: 1;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.85rem;
  outline: none;
}
.drawer-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--text-dim);
  padding: 4px 8px;
}
.drawer-close:hover { color: var(--text); }
.drawer-body { flex: 1; overflow: hidden; position: relative; }
.drawer-track {
  display: flex;
  height: 100%;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.drawer-screen {
  flex: 0 0 100%;
  width: 100%;
  overflow-y: auto;
  padding: 8px 0;
}
.drawer-crumbs {
  padding: 10px 16px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-crumb {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}
.drawer-crumb:hover { text-decoration: underline; }
.drawer-goto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 16px;
  padding: 11px 14px;
  background: var(--accent-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}
.drawer-goto:hover { background: var(--accent-orange-text); }
.drawer-heading {
  padding: 12px 16px 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 700;
}
.drawer-row { display: flex; align-items: center; }
.drawer-link {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  padding: 10px 16px;
}
.drawer-link:hover { background: var(--bg-alt); color: var(--accent); }
.drawer-row-folder { cursor: pointer; }
.drawer-row-folder .drawer-folder { cursor: pointer; }
.drawer-drill {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim);
  font-size: 1.3rem; line-height: 1;
  padding: 8px 14px 8px 4px;
}
.drawer-drill:hover { color: var(--accent); }

.crumbs {
  padding: 10px 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.82rem;
  overflow-x: auto;
  background: var(--bg-alt);
}
.crumbs a {
  text-decoration: none;
  color: var(--text-dim);
  white-space: nowrap;
}
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text); white-space: nowrap; }

.home-feed {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.hero-story {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--card-border);
}
.hero-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-body .title {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  -webkit-line-clamp: 4;
}
.hero-body .chips { margin: 4px 0 10px; }
.hero-body .meta { font-size: 0.8rem; }

.feed-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px 24px;
}
.feed-card { display: flex; flex-direction: column; }
.feed-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-body { padding-top: 10px; }
.feed-body .title {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.32;
  -webkit-line-clamp: 3;
}

@media (max-width: 780px) {
  .hero-story { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .feed-grid { grid-template-columns: 1fr; gap: 24px; }
}

.thumb {
  text-decoration: none;
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%231f8a5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.55'%3E%3Crect x='7' y='10' width='34' height='28' rx='2'/%3E%3Cpath d='M14 18h20M14 24h20M14 30h12'/%3E%3Ccircle cx='34' cy='30' r='2.4' fill='%231f8a5c' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #eef1ee 0%, #e4e9e4 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 34px 34px, cover;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.headline-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.title {
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.title:hover { color: var(--accent); }
.meta { font-size: 0.72rem; color: var(--text-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0; }
.chip {
  font-size: 0.68rem; font-weight: 500; padding: 1px 8px; border-radius: 3px;
  text-decoration: none; background: var(--bg-alt); color: var(--text-dim);
  border: 1px solid var(--card-border);
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip svg { vertical-align: -2px; margin-right: 3px; }
.chip-cat { background: #0d6efd; border-color: #0d6efd; color: #fff; font-weight: 600; }
.chip-cat:hover { background: #0b5ed7; border-color: #0b5ed7; color: #fff; }
.chip-sub { background: #cfe2ff; border-color: #cfe2ff; color: #0d47a1; }
.chip-sub:hover { background: #b6d4fe; border-color: #b6d4fe; color: #0d47a1; }
.chip-place { background: #000; border-color: #000; color: #fff; font-weight: 600; }
.chip-place:hover { background: #222; border-color: #222; color: #fff; }

.listing {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.listing h1 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.8rem;
  margin: 0 0 4px;
}
.listing .sub { color: var(--text-dim); margin: 0 0 20px; font-size: 0.9rem; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
}
.card:last-child { border-bottom: none; }
.card .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.card .title { font-weight: 500; }
.card .meta { font-size: 0.72rem; color: var(--text-dim); }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.pager a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}
.article-hero {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  margin-bottom: 22px;
  background-size: 64px 64px, cover;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-orig-title {
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--accent-orange-text);
}
.article h1 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0 0 10px;
}
.article-meta {
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.article-meta .source { font-weight: 500; color: var(--text); }
.tags { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tag {
  text-decoration: none;
  background: var(--bg-alt);
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
}
.tag:hover { color: var(--accent); }
.article-summary {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 26px;
}
.social-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.social-stat {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.85rem; color: var(--text-dim); margin-right: 4px;
}
.social-stat svg { width: 18px; height: 18px; }
.social-btn {
  display: flex; align-items: center; gap: 5px;
  border: none; background: none; padding: 4px 2px;
  color: var(--text-dim); cursor: pointer; text-decoration: none;
  font-size: 0.85rem; font-family: inherit; line-height: 1;
  transition: opacity 0.15s, transform 0.1s;
}
.social-btn svg { width: 20px; height: 20px; transition: transform 0.1s; }
.social-btn:hover { opacity: 0.75; }
.social-btn:active svg { transform: scale(0.9); }
.social-count { font-size: 0.82rem; font-weight: 500; color: var(--text-dim); }

.like-btn.active { color: #e0536a; }

.share-facebook { color: #1877f2; }
.share-twitter { color: #000; }
.share-whatsapp { color: #25d366; }
.copy-btn { color: var(--text-dim); }

.copy-label { font-size: 0.8rem; }
.read-original {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 40px;
}
.read-original:hover { opacity: 0.9; }
.related h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 14px;
}

footer {
  border-top: 1px solid var(--card-border);
  padding: 20px 24px 40px;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-align: center;
}

/* mostra/esconde o texto original (acrescentado, nunca substitui o traduzido) */
.orig-toggle {
  margin-left: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 10px;
  border: 1px solid var(--accent-orange);
  border-radius: 3px;
  background: transparent;
  color: var(--accent-orange);
  cursor: pointer;
  vertical-align: middle;
  text-transform: lowercase;
}
.orig-toggle:hover { background: var(--accent-orange); color: #fff; }
.orig-arrow { display: inline-block; transition: transform 0.2s ease; font-size: 0.9em; }
.orig-toggle.open .orig-arrow { transform: rotate(180deg); }
.tt-orig-block {
  display: block;
  max-height: 0;
  overflow: hidden;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
  font-size: 0.92em;
  line-height: 1.4;
  color: var(--accent-orange-text);
  transition: max-height 0.22s ease, border-top-color 0.22s ease;
}
.tt-orig-block[hidden] { display: block; max-height: 0; border-top-color: transparent; }
.tt-orig-label { font-weight: 700; color: var(--accent-orange); text-transform: uppercase; font-size: 0.78em; letter-spacing: 0.03em; }
