#offices-page-container {
  background-color: #fff;
  max-width: 100%;
}

#offices-search .background--lightgrey {
  background-color: #E2E2E2;
}

#offices-search .search-lists li {
  height: 40px;
  padding: 0 12px 0 12px;
}

#offices-search .search-lists li a {
  color: #515356;
}

.search-lists .active {
  border-bottom: 7px solid #0698DF;
}

#offices-page-green-header {
  min-height: 150px;
}

#offices-search .background--grey {
  height: 40px;
  background-color: #D4D4D4;
}

#offices-page-grey-header {
  padding-top: 30px;
  width: 100%;
}

.offices-page-wrapper {
  padding: 30px 30px;
}

#offices-page-container .content .text-formatted ul li::before {
  display: none;
}

#offices-page-container a:focus,
#offices-page-container a:hover {
  color: #009cde;
}

#searchbox {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 10px;
}

#searchbox .ais-SearchBox-input {
  border-radius: 0;
  border: 2px solid #0698DF;
  font-size: 1.2rem;
  margin-top: -5px;
}


#offices-page-container .office-description mark {
  padding: 0;
}

/* -- ais-Hits-item customized - People box styling -- */
#offices-box-wrapper .office-description {
  padding: 15px 10px 5px 20px;
}

#offices-box-wrapper .office-description .office_location {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#offices-box-wrapper .map-location img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

#hits-offices .ais-Hits-item {
  padding: 0;
  background-color: #EEEEEE;
  border: 0;
  box-shadow: none;
}

#offices-box-wrapper .field_address {
  font-size: 1.1rem;
}

#hits-offices .ais-Hits-list,
#hits-offices .ais-InfiniteHits-list,
#hits-offices .ais-InfiniteResults-list,
#hits-offices .ais-Results-list {
  margin-left: -2rem;
}

#hits-offices .ais-Hits-item,
#hits-offices .ais-InfiniteHits-item,
#hits-offices .ais-InfiniteResults-item,
#hits-offices .ais-Results-item {
  margin-top: 2rem;
  margin-left: 2rem;
  width: calc(25% - 2rem);
  /* height: 100%; */
}

/* -- ais-Hits-item customized - People box styling -- */

#offices-search-wrapper {
  width: 100%;
  background-color: #E2E2E2;
}

#filters-wrapper {
  width: 100%;
  background-color: #D4D4D4;
}

#filters-wrapper-result {
  width: 100%;
  background-color: #F1F1F1;
}

#filters-wrapper .filters-list {
  display: flex;
}

#filters-wrapper .filters-list .filter_wrapper {
  display: flex;
  white-space: nowrap;
  overflow-x: auto;
}

#filters-wrapper .filter-header {
  font-size: 90%;
  margin-top: 2px;
  padding: 10px 20px 10px 0;
}

#filters-wrapper .filter-header,
#filters-wrapper .filter-title {
  margin-right: 3px;
  font-weight: 400;
}

#filters-wrapper .filter-title {
  padding: 10px 20px 10px 20px;
  background-color: #C7C7C7;
  cursor: pointer;
}

#filters-wrapper .dropdown-toggle:empty::after {
  margin-left: 10px;
}

.scroll-btn {
  display: none;
}

#filters-wrapper .filter-widgets {
  padding: 10px;
}

.ais-RefinementList-labelText {
  padding: 5px;
}

.ais-RefinementList-count {
  padding: 0;
  font-size: 1.1rem;
  font-weight: 400 !important;
  color: #1096E1;
  background-color: unset;
  border-radius: unset;
  margin-left: 3px;
}

.filters-list-result .filter-widgets {
  padding: 20px 0 20px 0;
}

.ais-RefinementList-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(calc(3*10), 1fr);
  grid-auto-flow: column;
  grid-gap: 0px;
  max-height: 100%;
}

.ais-RefinementList-list li {
  flex: 1 0 20%;
  margin: 10px;
}

