/**
 * @file
 * member-caegorities-listing.css
 *
 * The styles for the category/member list + the inner pages
 */


/* .member-categories__active {
} */

.member-categories__disabled {
  pointer-events: none;
  color: #999;
}

.member-categories__other-button {
  margin: -2em 0 1em;
}

/* .inside-header__content {} */

.btn--member-categories {
  /* border: 1px solid rgb(118, 118, 118); */
  
  /* font-weight: normal; */
  padding: 0 0.6em;
  /* margin: 0 0 2em; */
}

.btn--member-categories:hover {
  background: rgb(211, 210, 210);
}

/*========================================
 * Category List
 *========================================*/

/* Category List - 4 Columns */
ul.directory-categories {
  -moz-columns: 4 12em;
  columns: 4 12em;
  column-gap: 2em;
  margin: 0 0 4em;
}

.directory-category {
 display: inline-block;
 width: 100%;
 color: #666;
 border-bottom: 1px solid #eaeaea;
 padding: 0.2em 0.5em;
}

.member-categories .form--inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Labels */
.member-categories label {
  display: none;
}

/* Search */
.member-categories input {
  padding: 0.4em 0.6em;
}

.member-categories .form-item-key,
.member-categories .form-item-key input {
  width: 100%;
  max-width: 25em;
  margin-right: 0.5em;
}


/* Letters */
.member-categories .form-item-letter {
  min-width: 100%;
  text-align: center;
  margin: 2em 0 1em;
  order: 3;
}

.member-categories .bef-links ul {
  margin: 0 auto 1em;
  max-width: 95%;
}

.member-categories .bef-links li {
  display: inline-block;
  margin: 0 0 0.5em;
}

.member-categories .bef-links a {
  display: inline-block;
  margin: 0 0.2em;
  font-size: 1.3em;
  width: 1.65em;
  line-height: 2.3em;
  text-align: center;
  background: #467302;
  color: #fff;
  border-radius: 0.16em;
  transform: translateY(0);
}

.member-categories .bef-links a:hover,
.member-categories a.bef-link--selected {
  transform: translateY(-0.2em);
  opacity: 0.6;
}

.member-categories .bef-links li:first-child a {
  width: 2.4em;
}

@media (min-width: 500px) {
  .member-categories .bef-links a {
    line-height: 2;
    width: 1.7em;
  }
}

/*========================================
 * Listings of a Category 
 *========================================*/

.category-listings {
  max-width: 65em;
  margin: 0 auto;
}

.category-listings .views-row {
  width: 100%;
  margin: 0 0 2em;
  padding: 2em 2.5em;
  background: #eee;
  border-radius: 0.25em;
}

/* Image */
.category-listing__image {
  flex: 0 220px;
  text-align: right;
  order: -1;
  margin: 0 auto 2em;
}

.category-listing__image img {
  border-radius: 0.15em;
  display: block;
}

/* Content Wrapper */
.category-listing__content {
  flex: 1 1 100%;
  position: relative;
}

/* Title */
.category-listing__section-title {
  font-size: 2em;
  margin: 0 0 0.3rem;
}

/* Contact */
.category-listing__contact_name {
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #467302;
  font-weight: 700;
}

/* Description */
.category-listing__description {
  margin: 0.3em 0 2em;
  min-height: 3em;
  white-space: pre-line;
}

/* Buttons */
.category-listing__actions {
  text-align: center;
  font-size: 1em;
}

.category-listing__actions a {
  background: none;
  color: #467302;
  border: 0.16em solid #467302;
  border-radius: 0.16em;
  margin: 0 0.5em 0.5em 0;
}

.category-listing__actions span { /* Hide text on mobile */
  font-size: 0;
  position: absolute;
}

.category-listing__actions a:hover {
  background: #325200;
}

.category-listing__actions a:focus {
  color: #333;
}

.category-listing__actions a:first-child {
  background: #467302;
  color: #fff;
}

.category-listing__actions a:before {
  content: '';
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  vertical-align: bottom;
  background-repeat: no-repeat;
  background-position: center;
}

/* Button Icons */
.category-listing__phone:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23FFF' d='M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z'%3E%3C/path%3E%3C/svg%3E");
}

.category-listing__email:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%234CAF50' d='M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z'%3E%3C/path%3E%3C/svg%3E");
}

.category-listing__address:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%234CAF50' d='M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z'%3E%3C/path%3E%3C/svg%3E");
}

/*========================================
 * Responsive 
 *========================================*/

@media (min-width: 700px) and (max-width: 950px) {
  .category-listings .views-row {
    width: 48%;
    margin: 0 0 2em;
    padding: 2em 2.5em;
    background: #eee;
    border-radius: 0.25em;
  }

  .category-listings .views-row:nth-child(2n +1) {
    margin-right: 4%;
  }

  .category-listing__actions {
    font-size: 1.1em;
  }
}
 
@media (min-width: 951px) {
  .category-listings .views-row {
    width: 100%;
  }

  .category-listing {
    flex-wrap: nowrap;
  }

  .category-listing__image {
    margin: 0 0 0 1.5em;
    order: 1;
  }

  /* Category Actions */
  .category-listing__actions {
    text-align: left;
    font-size: 0.9em;
  }

  .category-listing__actions a:before {
    margin-right: 0.4em;
  }

  .category-listing__actions span {
    font-size: initial;
    position: static;
  }
}