/* Baldio — design system */
@import url('https://fonts.googleapis.com/css2?family=Vollkorn:wght@600;700;800&family=Hanken+Grotesk:wght@400;500;600&display=swap');

:root {
  --forest:      #2D4C36;
  --forest-dark: #163521;
  --clay:        #C18C5D;
  --clay-light:  #e8b98a;
  --beige:       #F2EFE9;
  --paper:       #F9F8F6;
  --surface:     #fcf9f3;
  --border:      rgba(45,76,54,.12);
  --text:        #1c1c18;
  --muted:       #424842;
  --muted-light: #767c72;

  --font-head: 'Vollkorn', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --radius:    14px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: radial-gradient(ellipse 140% 90% at 50% 0%, #fdf9f0 0%, #f4ead5 45%, #e9ddc3 100%) fixed;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

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

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  background: rgba(253,249,240,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.86rem; color: var(--muted); transition: color .15s; position: relative; }
.nav-links a:hover { color: var(--forest); }
.nav-links a.nav-active { color: var(--forest); font-weight: 600; }
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}
.nav-cta {
  background: rgba(45,76,54,.12);
  color: var(--forest);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background .15s;
}
.nav-cta:hover { background: var(--forest); color: #fff; }

/* hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: all .2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(253,249,240,.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 4px 0 20px;
  position: relative;
  z-index: 1100;
}
/* group header button */
.nav-drawer-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 13px 20px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--clay);
  cursor: pointer;
  text-align: left;
}
.nav-drawer-group-btn:hover { color: var(--forest); }
.ndg-chevron { color: var(--muted-light); transition: transform .2s ease; flex-shrink: 0; }
.nav-drawer-group.open .ndg-chevron { transform: rotate(180deg); }
/* group links */
.nav-drawer-group-links {
  display: none;
  flex-direction: column;
  padding-bottom: 4px;
}
.nav-drawer-group.open .nav-drawer-group-links { display: flex; }
.nav-drawer-group-links a {
  font-size: .92rem;
  color: var(--muted);
  padding: 10px 20px 10px 28px;
  transition: background .15s, color .15s;
  border-left: 2px solid transparent;
}
.nav-drawer-group-links a:hover { background: rgba(45,76,54,.05); color: var(--forest); }
.nav-drawer-group-links a.nav-active {
  color: var(--forest);
  font-weight: 600;
  border-left-color: var(--forest);
  background: rgba(45,76,54,.05);
}
/* group separator */
.nav-drawer-group { border-bottom: 1px solid var(--border); }
.nav-drawer-group:last-of-type { border-bottom: none; }
/* CTAs */
.nav-drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 0;
}
.nav-drawer-cta {
  background: rgba(45,76,54,.1);
  color: var(--forest);
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  padding: 12px 20px;
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.nav-drawer-cta:hover { background: var(--forest); color: #fff; }
.nav-drawer-add {
  color: var(--clay);
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  padding: 10px 20px;
  border: 1.5px solid var(--clay);
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-drawer-add:hover { background: var(--clay); color: #fff; }

.nav-cta-add {
  font-size: 0.82rem;
  padding: 7px 14px;
  border-width: 1.5px;
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color .15s;
  padding: 4px;
}
.nav-search-btn:hover { color: var(--forest); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  nav .nav-auth-group,
  nav .nav-cta-add,
  nav .nav-search-btn { display: none !important; }
  .nav-burger { display: flex; }
  .nav-drawer.open { display: flex; }
  .nav { padding-left: 16px; padding-right: 16px; }
}

/* ── Hero ── */
.hero-wrap {
  background: image-set(url('/assets/img/hero-bg-desktop.webp') type('image/webp'), url('/assets/img/hero-bg.jpg') type('image/jpeg'))
              center center / cover no-repeat;
  min-height: 340px;
}
@media (max-width: 1024px) {
  .hero-wrap {
    background: image-set(url('/assets/img/hero-bg-tablet.webp') type('image/webp'), url('/assets/img/hero-bg.jpg') type('image/jpeg'))
                center center / cover no-repeat;
    min-height: 260px;
  }
}
@media (max-width: 640px) {
  .hero-wrap {
    background: image-set(url('/assets/img/hero-bg-mobile.webp') type('image/webp'), url('/assets/img/hero-bg.jpg') type('image/jpeg'))
                center center / cover no-repeat;
    min-height: 200px;
  }
}
.hero-cta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(253,249,240,.95);
  border-bottom: 1px solid var(--border);
  position: relative;
}
@media (max-width: 768px) {
  .hero-cta-bar { padding: 16px; gap: 10px; }
}
/* scroll cue */
.hero-scroll {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  z-index: 10;
}
.hero-scroll span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2.5px solid var(--forest);
  border-bottom: 2.5px solid var(--forest);
  transform: rotate(45deg);
  animation: scroll-bounce .9s ease-in-out infinite alternate;
  opacity: .7;
}
.hero-scroll span:nth-child(2) { animation-delay: .15s; margin-top: -12px; opacity: .45; }
@keyframes scroll-bounce {
  from { transform: rotate(45deg) translate(0,0); }
  to   { transform: rotate(45deg) translate(3px,3px); }
}
@media (max-width: 768px) {
  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 14px; }
  .hero p  { font-size: .9rem; margin-bottom: 24px; }
  .hero-actions { margin-bottom: 28px; }
  .hero-stats { gap: 24px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(253,249,240,.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(45,76,54,.2);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--forest-dark);
  max-width: 760px;
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(253,249,240,.7);
}
.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
  background: rgba(253,249,240,.6);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 8px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}
.stat-label { font-size: 0.72rem; color: var(--muted-light); margin-top: 4px; letter-spacing: 0.04em; }

/* ── Botões ── */
.btn {
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); }
.btn-secondary { border: 2px solid var(--clay); color: var(--clay); background: transparent; }
.btn-secondary:hover { background: var(--clay); color: #fff; }

/* ── Sections (full-width bands, sem rounded corners) ── */
.section-wrap {
  width: 100%;
  border-top: 1px solid rgba(45,76,54,.1);
  background: rgba(255,255,255,.38);
  margin-bottom: 0;
}
.section-wrap + .section-wrap { border-top: none; }
.section-wrap-forest { background: var(--forest); }
.section-wrap-muted  { background: rgba(45,76,54,.04); }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 48px;
}
.section-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(45,76,54,.12);
  margin-bottom: 24px;
}
.section-explore-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--clay);
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.section-explore-link:hover { color: var(--forest); border-bottom-color: var(--forest); }
.section-add-row {
  border-top: 1px solid rgba(45,76,54,.12);
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.section-add-row .add-card {
  flex-direction: row;
  padding: 10px 18px;
  gap: 8px;
}
.section-add-row .add-card-icon {
  width: 24px;
  height: 24px;
  font-size: .95rem;
}
.section-cta-mobile {
  display: none;
}
@media (max-width: 768px) {
  .section-inner { padding: 36px 16px; }
  .section-card-header .section-explore-link { display: none; }
  .section-add-row {
    justify-content: space-between;
  }
  .section-cta-mobile {
    display: inline-flex;
    align-items: center;
    font-size: .85rem;
    font-weight: 600;
    color: var(--clay);
    text-decoration: none;
    padding: 10px 14px;
    border: 1.5px solid rgba(45,76,54,.2);
    border-radius: 8px;
    gap: 4px;
    transition: background .15s, color .15s;
  }
  .section-cta-mobile:hover { background: rgba(45,76,54,.06); color: var(--forest); }
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--forest);
}
.section-subtitle {
  font-size: .78rem;
  color: var(--muted-light);
  margin-top: 2px;
}
.section-link {
  font-size: 0.82rem;
  color: var(--forest);
}
.section-link:hover { text-decoration: underline; }

