/* ============================= */
/* Filterblok in Vluchtelingenwerk-groen (#1d7874), compact en subtiel */
.views-exposed-form, .facet-block {
  background: #f7fafd;
  border: 1.5px solid #1d7874;
  border-radius: 8px;
  padding: 1em 0.8em 0.7em 0.8em;
  margin-bottom: 1.2em;
  box-shadow: 0 1px 4px rgba(29,120,116,0.07);
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  font-size: 0.97em;
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
}

.views-exposed-form label, .facet-block label {
  font-weight: 600;
  color: #1d7874;
  margin-bottom: 0.2em;
  font-size: 0.98em;
  letter-spacing: 0.01em;
}

.views-exposed-form input,
.views-exposed-form select,
.facet-block input,
.facet-block select {
  border-radius: 4px;
  border: 1px solid #b7cbe3;
  padding: 0.35em 0.7em;
  margin-bottom: 0.7em;
  width: 100%;
  font-size: 0.98em;
  background: #fff;
  color: #222;
  font-family: inherit;
  transition: border 0.2s;
  box-sizing: border-box;
}

.views-exposed-form input:focus,
.views-exposed-form select:focus,
.facet-block input:focus,
.facet-block select:focus {
  border-color: #1d7874;
  outline: none;
}

.views-exposed-form input[type="submit"],
.views-exposed-form input[type="reset"],
.facet-block input[type="submit"],
.facet-block input[type="reset"] {
  background: #1d7874;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5em 1.1em;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.98em;
  margin-top: 0.2em;
  margin-left: 0.5em;
  transition: background 0.2s;
  box-shadow: 0 1px 4px rgba(29,120,116,0.08);
  min-width: 120px;
  display: inline-block;
}

.views-exposed-form input[type="submit"]:hover,
.views-exposed-form input[type="reset"]:hover,
.facet-block input[type="submit"]:hover,
.facet-block input[type="reset"]:hover {
  background: #155a57;
}

.views-exposed-form .form-item,
.facet-block .form-item {
  margin-bottom: 0.7em;
}

.views-exposed-form .form-actions,
.facet-block .form-actions {
  text-align: right;
  margin-top: 0.5em;
}

/* Subtiele placeholder */
.views-exposed-form input::placeholder,
.facet-block input::placeholder {
  color: #b7cbe3;
  opacity: 1;
}

/* ============================= */
/* FIX: Knoppen altijd onder de selectbox, nooit ernaast */
.views-exposed-form .form--inline {
  display: block !important;
}

.views-exposed-form .form-item,
.views-exposed-form .form-actions {
  display: block !important;
  width: 100% !important;
  margin-bottom: 0.7em;
  float: none !important;
  clear: both !important;
}

.views-exposed-form .form-actions {
  margin-top: 0.2em;
  text-align: right;
}

/* Responsive: filterblok op mobiel 100% breed en compacter */
@media (max-width: 600px) {
  .views-exposed-form, .facet-block {
    max-width: 100%;
    padding: 0.7em 0.4em 0.6em 0.4em;
  }
}

/* ============================= */
/* Accordion styling voor categorieën publicaties */
/* ============================= */
.accordion-cat-title {
  font-weight: bold;
  background: #e6f2f1;
  color: #1d7874;
  padding: 0.7em 1em;
  border-radius: 6px;
  margin-bottom: 0.2em;
  margin-top: 1.2em;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.accordion-cat-title.open {
  background: #1d7874;
  color: #fff;
}
.accordion-cat-title::after {
  content: "▼";
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.2s;
  font-size: 0.9em;
}
.accordion-cat-title.open::after {
  transform: translateY(-50%) rotate(180deg);
}

/* ============================= */
/* 3 kolommen grid voor publicaties in elke categorie */
/* ============================= */
.row-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em 1em;
  background: #f7fafd;
  border-left: 3px solid #1d7874;
  padding: 0.7em 1.2em 0.7em 1.2em;
  margin-bottom: 1em;
  border-radius: 0 0 6px 6px;
  animation: fadeIn 0.2s;
}
.row-wrapper .views-row {
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 0;
}

/* Responsive: op tablet 2 kolommen, op mobiel 1 kolom */
@media (max-width: 900px) {
  .row-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .row-wrapper {
    grid-template-columns: 1fr;
    padding: 0.6em 0.6em;
    margin-bottom: 0.7em;
  }
}

/* Fade-in animatie */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
