$c-gray-dcdcdc: #dcdcdc;
$c-theme-green: #43956f;

@use "00-base/configure" as *;

.ma__results-list-container {

  .ma__general-teaser {
    padding: 15px;

    @media ($bp-large-min) {
      padding: 20px;
    }

    &--active {
      background-color: $c-gray-lightest;
    }
  }
}


.ma__general-teaser {

  & + & {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: $c-bd-divider;
    margin-top: 0;
  }

  &--image {
    display: flex;
    flex-wrap: wrap;
  }

  .ma__quality__wrapper {
    font-family: $fonts;
    font-size: $fonts-small;
    line-height: 23px;
  }

  .ma__address {
    font-size: $fonts-smaller;
    line-height: 27px;
  }



  &__image {
    flex-shrink: 1;
    flex-grow: 0;
    flex-basis: 400px;
    font-size: 0;
    margin-right: 30px;
    margin-bottom: 10px;

    span {
      background-size: cover;
      display: block;
      padding-top: 56.25%;
      width: 100%;
    }
  }

  &__image + &__details {
    flex-basis: 300px;
    flex-shrink: 1;
    flex-grow: 1;
  }

  &__eyebrow {
    margin-bottom: 5px;

    span {
      font-size: $fonts-3xsmall;
      letter-spacing: 0.1em;
      padding: 5px 7px;
      text-transform: uppercase;
      background-color: $c-bg-section;
      font-weight: $fonts-bold;
    }
  }

  &__details {
    padding: 2px 0 4px;
    display: flex;
    flex-direction: column;

    .ma__contact-group {

      &__details {
        font-style: italic;
        font-size: $fonts-xsmall;
      }

      &__item {
        font-size: $fonts-small;
      }

      &__name {
        margin-bottom: 0;

        span {
          font-size: $fonts-small;
          color: $c-gray-dark;
          font-weight: 550;
        }

        > svg {
          height: 1.1rem;
          width: 1.1rem;
        }
      }
    }
  }

  &__date,
  &__org {
    font-size: $fonts-smaller;
    line-height: 1;
    margin-bottom: 1em;
    color: $c-font-dark;
    font-style: italic;
    font-weight: $fonts-bold;
  }

  &__date + &__org {
    border-left: 1px solid;
    margin-left: 0.75em;
    padding-left: 0.75em;
  }

  &__org {
    border-left-color: $c-bd-divider;

    &__show-more {

      &.show-fewer {
        padding-left: 1rem;

        svg {
          transform: rotate(180deg);
        }
      }

      svg {
        fill: rgba($c-primary, 0.5);
        width: 1em;
        height: 0.6em;
      }
    }
  }

  &__sublink {
    margin-bottom: 0.25rem;

    .ma__decorative-link {
      font-size: $fonts-small;
      line-height: 1.4rem;
      margin-bottom: 0.5rem;
    }
  }

  &__description {
    font-size: $fonts-small;

    @media ($bp-x-small-max) {
      font-size: $fonts-small;
    }

    p {
      margin-bottom: 0.75em;
    }
  }

  &__moreinfo {
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-start;
    align-content: flex-start;
    margin-top: 1em;

    @media ($bp-small-min) {
      flex-flow: row;
    }
  }

  &__primaryinfo {
    padding-right: 0.75em;
    flex: 1 40%;
    flex-grow: 2;
    font-size: $fonts-smaller;
    line-height: 27px;
    margin-bottom: 10px;

    &:last-child {
      margin-bottom: 0px;
    }

    &__details {
      margin-bottom: 1em;
    }
  }

  &__secondary {
    display: inline-flex;
    flex-flow: column;
    flex: 1 50%;

    &--border {
      flex: 1 1 40%;
      flex-grow: 1;
      padding-left: 0.75em;
      border-left: 1px solid $c-gray-light;
    }

    @media ($bp-small-min) {
      flex: 1 1 40%;
      flex-grow: 1;
      border-left: 1px solid $c-gray-light;
      align-content: flex-start;
    }
  }

  &__secondaryinfo {
    display: flex;
    flex-flow: row;
    align-items: center;
    font-size: $fonts-smaller;
    line-height: 22px;

    .ma__decorative-link {
      font-size: $fonts-small;
      line-height: 1.4rem;
      margin-bottom: 0rem;
      margin-left: 0.25em;
    }
  }

  &__secondaryicon svg {
    display: inline-block;
    vertical-align: middle;
    height: 1.1rem;
    width: 1.1rem;
    fill: $c-primary-alt;
  }

  svg.link-arrow {
    height: 1rem;
    width: 1rem;
    fill: $c-primary-lighter;
  }

  .ma__decorative-link {

    svg {
      height: 1rem;
      width: 1rem;
      fill: $c-primary-lighter;
    }
  }

  .ma__general-teaser__primary {
    flex-grow: 2;
  }

  .ma-icon {

    &__green {
      fill: $c-primary-alt;
    }
  }

  .ma__website {

    a {
      font-weight: $fonts-normal;
    }

    svg {
      height: 1rem;
      width: 1rem;
      margin-right: 5px;
    }
  }

  .ma__phone {
    font-size: $fonts-smaller;
    line-height: 27px;

    a {
      font-weight: $fonts-normal;
    }

    svg {
      height: 1rem;
      width: 1rem;
      margin-right: 8px;
    }
  }
}