/* ── Mapa ── */
.map-area {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: 14px;
  border: 1px dashed rgba(45,76,54,.2);
  background: rgba(45,76,54,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  font-size: 0.88rem;
}
@media (max-width: 768px) { .map-area { aspect-ratio: 4/3; } }

/* ── Bento grid eventos ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .bento-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .bento-grid { grid-template-columns: 1fr; } }

.bento-card {
  background: rgba(249,248,246,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,76,54,.1);
}
.bento-card.wide { grid-column: span 2; flex-direction: row; gap: 20px; }
@media (max-width: 900px) { .bento-card.wide { grid-column: span 2; } }
@media (max-width: 580px) { .bento-card.wide { grid-column: span 1; flex-direction: column; } }

.bento-card-img {
  width: 42%;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--beige);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 140px;
}

.card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.card-tag.green { background: rgba(45,76,54,.1); color: var(--forest); }
.card-tag.clay  { background: rgba(193,140,93,.12); color: var(--clay); }

.card-date { text-align: right; }
.card-date .day { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--forest); line-height: 1; }
.card-date .month { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted-light); text-transform: uppercase; margin-top: 2px; }

.card-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--forest); margin-bottom: 6px; }
.card-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.55; flex: 1; margin-bottom: 12px; }
.card-loc { font-size: 0.72rem; color: var(--muted-light); }

/* ── Três caminhos ── */
/* ── Apoios / Parceiros ── */
.apoios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.apoio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 240px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s;
}
.apoio-card:hover { transform: translateY(-3px); }
.apoio-logo {
  width: 100%;
  aspect-ratio: 5 / 2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}
.apoio-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.apoio-name {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: var(--forest-dark);
  text-align: center;
}
.apoio-desc {
  font-size: .74rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.apoio-link {
  font-size: .72rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: .02em;
}

/* ── filtros loading state ── */
#filtros-grid.is-loading { pointer-events: none; }

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .paths-grid { grid-template-columns: 1fr; } }

