.agent-search-section {
  margin: 64px auto;
}

.agent-search-header {
  margin-bottom: 64px;
}

.agents-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 40px;
}

.agents-teams-switcher {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid #E9E9EA;
  width: fit-content;
  border-radius: 8px;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: Medium;
  line-height: 1.5;
  transition: ease 0.3s;
}
.tab-btn:hover {
  cursor: pointer;
  background-color: #F4F4F5;
}

.tab-btn-active {
  background-color: #1582E7;
  color: white;
}
.tab-btn-active:hover {
  background-color: #1582E7;
}

.top-filters {
  display: none;
  gap: 8px;
}
.top-filters-active {
  display: flex;
}

.agents-sec-search {
  position: relative;
}
.agents-sec-search input {
  min-width: 450px;
}
.agents-sec-search svg {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.agents-cards {
  display: none;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}
.agents-cards-active {
  display: flex;
}

.agents-cards-wrap {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 40px;
}

.miss-props-wrapper {
  width: 100%;
  min-height: 500px;
}

.agent-phone {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  background-color: white;
  border-radius: 8px;
  opacity: 0;
  transition: ease 0.6s;
  box-shadow: 0 2px 8px 0 rgba(33, 37, 48, 0.3);
}
.agent-phone svg {
  width: 16px;
  height: 16px;
  fill: #1582E7;
}

.agent-img {
  display: flex;
  width: 100%;
  aspect-ratio: 298/493;
  border-radius: 8px;
  overflow: hidden;
}
.agent-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
  padding: 0 24px 24px;
  color: white;
  z-index: 1;
  margin-bottom: -68px;
  transition: ease 0.4s;
}
.agent-info .agent-full-name {
  font-size: 20px;
  font-family: Semi;
  line-height: 1.7;
  text-transform: uppercase;
}
.agent-info .agent-position-card {
  font-size: 14px;
  font-family: Medium;
  line-height: 1.4;
}
.agent-info .agent-card-btn {
  margin-top: 24px;
}

.agent-bg-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  z-index: 0;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  background: linear-gradient(180deg, rgba(33, 37, 48, 0) 0%, #212530 100%);
}

.agent-card {
  position: relative;
  overflow: hidden;
  flex: 1 1 23%;
  max-width: 24%;
}
.agent-card:hover .agent-phone {
  opacity: 1;
}
.agent-card:hover .agent-info {
  margin-bottom: 0;
}
.agent-card:hover .agent-card-btn {
  margin-top: 16px;
}

.teams-cards-wrap {
  display: flex;
  column-gap: 16px;
  row-gap: 40px;
  flex-wrap: wrap;
}

.team-card {
  position: relative;
  overflow: hidden;
  flex: 1 1 49%;
  max-width: 49.4%;
}
.team-card:hover .team-info {
  margin-bottom: 0;
}
.team-card:hover .team-card-btn {
  margin-top: 16px;
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-img {
  display: flex;
  width: 100%;
  aspect-ratio: 612/493;
  border-radius: 8px;
  overflow: hidden;
}
.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0;
  padding: 0 24px 24px;
  color: white;
  z-index: 1;
  margin-bottom: -68px;
  transition: ease 0.4s;
}
.team-info .team-name {
  font-size: 20px;
  font-family: Semi;
  line-height: 1.7;
  text-transform: uppercase;
}
.team-info .team-properties-available {
  font-size: 14px;
  font-family: Medium;
  line-height: 1.4;
}
.team-info .team-card-btn {
  margin-top: 24px;
}

.team-bg-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  z-index: 0;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  background: linear-gradient(180deg, rgba(33, 37, 48, 0) 0%, #212530 100%);
}

@media (max-width: 900px) {
  .agents-sec-search input {
    min-width: 380px;
  }
  .agent-card {
    flex: 1 1 31%;
    max-width: 32%;
  }
  .team-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .agent-search-section {
    margin: 32px 0;
  }
  .agent-search-header {
    margin-bottom: 24px;
  }
  .agents-teams-switcher {
    width: 100%;
    padding: 4px;
    gap: 4px;
    border-radius: 6px;
  }
  .agents-teams-switcher .tab-btn {
    width: 100%;
    text-align: center;
    border-radius: 4px;
  }
  .miss-props-wrapper {
    min-height: auto;
  }
  .agents-top {
    flex-direction: column;
    margin-bottom: 24px;
  }
  .top-filters {
    width: 100%;
  }
  .agents-sec-search {
    width: 100%;
  }
  .agents-sec-search input {
    min-width: unset;
    width: 100%;
  }
  .agents-teams-switcher .tab-btn:hover {
    background-color: unset;
    color: unset;
  }
  .agents-teams-switcher .tab-btn-active:hover {
    background-color: #1582E7;
    color: white;
  }
  .agent-card {
    flex: 1 1 48%;
    max-width: 49%;
  }
  .agents-cards-active {
    row-gap: 32px;
  }
  .agent-img {
    aspect-ratio: 1;
  }
  .agent-img img {
    object-position: top;
  }
  .agent-card .agent-phone {
    opacity: 1;
  }
  .agent-card .agent-info {
    padding: 0 20px 20px;
    margin-bottom: 0;
  }
  .agent-card .agent-card-btn {
    margin-top: 16px;
  }
  .agents-cards-wrap {
    gap: 8px;
  }
  .teams-cards-wrap {
    gap: 8px;
  }
  .team-card .team-info {
    margin-bottom: 0;
    padding: 0 20px 20px;
  }
  .team-info .team-card-btn {
    margin-top: 16px;
  }
}
@media (max-width: 480px) {
  .agent-card {
    flex: 1 1 100%;
    max-width: unset;
  }
}