:root {
  --green-bg: #eef4e0;
  --green-light: rgba(136, 198, 101, 0.2);
  --green-mid: #b9d17f;
  --radius-full: 999px;
}

.filters-bar {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}
.filters-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text_color);
  margin-bottom: 20px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text_color);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.divider {
  width: 1px;
  align-self: stretch;
  background: var(--green-mid);
  opacity: 0.6;
}

.search-group {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 12px 44px 12px 18px;
  border: none;
  border-radius: var(--radius-full);
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--text_color);
  outline: none;
}

.search-input::placeholder {
  color: #4a5a2e;
  opacity: 0.7;
}

.icon-search {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
}

.icon-search svg {
  width: 16px;
  height: 16px;
  opacity: 1;
  pointer-events: none;
}

.pill-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filters-panel__main .pill , .filters-bar .pill {
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  color: var(--text_color);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pill:hover {
  background: #63c1006b;
}

.pill.active {
  background: var(--destaque_color);
  color: #fff;
}

.year-select {
  position: relative;
}

.year-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--destaque_color);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.year-btn span{
  font-weight: 500;

}
.chevron {
  font-size: 12px;
  transition: transform 0.15s ease;
}

.year-select.open .chevron {
  transform: rotate(180deg);
}

.year-dropdown {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 10;
}

.year-select.open .year-dropdown {
  display: block;
}

.year-dropdown li {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text_color);
  cursor: pointer;
  font-size: 14px;
}

.year-dropdown li:hover {
  background: var(--green-light);
}

.active-filters-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(182, 193, 151, 0.1);
  border-radius: 5px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.active-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text_color);
  letter-spacing: 0.5px;
}

.active-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text_color);
}

.tag span, .results-count span{

  font-weight: 500;
}

.tag button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text_color);
  opacity: 0.6;
  line-height: 1;
}

.tag button:hover {
  opacity: 1;
}

.clear-filters {
  border: none;
  background: none;
  color: #66893D;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
}

.clear-filters:hover {
  text-decoration: underline;
}

.results-count {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text_color);
  font-weight: 500;
}

.found-link {
  color: var(--destaque_color);
  text-decoration: none;
  font-weight: 500;
}

.found-link:hover {
  text-decoration: underline;
}
.filters-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.filters-panel__main {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.custom-select {
  position: relative;
}

.custom-select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  color: var(--text_color);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.custom-select-btn:hover {
  background: #63c1006b;
}

.custom-select .chevron {
  font-size: 12px;
  transition: transform 0.15s ease;
}

.custom-select.open .chevron {
  transform: rotate(180deg);
}

.custom-select-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 10;
}

.custom-select.open .custom-select-list {
  display: block;
}

.custom-select-list li {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text_color);
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.custom-select-list li:hover {
  background: var(--green-light);
}
.filters-panel__calendar {
  flex: 0 0 auto;
}

.mini-calendar {
  min-width: 320px;
}

.mini-calendar__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.cal-nav {
  border: none;
  background: none;
  font-size: 20px;
  color: var(--text_color);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.cal-nav:hover {
  opacity: 0.6;
}

.cal-month {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text_color);
  text-transform: uppercase;
}

.mini-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
  column-gap: 2px;
  text-align: center;
}

.cal-weekday {
  font-size: 15px;
  font-weight: 700;
  color: var(--text_color);
  padding-bottom: 8px;
  display: block;
}

.cal-day {
  border: none;
  background: none;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  color: var(--text_color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day.is-muted {
  opacity: 0.35;
  cursor: default;
}

.cal-day.is-in-range {
  background: var(--green-light);
}

.cal-day.is-range-start,
.cal-day.is-range-end {
  background: var(--destaque_color);
  color: #fff;
  font-weight: 700;
}

.cal-day:not(.is-muted):not(.is-range-start):not(.is-range-end):hover {
  background: var(--green-light);
}


@media (max-width: 900px) {
  .filters-panel {
    flex-direction: column;
  }

  .filters-panel__calendar {
    align-self: center;
  }
}