.path-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 28px;
}
.path-card-clay {
  background: rgba(193,140,93,.15);
  border-color: rgba(193,140,93,.25);
}
.path-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,.18);
  line-height: 1;
  margin-bottom: 14px;
}
.path-card h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.path-card p {
  font-size: 0.83rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}
.path-card strong { color: rgba(255,255,255,.95); }

.paths-manifesto {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 28px;
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-style: italic;
  color: rgba(255,255,255,.65);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── Filosofia (section-card-forest) ── */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) { .philosophy-grid { grid-template-columns: 1fr; gap: 40px; } }

.philosophy-steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.step-icon.green { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.step-icon.clay  { background: var(--clay); color: #fff; }
.step h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: 0.82rem; line-height: 1.55; }

.philosophy-visual { position: relative; }
.philosophy-img {
  border-radius: 16px;
  aspect-ratio: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  transform: rotate(1.5deg);
}
.philosophy-quote {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--paper);
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  border: 1px solid var(--border);
  transform: rotate(-2deg);
  max-width: 190px;
}
.philosophy-quote .label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; color: var(--clay); margin-bottom: 5px; }
.philosophy-quote p { font-size: 0.78rem; color: var(--forest); font-style: italic; line-height: 1.5; }

/* ── Footer ── */
footer {
  border-top: 1px dashed rgba(45,76,54,.18);
  padding: 48px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 8px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 140px; }
.footer-brand-row { display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.footer-brand p { font-size: 0.76rem; color: var(--muted-light); margin-top: 2px; }
.footer-version {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--clay);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}
.footer-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clay);
  border: 1.5px solid var(--clay);
  border-radius: 20px;
  padding: 5px 14px;
  text-decoration: none;
  width: fit-content;
  transition: background .2s, color .2s;
}
.footer-cta:hover { background: var(--clay); color: #fff; }
.footer-groups { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-group { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.footer-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 2px;
}
.footer-group a { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.footer-group a:hover { color: var(--forest); text-decoration: underline; }
.footer-soon { display: flex; align-items: center; gap: 6px; }
.footer-soon span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-light);
  background: rgba(45,76,54,.08);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ── Páginas internas ── */
.page-hero-wrap {
  background:
    linear-gradient(to bottom,
      rgba(253,249,240,.80) 0%,
      rgba(253,249,240,.70) 40%,
      rgba(253,249,240,.90) 100%
    ),
    url('/assets/img/page-hero-bg.jpg') center 30% / cover no-repeat;
  border-bottom: 1px solid rgba(45,76,54,.1);
}
.page-hero {
  padding: 56px 0 40px;
}
.page-hero .section-eyebrow { margin-bottom: 6px; }
.page-hero .page-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--forest-dark);
  letter-spacing: -0.02em;
}

/* ── Filter bar ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(45,76,54,.2);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* ── Utils ── */
.loading { color: var(--muted-light); font-size: 0.85rem; padding: 16px 0; }

