/* =========================
   PUBLIC SHOW — LocalLink
   Hero e blocos ajustados
========================= */

.pub-wrap{
  width: min(1320px, 94%);
  margin: 0 auto;
  padding: 18px 0 46px;
  color: var(--ll-text, #0f172a);
}

.pubx-hero{
  width:100%;
  max-width:none;
}

/* top actions */
.pub-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin: 8px 0 18px;
}

.pub-actions-left,
.pub-actions-right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.pub-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg,#fff,#f8fafc);
  color: var(--ll-text, #0f172a);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}

.pub-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
  border-color:rgba(79,111,82,.24);
}

.pub-btn-solid{
  border-color:rgba(79,111,82,.42);
  background:linear-gradient(180deg,var(--ll-primary, #4f6f52),var(--ll-primary-dark, #3e5942));
  color:#fff;
  box-shadow:0 12px 26px rgba(79,111,82,.18);
}

/* hero */
.pub-hero{
  position: relative;
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap:24px;
  align-items:center;
  padding:28px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:26px;
  background:
    radial-gradient(280px 180px at 100% 0%, rgba(79,111,82,.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  box-shadow:
    0 24px 54px rgba(15,23,42,.08),
    0 1px 0 rgba(255,255,255,.65) inset;
  overflow:hidden;
}

.pub-hero-left{
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* importante */
  justify-content: center;
  min-width: 0;
  
}


.pub-badge{
  display: inline-flex;
  align-items: center;
  
  align-self: flex-start;
  gap: 6px;

  padding: 7px 14px;
  margin: 0 0 18px 0;

  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;

  color: #fff;
  background: linear-gradient(180deg,#374151,#111827);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.pub-badge::before{
  content:"🏛";
  font-size:12px;
  line-height:1;
}

.pub-brand{
  display:flex;
  gap:16px;
  align-items:center;
  
}

.pub-brand-copy{
  min-width:0;
}

.pub-logo{
  width:80px;
  height:80px;
  object-fit:contain;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 12px 26px rgba(15,23,42,.08);
  padding:6px;
  flex:0 0 auto;
}

.pub-logo-ph{
  background:linear-gradient(180deg,#e2e8f0,#cbd5e1);
}

.pub-title{
  margin:0;
  font-size:26px;
  line-height:1.02;
  letter-spacing:-.035em;
  color:var(--ll-text, #0f172a);
  font-weight:900;
}

.pub-meta{
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--ll-muted, #64748b);
  margin-top:10px;
  font-size:14px;
  font-weight:700;
  flex-wrap:wrap;
}

[dir="rtl"] .pub-hero-badge-wrap{
  justify-content:flex-end;
}

.pub-hero-right{
  min-width:0;
}

/* badge no canto superior esquerdo */


.pub-dot{ opacity:.45; }

.pub-hero-img{
  width:100%;
  height:100%;
  min-height:280px;
  max-height:330px;
  object-fit:cover;
  border-radius:22px;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:
    0 18px 36px rgba(15,23,42,.10),
    0 1px 0 rgba(255,255,255,.55) inset;
  display:block;
}

/* generic sections */
.pub-chief,
.pub-about,
.pub-services,
.pub-gallery,
.pub-info{
  margin-top:18px;
  padding:22px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  box-shadow:0 18px 40px rgba(15,23,42,.06);
}

.pub-h2{
  margin:0 0 14px;
  font-size:20px;
  letter-spacing:-.02em;
  color:var(--ll-text, #0f172a);
}

.pub-text{
  color:#334155;
  line-height:1.85;
  font-size:14px;
}

.pub-muted{
  color:var(--ll-muted, #64748b);
  font-size:14px;
}

/* chief block */
.pub-chief-grid{
  display:grid;
  grid-template-columns: 1.22fr .78fr;
  gap:16px;
  align-items:start;
}

.pub-main{ min-width:0; }

.pub-chief-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.pub-chief-photo{
  width:132px;
  height:112px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  flex:0 0 auto;
}

.pub-chief-ph{
  background:linear-gradient(180deg,#e2e8f0,#cbd5e1);
}

.pub-chief-info{
  min-width:0;
}

.pub-chief-name{
  font-weight:900;
  font-size:17px;
  color:var(--ll-text, #0f172a);
  line-height:1.3;
}

.pub-chief-role{
  color:var(--ll-muted, #64748b);
  margin-top:4px;
  font-size:13px;
}

.pub-chief-bio{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dashed rgba(148,163,184,.55);
}

.pub-chief-bio .pub-text{
  color:#334155;
  font-size:13.5px;
  line-height:1.8;
}

.pub-mini-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  margin:10px 0 8px;
  font-size:13px;
  color:var(--ll-text, #0f172a);
}

.pub-mini-title::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--ll-primary, #4f6f52);
  box-shadow:0 0 0 4px rgba(79,111,82,.12);
  display:inline-block;
}

/* sidebar */
.pub-side{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

.pub-card{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.pub-card-title{
  font-weight:900;
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  color:var(--ll-text, #0f172a);
  font-size:15px;
}

.pub-ico{
  display:inline-flex;
  width:18px;
  justify-content:center;
  color:var(--ll-primary, #4f6f52);
}

.pub-kv{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px;
}

.pub-k{
  color:var(--ll-muted, #64748b);
  font-weight:800;
  font-size:12.5px;
}

.pub-v{
  font-size:13.5px;
  color:var(--ll-text, #0f172a);
  word-break:break-word;
  line-height:1.55;
}

.pub-actions-mini{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.pub-mini{
  display:inline-flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  padding:10px 13px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  color:var(--ll-text, #0f172a);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.pub-mini:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(15,23,42,.07);
  border-color:rgba(79,111,82,.24);
}

/* status */
.pub-status{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  font-weight:900;
  font-size:12.5px;
  background:#fff;
  width:max-content;
  max-width:100%;
}

.pub-status.is-open{
  border-color:rgba(22,163,74,.30);
  background:rgba(22,163,74,.09);
  color:#166534;
}
.pub-status.is-closed{
  border-color:rgba(220,38,38,.30);
  background:rgba(220,38,38,.08);
  color:#991b1b;
}
.pub-status.is-unknown{
  border-color:rgba(100,116,139,.28);
  background:rgba(100,116,139,.06);
  color:#475569;
}

.pub-hint{
  margin-top:8px;
  color:var(--ll-muted, #64748b);
  font-size:12.5px;
  line-height:1.5;
}

/* gallery */
.pub-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.pub-thumb{
  display:block;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease;
}

.pub-thumb:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 32px rgba(15,23,42,.08);
}

.pub-thumb img{
  width:100%;
  height:155px;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.pub-thumb:hover img{
  transform:scale(1.06);
}

/* useful info + map */
.pub-info-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:16px;
}

.pub-box{
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:16px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.pub-row{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:10px;
  padding:11px 0;
  border-bottom:1px solid rgba(226,232,240,.9);
}
.pub-row:last-child{
  border-bottom:none;
}

.pub-iframe iframe{
  width:100% !important;
  height:340px !important;
  border:0;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}

/* RTL */
[dir="rtl"] .pub-actions-left,
[dir="rtl"] .pub-actions-right,
[dir="rtl"] .pub-meta,
[dir="rtl"] .pub-brand{
  flex-direction:row-reverse;
}

[dir="rtl"] .pub-chief-card{
  flex-direction:row-reverse;
}

[dir="rtl"] .pub-kv{
  grid-template-columns:1fr 120px;
}

[dir="rtl"] .pub-k,
[dir="rtl"] .pub-v{
  text-align:right;
}



/* responsive */
@media (max-width: 980px){
  .pub-hero{
    grid-template-columns:1fr;
    padding:22px;
    gap:18px;
  }

  .pub-title{
    font-size:18px;
  }

  .pub-hero-img{
    min-height:230px;
    max-height:280px;
  }

  .pub-chief-grid{
    grid-template-columns:1fr;
  }

  .pub-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .pub-info-grid{
    grid-template-columns:1fr;
  }

  .pub-chief,
  .pub-about,
  .pub-services,
  .pub-gallery,
  .pub-info{
    padding:20px;
  }
}

@media (max-width: 640px){
  .pub-wrap{
    width:min(100%, 94%);
  }

  .pub-title{
    font-size:28px;
  }

  .pub-brand{
    align-items:flex-start;
  }

  .pub-logo{
    width:64px;
    height:64px;
    border-radius:16px;
  }

  .pub-badge{
    font-size:10px;
    padding:6px 12px;
  }

  .pub-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .pub-thumb img{
    height:120px;
  }

  .pub-chief-card{
    flex-direction:column;
  }

  .pub-chief-photo{
    width:100%;
    height:190px;
  }

  .pub-actions-left,
  .pub-actions-right{
    width:100%;
  }

  .pub-btn,
  .pub-mini{
    width:100%;
  }

  .pub-row{
    grid-template-columns:1fr;
    gap:4px;
  }

  .pub-iframe iframe{
    height:260px !important;
  }
}



.pub-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#2f4333;
  font-weight:800;
  text-decoration:none;
}

.pub-link:hover{
  text-decoration:underline;
}
/* =========================================
   HERO NOVO — SHOW PUBLIC
   Classes novas para não disputar com nada
========================================= */

.pubx-hero{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:24px;
  align-items:center;

  margin-top: 8px;
  padding: 28px;

  border-radius: 28px;
  border: 1px solid rgba(15,23,42,.08);

  background:
    radial-gradient(260px 160px at 100% 0%, rgba(79,111,82,.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));

  box-shadow:
    0 22px 48px rgba(15,23,42,.07),
    0 1px 0 rgba(255,255,255,.65) inset;

  overflow: hidden;
}

.pubx-hero-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}

.pubx-chip--inline{
  padding: 6px 12px;
  font-size: 10px;
  margin-right: 6px;
  box-shadow: none;
}



.pubx-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:8px 15px;
  border-radius:999px;

  background:linear-gradient(180deg,#4f6f52,#2f4b37);
  color:#fff;

  font-size:11px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
  line-height:1;
  white-space:nowrap;

  box-shadow:0 8px 18px rgba(15,23,42,.22);
}

.pubx-chip i{
  font-size:12px;
  opacity:.95;
}

.pubx-brand{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
  width:100%;
}

.pubx-logo{
  width:84px;
  height:84px;
  object-fit:contain;
  border-radius:20px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 12px 26px rgba(15,23,42,.08);
  padding:7px;
  flex:0 0 auto;
}

.pubx-logo--ph{
  background:linear-gradient(180deg,#e2e8f0,#cbd5e1);
}

.pubx-brand-copy{
  min-width:0;
}

.pubx-title{
  margin:0;
  font-size:28px;
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:900;
  color:var(--ll-text, #0f172a);
}

.pubx-meta{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;

  font-size:14px;
  font-weight:700;
  color:var(--ll-muted, #64748b);
}

.pubx-sep{
  opacity:.45;
}

.pubx-hero-media{
  min-width:0;
}

.pubx-cover{
  width:100%;
  height:100%;
  min-height:290px;
  max-height:340px;
  object-fit:cover;
  display:block;

  border-radius:24px;
  border:1px solid rgba(15,23,42,.08);

  box-shadow:
    0 18px 38px rgba(15,23,42,.10),
    0 1px 0 rgba(255,255,255,.55) inset;
}

.pubx-cover--ph{
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#e2e8f0,#cbd5e1);
  color:#475569;
  font-weight:800;
}

/* RTL */
[dir="rtl"] .pubx-hero-copy{
  align-items:flex-end;
}

[dir="rtl"] .pubx-brand{
  flex-direction:row-reverse;
}

[dir="rtl"] .pubx-meta{
  justify-content:flex-end;
}

[dir="rtl"] .pubx-topline{
  text-align:right;
}

/* responsive */
@media (max-width: 980px){
  .pubx-hero{
    grid-template-columns:1fr;
    gap:18px;
    padding:22px;
  }

  .pubx-title{
    font-size:34px;
  }

  .pubx-cover{
    min-height:230px;
    max-height:280px;
  }
}

@media (max-width: 640px){
  .pubx-title{
    font-size:28px;
  }

  .pubx-brand{
    align-items:flex-start;
    gap:14px;
  }

  .pubx-logo{
    width:68px;
    height:68px;
    border-radius:16px;
  }

  .pubx-chip{
    font-size:10px;
    padding:7px 12px;
  }

  .pubx-cover{
    min-height:210px;
    max-height:240px;
    border-radius:18px;
  }
}








/* =========================
   PÁGINA LISTAGEM PÚBLICOS — NOVA VERSÃO
   Mais institucional, mais forte, mais LocalLink
========================= */

.pub-page-wrap{
  max-width: 1180px;
  margin: 28px auto 46px;
  padding: 0 18px;
}

/* =========================
   TOPO / HERO DA LISTAGEM
========================= */

.pub-top{
  display:grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap:18px;
  align-items:end;
  margin-bottom:22px;
  padding: 22px 24px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  background:
    radial-gradient(280px 150px at 100% 0%, rgba(79,111,82,.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 20px 44px rgba(15,23,42,.06);
}

.pub-head-copy{
  min-width:0;
}

.pub-page-title{
  margin:0;
  font-size:33px;
  line-height:1.02;
  letter-spacing:-.035em;
  color:var(--ll-text, #0f172a);
  font-weight:900;
}

.pub-page-subtitle{
  margin-top:10px;
  color:var(--ll-muted, #64748b);
  font-size:14px;
  line-height:1.7;
  max-width:760px;
}

.pub-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.pub-total{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  background: rgba(79,111,82,.08);
  border:1px solid rgba(79,111,82,.14);
  font-size:13px;
  color:var(--ll-muted, #64748b);
  box-shadow:0 10px 22px rgba(15,23,42,.04);
}

.pub-total strong{
  color:var(--ll-text, #0f172a);
  margin-left:6px;
  font-weight:900;
}

/* =========================
   BOTÕES
========================= */

.btn{
  border-radius:14px;
  padding:10px 14px;
  min-height:44px;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg,#fff,#f8fafc);
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  text-decoration:none;
  color:var(--ll-text, #0f172a);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 10px 22px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
  border-color:rgba(79,111,82,.24);
}

.btn-primary{
  background: linear-gradient(180deg, var(--ll-primary, #4f6f52), var(--ll-primary-dark, #3e5942));
  color: #fff;
  border-color: rgba(79,111,82,.42);
  box-shadow: 0 12px 24px rgba(79,111,82,.18);
}

.btn-primary:hover{
  background: linear-gradient(180deg, var(--ll-primary-dark, #3e5942), #324a37);
  color: #fff;
  border-color: rgba(79,111,82,.50);
}

.pub-list-foot .btn-primary{
  min-width: 170px;
  border-radius: 14px;
  font-weight: 900;
}

.btn-soft{
  background:rgba(79,111,82,.08);
  color:var(--ll-primary-dark, #35523a);
  border-color:rgba(79,111,82,.16);
}

/* =========================
   FILTROS
========================= */

.filters{
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  background:
    radial-gradient(260px 140px at 100% 0%, rgba(79,111,82,.08), transparent 70%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  padding:20px;
  margin:16px 0 28px;
  box-shadow:0 18px 36px rgba(15,23,42,.05);
}

.pub-filter-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  margin-bottom:14px;
  color:var(--ll-text, #0f172a);
  font-size:15px;
}

.pub-filter-title::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--ll-primary, #4f6f52);
  box-shadow:0 0 0 4px rgba(79,111,82,.12);
  display:inline-block;
}

.fgrid{
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr auto;
  gap:12px;
  align-items:end;
}

.flabel{
  font-size:12px;
  color:var(--ll-muted, #64748b);
  margin:0 0 6px;
  font-weight:800;
}

.finput,
.fselect{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid rgba(203,213,225,.95);
  border-radius:14px;
  background:#fff;
  outline:none;
  color:var(--ll-text, #0f172a);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.finput:focus,
.fselect:focus{
  border-color:rgba(79,111,82,.34);
  box-shadow:0 0 0 4px rgba(79,111,82,.10);
}

.pub-filter-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

/* =========================
   EMPTY
========================= */

.pub-empty{
  padding:22px;
  border:1px dashed rgba(148,163,184,.42);
  border-radius:20px;
  background:rgba(255,255,255,.92);
  color:var(--ll-muted, #64748b);
  box-shadow:0 10px 24px rgba(15,23,42,.03);
  font-size:14px;
}

/* =========================
   GRID DE CARDS
========================= */

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
  gap:22px;
  margin-top:10px;
}

/* =========================
   CARD PÚBLICO
========================= */

.pub-list-card{
  border:1px solid rgba(15,23,42,.08);
  border-radius:24px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.97));
  box-shadow:0 18px 38px rgba(15,23,42,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position:relative;
}

.pub-list-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 46px rgba(15,23,42,.10);
  border-color:rgba(79,111,82,.20);
}

.pub-list-card::before{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  top:-4px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--ll-primary, #4f6f52), rgba(79,111,82,.38));
}

.pub-list-link-wrap{
  text-decoration:none;
  color:inherit;
  display:block;
}

/* imagem */
.pub-list-media{
  height:210px;
  background:linear-gradient(180deg,#e2e8f0,#cbd5e1);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

.pub-list-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pub-list-noimg{
  opacity:.62;
  font-size:13px;
  color:#475569;
  font-weight:700;
}

/* badge público */
.pub-list-badge{
  position:absolute;
  top:14px;
  left:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;

  background:linear-gradient(180deg, rgba(15,23,42,.92), rgba(30,41,59,.88));
  color:#fff;

  font-size:10px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;

  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 20px rgba(15,23,42,.18);
}

/* corpo */
.pub-list-body{
  padding:16px 16px 14px;
}

.pub-list-top{
  display:flex;
  gap:13px;
  align-items:center;
}

.pub-list-logo{
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  flex:0 0 auto;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}

.pub-list-logo-ph{
  background:linear-gradient(180deg,#e5e7eb,#d1d5db);
}

.pub-list-copy{
  min-width:0;
  flex:1;
}

.pub-list-title{
  font-weight:900;
  line-height:1.25;
  color:var(--ll-text, #0f172a);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:18px;
}

.pub-list-meta{
  margin-top:5px;
  font-size:12.8px;
  color:var(--ll-muted, #64748b);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:700;
}

.pub-list-owner{
  margin-top:14px;
  font-size:13px;
  color:#334155;
  font-weight:700;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:40px;
}

/* footer */
.pub-list-foot{
  padding:14px 16px 18px;
  border-top:1px solid rgba(226,232,240,.92);
  display:flex;
  gap:10px;
  justify-content:center;
  background:rgba(255,255,255,.72);
}

.pub-list-foot .btn{
  min-width:160px;
}

/* =========================
   RTL
========================= */

[dir="rtl"] .pub-actions{
  justify-content:flex-start;
}

[dir="rtl"] .pub-list-top{
  flex-direction:row-reverse;
}

[dir="rtl"] .pub-list-title,
[dir="rtl"] .pub-list-meta,
[dir="rtl"] .pub-list-owner,
[dir="rtl"] .pub-page-title,
[dir="rtl"] .pub-page-subtitle,
[dir="rtl"] .flabel,
[dir="rtl"] .pub-empty{
  text-align:right;
}

[dir="rtl"] .pub-list-badge{
  left:auto;
  right:14px;
}

/* BOTÃO VER DETALHES — LOCALINK STYLE */

.pub-list-foot .btn{
  background: linear-gradient(180deg, var(--ll-primary, #4f6f52), var(--ll-primary-dark, #3e5942));
  color: #ffffff;
  border-color: rgba(79,111,82,.40);
  box-shadow: 0 12px 24px rgba(79,111,82,.18);
}

.pub-list-foot .btn:hover{
  background: linear-gradient(180deg, var(--ll-primary-dark, #3e5942), #324a37);
  color:#fff;
  transform: translateY(-1px);
}

.pub-list-owner{
  margin-top:12px;
  font-size:13px;
  color:#334155;  
  font-weight:700;
}

.pub-list-desc{
  margin-top:8px;
  font-size:13px;
  color:#475569;
  line-height:1.55;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 980px){
  .pub-top{
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .fgrid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 640px){
  .pub-page-wrap{
    margin-top:20px;
    padding:0 14px;
  }

  .pub-actions{
    justify-content:flex-start;
  }

  .filters{
    padding:14px;
    border-radius:20px;
  }

  .fgrid{
    grid-template-columns:1fr;
  }

  .pub-filter-actions{
    justify-content:stretch;
  }

  .pub-filter-actions .btn{
    width:100%;
  }

  .card-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .pub-list-media{
    height:190px;
  }

  .pub-list-foot .btn{
    width:100%;
    min-width:0;
  }

  .pub-page-title{
    font-size:22px;
  }
}


.pub-page-subtitle--note{
  margin-top: 6px;
}

.pub-list-body{
  padding: 15px 15px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pub-list-top{
  display: flex;
  gap: 12px;
  align-items: center;
}

.pub-list-copy{
  min-width: 0;
  flex: 1;
}

.pub-list-title{
  font-weight: 900;
  line-height: 1.25;
  color: var(--ll-text, #0f172a);
  font-size: 17px;
}

.pub-list-meta{
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ll-muted, #64748b);
}

.pub-list-owner{
  font-size: 13px;
  color: #334155;
  font-weight: 700;
  line-height: 1.45;
}

.pub-list-desc{
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}

.pub-list-foot{
  padding: 12px 15px 16px;
  border-top: 1px solid rgba(226,232,240,.9);
  display: flex;
  justify-content: center;
  background: rgba(255,255,255,.7);
}

.pub-list-title{
font-size:18px;
font-weight:900;
letter-spacing:-.02em;
}

.pub-list-meta{
font-size:13px;
color:#64748b;
margin-top:3px;
}

.pub-list-owner{
font-size:13px;
font-weight:700;
margin-top:10px;
color:#334155;
}

.pub-list-desc{
font-size:13px;
margin-top:6px;
color:#475569;
line-height:1.55;
}


/* ===============================
   CARDS PUBLICOS — UPGRADE VISUAL
================================ */

.pub-list-card{
  border-radius:18px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  transition:all .25s ease;
}

.pub-list-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(15,23,42,.12);
}


/* imagem */
.pub-list-media{
  position:relative;
  overflow:hidden;
}

.pub-list-media img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}


/* badge publico */
.pub-list-badge{
  position:absolute;
  top:12px;
  left:12px;

  padding:5px 10px;
  border-radius:999px;

  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;

  background:#1f2937;
  color:#fff;

  box-shadow:0 4px 10px rgba(0,0,0,.18);
}


/* corpo */
.pub-list-body{
  padding:16px;
}

.pub-list-top{
  display:flex;
  align-items:center;
  gap:12px;
}


/* logo */
.pub-list-logo{
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  padding:3px;
}

.pub-list-logo-ph{
  background:#e2e8f0;
}


/* titulo */
.pub-list-title{
  font-size:17px;
  font-weight:900;
  color:#0f172a;
  line-height:1.2;
}


/* localização */
.pub-list-meta{
  font-size:12.5px;
  color:#64748b;
  margin-top:3px;
}


/* instituição */
.pub-list-owner{
  margin-top:10px;
  font-size:13px;
  font-weight:700;
  color:#334155;
}


/* descrição */
.pub-list-desc{
  margin-top:6px;
  font-size:13px;
  color:#475569;
  line-height:1.5;
}


/* footer */
.pub-list-foot{
  padding:14px;
  border-top:1px solid rgba(226,232,240,.9);
  display:flex;
  justify-content:center;
}


/* botão */
.pub-list-foot .btn{
  padding:8px 18px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
}


/* ===============================
   MELHORIAS PREMIUM DOS CARDS
================================ */

/* zoom suave na imagem */
.pub-list-media img{
  transition:transform .45s ease;
}

.pub-list-card:hover .pub-list-media img{
  transform:scale(1.05);
}


/* badge com brilho */
.pub-list-badge{
  position:absolute;
  overflow:hidden;
}

.pub-list-badge::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width:40%;
  height:180%;
  background:linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,.6),
      transparent
  );
  transform:rotate(25deg);
  animation:badgeShine 3.5s infinite;
}

@keyframes badgeShine{
  0%{left:-60%;}
  60%{left:130%;}
  100%{left:130%;}
}


/* hover do card */
.pub-list-card{
  transition:
  transform .25s ease,
  box-shadow .25s ease,
  border-color .25s ease;
}

.pub-list-card:hover{
  border-color:rgba(79,111,82,.35);
}


/* botão mais forte */
.pub-list-foot .btn{
  background:linear-gradient(180deg,#4f6f52,#2f4b37);
  border:none;
  color:#fff;
}

.pub-list-foot .btn:hover{
  background:linear-gradient(180deg,#5e8364,#3b5f48);
}







.pub-hours-text {
  white-space: pre-line;
  line-height: 1.55;
}


.pub-ico i,
.pub-k i,
.pub-mini i {
  width: 16px;
  text-align: center;
}

.pub-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-k {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  }



  



/* ===========================
   FOOTER DO CARD (BOTÃO + VALIDADE)
   =========================== */

.pub-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

/* botão mantém-se como está (btn btn-primary) */


/* ===========================
   VALIDADE
   =========================== */

.pub-validade {
  font-size: 0.70rem;
  font-weight: 700;
  white-space: nowrap;
  color: #2e7d32; /* verde padrão */
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* até 15 dias */
.pub-validade.warn {
  color: #d97706; /* laranja */
}

/* até 7 dias */
.pub-validade.danger {
  color: #dc2626; /* vermelho */
}

/* dias restantes */
.pub-validade small {
  font-weight: 600;
  opacity: 0.9;
}


/* ===========================
   RESPONSIVO (TELEMÓVEL)
   =========================== */

@media (max-width: 480px) {
  .pub-list-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pub-validade {
    font-size: 0.65rem;
  }
}




/* ===== PUBLICOS MOBILE FIX FINAL ===== */
@media (max-width: 640px) {

  /* Botões do topo: Voltar / Total / Entidades / Províncias */
  .pub-top .pub-actions {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .pub-top .pub-actions .btn,
  .pub-top .pub-actions .pub-total {
    width: auto !important;
    min-width: 118px !important;
    height: 46px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .pub-top .pub-actions .btn {
    min-width: 118px !important;
  }

  .pub-top .pub-actions .pub-total {
    min-width: 125px !important;
  }

  /* Botão Ver detalhes dentro dos cards */
  .pub-list-foot {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 14px !important;
  }

  .pub-list-foot .btn,
  .pub-list-foot .btn-primary {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  .pub-validade {
    width: 100% !important;
    justify-content: flex-start !important;
    margin-top: 2px !important;
  }
}



@media (max-width: 640px) {

  .pub-filter-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .pub-filter-actions .btn,
  .pub-filter-actions a,
  .pub-filter-actions button {
    width: 100% !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 14px !important;
    font-weight: 900 !important;
  }
}


/* PC ONLY */
@media (min-width: 768px) {

  .pub-list-foot {
    justify-content: center;
    align-items: center;
  }

  .pub-list-foot .btn,
  .pub-list-foot .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    height: 46px;
    padding: 0 20px;
    line-height: 1;
  }


   }



   /* ===== PUBLICOS — HERO MOBILE TITLE FIX ===== */
@media (max-width: 640px){

  .pub-top{
    text-align:center !important;
    padding:28px 22px !important;
  }

  .pub-head-copy{
    width:100% !important;
    text-align:center !important;
  }

  .pub-page-title{
    font-size:28px !important;
    line-height:1.05 !important;
    letter-spacing:-1px !important;
    text-align:center !important;
    max-width:340px !important;
    margin:0 auto 18px !important;
  }

  .pub-page-subtitle{
    font-size:15px !important;
    line-height:1.65 !important;
    text-align:center !important;
    max-width:340px !important;
    margin:0 auto 12px !important;
  }

  .pub-page-subtitle--note{
    margin-top:10px !important;
  }
}



/* SHOW PUBLIC — títulos principais centrados */

.pub-about > .pub-h2,
.pub-services > .pub-h2,
.pub-gallery > .pub-h2,
.pub-info > .pub-h2{
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pub-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