.ais-RefinementList-label {
  margin-left: 20px;
  text-indent: -20px;
}

#pagination {
  font-size: 1.1rem;
}

.previous-page {
  background: url(../images/arrow-left-fill.svg) no-repeat center;
  padding: 10px;
  border: none;
}

.next-page {
  background: url(../images/arrow-right-fill.svg) no-repeat center;
  padding: 10px;
  border: none;
}

#pagination .pages {
  padding-left: 25px;
  vertical-align: -moz-middle-with-baseline;
}

#pagination .previous-page[disabled] {
  opacity: 0.4;
}

@media screen and (max-width: 1200px) {
  #hits-offices .ais-Hits-item {
    width: 255px;
  }

  #hits-offices .ais-RefinementList-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(calc(4*10), 1fr);
    max-height: calc(10 * 40px);
  }
}

@media screen and (max-width: 790px) {
  #offices-search .search-lists {
    column-gap: 40px;
  }
}

@media screen and (max-width: 1000px) {
  #hits-offices .ais-RefinementList-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(calc(6*10), 1fr);
    max-height: calc(11 * 40px);
  }
}

@media screen and (max-width: 768px) {
  #filters-wrapper .filters-list {
    flex-wrap: wrap;
  }

  #offices-search .search-lists li {
    padding: 0 10px 0 10px;
  }
}

@media screen and (max-width: 575px) {
  .search-title .search-lists {
    padding: 0;
    margin: 0;
  }

  #hits-news .ais-RefinementList-list {
    display: inherit;
    max-height: calc(9 * 40px);
  }

  #hits-offices .ais-Hits-item {
    width: 100%;
  }

  #hits-news .ais-Hits-item {
    width: 100%;
  }

  #offices-box-wrapper {
    display: flex;
    flex-wrap: wrap;
  }

  #offices-box-wrapper .map-location {
    width: 60%;
    flex: 1;
  }

  #offices-box-wrapper .office-description {
    width: 40%;
    flex: 1;
  }

  #offices-box-wrapper .map-location img {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 150px;
  }

  #offices-box-wrapper .title {
    font-size: 1.4rem;
  }

  #offices-box-wrapper .office-description .field_address,
  #offices-box-wrapper .office-description .office_location,
  #offices-box-wrapper .office-description .firm_language {
    font-size: 1.1rem;
  }

  #offices-search .search-lists .active {
    border-bottom: 9px solid #0698DF;
  }
}



.search-header {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 525px) {
  .search-header h3 {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* Change this value to the desired number of lines */
    -webkit-box-orient: vertical;
  }
}

.ais-Pagination-item--firstPage,
.ais-Pagination-item--lastPage {
  display: none;
}

.ais-Pagination-item--nextPage {
  margin-left: 0 !important;
}

.ais-RefinementList .col-count {
  column-count: 4;
  display: block;
  column-gap: 20px;
}

@media screen and (max-width: 1000px) {
  .ais-RefinementList .col-count {
    column-count: 3;
  }
}

@media screen and (max-width: 768px) {
  .ais-RefinementList .col-count {
    column-count: 2;
  }
}

@media screen and (max-width: 575px) {
  .ais-RefinementList .col-count {
    column-count: 1;
  }
}

.ais-Pagination-item--disabled .ais-Pagination-link {
  opacity: 0.5;
}

.ais-Pagination-link {
  border-radius: 0;
}

.pagination_total_results {
  padding-right: 10px;
}

.pagination_page {
  padding-left: 10px;
}

.filters-list {
  display: flex;
  justify-content: space-between;
}

.btn-group {
  display: flex;
  align-items: center;
  z-index: 3;
}

.btn_reset {
  background-color: #009cde;
  color: #fff;
  padding: 5px 25px;
}