/* ── List grids ── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .items-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .items-grid { grid-template-columns: 1fr; } }

.item-card {
  display: flex;
  flex-direction: column;
  background: rgba(249,248,246,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.item-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,76,54,.09); }
.item-card-type { font-size: .65rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); }
.item-card-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--forest); }
.item-card-loc { font-size: .76rem; color: var(--muted-light); }
.item-body-html h1, .item-body-html h2, .item-body-html h3 {
  font-family: var(--font-head);
  color: var(--forest-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 1.4em 0 .5em;
}
.item-body-html h1:first-child, .item-body-html h2:first-child, .item-body-html h3:first-child { margin-top: 0; }
.item-body-html h1 { font-size: 1.6rem; }
.item-body-html h2 { font-size: 1.35rem; }
.item-body-html h3 { font-size: 1.12rem; }

.item-card-desc { font-size: .82rem; color: var(--muted); line-height: 1.55; flex: 1; }
.item-card-tags { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.item-card-tag { font-size: .65rem; padding: 3px 10px; border-radius: 999px; background: rgba(45,76,54,.08); color: var(--forest); white-space: nowrap; }
.item-card-tag--more { background: transparent; color: var(--muted-light); padding-left: 2px; }
.item-card-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.item-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px 18px;
  flex: 1;
}

.add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed var(--clay-light);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--clay);
  font-size: .82rem;
  font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
  background: transparent;
}
.add-card:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: rgba(45,76,54,.04);
}
.add-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}
.item-card-img {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.item-card-img--default::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 68px;
  height: 22px;
  background: url('/assets/img/logo-wordmark.png') no-repeat right center / contain;
  opacity: 0.55;
  pointer-events: none;
}
.item-banner { position: relative; }
.item-banner--default::after {
  content: '';
  position: absolute;
  bottom: 14px;
  right: 18px;
  width: 96px;
  height: 30px;
  background: url('/assets/img/logo-wordmark.png') no-repeat right center / contain;
  opacity: 0.55;
  pointer-events: none;
}

/* event row */
.event-row {
  background: rgba(249,248,246,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 64px 80px 1fr auto;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  transition: box-shadow .2s;
}
.event-row:hover { box-shadow: 0 4px 14px rgba(45,76,54,.08); }
.event-row-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .event-row {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "thumb   thumb"
      "date    content"
      ".       action";
    padding: 0;
    gap: 0;
    overflow: hidden;
    align-items: start;
  }
  .event-row-date {
    grid-area: date;
    padding: 14px 10px 14px 16px;
  }
  .event-row-thumb {
    grid-area: thumb;
    display: block;
    width: 100%;
    height: 130px;
    border-radius: 0;
  }
  .event-row-content {
    grid-area: content;
    padding: 14px 16px 0 0;
  }
  .event-row-action {
    grid-area: action;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 16px 14px 0;
    gap: 8px;
  }
  .event-row-type { display: none; }
}
.event-row-date-day { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--forest); line-height: 1; text-align: center; }
.event-row-date-mon { font-size: .62rem; font-weight: 600; letter-spacing: .1em; color: var(--muted-light); text-transform: uppercase; text-align: center; }
.event-row-title { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--forest); margin-bottom: 4px; }
.event-row-meta { font-size: .76rem; color: var(--muted-light); margin-bottom: 5px; }
.event-row-excerpt { font-size: .81rem; color: var(--muted); line-height: 1.55; }
.event-row-action { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.event-row-type { font-size: .65rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(45,76,54,.08); color: var(--forest); white-space: nowrap; }

.events-past-separator {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 16px;
  color: var(--muted-light); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.events-past-separator::before,
.events-past-separator::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.event-row--past { opacity: 1; }

/* Variante sem thumbnail (ex: coluna de agenda da landing) — scope 1.0.5 */
.event-row--no-thumb { grid-template-columns: 64px 1fr auto; }
@media (max-width: 640px) {
  .event-row--no-thumb {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "date content" ". action";
    padding: 14px 16px;
    gap: 4px 12px;
  }
  .event-row--no-thumb .event-row-date { padding: 0; }
  .event-row--no-thumb .event-row-content { padding: 0; }
  .event-row--no-thumb .event-row-action { padding: 0; }
  .event-row--no-thumb .event-row-type { display: inline-block; }
}

.eventos-add-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px dashed var(--clay-light);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--clay);
  font-size: .82rem;
  font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
  background: transparent;
}
.eventos-add-card:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: rgba(45,76,54,.04);
}
.eventos-add-card .add-card-icon {
  width: 26px;
  height: 26px;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ── Composer ───────────────────────────────────────────────────────────── */
.composer { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius, 14px); overflow: hidden; }
.composer-collapsed { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; transition: background .15s; }
.composer-collapsed:hover { background: rgba(45,76,54,.04); }
.composer-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; flex-shrink: 0; }
.composer-placeholder { flex: 1; background: var(--bg, #f9f8f6); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: .88rem; color: var(--muted); cursor: pointer; font-family: var(--font-body); }
.composer-expanded { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.composer-types { display: flex; gap: 6px; flex-wrap: wrap; }
.type-pill { font-size: .72rem; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg, #f9f8f6); color: var(--muted); cursor: pointer; transition: all .15s; font-family: var(--font-body); }
.type-pill.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.type-pill:hover:not(.active) { border-color: var(--forest); color: var(--forest); }
.composer-text { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-family: var(--font-body); font-size: .9rem; color: var(--text, #1a1a1a); resize: vertical; outline: none; background: var(--bg, #f9f8f6); transition: border-color .15s; }
.composer-text:focus { border-color: var(--forest); }
.composer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.composer-email-row { display: grid; grid-template-columns: 1fr; }
.composer-input { padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-family: var(--font-body); font-size: .85rem; color: var(--text, #1a1a1a); background: var(--bg, #f9f8f6); outline: none; transition: border-color .15s; }
.composer-input:focus { border-color: var(--forest); }
.composer-input::placeholder { color: var(--muted-light, #aaa); }
.composer-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; padding-top: 2px; }
.composer-cancel { background: none; border: none; font-size: .78rem; color: var(--muted); cursor: pointer; font-family: var(--font-body); padding: 4px; }
.composer-cancel:hover { color: var(--text, #1a1a1a); }
.composer-publish { background: var(--forest); color: #fff; border: none; padding: 9px 20px; border-radius: 999px; font-size: .8rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: background .15s; }
.composer-publish:hover { background: var(--forest-dark, #1b3220); }
.composer-proc { display: flex; flex-direction: column; align-items: center; padding: 28px 16px; gap: 12px; }
.composer-proc-ring { width: 36px; height: 36px; border: 3px solid rgba(45,76,54,.15); border-top-color: var(--forest); border-radius: 50%; animation: spin .9s linear infinite; }
.composer-proc-msg { font-size: .88rem; color: var(--muted); font-style: italic; transition: opacity .2s; }
.composer-result { display: flex; flex-direction: column; align-items: center; padding: 28px 16px; gap: 8px; text-align: center; }
.composer-result-icon { font-size: 2rem; }
.composer-result-text { font-size: .88rem; color: var(--muted); line-height: 1.6; max-width: 360px; }
@media (max-width: 520px) { .composer-fields { grid-template-columns: 1fr; } }

/* ── Utilitários de layout ── */
.info-card {
  background: rgba(249,248,246,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.item-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .item-layout-grid { display: flex !important; flex-direction: column !important; gap: 24px !important; }
  .item-layout-grid > * { width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
}

/* ── Project filters: dropdown (desktop) / bottom-sheet (mobile) ── */

.pf-drop { position: relative; }

.pf-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--beige);
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap; line-height: 1.3;
}
.pf-btn:hover { border-color: var(--forest); }
.pf-btn-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.pf-btn-active .pf-chevron path { stroke: #fff; }
.pf-chevron { flex-shrink: 0; transition: transform .2s; }
.pf-drop.open > .pf-btn .pf-chevron { transform: rotate(180deg); }

.pf-panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 220px; max-height: 340px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 400; padding: 4px 0;
}
.pf-panel-right { left: auto; right: 0; }
.pf-drop.open > .pf-panel { display: block; }

.pf-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 6px;
  font-size: .62rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--clay);
}
.pf-panel-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted-light); font-size: 1rem; line-height: 1; padding: 2px 4px;
}
.pf-panel-close:hover { color: var(--text); }

.pf-opt {
  display: block; padding: 9px 14px;
  font-size: .82rem; color: var(--text); text-decoration: none;
  transition: background .1s; white-space: nowrap;
}
.pf-opt:hover { background: rgba(45,76,54,.06); }
.pf-opt-active { color: var(--forest); font-weight: 600; background: rgba(45,76,54,.07); }
.pf-opt-clear { color: var(--clay); font-size: .75rem; }

.pf-backdrop {
  display: none; position: fixed; inset: 0; z-index: 350;
  background: rgba(0,0,0,.38);
}
.pf-backdrop.active { display: block; }

@media (max-width: 768px) {
  .pf-panel {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    max-height: 72vh; border-radius: 16px 16px 0 0;
    min-width: 0; z-index: 500;
  }
  .pf-opt { white-space: normal; padding: 12px 16px; font-size: .88rem; }
  .pf-panel-head { padding: 14px 16px 8px; }
}

/* ── Filtros bar (filtros secundários + geo) ── */
.filtros-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.filtros-bar-left  { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filtros-bar-right { display: flex; gap: 8px; align-items: center; }

.filtros-select {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(45,76,54,.2);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7e6a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color .15s;
}
.filtros-select:focus { outline: none; border-color: var(--forest); }

.filtros-geo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filtros-input {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(45,76,54,.2);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .8rem;
  transition: border-color .15s;
  min-width: 0;
}
.filtros-input:focus { outline: none; border-color: var(--forest); }
.filtros-input::placeholder { color: var(--muted-light); }

.filtros-geo-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(45,76,54,.2);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.filtros-geo-btn:hover,
.filtros-geo-btn.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.filtros-geo-btn.loading { opacity: .6; pointer-events: none; }

/* Localidade autocomplete */
.filtros-localidade-wrap { position: relative; }
.filtros-input-loc { min-width: 160px; }

.filtros-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1.5px solid rgba(45,76,54,.15);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 200;
  overflow: hidden;
}
.filtros-suggestion-item {
  padding: 8px 14px;
  font-size: .82rem;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .1s;
}
.filtros-suggestion-item:hover { background: rgba(45,76,54,.07); }
.filtros-suggestion-item + .filtros-suggestion-item { border-top: 1px solid rgba(45,76,54,.06); }

.filtros-meta {
  font-size: .78rem;
  color: var(--clay);
  background: rgba(139,115,85,.07);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
}

.item-card-dist {
  margin-left: 6px;
  font-size: .7rem;
  color: var(--clay);
  background: rgba(139,115,85,.1);
  padding: 1px 7px;
  border-radius: 999px;
}

.filtros-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filtros-input-date {
  width: 130px;
  cursor: pointer;
  color-scheme: light;
}
.filtros-date-sep {
  color: var(--muted-light);
  font-size: .8rem;
  flex-shrink: 0;
}
.filtros-date-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(45,76,54,.08);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.filtros-date-clear-btn:hover {
  background: rgba(45,76,54,.18);
  color: var(--forest);
}

@media (max-width: 600px) {
  .filtros-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .filtros-bar-left { flex-wrap: nowrap; align-items: center; }
  .filtros-bar-right { flex-wrap: nowrap; }
  .filtros-input-loc { flex: 1; min-width: 0; }
  .filtros-input-date { width: 110px; }
}

/* ── Map panel (landing + mapa) ── */
.map-panel {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 296px;
  background: rgba(252,249,243,.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(22,53,33,.12);
}
.panel-title  { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--forest-dark); margin-bottom: 3px; }
.panel-sub    { font-size: .73rem; color: var(--muted-light); margin-bottom: 16px; line-height: 1.5; }
.panel-label  { font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 7px; }
.panel-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.panel-count  { font-size: .76rem; color: var(--muted); margin-bottom: 10px; }
.panel-count strong { color: var(--forest); font-weight: 600; }
.panel-list   { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; }
.panel-item   { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; cursor: pointer; transition: background .15s; text-decoration: none; }
.panel-item:hover { background: rgba(45,76,54,.06); }
.panel-item-dot  { width: 9px; height: 9px; border-radius: 50%; background: var(--forest); flex-shrink: 0; }
.panel-item-name { font-size: .8rem; color: var(--forest); font-weight: 500; flex: 1; }
.panel-item-loc  { font-size: .68rem; color: var(--muted-light); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.chip         { font-size: .7rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; border: 1.5px solid rgba(45,76,54,.2); background: transparent; color: var(--muted); cursor: pointer; transition: all .15s; font-family: var(--font-body); }
.chip:hover   { border-color: var(--forest); color: var(--forest); }
.chip.active  { background: var(--forest); color: #fff; border-color: var(--forest); }
@media (max-width: 640px) { .map-panel { display: none; } }

/* Map mobile filter bar */
#map-mobile-bar {
  display: none;
  flex-direction: column;
  background: var(--forest-dark);
  gap: 0;
  padding-top: 4px;
}
/* Row: localização + geo */
.map-mob-loc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
}
.map-mob-loc-wrap { position: relative; flex: 1; min-width: 0; }
.map-mob-loc-input {
  width: 100%;
  background: rgba(255,255,255,.1) !important;
  border-color: rgba(255,255,255,.2) !important;
  color: #fff !important;
  font-size: .8rem;
}
.map-mob-loc-input::placeholder { color: rgba(255,255,255,.45) !important; }
.map-mob-loc-input:focus { border-color: rgba(255,255,255,.5) !important; }
.map-mob-geo-btn {
  flex-shrink: 0;
  width: 36px !important;
  height: 36px;
  padding: 0 !important;
  justify-content: center;
  border-color: rgba(255,255,255,.22) !important;
  color: rgba(255,255,255,.75) !important;
}
.map-mob-geo-btn.active { background: rgba(255,255,255,.15) !important; color: #fff !important; }

/* Row: entity chips + type select */
.map-mob-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.map-mob-chips-row::-webkit-scrollbar { display: none; }
.map-mobile-chips { display: flex; gap: 6px; flex-shrink: 0; }

/* Mobile type select */
.map-mob-type-select {
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .72rem;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  max-width: 160px;
}
.map-mob-type-select option { background: var(--forest-dark); color: #fff; }

#map-mobile-bar .chip {
  color: rgba(255,255,255,.65);
  border-color: rgba(255,255,255,.22);
  white-space: nowrap;
  flex-shrink: 0;
}
#map-mobile-bar .chip.active {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
#map-mobile-bar .chip:hover { border-color: rgba(255,255,255,.45); color: #fff; }

/* Desktop type chips — compact grid */
.filter-chips-types { flex-wrap: wrap; gap: 4px; }
.filter-chips-types .chip { font-size: .64rem; padding: 3px 9px; }

@media (max-width: 640px) {
  #map-mobile-bar { display: flex; }
}

/* ── Localidade autocomplete (mapa + landing) ── */
.mapa-loc-wrap { position: relative; margin-bottom: 8px; }
.mapa-loc-input {
  width: 100%; box-sizing: border-box;
  padding: 7px 12px; border-radius: 8px;
  border: 1.5px solid rgba(45,76,54,.2);
  background: transparent; color: var(--text);
  font-family: var(--font-body); font-size: .8rem;
  transition: border-color .15s;
}
.mapa-loc-input:focus { outline: none; border-color: var(--forest); }
.mapa-loc-input::placeholder { color: var(--muted-light); }
.mapa-loc-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1.5px solid rgba(45,76,54,.15);
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 2000; overflow: hidden;
}
.mapa-loc-item {
  padding: 7px 12px; font-size: .78rem; color: var(--text);
  cursor: pointer; transition: background .1s;
  border-bottom: 1px solid rgba(45,76,54,.05);
}
.mapa-loc-item:last-child { border-bottom: none; }
.mapa-loc-item:hover { background: rgba(45,76,54,.07); }
.mapa-geo-btn {
  display: flex; align-items: center; gap: 5px; width: 100%;
  justify-content: center; padding: 7px 12px; border-radius: 8px;
  border: 1.5px solid rgba(45,76,54,.2); background: transparent;
  color: var(--muted); font-family: var(--font-body); font-size: .78rem;
  font-weight: 500; cursor: pointer; transition: all .15s;
}
.mapa-geo-btn:hover, .mapa-geo-btn.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.mapa-geo-btn.loading { opacity: .6; pointer-events: none; }

/* Leaflet popup */
.leaflet-popup-content-wrapper { background: var(--paper) !important; border: 1px solid var(--border) !important; border-radius: 12px !important; box-shadow: 0 8px 24px rgba(22,53,33,.14) !important; padding: 0 !important; }
.leaflet-popup-content { margin: 0 !important; font-family: var(--font-body) !important; }
.leaflet-popup-tip { background: var(--paper) !important; }
.leaflet-popup-close-button { color: var(--muted-light) !important; font-size: 16px !important; top: 8px !important; right: 10px !important; }
.leaflet-control-zoom { border: 1px solid var(--border) !important; border-radius: 10px !important; overflow: hidden; box-shadow: 0 4px 12px rgba(22,53,33,.1) !important; }
.leaflet-control-zoom a { background: var(--paper) !important; color: var(--forest) !important; border-bottom: 1px solid var(--border) !important; width: 34px !important; height: 34px !important; line-height: 34px !important; }
.leaflet-control-zoom a:hover { background: var(--beige) !important; }
.leaflet-control-attribution { font-size: .58rem !important; opacity: .45; background: transparent !important; box-shadow: none !important; padding: 0 4px !important; }
.leaflet-control-attribution:hover { opacity: .85; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.popup-inner { padding: 16px 18px; }
.popup-type { font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin-bottom: 4px; }
.popup-name { font-family: var(--font-head); font-size: .98rem; font-weight: 700; color: var(--forest-dark); margin-bottom: 5px; }
.popup-loc  { font-size: .73rem; color: var(--muted-light); margin-bottom: 9px; }
.popup-desc { font-size: .76rem; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.popup-link { display: inline-block; background: var(--forest); color: #fff !important; font-size: .73rem; font-weight: 600; padding: 5px 13px; border-radius: 7px; text-decoration: none !important; }
.popup-link:hover { opacity: .85; }

/* Landing map section */
.landing-map-bar {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 100%);
}
/* Landing map bar — layout e z-index */
.landing-map-bar { position: relative; z-index: 1000; }
.landing-map-bar .pf-panel { z-index: 1001; }
.landing-map-bar .filtros-bar {
  margin-bottom: 0;
  flex-wrap: nowrap;
  align-items: center;
}
.landing-map-bar .filtros-bar-left {
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}
.landing-map-bar .filtros-bar-right {
  flex-shrink: 0;
  flex-wrap: nowrap;
}
/* Stack left/right when they don't fit side by side */
@media (max-width: 680px) {
  .landing-map-bar .filtros-bar { flex-wrap: wrap; gap: 8px; }
  .landing-map-bar .filtros-bar-left  { width: 100%; flex: none; }
  .landing-map-bar .filtros-bar-right { width: 100%; flex: none; }
}

/* Dropdown categoria do mapa (landing) */
.landing-map-bar .pf-btn {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
}
.landing-map-bar .pf-btn:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.14);
  color: #fff;
}
.landing-map-bar .pf-btn-active {
  background: rgba(255,255,255,.22);
  border-color: #fff;
  color: #fff;
}
.landing-map-bar .pf-btn .pf-chevron path { stroke: rgba(255,255,255,.7); }
/* Chips dentro do panel tornam-se opt-style */
#mapa-cat-panel .chip {
  display: block; width: 100%; text-align: left;
  padding: 9px 14px; font-size: .82rem;
  border-radius: 0; border: none;
  background: transparent; color: var(--text);
  cursor: pointer; font-family: var(--font-body);
  transition: background .1s;
}
#mapa-cat-panel .chip:hover { background: rgba(45,76,54,.06); }
#mapa-cat-panel .chip.active { color: var(--forest); font-weight: 600; background: rgba(45,76,54,.07); }
.landing-map-bar .mapa-loc-input {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #fff;
}
.landing-map-bar .mapa-loc-input::placeholder { color: rgba(255,255,255,.38); }
.landing-map-bar .mapa-loc-input:focus { border-color: rgba(255,255,255,.5); }
.landing-map-bar .mapa-geo-btn {
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
}
.landing-map-bar .mapa-geo-btn:hover,
.landing-map-bar .mapa-geo-btn.active {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.landing-geo-btn {
  flex-shrink: 0;
  width: auto !important;
  white-space: nowrap;
  padding: 7px 14px !important;
}
.map-full-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 7px 16px;
  background: var(--forest);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1.5px solid var(--forest);
  transition: background .15s, border-color .15s;
}
.map-full-btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
/* At ≤680px the bar stacks into two full-width rows via the landing-map-bar rule above.
   Within each row: geo button stays auto-width, map-full-btn flexes to fill the right row. */
@media (max-width: 680px) {
  .landing-map-bar .map-full-btn { flex: 1; justify-content: center; }
}

/* ---- Calendário de eventos (partials/calendario.php + modules/calendario/calendario.js) — scope 1.0.5 ---- */
.cal-wrap { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav button {
  background: var(--beige); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; cursor: pointer; font-size: .9rem; color: var(--forest-dark);
}
.cal-nav button:hover { background: var(--clay-light); }
.cal-month { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--forest-dark); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: .62rem; text-transform: uppercase; color: var(--muted-light); padding-bottom: 6px; }
.cal-cell {
  aspect-ratio: 1 / 1; border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; padding: 5px 3px; cursor: pointer; border: 1px solid transparent;
}
.cal-cell.out { opacity: .28; cursor: default; }
.cal-cell:not(.out):hover { background: var(--beige); }
.cal-cell.today { background: rgba(45,76,54,.08); border-color: var(--forest); }
.cal-cell .num { font-size: .78rem; font-weight: 600; color: var(--text); }
.cal-cell.today .num { color: var(--forest-dark); font-weight: 900; }
.cal-dots { display: flex; gap: 2px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; }

.cal-modal-backdrop {
  position: fixed; inset: 0; background: rgba(27,50,32,.55); display: none;
  align-items: flex-end; justify-content: center; z-index: 200;
}
.cal-modal-backdrop.open { display: flex; }
.cal-modal-card {
  background: var(--paper); width: 100%; max-width: 560px; border-radius: 16px 16px 0 0;
  padding: 20px; max-height: 80vh; overflow-y: auto;
}
@media (min-width: 640px) {
  .cal-modal-backdrop { align-items: center; }
  .cal-modal-card { border-radius: 16px; }
}
.cal-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-modal-head h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--forest-dark); margin: 0; }
.cal-modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); line-height: 1; }
.cal-empty-state { padding: 20px; text-align: center; color: var(--muted); font-size: .85rem; border: 1px dashed var(--border); border-radius: 10px; }

/* ---- Agrupamento de eventos por período (/eventos) — scope 1.0.5 ---- */
.events-group-separator {
  display: flex; align-items: center; gap: 14px; margin: 28px 0 16px;
  color: var(--forest-dark); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.events-group-separator::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.eventos-view-toggle { display: flex; gap: 6px; margin-bottom: 16px; }
.eventos-view-toggle button {
  background: var(--beige); border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 16px; font-size: .8rem; font-weight: 600; color: var(--forest-dark); cursor: pointer;
}
.eventos-view-toggle button.active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---- Landing — secção Agenda: calendário + próximos eventos em 2 colunas (desktop) — scope 1.0.5 ---- */
.landing-agenda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.landing-agenda-grid > div { min-width: 0; }
@media (max-width: 900px) { .landing-agenda-grid { grid-template-columns: 1fr; gap: 24px; } }
.landing-agenda-grid .events-group-separator:first-child { margin-top: 0; }

/* Lista compacta de eventos da Agenda (landing) — altura fixa, sem card/hora/descrição — scope 1.0.5 */
.agenda-list-compact .events-group-separator { margin: 20px 0 8px; }
.agenda-list-compact .events-group-separator:first-child { margin-top: 0; }
.agenda-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; margin-bottom: 6px;
  background: #fff; border-radius: 10px; border: 1px solid var(--border);
  cursor: pointer; transition: box-shadow .15s;
}
.agenda-row:hover { box-shadow: 0 4px 14px rgba(45,76,54,.08); }
.agenda-row-date { width: 38px; flex-shrink: 0; text-align: center; }
.agenda-row-date .d { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--forest); line-height: 1.1; }
.agenda-row-date .m { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .08em; color: var(--muted-light); text-transform: uppercase; }
.agenda-row-body { min-width: 0; flex: 1; }
.agenda-row-title { font-family: var(--font-head); font-size: .88rem; font-weight: 600; color: var(--forest-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-row-meta { font-size: .72rem; color: var(--muted-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.agenda-row-cta {
  flex-shrink: 0; font-size: .72rem; font-weight: 600; color: var(--clay);
  border: 1.5px solid var(--clay); border-radius: 999px; padding: 6px 12px;
  text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.agenda-row-cta:hover { background: var(--clay); color: #fff; }
@media (max-width: 480px) { .agenda-row-cta { display: none; } }

.section-actions-row { display: flex; gap: 12px; margin-top: 16px; }
.section-actions-row .btn { flex: 1 1 50%; justify-content: center; text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) {
  .section-actions-row .btn { padding: 12px 8px; font-size: .74rem; gap: 4px; }
}

.section-title-count { font-size: .68em; font-weight: 500; color: var(--muted-light); }

.section-search-row { margin-bottom: 18px; display: flex; gap: 10px; max-width: 520px; }
.section-search-input {
  flex: 1; min-width: 0; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff; font-size: .85rem; color: var(--text);
}
.section-search-input:focus { outline: none; border-color: var(--forest); }
.section-search-input::placeholder { color: var(--muted-light); }
.section-search-row .btn { flex-shrink: 0; padding: 10px 20px; }
@media (max-width: 480px) { .section-search-row .btn { padding: 10px 14px; font-size: .8rem; } }
