.clinic-tour-filter {
  padding: 60px 0;
  position: relative;
  width: 100%;
}

.clinic-tour-filter {
  padding: 60px 0;
  position: relative;
  width: 100%;
}

.clinic-tour-filter .sec-title h2 {
  color: #000;
  font-size: 66px;
}

.clinic-tour-filter .sec-title {
  margin-bottom: 30px;
}

.clinic-tour-filter .subtitle {
  margin-bottom: 30px;
  text-align: center;
}

.clinic-tour-filter .subtitle h4 {
  color: #000;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
}

.clinic-tour-filter .desc {
  text-align: center;
  margin-bottom: 50px;
}

.clinic-tour-filter .desc p {
  color: #000;
  font-size: 18px;
  font-weight: 400;
}

.filter-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
  align-items: center;
  margin-bottom: 50px;
}

.filter-item {
  height: 39px;
  border-radius: var(--border-radius);
  border: none;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-family: "Urbanist", sans-serif;
}

.city-dropdown {
  background-color: #000;
  color: white;
  padding: 0 20px;
  min-width: 209px;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-wrapper::after {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
  font-size: 16px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBkPSJNMzUyIDE2MGMxMi45IDAgMjQuNiA3LjggMjkuNiAxOS44czIuMiAyNS43LTYuOSAzNC45bC0xNjAgMTYwYy0xMi41IDEyLjUtMzIuOCAxMi41LTQ1LjMgMGwtMTYwLTE2MGMtOS4yLTkuMi0xMS45LTIyLjktNi45LTM0LjlTMTkuMSAxNjAgMzIgMTYwbDMyMCAweiIvPjwvc3ZnPg==");
      content: "";
    height: 14px;
    width: 14px;
    filter: invert(1);
    background-repeat: no-repeat;
}

.city-dropdown:hover {
  background-color: #3c3c3c;
}

.city-dropdown:focus {
  background-color: #3c3c3c;
}

.filter-button {
  background-color: white;
  color: #000;
  padding: 0 50px;
  border: 2px solid #000000;
  min-width: 209px;
}

.filter-button:hover {
  border-color: #ccc;
  background-color: #fafafa;
}

.filter-button.active {
  background-color: #8c4c29;
  color: #fff;
  border-color: #8c4c29;
}

.filter-button.active:hover {
  background-color: #a0750a;
  border-color: #a0750a;
}

/* .filter-images-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
} */

.filter-images-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.filter-images-item {
  transition: all 0.3s ease;
}

/* .item-1 { grid-area: 1 / 1 / 2 / 3; }
.item-2 { grid-area: 1 / 3 / 2 / 4; }
.item-3 { grid-area: 2 / 1 / 3 / 2; }
.item-4 { grid-area: 2 / 2 / 3 / 4; }
.item-5 { grid-area: 3 / 1 / 4 / 3; }
.item-6 { grid-area: 3 / 3 / 4 / 4; }
.item-7 { grid-area: 4 / 1 / 5 / 2; }
.item-8 { grid-area: 4 / 2 / 5 / 4; } */

.filter-images-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-images-wrapper .filter-images-item:nth-child(4n+1),.filter-images-wrapper .filter-images-item:nth-child(4n){
    max-width: calc(70% - 20px);
    width: 100%;
}

.filter-images-wrapper .filter-images-item:nth-child(4n+2),.filter-images-wrapper .filter-images-item:nth-child(4n+3){
    max-width: calc(30% - 20px);
    width: 100%;
}


@media (max-width: 768px) {
  .filter-btn-wrapper {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-item {
    height: 40px;
    font-size: 14px;
  }

  .city-dropdown {
    min-width: 100px;
    padding: 0 15px;
  }

  .dropdown-wrapper::after {
    right: 12px;
  }

  .filter-button {
    padding: 0 20px;
  }

  .clinic-tour-filter {
    padding: 30px 0;
}

.clinic-tour-filter .sec-title {
    margin-bottom: 20px;
}

.clinic-tour-filter .subtitle {display: none;}

.clinic-tour-filter .desc {
    margin-bottom: 30px;
}

.clinic-tour-filter .desc p {
    font-size: 14px;
}

.filter-button {
    min-width: auto;
}

.filter-images-item {
    max-width: 100% !important;
}

.filter-btn-wrapper {
    margin-bottom: 30px;
}
}