@media screen and (max-width: 528px) {
  .header-scroller {
    display: inline-block;
    position: absolute;
    font-size: 26px;
    right: 10px;
    transform: translateY(-50%);
    top: 46%;
  }

  .search-title .search-lists {
    white-space: nowrap;
    overflow-x: auto;
  }

  .search-title {
    padding-right: 25px;
  }
}

@media screen and (max-width: 700px) {
  .scroll-btn a,
  .scroll-btn a:hover,
  .scroll-btn a:focus {
    display: block;
    color: #515356;
    text-decoration: none;
  }

  #filters-wrapper .filters-list .filter_wrapper {
    white-space: nowrap;
    overflow-x: auto;
  }

  #filters-wrapper .filters-list {
    padding-right: 40px;
  }
}

#country_header, #language_header {
  margin-bottom: 5px;
  border: 1px solid #C7C7C7;
  cursor: pointer;
}
.country_lang_wrapper {
  display: flex;
}
.country_lang_wrapper #country-title {
  padding: 7px 10px 7px 39px;
}
.country_lang_wrapper #language-title {
  padding: 7px 12px 7px 39px;
}
.country_lang_wrapper .cl_filter-title .dropdown-toggle {
  margin-left: 10px;
}
.country-map-pointer-icon {
  background-image: url(../images/countries-map-pointer-icon.png);
  background-size: 15px 20px;
}
.languages-icon {
  background-image: url(../images/languages-icon.png);
  background-size: 20px 20px;
}
.country_lang_wrapper .search-filter-icons {
  height: 20px;
  width: 20px;
  margin: 10px;
  position: absolute;
  display: block;
  background-repeat: no-repeat;
}
#country_lang_result_wrapper {
  position: relative;
}
.cl-filter-widgets {
  display: none;
  z-index: 4;
  position: absolute;
  width: 100%;
  background-color: rgb(241, 241, 241);
  border: 1px solid #C7C7C7;
  box-shadow: 0px 10px 15px -3px #C7C7C7;
  margin-top: -6px;
  border-top: none;
}

.country_lang_wrapper .bordered {
  border-bottom: 1px solid #C7C7C7;
}

.cl-filter-widgets .ais-RefinementList {
  padding: 20px;
}

@media screen and (max-width: 500px) {
  .cl-filter-widgets .ais-RefinementList-item {
    width: 100%;
  }
}

#country_lang_result_wrapper .ais-RefinementList .col-count {
  display: grid;
}
#country_lang_result_wrapper .ais-RefinementList-list {
  max-height: calc(6 * 40px);
}

#country_lang_result_wrapper .ais-RefinementList-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(calc(3*10), 1fr);
  grid-auto-flow: column;
  grid-gap: 0px;
  overflow-y: auto;
}
#country_lang_result_wrapper .ais-RefinementList-list li {
  margin-bottom: 10px;
}

#map {
  height: 100%;
}

#offices-box-wrapper .office-description .contact-info {
  font-size: 1rem;
}



/* style office*/

#offices-box-wrapper .contact-info {
  display: flex;
  align-items: center;
  column-gap: 10px;
  position: relative;
  margin-bottom: 15px;
  padding: 10px 0 10px 0;
}

#offices-box-wrapper .contact-info::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  top: 0;
  left: 0;
}

#offices-box-wrapper .contact-info + .contact-info::before {
  display: none;
}

#offices-box-wrapper .contact-info::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #CDCECF;
  bottom: 0;
  left: 0;
}

#offices-box-wrapper .contact-info:last-child::after {
  display: none;
  padding-bottom: 0;
}

#offices-box-wrapper .contact-info:last-child {
  padding-bottom: 0;
}

#offices-box-wrapper .profile-picture {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
}

#offices-box-wrapper .profile-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#offices-box-wrapper .contact-details {
  flex: 1;
}

#offices-box-wrapper .contact-details b {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

#offices-box-wrapper .office-thumbnail img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

#pagination-offices-bottom {
  margin-top: 25px;
}

#pagination-offices-bottom .ais-Pagination-list {
  justify-content: left;
}
