
.header-block {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.header-block__right-side-block {
  display: flex;
  justify-content: right;
  align-items: center;
  margin-right: 6%;
}

.header-block__search-div {
  width: 90%;
  height: 5em;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 2em;
}

.sort-icon--inactive {
  color: lightgray;
}

.sort-icon--active {
  color: black;
  font-weight: 600;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/*Side Panel */
.filter-block__advanced-filters {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: #ffffff;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 1000;
  padding: 0px 24px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.filter-block__advanced-filters.open {
  transform: translateX(0);
}

.filter-block__advanced-filters__buttons{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.close-btn {
  font-size: 28px;
  background: none;
  border: none;
  color: #666;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 24px 0px;
}

.close-btn:hover {
  color: #e53935;
}

.filter-block__button {
  background-color: #1e88e5;
  color: white;
  align-self: flex-end;
  margin-left: auto;
  margin-right: 5%;
  margin-bottom: 1.2em;
}

.filter-block__button:hover {
  background-color: #1565c0;
}

#clearFiltersButton{

}

.filter-block__advanced-filters__grid {
  display: grid;
  grid-template-columns: 25% 75%;
  flex-direction: column;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.filter-block__advanced-filters__grid label {
  font-size: 14px;
  font-weight: 500;
  justify-content: center;
  align-items: center;
}

.filter-block__advanced-filters__grid--stacked {
  display: grid;
  grid-template-rows: 50% 50%;
  flex-direction: column;
}

.filter-block__advanced-filters__grid-row {
  display: grid;
  grid-template-columns: 10% 90%;
  flex-direction: column;
  gap: 6px;
}

.filter-block__input {
  width: 100%;
  justify-self: center;
}


.index__partial-placeholder {
  width: 90%;
}

.index-block {
  width: 90%;
}


.pagination-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

@media only screen and (max-width: 600px) {
  .header-block {

    display: grid;
    width: 100%;
    justify-content: stretch;
    font-size: small;
  }

  .header-block__right-side-block {
    margin-right: 0;
    margin-bottom: 1em;
  }

  .header-block__search-div {
    margin-right: 0;
    margin-bottom: 1em;
  }

  .index__partial-placeholder {
    width: 100%;
  }

  .index-block {
    width: 100%;
  }

  #clearFiltersButton {
    margin-right: 2em;
    margin-top: 2em;  
  }
}