@import '../helpers/helpers';

$facility-gap: 13px;
$icon-container: 1.25rem;

.facilities {
  column-gap: 25px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  width: 100%;

  &__facility {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: $facility-gap;
    margin-bottom: 8px;
    margin-left: 5px;
    break-inside: avoid-column;

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

  &__title {
    font-size: 1rem;
    line-height: 1.5rem;
    break-inside: avoid-column;
    width: calc(100% - (#{$facility-gap} + #{$icon-container}));
  }

  &__icon {
    font-size: 1rem;
    color: $blue-dark;
  }

  &__icon-container {
    width: $icon-container;
    margin-top: 2px;
  }
}

@include media-breakpoint-up(md) {
  .facilities {
    grid-template-columns: repeat(2, 1fr);
  }
}

@include media-breakpoint-up(lg) {
  .facilities {
    grid-template-columns: repeat(3, 1fr);

    &__facility {
      margin-bottom: 20px;
    }
  }
}

@include media-breakpoint-up(xl) {
  .facilities {
    &__facility {
      margin-bottom: 8px;
    }
  }
}
