:root{
  --green:#0f3d2e;
  --brown:#5a2a12;
  --gold:#ffdd9a;

  --bg:#f4f4f4;
  --text:#222;
  --muted:#555;
  --white:#fff;
  --line:#e5e5e5;

  --shadow:0 4px 15px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family:Arial,sans-serif; background:var(--bg); color:var(--text); }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }

/* HEADER */
.header{
  height:160px;
  background: var(--header-banner, url("../../public/assets/img/banner-capa.png")) center/cover no-repeat;
  position:relative;
}
.header-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  width:100%;
}
.header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
}
.header-search{
  width:100%;
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}
.header-overlay{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;

  max-width:1100px;   /* 🔑 MESMO da página */
  margin:0 auto;      /* centraliza */
  padding:18px 30px;  /* respiro lateral */
}

.header-logo img{
  height:72px;
  width:auto;
}

.header-credit{
  position:absolute;
  right:16px;
  bottom:12px;
  color:#fff;
  font-size:12px;
  line-height:1.4;
  padding:4px 10px;
  background:rgba(0,0,0,.45);
  border-radius:12px;
  max-width:60%;
  text-align:right;
}

.header-credit:empty{ display:none; }

/* MENU */
.menu{
  display:flex;
  align-items:center;
  gap:18px;
}
.menu-btn, .menu-link{
  color:#fff;
  font-size:16px;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:0;
  text-decoration:none; /* ✅ removido sublinhado do menu */
}
.chev{ opacity:.9; }

/* DROPDOWN */
.dropdown{ position:relative; }
.dropdown-panel{
  position:absolute;
  right:0;
  top:34px;
  min-width:360px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
  padding:8px;
  display:none;
  z-index:999;
}
.dropdown.open .dropdown-panel{ display:block; }

