/**
 * Community directory styles
 */

.tfug-directory {
  margin-bottom: 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 880px;
  transition: all 0.2s ease-in-out;
}

.tfug__group__header {
  border: none;
  color: black;
  text-align: left;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
}

.tfug__group__header:focus, .tfug__group__header:hover {
  background-color: white;
  border: none;
  color: black;
}

.tfug__group__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.tfug__group__list a {
  color: black;
  padding: 4px 24px;
  font-size: 14px;
  line-height: 24px;
}

.tfug__group__list a:hover {
  font-weight: 500;
}

.tsf-directory__region__title {
  font-weight: 700;
  margin-bottom: 8px;
}

.tsf-directory__region {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.tsf-directory__caret {
  float: left;
  padding: 6px 6px 0px 4px;
}

@media (min-width: 800px) {
  .tsf-directory__regions {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  #directory-map {
    padding-bottom: 56%;
  }
}

.tsf-directory__map__item a {
  display: inline-block;
  font-weight: 400;
  margin: 16px 0;
}

.tsf-directory__map__item h4, .tsf-directory__map__item p {
  margin: 0;
}

.tsf-directory__map__location {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0;
}

.devsite-directory__filters {
  background: #425066;
}

/* Override stacking for filters in tablet width */
@media (min-width: 700px) and (max-width: 920px) {
  .devsite-directory__filters {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .devsite-directory__filters__dropdowns {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .devsite-directory__filters__search {
    margin-bottom: 0;
    margin-right: 24px;
    min-width: 280px;
    width: auto;
  }

  .devsite-directory__filters__dropdowns .devsite-directory__filters__filter:first-child {
    margin-right: 12px;
  }

  .devsite-directory__filters__dropdowns .devsite-directory__filters__filter:not(:first-child) {
    margin-left: 12px;
  }

  .devsite-directory__filters__dropdowns .devsite-directory__filters__filter {
    margin-bottom: 0;
  }
}

@media (max-width: 420px) {
  .tfug-directory {
    max-height: 1200px;
  }
}

/* Hide content pager section */
.devsite-directory__pager {
  display: none !important;
}

.devsite-directory__content em {
  display: none !important;
}

.break {
  flex-basis: 100%;
  width: 0;
}

