
* 
{
    margin: 0;
    border: 0;
    padding: 0;
    font-family: var(--fonte-padrao);
}

body {
    background: #f5f6fa;
    color: #222;
}

/* Topbar */
.topbar {
    background: white;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.topbar .logo {
    font-size: 20px;
    font-weight: 700;
    color: #ff6600;
}

.topbar nav a {
    margin-left: 24px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
}

/* Layout */
.layout {
    display: flex;
    padding: 20px 40px;
    gap: 32px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: white;
    padding: 35px;
    border-radius: 12px;
    height: fit-content;
    border: 1px solid #ddd;
}

.sidebar h2 {
    margin-bottom: 12px;
}

/* Accordion */
/* Botão accordion com seta à direita */
.accordion {
  font-size: 1.1rem;
  font-weight: 700;
  width: 180px;
  min-width: 180px;
  background-color: #f0f4f8;
  color: #1a1a1a;
  padding: 12px 16px;
  margin-top: 16px;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion:hover {
  background-color: #e2eaf3;
}


.accordion.sub {
  display: flex;
  justify-content: space-between; /* texto à esquerda, seta à direita */
  align-items: center;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #fff;
  border-left: 4px solid #4a90e2;
  border-radius: 4px;
  margin: 6px 0 0 12px;
  cursor: pointer;
}

.accordion.sub .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.accordion.sub.active .arrow {
  transform: rotate(90deg); /* gira quando ativo */
}



.arrow::before {
  content: "▾"; /* seta para baixo */
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 24px;
  color: #666;
  margin-left: 8px;
}

.accordion.active .arrow::before {
  transform: rotate(180deg); /* vira para cima */
}

/* Painel colapsável com transição suave */
.panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
  margin-left: 0px;
  padding: 0; /* padding será aplicado quando aberto via conteúdo */
}

.panel.open {
  /* um valor grande para permitir crescer conforme o conteúdo */
  max-height: 400px;
  overflow-y: auto;
}


.panel label {
  display: block;
  margin: 8px;
  font-size: 14px;
}


.sidebar-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.clear-btn {
    background: #eee;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.filter-btn {
    background: #7b4cff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

/* Content */
.content h1 {
    margin-bottom: 16px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch; /* força altura igual */
}

/* Ajuste geral dos cards */
.card {
  min-height: 290px;
  max-height: 290px;
  background: white;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);

}

/* Botões dentro do card */
.card .visit-btn {
  margin-top: auto;           /* empurra o botão pro rodapé do card */
  align-self: flex-start;     /* opcional: alinha à esquerda */
}

/* Se tiver dois botões, controla o espaçamento */
.card .visit-btn + .visit-btn {
  margin-left: 8px;           /* espaçamento fixo entre eles */
}


/* Título e descrição menores */
.card h3 {
  font-size: 16px;
  line-height: 1.3;
  margin: 8px 0;
}

.card p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;    /* máximo de 3 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Container das tags */
.tags {
  display: flex;
  flex-wrap: wrap;          /* quebra em várias linhas */
  gap: 6px;                 /* espaço menor entre elas */
  max-height: 70px;         /* controla altura total */
  overflow: hidden;         /* esconde excesso */
}

/* Tags mais leves e compactas */
.tags span {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eee;         /* cor neutra */
  color: #555;              /* texto discreto */
  max-width: 120px;         /* limite de largura */
  overflow: hidden;
  text-overflow: ellipsis;  /* adiciona "..." se passar do limite */
  white-space: nowrap;      /* mantém em uma linha */
}



.visit-btn {
  display: inline-block;
  margin-bottom: auto;
  padding: 8px 16px;
  background: linear-gradient(135deg, #152f4d, #4b76a7);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-input {
  display: none; /* esconde o checkbox */
}

.toggle-label {
  width: 50px;
  height: 26px;
  background: #ccc;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-ball {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.toggle-input:checked + .toggle-label {
  background: #7b4cff; /* cor quando ativo */
}

.toggle-input:checked + .toggle-label .toggle-ball {
  transform: translateX(24px); /* move a bolinha para a direita */
}

#toggle-text {
  font-size: 14px;
  font-weight: 500;
  color: #444;
}
.panel.sub-panel label {
  display: block;
  font-size: 0.9rem;
  color: #444;
  padding: 6px 20px;
  margin: 2px 0;
  border-bottom: 1px solid #eee;
}

.panel.sub-panel input[type="checkbox"] {
  margin-right: 8px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.pagination button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #7b4cff, #5a2dff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.pagination button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #5a2dff, #7b4cff);
}

.pagination button:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}