.dropdown-item{
  display:block;
  padding:10px 10px;
  border-radius:6px;
  color:#222;
}
.dropdown-item:hover{ background:#f4f4f4; }
.dropdown-item strong{ display:block; color:var(--green); }
.dropdown-item small{ display:block; color:#666; margin-top:3px; }

/* APP */
.app{
  max-width:1100px;
  margin:18px auto 50px;
  padding:0 30px;
}

/* GRID HOME (antigo) */
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.card{
  background:#fff;
  border-radius:6px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:.25s;
}
.card:hover{ transform:translateY(-6px); }
.card-cover{ height:220px; background:#ddd; }
.card-cover img{ width:100%; height:100%; object-fit:cover; }
.card-body{ padding:18px; }
.card-meta{
  margin:6px 0 12px;
  color:var(--muted);
  font-size:13px;
}
.card-title{ color:var(--green); margin:0; }
.card-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

.btn{
  padding:10px 14px;
  border-radius:4px;
  font-weight:bold;
  border:0;
  cursor:pointer;
}
.btn.primary{ background:var(--green); color:#fff; }
.btn.light{ background:#fff; border:1px solid #ddd; color:#222; }

/* ============================================================
   HOME — Cards estilo capa grande (como mock aprovado)
   ============================================================ */

.home-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
  padding: 20px 30px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
}

.home-card-cover{
  display:block;
  width:100%;
  height:160px;
  background:#f3f3f3;
}
.home-card-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.home-card-body{
  padding:14px 14px 16px;
}

.home-chip{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:#222;
  background:#f2f2f2;
  margin-bottom:10px;
}

.home-card-title{
  margin:0 0 12px;
  font-size:18px;
  line-height:1.2;
  color:#0f3d2e;
  font-weight:900;
  min-height: 44px;
}
.home-card-title a{
  color:inherit;
  text-decoration:none;
}
.home-card-title a:hover{ text-decoration:underline; }

.home-card-actions{ display:flex; gap:10px; }

.home-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  font-weight:900;
  text-decoration:none;
  background:#0f3d2e;
  color:#fff;
  border:1px solid rgba(0,0,0,.08);
}
.home-btn:hover{ filter: brightness(0.95); }

@media (max-width: 980px){
  .home-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 20px 34px; }
}
@media (max-width: 640px){
  .home-grid{ grid-template-columns: 1fr; }
  .home-card-cover{ height: 180px; }
}

/* SUBBAR */
.subbar{
  max-width:1100px;
  margin:18px auto 14px;
  padding:0 30px;
  display:flex;
  justify-content:flex-end;
}

.subbar-right{
  display:flex;
  gap:6px;
  flex-wrap:nowrap;
  width:center;
  max-width:342px;
}

.tab{
  flex:1;
  text-align:center;
  padding:10px 10px;
  border-radius:5px;
  font-weight:bold;
  color:#fff;
  white-space:nowrap;
}
.tab-idle{ background:var(--brown); }
.tab-active{ background:var(--green); }

/* Layout mapa (legado) */
.layout-mapa{
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:16px;
}
.sidebar{
  background:#fff;
  border-radius:6px;
  box-shadow:var(--shadow);
  overflow:hidden;
  min-height:560px;
}
.sidebar-head{ padding:16px; border-bottom:1px solid #eee; }
.sidebar-head h3{ margin:0 0 6px; color:var(--green); }
.sidebar-head p{ margin:0; color:#666; font-size:13px; line-height:1.5; }

.filters{
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  border-bottom:1px solid #eee;
}
.field{
  width:100%;
  padding:11px 12px;
  border:1px solid #ddd;
  border-radius:6px;
  outline:none;
  font-size:14px;
}
.field:focus{
  border-color:#0f3d2e55;
  box-shadow:0 0 0 3px rgba(15,61,46,.10);
}

.list{ padding:8px; max-height:420px; overflow:auto; }
.list-item{ padding:10px 10px; border-radius:6px; cursor:pointer; }
.list-item:hover{ background:#f4f4f4; }
.list-item small{ display:block; color:#666; margin-top:2px; }
.list-item .contact-row{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.list-item .contact-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  border:1px solid #e6e6e6;
  background:#fff;
  color:#111;
  padding:6px 8px;
  border-radius:8px;
  font-size:12px;
  line-height:1;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.list-item .contact-link:hover{
  transform: translateY(-1px);
  border-color:#d0d0d0;
  box-shadow:0 6px 16px rgba(0,0,0,.10);
}
.list-item .contact-link svg{ width:16px; height:16px; display:block; }
.list-item .contact-link.icon-only{
  padding:6px;
  width:32px;
  height:32px;
  justify-content:center;
}
.list-item .contact-link .label{
  display:inline-block;
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.maparea{
  background:#fff;
  border-radius:6px;
  box-shadow:var(--shadow);
  min-height:560px;
  overflow:hidden;
}
.map-placeholder{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  color:#666;
  text-align:center;
}

/* Modal */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  z-index:4000;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.modal.show{ display:flex; }
.modal-content{
  background:#fff;
  width:100%;
  max-width:560px;
  padding:26px;
  border-radius:8px;
  text-align:center;
  position:relative;
}
.close{
  position:absolute;
  top:10px;
  right:14px;
  font-size:22px;
  cursor:pointer;
}

/* FOOTER */
.footer{
  background:#111;
  color:#ccc;
  text-align:center;
  padding:20px;
  margin-top:60px;
}

/* Responsivo base */
@media(max-width:900px){
  .grid{ grid-template-columns:1fr; }
}
@media(max-width:768px){
  .header{ height:200px; }
  .header-overlay{ padding:0 20px; }
}

/* ================= PÁGINA PESQUISA (RESUMO) ================= */
.suma-section{
  max-width:1000px;
  margin:0 auto;
  padding:70px 30px;
  background:transparent;
}
.suma-section h1{ color:var(--green); font-size:32px; margin:0 0 20px; }
.suma-section h2{ color:var(--green); margin:0 0 15px; }
.suma-section p{ font-size:16px; line-height:1.7; margin:0; }

.suma-quote{
  background:#f4f4f4;
  padding:60px 30px;
}
.suma-quote blockquote{
  max-width:900px;
  margin:0 auto;
  font-size:20px;
  line-height:1.6;
  font-style:italic;
}
.suma-quote footer{
  margin-top:20px;
  font-size:14px;
  font-weight:bold;
  font-style:normal;
}

.suma-full-image{
  width:100%;
  height:350px;
  background-size:cover;
  background-position:center;
}

/* ================= FICHA TÉCNICA ================= */
.ft-section{
  max-width:1100px;
  margin:60px auto;
  padding:50px 30px;
  background:#fff;
  border-radius:6px;
  box-shadow:0 4px 15px rgba(0,0,0,0.05);
}
.ft-section h2{
  color:var(--green);
  margin-top:0;
  margin-bottom:35px;
  border-bottom:2px solid #eee;
  padding-bottom:10px;
}

.ft-logos-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
  text-align:center;
}
.ft-logo-box{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:15px;
}
.ft-logo-box h3{ color:var(--green); margin:0; }
.ft-logo-box img{ max-width:240px; }

.ft-people-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:30px;
}
.ft-person-card{
  background:var(--green);
  border-radius:6px;
  padding:25px 20px;
  text-align:center;
  color:#fff;
  transition:transform .25s, box-shadow .25s;
}
.ft-person-card:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,0.25);
}
.ft-person-card img{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  margin:0 auto 15px;
  border:3px solid rgba(255,255,255,0.25);
}
.ft-person-card h3{
  margin:10px 0 5px;
  font-size:18px;
  color:#fff;
}
.ft-person-card p{ margin:0; font-size:14px; color:var(--gold); }

@media(max-width:768px){
  .suma-section{ padding:40px 20px; }
  .suma-quote{ padding:40px 20px; }
  .ft-section{ margin:20px; padding:30px 20px; }
  .ft-logos-grid{ grid-template-columns:1fr; }
}

/* Leaflet (genérico) */
.leaflet-map{
  width:100%;
  height:560px;
}
@media(max-width:980px){
  .leaflet-map{ height:420px; }
}
.empty{
  padding:12px;
  color:#666;
}

/* ===== Pesquisa: Editorial + Modular ===== */
.ed-container{
  max-width:1000px;
  margin:0 auto;
  padding:0 30px;
}

.ed-hero{
  position:relative;
  margin-top:10px;
  border-radius:8px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:#111;
}
.ed-hero-media{
  height:220px;
  background-size:cover;
  background-position:center;
  filter:saturate(1.02);
}
.ed-hero-overlay{
  position:relative;
  padding:22px 0 26px;
  background:rgba(0,0,0,.40);
}
.ed-kicker{ margin-bottom:12px; }
.ed-h1{
  margin:0;
  color:#fff;
  font-size:34px;
  line-height:1.15;
}
.ed-lead .ed-p{ color:#f3f3f3; opacity:.95; }
.ed-lead .ed-p:last-child{ margin-bottom:0; }

.ed-section{ padding:28px 0; }
.ed-h2{
  margin:0 0 12px;
  color:var(--green);
  font-size:26px;
}
.ed-p{
  margin:0 0 12px;
  line-height:1.8;
  color:#222;
  font-size:16px;
}
.ed-p:last-child{ margin-bottom:0; }

.ed-quote{
  background:#fff;
  margin:18px 0;
  padding:30px 0;
  border-radius:8px;
  box-shadow:var(--shadow);
}
.ed-quote blockquote{
  margin:0;
  font-size:20px;
  line-height:1.6;
  font-style:italic;
  color:#222;
}
.ed-quote footer{
  margin-top:14px;
  font-size:14px;
  font-weight:bold;
  color:#333;
}

.ed-fullbleed{ margin:18px 0; }
.ed-fullbleed-inner{
  width:100vw;
  height:360px;
  margin-left:calc(50% - 50vw);
  background-size:cover;
  background-position:center;
}
.ed-caption{
  max-width:1000px;
  margin:8px auto 0;
  padding:0 30px;
  color:#666;
  font-size:13px;
}

.ed-sep{ padding:10px 0; }
.ed-sep span{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#eee;
  color:#444;
  font-size:12px;
}

@media(max-width:768px){
  .ed-container{ padding:0 18px; }
  .ed-h1{ font-size:26px; }
  .ed-hero-media{ height:190px; }
  .ed-fullbleed-inner{ height:280px; }
  .ed-quote blockquote{ font-size:18px; }
}

/* ============================================================
   PESQUISA (layout editorial – baseado no modelo aprovado)
   ============================================================ */

.research-hero{
  max-width:1100px;
  margin:0 auto;
  padding:0 30px 28px;
}
.research-hero-inner{ padding-top:8px; }

.research-meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#333;
  margin:6px 0 18px;
}
.research-meta-label{ opacity:.85; }
.research-meta-value{ font-weight:700; }

.research-title{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.15;
  color:#111;
}

.research-lead{
  margin:0 0 18px;
  color:#222;
  max-width:920px;
  line-height:1.55;
}

.research-card{
  background:#fff;
  border-radius:10px;
  box-shadow:var(--shadow);
  padding:18px 18px;
  max-width:920px;
}

.research-card h3{
  margin:0 0 10px;
  color:var(--green);
}

.research-topics{ margin:0; padding-left:18px; }
.research-topics li{ margin:4px 0; color:#222; }

.research-quote{
  background:#f4f4f4;
  margin-top:16px;
}
.research-quote-inner{
  max-width:1100px;
  margin:0 auto;
  padding:48px 30px;
}
.research-quote blockquote{
  margin:0;
  max-width:900px;
  font-size:20px;
  line-height:1.6;
  font-style:italic;
  color:#222;
}
.research-quote blockquote footer{
  margin-top:14px;
  font-size:13px;
  font-weight:800;
  font-style:normal;
  color:#333;
}

.research-section{
  max-width:1100px;
  margin:0 auto;
  padding:28px 30px;
}
.research-section-inner{ max-width:920px; }
.research-section h2{
  margin:0 0 10px;
  color:var(--green);
  font-size:22px;
}
.research-section p{
  margin:0;
  line-height:1.7;
  color:#222;
}

.muted{ color:#666; }

/* SEARCH HEADER */
.menu-search{
  position:relative;
  width:320px;
  max-width:38vw;
}
.header-search .menu-search{
  width:420px;
  max-width:52vw;
  margin-left:auto;
}
.menu-search input{
  width:100%;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.65);
  background:transparent;
  color:#fff;
  outline:none;
  box-shadow:none;
}
.menu-search input:focus{
  border-color: rgba(255,255,255,.9);
  background:transparent;
}

.search-panel{
  position:absolute;
  top:46px;
  right:0;
  left:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
  z-index:999;
}
.search-panel.open{ display:block; }
.search-item{
  display:block;
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.search-item:last-child{ border-bottom:none; }
.search-item strong{ display:block; color:var(--green); }
.search-item small{ display:block; color:#666; margin-top:3px; }
.search-item:hover{ background:#f5f5f5; }

@media (max-width: 820px){
  .header-overlay{ gap:12px; }
  .menu-search{ width:220px; max-width:44vw; }
  .header-logo img{ height:62px; }
}

/* HEADER — refinamento mobile/tablet (logo + menu em cima; busca embaixo) */
@media (max-width: 1024px){
  .header{ height:auto; min-height:160px; }
  .header-overlay{ padding:14px 16px; }
  .header-top{ gap:12px; }
  .header-logo img{ height:60px; }
  .menu{ gap:14px; }
  .menu-btn, .menu-link{ font-size:13px; }
  .menu{ order:1; }
  .header-search{ order:2; width:100%; justify-content:center; margin-top:12px; }
  .header-search .menu-search{ width:100%; max-width:680px; }
  .menu-search input{ width:100%; }
}

@media (max-width: 640px){
  .header{ height: 200px; }

  .header-overlay{
    position: relative;
    padding: 0 20px;
    padding-bottom: 64px;
  }

  .header-search{
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    padding: 0 10px;
    margin-top: 0;
    justify-content: center;
  }

  .header-search .menu-search{
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .menu-search input{ padding:11px 12px; }
}

/* ============================================================
   MAPA PÚBLICO (novo) — layout + sidebar + popup card
   ============================================================ */

/* SUMAUMA: MAPA STICKY/LISTA SCROLL (VERSÃO FINAL) */
.map-shell{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:14px;
  align-items:stretch;

  /* Altura controlada por viewport (setada via JS) */
  height: var(--map-shell-h, 520px);
  max-height: var(--map-shell-h, 520px);
}

.map-side{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  box-shadow: var(--shadow);
  overflow:hidden;

  display:flex;
  flex-direction:column;

  height: 100%;
  min-height: 0;
}

.map-side-head{
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.map-side-title{ font-weight:900; color:#0f3d2e; font-size:14px; }
.map-side-meta{ color:#6b6b6b; font-size:12px; margin-top:4px; }

.map-search{
  margin:12px 14px 10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  outline:none;
}
.map-search:focus{
  border-color: rgba(15,61,46,.55);
  box-shadow: 0 0 0 3px rgba(15,61,46,.10);
}

/* filtros */
.map-filters{
  margin: 0 14px 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.map-filter{
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  outline: none;
  font-size: 13px;
}
.map-filter:disabled{
  opacity: .55;
  background: rgba(0,0,0,.03);
}
.map-filter:focus{
  border-color: rgba(15,61,46,.55);
  box-shadow: 0 0 0 3px rgba(15,61,46,.10);
}

/* A LISTA vira o scroll (interno) */
.map-list{
  padding: 0 10px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

.map-item{
  width:100%;
  text-align:left;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow: 0 10px 20px rgba(15,61,46,.06);
  cursor:pointer;
  margin:10px 4px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.map-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15,61,46,.10);
}
.map-item-title{ font-weight:900; color:#0f3d2e; font-size:13px; }
.map-item-sub{ color:#666; font-size:12px; margin-top:4px; }

.map-main{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  box-shadow: var(--shadow);
  overflow:hidden;

  height: 100%;
  min-height: 0;
}

/* Mapa acompanha 100% do container */
.leaflet-map{
  height: 100%;
  min-height: 0;
}

/* Leaflet popup refinado */
.leaflet-popup-content{ margin: 12px 14px; }
.leaflet-popup-content-wrapper{ border-radius: 16px; }

.mp-card{ font-family: Arial, sans-serif; padding: 2px 0; }
.mp-head{ padding-bottom: 10px; }
.mp-title{
  font-weight: 900;
  color:#0f3d2e;
  font-size: 16px;
  line-height: 1.2;
}
.mp-sub{
  color:#666;
  font-size:12px;
  margin-top: 6px;
}
.mp-chip{
  display:inline-block;
  margin-top:10px;
  padding:4px 10px;
  border-radius:999px;
  background:#f3efe9;
  color:#5a2a12;
  font-weight:900;
  font-size:12px;
}
.mp-desc{
  margin-top: 8px;
  color:#333;
  font-size:12px;
  line-height:1.55;
}
.mp-grid{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.mp-row b{ color:#111; }
.mp-row a{
  color:#0f3d2e;
  font-weight:900;
  text-decoration:none;
  word-break: break-word;
}
.mp-row a:hover{ text-decoration: underline; }
.mp-obs{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  color:#666;
  font-size:11px;
  line-height:1.45;
}

/* ===========================
   Bottom-sheet (mobile/tablet)
   =========================== */

body.no-scroll{ overflow:hidden; }

.mp-sheet{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.mp-sheet.is-open{ display:block; }

.mp-sheet-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.42);
}

.mp-sheet-panel{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:#fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -18px 40px rgba(0,0,0,.22);
  max-height: 88vh;
  display:flex;
  flex-direction: column;
}

.mp-sheet-handle{
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  margin: 10px auto 2px;
}

.mp-sheet-head{
  padding: 10px 14px 8px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.mp-sheet-title{
  font-weight: 900;
  color:#111;
}

.mp-sheet-close{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mp-sheet-body{
  padding: 12px 14px 16px;
  overflow:auto;
}

.mp-sheet-mapwrap{
  position: relative;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
}

.mp-sheet-map{
  height: 160px;
  width: 100%;
}

.mp-sheet-openmap{
  position:absolute;
  right: 10px;
  bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  cursor: pointer;
}

/* ============================================================
   MOBILE (<=680px): lista -> sheet; esconder mapa grande
   ============================================================ */
@media (max-width: 680px){
  .map-shell{
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .map-main{ display:none; }

  .map-side{ height: auto; min-height: auto; }

  .map-filters{ margin: 0 14px 12px; gap: 8px; }
  .map-filter{ min-width: 100%; }

  .mp-sheet-panel{ max-height: 88vh; }
}

/* ============================================================
   TABLET (681px–1024px): IGUAL AO MOBILE (o ajuste pedido)
   ✅ some o mapa “embaixo”
   ✅ clique abre o sheet (mp-sheet)
   ============================================================ */
@media (min-width: 681px) and (max-width: 1024px){

  .map-shell{
    grid-template-columns: 1fr !important;
    height: auto !important;
    max-height: none !important;
  }

  /* some o mapa grande (que no tablet estava ficando embaixo) */
  .map-main{
    display:none !important;
    height:auto !important;
    min-height:0 !important;
  }

  .map-side{
    height:auto !important;
    min-height:auto !important;
  }

  /* dá mais conforto no sheet no tablet */
  .mp-sheet-panel{ max-height: 90vh; }
  .mp-sheet-map{ height: 200px; }
}

/* ===========================
   Pesquisa (público) — Tópicos
   =========================== */

.pesquisa-resumo{
  margin: 8px 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.topic-list{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-block{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.topic-title{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  color: #0f3d2e;
}

.topic-desc{
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.topic-image-wrap{
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f3f3;
}

.topic-image{
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.credito-imagem{
  display: block;
  font-size: 12px;
  color: #666;
  margin: 5px;
  font-style: italic;
}

.topic-sep{
  margin-top: 14px;
  height: 1px;
  background: rgba(0,0,0,.06);
}

.ft-team-text{
  margin: 10px 0 18px;
  color: #2f2f2f;
  line-height: 1.5;
}

.ft-person-card{
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.ft-person-card-link{ cursor: pointer; }

/* =========================================
   MOBILE HEADER: busca central e responsiva
   ========================================= */
@media (max-width: 768px) {

  .site-header,
  header,
  .topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .search-wrap,
  .header-search,
  .pesquisa-busca,
  .search-bar {
    width: 100%;
    margin: 0 auto;
  }

  .search-wrap input[type="search"],
  .search-wrap input[type="text"],
  .header-search input,
  .pesquisa-busca input,
  .search-bar input {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
  }

  .search-wrap button,
  .header-search button,
  .pesquisa-busca button,
  .search-bar button {
    height: 44px;
    border-radius: 12px;
  }
}

/* =========================================
   SUBMENUS: chips roláveis (sem quebrar linha)
   ========================================= */
@media (max-width: 768px) {

  .pesquisa-submenu,
  .submenus,
  .tabs,
  .pesquisa-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 4px;
    margin-bottom: 12px;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pesquisa-submenu::-webkit-scrollbar,
  .submenus::-webkit-scrollbar,
  .tabs::-webkit-scrollbar,
  .pesquisa-tabs::-webkit-scrollbar {
    display: none;
  }

  .pesquisa-submenu a,
  .pesquisa-submenu button,
  .submenus a,
  .tabs a,
  .pesquisa-tabs a {
    flex: 0 0 auto;
    white-space: nowrap;

    font-size: 13px;
    padding: 7px 10px;
    border-radius: 999px;
    line-height: 1.2;

    min-height: 34px;
  }
}

/* =====================================================
   DESKTOP — BUSCA NA MESMA LINHA DO MENU (COMO ANTES)
   ===================================================== */
@media (min-width: 769px){
  .header-search{
    width:auto;
    display:flex;
    justify-content:flex-end;
    margin-top:0;
    padding:0;
  }

  .header-right,
  .header-actions,
  .topbar-right,
  .menu-area {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .search-wrap input,
  .search-bar input,
  .pesquisa-busca input {
    width: 340px;
    max-width: 38vw;
    height: 40px;

    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.65) !important;
    border-radius: 999px !important;

    padding: 0 16px;
    color: #fff;
    outline: none;
    box-shadow: none !important;
  }

  .header-search input::placeholder,
  .search-wrap input::placeholder,
  .search-bar input::placeholder,
  .pesquisa-busca input::placeholder {
    color: rgba(255,255,255,0.85);
  }
}
